You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
##### Toggle grid and zerolines for figure created with plotly express
97
+
##### Toggle grid and zerolines for figure created with Plotly Express
98
98
99
99
100
-
An advantage of using the `update_xaxis` and `update_yaxis` methods is that these updates will (by default) apply to all axes in the figure. This is especially useful when customizing figures created using plotly express, figure factories, or `make_subplots`.
100
+
An advantage of using the `update_xaxis` and `update_yaxis` methods is that these updates will (by default) apply to all axes in the figure. This is especially useful when customizing figures created using Plotly Express, figure factories, or `make_subplots`.
101
101
102
-
Here is an example of disabling all grid and zero lines in a faceted figure created by plotly express.
102
+
Here is an example of disabling all grid and zero lines in a faceted figure created by Plotly Express.
103
103
104
104
```python
105
105
import plotly.express as px
@@ -115,7 +115,7 @@ fig.show()
115
115
##### Toggling axis tick marks
116
116
Axis tick marks are disabled by default for the default `plotly` theme, but they can easily be turned on by setting the `ticks` axis property to `"inside"` (to place ticks inside plotting area) or `"outside"` (to place ticks outside the plotting area).
117
117
118
-
Here is an example of turning on inside x-axis and y-axis ticks in a faceted figure created using plotly express. Note how the `col` argument to `update_yaxes` is used to only turn on the y-axis ticks for the left-most subplot.
118
+
Here is an example of turning on inside x-axis and y-axis ticks in a faceted figure created using Plotly Express. Note how the `col` argument to `update_yaxes` is used to only turn on the y-axis ticks for the left-most subplot.
119
119
120
120
```python
121
121
import plotly.express as px
@@ -131,7 +131,7 @@ fig.show()
131
131
##### Toggling axis labels
132
132
The axis tick mark labels can be disabled by setting the `showticklabels` axis property to `False`.
133
133
134
-
Here is an example of disabling tick labels in all subplots for a faceted figure created using plotly express.
134
+
Here is an example of disabling tick labels in all subplots for a faceted figure created using Plotly Express.
135
135
136
136
```python
137
137
import plotly.express as px
@@ -149,7 +149,7 @@ fig.show()
149
149
##### Set number of tick marks
150
150
The approximate number of ticks displayed for an axis can be specified using the `nticks` axis property.
151
151
152
-
Here is an example of updating the y-axes of a figure created using plotly express to display approximately 20 ticks.
152
+
Here is an example of updating the y-axes of a figure created using Plotly Express to display approximately 20 ticks.
153
153
154
154
```python
155
155
import plotly.express as px
@@ -164,7 +164,7 @@ fig.show()
164
164
##### Set start position and distance between ticks
165
165
The `tick0` and `dtick` axis properties can be used to control to placement of axis ticks as follows: If specified, a tick will fall exactly on the location of `tick0` and additional ticks will be added in both directions at intervals of `dtick`.
166
166
167
-
Here is an example of updating the y axis of a figure created using plotly express to position the ticks at intervals of 0.5, starting at 0.25.
167
+
Here is an example of updating the y axis of a figure created using Plotly Express to position the ticks at intervals of 0.5, starting at 0.25.
168
168
169
169
```python
170
170
import plotly.express as px
@@ -179,7 +179,7 @@ fig.show()
179
179
##### Set exact location of axis ticks
180
180
It is possible to configure an axis to display ticks at a set of predefined locations by setting the `tickvals` property to an array of positions.
181
181
182
-
Here is an example of setting the exact location of ticks on the y axes of a figure created using plotly express.
182
+
Here is an example of setting the exact location of ticks on the y axes of a figure created using Plotly Express.
183
183
184
184
```python
185
185
import plotly.express as px
@@ -196,7 +196,7 @@ As discussed above, tick marks are disabled by default in the default `plotly` t
196
196
197
197
The appearance of these tick marks can be customized by setting their length (`ticklen`), width (`tickwidth`), and color (`tickcolor`).
198
198
199
-
Here is an example of enabling and styling the tick marks of a faceted figure created using plotly express. Note how the `col` argument to `update_yaxes` is used to only turn on and style the y-axis ticks for the left-most subplot.
199
+
Here is an example of enabling and styling the tick marks of a faceted figure created using Plotly Express. Note how the `col` argument to `update_yaxes` is used to only turn on and style the y-axis ticks for the left-most subplot.
200
200
201
201
```python
202
202
import plotly.express as px
@@ -227,7 +227,7 @@ fig.show()
227
227
```
228
228
229
229
##### Set axis title font
230
-
Here is an example that configures the font family, size, and color for the axis titles in a figure created using plotly express.
230
+
Here is an example that configures the font family, size, and color for the axis titles in a figure created using Plotly Express.
231
231
232
232
```python
233
233
import plotly.express as px
@@ -243,7 +243,7 @@ fig.show()
243
243
##### Set axis label rotation and font
244
244
The orientation of the axis tick mark labels is configured using the `tickangle` axis property. The value of `tickangle` is the angle of rotation, in the clockwise direction, of the labels from vertical in units of degrees. The font family, size, and color for the tick labels are stored under the `tickfont` axis property.
245
245
246
-
Here is an example of rotating the x-axis tick labels by 45 degrees, and customizing their font properties, in a faceted histogram figure created using plotly express.
246
+
Here is an example of rotating the x-axis tick labels by 45 degrees, and customizing their font properties, in a faceted histogram figure created using Plotly Express.
247
247
248
248
```python
249
249
import plotly.express as px
@@ -261,7 +261,7 @@ fig.show()
261
261
##### Styling axis lines
262
262
The `showline` axis property controls the visibility of the axis line, and the `linecolor` and `linewidth` axis properties control the color and width of the axis line.
263
263
264
-
Here is an example of enabling the x and y axis lines, and customizing their width and color, for a faceted histogram created with plotly express.
264
+
Here is an example of enabling the x and y axis lines, and customizing their width and color, for a faceted histogram created with Plotly Express.
265
265
266
266
```python
267
267
import plotly.express as px
@@ -277,7 +277,7 @@ fig.show()
277
277
##### Mirroring axis lines
278
278
Axis lines can be mirrored to the opposite side of the plotting area by setting the `mirror` axis property to `True`.
279
279
280
-
Here is an example of mirroring the x and y axis lines in a faceted histogram created using plotly express.
280
+
Here is an example of mirroring the x and y axis lines in a faceted histogram created using Plotly Express.
281
281
282
282
```python
283
283
import plotly.express as px
@@ -293,7 +293,7 @@ fig.show()
293
293
##### Styling grid lines
294
294
The width and color of axis grid lines are controlled by the `gridwidth` and `gridcolor` axis properties.
295
295
296
-
Here is an example of customizing the grid line width and color for a faceted scatter plot created with plotly express
296
+
Here is an example of customizing the grid line width and color for a faceted scatter plot created with Plotly Express
297
297
298
298
```python
299
299
import plotly.express as px
@@ -327,7 +327,7 @@ fig.show()
327
327
#### Setting the Range of Axes Manually
328
328
The visible x and y axis range can be configured manually by setting the `range` axis property to a list of two values, the lower and upper boundary.
329
329
330
-
Here's an example of manually specifying the x and y axis range for a faceted scatter plot created with plotly express.
330
+
Here's an example of manually specifying the x and y axis range for a faceted scatter plot created with Plotly Express.
331
331
332
332
```python
333
333
import plotly.express as px
@@ -444,7 +444,7 @@ fig.show()
444
444
#### Reversed Axes
445
445
You can tell plotly's automatic axis range calculation logic to reverse the direction of an axis by setting the `autorange` axis property to `"reversed"`.
446
446
447
-
Here is an example of reversing the direction of the y axes for a faceted scatter plot created using plotly express.
447
+
Here is an example of reversing the direction of the y axes for a faceted scatter plot created using Plotly Express.
448
448
449
449
```python
450
450
import plotly.express as px
@@ -459,7 +459,7 @@ fig.show()
459
459
#### Reversed Axes with Range ( Min/Max ) Specified
460
460
The direction of an axis can be reversed when manually setting the range extents by specifying a list containing the upper bound followed by the lower bound (rather that the lower followed by the upper) as the `range` axis property.
461
461
462
-
Here is an example of manually setting the reversed range of the y axes in a faceted scatter plot figure created using plotly express.
462
+
Here is an example of manually setting the reversed range of the y axes in a faceted scatter plot figure created using Plotly Express.
463
463
464
464
```python
465
465
import plotly.express as px
@@ -477,7 +477,7 @@ The axis auto-range calculation logic can be configured using the `rangemode` ax
477
477
478
478
If `rangemode` is `"normal"` (the default), the range is computed based on the min and max values of the input data. If `"tozero"`, the the range will always include zero. If `"nonnegative"`, the range will not extend below zero, regardless of the input data.
479
479
480
-
Here is an example of configuring a faceted scatter plot created using plotly express to always include zero for both the x and y axes.
480
+
Here is an example of configuring a faceted scatter plot created using Plotly Express to always include zero for both the x and y axes.
Copy file name to clipboardExpand all lines: python/box-plots.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -40,7 +40,7 @@ jupyter:
40
40
A [box plot](https://en.wikipedia.org/wiki/Box_plot) is a statistical representation of numerical data through their quartiles. The ends of the box represent the lower and upper quartiles, while the median (second quartile) is marked by a line inside the box. For other statistical representations of numerical data, see [other statistical charts](https://plot.ly/python/statistical-charts/).
41
41
42
42
43
-
## Box Plot with plotly express
43
+
## Box Plot with Plotly Express
44
44
45
45
[Plotly Express](/python/plotly-express/) is the easy-to-use, high-level interface to Plotly, which [operates on "tidy" data](/python/px-arguments/).
Copy file name to clipboardExpand all lines: python/bubble-charts.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -42,7 +42,7 @@ jupyter:
42
42
43
43
A [bubble chart](https://en.wikipedia.org/wiki/Bubble_chart) is a scatter plot in which a third dimension of the data is shown through the size of markers. For other types of scatter plot, see the [line and scatter page](https://plot.ly/python/line-and-scatter/).
44
44
45
-
We first show a bubble chart example using plotly express. [Plotly Express](/python/plotly-express/) is the easy-to-use, high-level interface to Plotly, which [operates on "tidy" data](/python/px-arguments/). The size of markers is set from the dataframe column given as the `size` parameter.
45
+
We first show a bubble chart example using Plotly Express. [Plotly Express](/python/plotly-express/) is the easy-to-use, high-level interface to Plotly, which [operates on "tidy" data](/python/px-arguments/). The size of markers is set from the dataframe column given as the `size` parameter.
Copy file name to clipboardExpand all lines: python/bubble-maps.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,7 @@ jupyter:
36
36
v4upgrade: true
37
37
---
38
38
39
-
### Bubble map with plotly express
39
+
### Bubble map with Plotly Express
40
40
41
41
[Plotly Express](/python/plotly-express/) is the easy-to-use, high-level interface to Plotly, which [operates on "tidy" data](/python/px-arguments/). With ``px.scatter_geo``, each line of the dataframe is represented as a marker point. The column set as the `size` argument gives the size of markers.
The `update_traces` method can also be used on figures produced by figure factories or plotly express. Here's an example of updating the regression lines produced by plotly express to be dotted.
429
+
The `update_traces` method can also be used on figures produced by figure factories or Plotly Express. Here's an example of updating the regression lines produced by Plotly Express to be dotted.
430
430
431
431
```python
432
432
import pandas as pd
@@ -444,7 +444,7 @@ Suppose the updates that you want to make to a collection of traces depend on th
444
444
445
445
As its first argument, the `for_each_trace` method accepts a function that accepts and updates one trace at a time. Like `update_traces`, `for_each_trace` also accepts `selector`, `row`, and `col` arguments to control which traces should be considered.
446
446
447
-
Here is an example of using `for_each_trace` to replace the equal-sign with a colon in the legend name of each trace in a figure produced by plotly express.
447
+
Here is an example of using `for_each_trace` to replace the equal-sign with a colon in the legend name of each trace in a figure produced by Plotly Express.
448
448
449
449
```python
450
450
import pandas as pd
@@ -460,7 +460,7 @@ fig.show()
460
460
```
461
461
462
462
#### The update axis methods
463
-
Graph object figures support `update_xaxes` and `update_yaxes` methods that may be used to update multiple nested properties of one or more of a figure's axes. Here is an example of using `update_xaxes` to disable the vertical grid lines across all subplots in a figure produced by plotly express.
463
+
Graph object figures support `update_xaxes` and `update_yaxes` methods that may be used to update multiple nested properties of one or more of a figure's axes. Here is an example of using `update_xaxes` to disable the vertical grid lines across all subplots in a figure produced by Plotly Express.
464
464
465
465
```python
466
466
import pandas as pd
@@ -477,7 +477,7 @@ There are also `for_each_xaxis` and `for_each_yaxis` methods that are analogous
477
477
#### Chaining figure operations
478
478
All of the figure update operations described above are methods that return a reference to the figure being modified. This makes it possible the chain multiple figure modification operations together into a single expression.
479
479
480
-
Here is an example of a chained expression that creates a faceted scatter plot with OLS trend lines using plotly express, sets the title font size using `update_layout`, disables vertical grid lines using `update_xaxes`, updates the width and dash pattern of the trend lines using `update_traces`, and then displays the figure using `show`.
480
+
Here is an example of a chained expression that creates a faceted scatter plot with OLS trend lines using Plotly Express, sets the title font size using `update_layout`, disables vertical grid lines using `update_xaxes`, updates the width and dash pattern of the trend lines using `update_traces`, and then displays the figure using `show`.
Copy file name to clipboardExpand all lines: python/error-bars.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,7 @@ jupyter:
37
37
v4upgrade: true
38
38
---
39
39
40
-
### Error Bars with plotly express
40
+
### Error Bars with Plotly Express
41
41
42
42
[Plotly Express](/python/plotly-express/) is the easy-to-use, high-level interface to Plotly, which [operates on "tidy" data](/python/px-arguments/). For functions representing 2D data points such as [`px.scatter`](https://plot.ly/python/line-and-scatter/), [`px.line`](https://plot.ly/python/line-charts/), [`px.bar`](https://plot.ly/python/bar-charts/) etc., error bars are given as a column name which is the value of the `error_x` (for the error on x position) and `error_y` (for the error on y position).
Copy file name to clipboardExpand all lines: python/histograms.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,7 @@ jupyter:
38
38
v4upgrade: true
39
39
---
40
40
41
-
## Histogram with plotly express
41
+
## Histogram with Plotly Express
42
42
43
43
In statistics, a [histogram](https://en.wikipedia.org/wiki/Histogram) is representation of the distribution of numerical data, where the data are binned and the count for each bin is represented. More generally, in plotly a histogram is an aggregated bar chart, with several possible aggregation functions (e.g. sum, average, count...). Also, the data to be binned can be numerical data but also categorical or date data.
Copy file name to clipboardExpand all lines: python/horizontal-bar-charts.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -40,12 +40,12 @@ jupyter:
40
40
See more examples of bar charts (including vertical bar charts) and styling options [here](https://plot.ly/python/bar-charts/).
41
41
42
42
43
-
### Horizontal Bar Chart with plotly express
43
+
### Horizontal Bar Chart with Plotly Express
44
44
45
45
[Plotly Express](/python/plotly-express/) is the easy-to-use, high-level interface to Plotly, which [operates on "tidy" data](/python/px-arguments/). For a horizontal bar char, use the `px.bar` function with `orientation='h'`.
46
46
47
47
48
-
#### Basic Horizontal Bar Chart with plotly express
48
+
#### Basic Horizontal Bar Chart with Plotly Express
0 commit comments