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
This example shows how to use [bingroup](https://plot.ly/python/reference/#histogram-bingroup) attribute to have a compatible bin settings for both histograms. To define `start`, `end` and `size` value of x-axis and y-axis seperatly, set [ybins](https://plot.ly/python/reference/#histogram2dcontour-ybins) and `xbins`.
74
+
This example shows how to use [bingroup](https://plotly.com/python/reference/#histogram-bingroup) attribute to have a compatible bin settings for both histograms. To define `start`, `end` and `size` value of x-axis and y-axis seperatly, set [ybins](https://plotly.com/python/reference/#histogram2dcontour-ybins) and `xbins`.
75
75
76
76
```python
77
77
import plotly.graph_objects as go
@@ -170,4 +170,4 @@ fig.show()
170
170
```
171
171
172
172
#### Reference
173
-
See https://plot.ly/python/reference/#histogram2d for more information and chart attribute options!
173
+
See https://plotly.com/python/reference/#histogram2d for more information and chart attribute options!
sizeref=750, # info on sizeref: https://plot.ly/python/reference/#scatter-marker-sizeref
111
+
sizeref=750, # info on sizeref: https://plotly.com/python/reference/#scatter-marker-sizeref
112
112
size= planet_diameter,
113
113
color= planet_colors,
114
114
)
@@ -147,7 +147,7 @@ fig = go.Figure(go.Scatter3d(
147
147
mode='markers',
148
148
marker=dict(
149
149
sizemode='diameter',
150
-
sizeref=750, # info on sizeref: https://plot.ly/python/reference/#scatter-marker-sizeref
150
+
sizeref=750, # info on sizeref: https://plotly.com/python/reference/#scatter-marker-sizeref
151
151
size= planet_diameter,
152
152
color= temperatures,
153
153
colorbar_title='Mean<br>Temperature',
@@ -167,4 +167,4 @@ fig.show()
167
167
168
168
#### Reference
169
169
170
-
See https://plot.ly/python/reference/#scatter3d and https://plot.ly/python/reference/#scatter-marker-sizeref <br>for more information and chart attribute options!
170
+
See https://plotly.com/python/reference/#scatter3d and https://plotly.com/python/reference/#scatter-marker-sizeref <br>for more information and chart attribute options!
Copy file name to clipboardExpand all lines: doc/python/3d-scatter-plots.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,7 @@ jupyter:
37
37
38
38
[Plotly Express](/python/plotly-express/) is the easy-to-use, high-level interface to Plotly, which [operates on "tidy" data](/python/px-arguments/) and produces [easy-to-style figures](/python/styling-plotly-express/).
39
39
40
-
Like the [2D scatter plot](https://plot.ly/python/line-and-scatter/)`px.scatter`, the 3D function `px.scatter_3d` plots individual data in three-dimensional space.
40
+
Like the [2D scatter plot](https://plotly.com/python/line-and-scatter/)`px.scatter`, the 3D function `px.scatter_3d` plots individual data in three-dimensional space.
If Plotly Express does not provide a good starting point, it is also possible to use the more generic `go.Scatter3D` from `plotly.graph_objs`.
80
-
Like the [2D scatter plot](https://plot.ly/python/line-and-scatter/)`go.Scatter`, `go.Scatter3d` plots individual data in three-dimensional space.
80
+
Like the [2D scatter plot](https://plotly.com/python/line-and-scatter/)`go.Scatter`, `go.Scatter3d` plots individual data in three-dimensional space.
81
81
82
82
```python
83
83
import plotly.graph_objects as go
@@ -122,7 +122,7 @@ fig.show()
122
122
123
123
### Dash App
124
124
125
-
[Dash](https://plot.ly/products/dash/) is an Open Source Python library which can help you convert plotly figures into a reactive, web-based application. Below is a simple example of a dashboard created using Dash. Its [source code](https://github.com/plotly/simple-example-chart-apps/tree/master/dash-3dscatterplot) can easily be deployed to a PaaS.
125
+
[Dash](https://plotly.com/products/dash/) is an Open Source Python library which can help you convert plotly figures into a reactive, web-based application. Below is a simple example of a dashboard created using Dash. Its [source code](https://github.com/plotly/simple-example-chart-apps/tree/master/dash-3dscatterplot) can easily be deployed to a PaaS.
Copy file name to clipboardExpand all lines: doc/python/3d-surface-plots.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -76,7 +76,7 @@ fig.show()
76
76
#### Surface Plot With Contours
77
77
78
78
79
-
Display and customize contour data for each axis using the `contours` attribute ([reference](plot.ly/python/reference/#surface-contours)).
79
+
Display and customize contour data for each axis using the `contours` attribute ([reference](plotly.com/python/reference/#surface-contours)).
80
80
81
81
```python
82
82
import plotly.graph_objects as go
@@ -98,7 +98,7 @@ fig.update_layout(title='Mt Bruno Elevation', autosize=False,
98
98
fig.show()
99
99
```
100
100
#### Configure Surface Contour Levels
101
-
This example shows how to slice the surface graph on the desired position for each of x, y and z axis. [contours.x.start](https://plot.ly/python/reference/#surface-contours-x-start) sets the starting contour level value, `end` sets the end of it, and `size` sets the step between each contour level.
101
+
This example shows how to slice the surface graph on the desired position for each of x, y and z axis. [contours.x.start](https://plotly.com/python/reference/#surface-contours-x-start) sets the starting contour level value, `end` sets the end of it, and `size` sets the step between each contour level.
102
102
103
103
```python
104
104
import plotly.graph_objects as go
@@ -166,4 +166,4 @@ fig.show()
166
166
#### Reference
167
167
168
168
169
-
See https://plot.ly/python/reference/#surface for more information!
169
+
See https://plotly.com/python/reference/#surface for more information!
Copy file name to clipboardExpand all lines: doc/python/animations.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -63,7 +63,7 @@ Along with `data` and `layout`, `frames` can be added as a key in a figure objec
63
63
64
64
#### Adding Control Buttons to Animations
65
65
66
-
You can add play and pause buttons to control your animated charts by adding an `updatemenus` array to the `layout` of your `figure`. More information on style and placement of the buttons is available in Plotly's [`updatemenus` reference](https://plot.ly/python/reference/#layout-updatemenus).
66
+
You can add play and pause buttons to control your animated charts by adding an `updatemenus` array to the `layout` of your `figure`. More information on style and placement of the buttons is available in Plotly's [`updatemenus` reference](https://plotly.com/python/reference/#layout-updatemenus).
67
67
<br>
68
68
The buttons are defined as follows:
69
69
@@ -389,5 +389,5 @@ fig.show()
389
389
390
390
#### Reference
391
391
392
-
For additional information and attributes for creating bubble charts in Plotly see: https://plot.ly/python/bubble-charts/.
393
-
For more documentation on creating animations with Plotly, see https://plot.ly/python/#animations.
392
+
For additional information and attributes for creating bubble charts in Plotly see: https://plotly.com/python/bubble-charts/.
393
+
For more documentation on creating animations with Plotly, see https://plotly.com/python/#animations.
Copy file name to clipboardExpand all lines: doc/python/annotated-heatmap.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -202,7 +202,7 @@ fig.show()
202
202
```
203
203
204
204
#### Reference
205
-
For more info on Plotly heatmaps, see: https://plot.ly/python/reference/#heatmap.<br> For more info on using colorscales with Plotly see: https://plot.ly/python/heatmap-and-contour-colorscales/ <br>For more info on annotated_heatmaps, see:
205
+
For more info on Plotly heatmaps, see: https://plotly.com/python/reference/#heatmap.<br> For more info on using colorscales with Plotly see: https://plotly.com/python/heatmap-and-contour-colorscales/ <br>For more info on annotated_heatmaps, see:
Copy file name to clipboardExpand all lines: doc/python/axes.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -477,7 +477,7 @@ fig.show()
477
477
478
478
### Set axis title position
479
479
480
-
This example sets `standoff` attribute to cartesian axes to determine the distance between the tick labels and the axis title. Note that the axis title position is always constrained within the margins, so the actual standoff distance is always less than the set or default value. By default [automargin](https://plot.ly/python/setting-graph-size/#automatically-adjust-margins) is `True` in Plotly template for the cartesian axis, so the margins will be pushed to fit the axis title at given standoff distance.
480
+
This example sets `standoff` attribute to cartesian axes to determine the distance between the tick labels and the axis title. Note that the axis title position is always constrained within the margins, so the actual standoff distance is always less than the set or default value. By default [automargin](https://plotly.com/python/setting-graph-size/#automatically-adjust-margins) is `True` in Plotly template for the cartesian axis, so the margins will be pushed to fit the axis title at given standoff distance.
481
481
482
482
```python
483
483
import plotly.graph_objects as go
@@ -743,7 +743,7 @@ fig.show()
743
743
744
744
#### Synchronizing axes in subplots with `matches`
745
745
746
-
Using `facet_col` from `plotly.express` let [zoom](https://help.plot.ly/zoom-pan-hover-controls/#step-3-zoom-in-and-zoom-out-autoscale-the-plot) and [pan](https://help.plot.ly/zoom-pan-hover-controls/#step-6-pan-along-axes) each facet to the same range implicitly. However, if the subplots are created with `make_subplots`, the axis needs to be updated with `matches` parameter to update all the subplots accordingly.
746
+
Using `facet_col` from `plotly.express` let [zoom](https://help.plotly.com/zoom-pan-hover-controls/#step-3-zoom-in-and-zoom-out-autoscale-the-plot) and [pan](https://help.plotly.com/zoom-pan-hover-controls/#step-6-pan-along-axes) each facet to the same range implicitly. However, if the subplots are created with `make_subplots`, the axis needs to be updated with `matches` parameter to update all the subplots accordingly.
747
747
748
748
Zoom in one trace below, to see the other subplots zoomed to the same x-axis range. To pan all the subplots, click and drag from the center of x-axis to the side:
749
749
@@ -764,4 +764,4 @@ fig.show()
764
764
765
765
#### Reference
766
766
767
-
See https://plot.ly/python/reference/#layout-xaxis and https://plot.ly/python/reference/#layout-yaxis for more information and chart attribute options!
767
+
See https://plotly.com/python/reference/#layout-xaxis and https://plotly.com/python/reference/#layout-yaxis for more information and chart attribute options!
Set `categoryorder` to `"category ascending"` or `"category descending"` for the alphanumerical order of the category names or `"total ascending"` or `"total descending"` for numerical order of values. [categoryorder](https://plot.ly/python/reference/#layout-xaxis-categoryorder) for more information. Note that sorting the bars by a particular trace isn't possible right now - it's only possible to sort by the total values. Of course, you can always sort your data _before_ plotting it if you need more customization.
339
+
Set `categoryorder` to `"category ascending"` or `"category descending"` for the alphanumerical order of the category names or `"total ascending"` or `"total descending"` for numerical order of values. [categoryorder](https://plotly.com/python/reference/#layout-xaxis-categoryorder) for more information. Note that sorting the bars by a particular trace isn't possible right now - it's only possible to sort by the total values. Of course, you can always sort your data _before_ plotting it if you need more customization.
340
340
341
341
This example orders the bar chart alphabetically with `categoryorder: 'category ascending'`
342
342
@@ -382,8 +382,8 @@ fig.show()
382
382
383
383
### Horizontal Bar Charts
384
384
385
-
See examples of horizontal bar charts [here](https://plot.ly/python/horizontal-bar-charts/).
385
+
See examples of horizontal bar charts [here](https://plotly.com/python/horizontal-bar-charts/).
386
386
387
387
### Reference
388
388
389
-
See https://plot.ly/python/reference/#bar for more information and chart attribute options!
389
+
See https://plotly.com/python/reference/#bar for more information and chart attribute options!
Copy file name to clipboardExpand all lines: doc/python/box-plots.md
+5-5
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,7 @@ jupyter:
36
36
thumbnail: thumbnail/box.jpg
37
37
---
38
38
39
-
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/).
39
+
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://plotly.com/python/statistical-charts/).
40
40
41
41
## Box Plot with `plotly.express`
42
42
@@ -134,7 +134,7 @@ fig.show()
134
134
135
135
## Box plot with go.Box
136
136
137
-
If Plotly Express does not provide a good starting point, it is also possible to use the more generic `go.Box` function from `plotly.graph_objects`. All available options for `go.Box` are described in the reference page https://plot.ly/python/reference/#box.
137
+
If Plotly Express does not provide a good starting point, it is also possible to use the more generic `go.Box` function from `plotly.graph_objects`. All available options for `go.Box` are described in the reference page https://plotly.com/python/reference/#box.
138
138
139
139
### Basic Box Plot
140
140
@@ -280,7 +280,7 @@ fig.add_trace(go.Box(
280
280
name="All Points",
281
281
jitter=0.3,
282
282
pointpos=-1.8,
283
-
boxpoints='all', #represent all points
283
+
boxpoints='all', #represent all points
284
284
marker_color='rgb(7,40,89)',
285
285
line_color='rgb(7,40,89)'
286
286
))
@@ -353,7 +353,7 @@ fig.add_trace(go.Box(
353
353
354
354
fig.update_layout(
355
355
yaxis_title='normalized moisture',
356
-
boxmode='group'#group together boxes of the different traces for each value of x
356
+
boxmode='group'#group together boxes of the different traces for each value of x
357
357
)
358
358
fig.show()
359
359
```
@@ -491,4 +491,4 @@ fig.show()
491
491
492
492
#### Reference
493
493
494
-
See https://plot.ly/python/reference/#box for more information and chart attribute options!
494
+
See https://plotly.com/python/reference/#box for more information and chart attribute options!
0 commit comments