Skip to content

Commit 5a9efc6

Browse files
committed
cross-linking between tutorials
1 parent 032e463 commit 5a9efc6

5 files changed

+45
-6
lines changed

python/creating-and-updating-figures.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -487,6 +487,10 @@ fig.show()
487487

488488
There are also `for_each_xaxis` and `for_each_yaxis` methods that are analogous to the `for_each_trace` method described above. For non-cartesian subplot types (e.g. polar), there are additional `update_{type}` and `for_each_{type}` methods (e.g. `update_polar`, `for_each_polar`).
489489

490+
### Other update methods
491+
492+
`go` figures also support `update_layout_images` in order to [update background layout images](/python/images/), `update_annotations` in order to [update annotations](/python/text-and-annotations/#multiple-annotations), and `update-shapes` in order to [update shapes](/python/shapes/).
493+
490494

491495
#### Chaining figure operations
492496
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.

python/histograms.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jupyter:
2020
name: python
2121
nbconvert_exporter: python
2222
pygments_lexer: ipython3
23-
version: 3.6.7
23+
version: 3.7.3
2424
plotly:
2525
description: How to make Histograms in Python with Plotly.
2626
display_as: statistical
@@ -331,6 +331,21 @@ fig.append_trace(trace5, 3, 2)
331331
fig.show()
332332
```
333333

334+
### See also: Bar Charts
335+
336+
If you want to display information about the individual items within each histogram bar, then create a stacked bar chart with hover information as shown below. Note that this is not technically the histogram chart type, but it will have a similar effect as shown below by comparing the output of `px.histogram` and `px.bar`. For more information, see the [tutorial on bar charts](/python/bar-charts/).
337+
338+
```python
339+
import plotly.express as px
340+
tips = px.data.tips()
341+
fig1 = px.bar(tips, x='day', y='tip', height=300,
342+
title='Stacked Bar Chart - Hover on individual items')
343+
fig2 = px.histogram(tips, x='day', y='tip', histfunc='sum', height=300,
344+
title='Histogram Chart')
345+
fig1.show()
346+
fig2.show()
347+
```
348+
334349
### Dash Example
335350

336351

python/parallel-categories-diagram.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jupyter:
66
extension: .md
77
format_name: markdown
88
format_version: '1.1'
9-
jupytext_version: 1.2.1
9+
jupytext_version: 1.1.1
1010
kernelspec:
1111
display_name: Python 3
1212
language: python
@@ -20,7 +20,7 @@ jupyter:
2020
name: python
2121
nbconvert_exporter: python
2222
pygments_lexer: ipython3
23-
version: 3.6.8
23+
version: 3.7.3
2424
plotly:
2525
description: How to make parallel categories diagrams in Python with Plotly.
2626
display_as: statistical
@@ -38,6 +38,8 @@ The parallel categories diagram is a visualization of multi-dimensional categori
3838

3939
Combinations of category rectangles across dimensions are connected by ribbons, where the height of the ribbon corresponds to the relative frequency of occurrence of the combination of categories in the data set.
4040

41+
For other representations of multivariate data, also see [parallel coordinates](/python/parallel-coordinates-plot/), [radar charts](/python/radar-chart/) and [scatterplot matrix (SPLOM)](/python/splom/).
42+
4143

4244
#### Basic Parallel Category Diagram with plotly.express
4345

python/parallel-coordinates-plot.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jupyter:
2222
name: python
2323
nbconvert_exporter: python
2424
pygments_lexer: ipython3
25-
version: 3.6.7
25+
version: 3.7.3
2626
plotly:
2727
description: How to make parallel coorindates plots in Python with Plotly.
2828
display_as: scientific
@@ -37,7 +37,7 @@ jupyter:
3737

3838
## Parallel Coordinates plot with Plotly Express
3939

40-
[Plotly Express](/python/plotly-express/) is the easy-to-use, high-level interface to Plotly, which [operates on "tidy" data](/python/px-arguments/). In a parallel coordinates plot with `px.parallel_coordinates`, each row of the DataFrame is represented by a polyline mark which traverses a set of parallel axes, one for each of the dimensions. For other representations of multivariate data, also see [radar charts](/python/radar-chart/) and [scatterplot matrix (SPLOM)](/python/splom/).
40+
[Plotly Express](/python/plotly-express/) is the easy-to-use, high-level interface to Plotly, which [operates on "tidy" data](/python/px-arguments/). In a parallel coordinates plot with `px.parallel_coordinates`, each row of the DataFrame is represented by a polyline mark which traverses a set of parallel axes, one for each of the dimensions. For other representations of multivariate data, also see [parallel categories](/python/parallel-categories-diagram/), [radar charts](/python/radar-chart/) and [scatterplot matrix (SPLOM)](/python/splom/).
4141

4242
```python
4343
import plotly.express as px

python/pie-charts.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jupyter:
2020
name: python
2121
nbconvert_exporter: python
2222
pygments_lexer: ipython3
23-
version: 3.6.7
23+
version: 3.7.3
2424
plotly:
2525
description: How to make Pie Charts.
2626
display_as: basic
@@ -164,6 +164,24 @@ fig.update_layout(title_text='World GDP')
164164
fig.show()
165165
```
166166

167+
### See Also: Sunburst charts
168+
169+
For multilevel pie charts representing hierarchical data, you can use the `Sunburst` chart. A simple example is given below, for more information see the [tutorial on Sunburst charts](/python/sunburst-charts/).
170+
171+
```python
172+
import plotly.graph_objects as go
173+
174+
fig =go.Figure(go.Sunburst(
175+
labels=["Eve", "Cain", "Seth", "Enos", "Noam", "Abel", "Awan", "Enoch", "Azura"],
176+
parents=["", "Eve", "Eve", "Seth", "Seth", "Eve", "Eve", "Awan", "Eve" ],
177+
values=[10, 14, 12, 10, 2, 6, 6, 4, 4],
178+
))
179+
fig.update_layout(margin = dict(t=0, l=0, r=0, b=0))
180+
181+
fig.show()
182+
183+
```
184+
167185
### Dash Example
168186

169187

0 commit comments

Comments
 (0)