Skip to content

Commit 4b5dee8

Browse files
proper 'new in' version numbers
1 parent 1abbb6e commit 4b5dee8

File tree

5 files changed

+13
-5
lines changed

5 files changed

+13
-5
lines changed

doc/python/annotated-heatmap.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ As of version 5.5.0 of `plotly`, the **recommended way to [display annotated hea
4343

4444
#### Basic Annotated Heatmap for z-annotations
4545

46+
*New in v5.5*
47+
4648
After creating a figure with `px.imshow`, you can add z-annotations with `.update_traces(texttemplate="%{z}")`.
4749

4850
```python
@@ -246,7 +248,7 @@ fig = px.imshow(color, color_continuous_scale=colorscale, aspect="auto",
246248
title='Periodic Table')
247249
fig.update_traces(
248250
text=symbol, texttemplate="%{text}", textfont_size=12,
249-
customdata=np.moveaxis([element, atomic_mass], 0,-1),
251+
customdata=np.moveaxis([element, atomic_mass], 0,-1),
250252
hovertemplate="%{customdata[0]}<br>Atomic Mass: %{customdata[1]:.2f}<extra></extra>"
251253
)
252254
fig.update_xaxes(visible=False)

doc/python/axes.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,8 @@ fig.show()
293293

294294
##### Step for tick labels
295295

296+
*New in v5.6*
297+
296298
You can set a step for tick labels with `ticklabelstep`. In this example, we hide labels between every `2` ticks on the y axes. Similarly, this can be used with `fig.update_xaxes` for x axes: `fig.update_xaxes(ticklabelstep=2)`.
297299

298300
```python

doc/python/filled-area-plots.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ IFrame(snippet_url + 'filled-area-plots', width='100%', height=1200)
6363

6464
### Pattern Fills
6565

66-
*New in v5.0*
66+
*New in v5.7*
6767

6868
Area charts afford the use of [patterns (also known as hatching or texture)](/python/pattern-hatching-texture/) in addition to color:
6969

doc/python/legend.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ fig.show()
9999

100100
*New in v5.0*
101101

102-
The `legendrank` attribute of a trace can be used to control its placement within the legend, without regard for its placement in the `data` list.
102+
The `legendrank` attribute of a trace can be used to control its placement within the legend, without regard for its placement in the `data` list.
103103

104104
The default `legendrank` for traces is 1000 and ties are broken as described above, meaning that any trace can be pulled up to the top if it is the only one with a legend rank less than 1000 and pushed to the bottom if it is the only one with a rank greater than 1000.
105105

@@ -447,6 +447,8 @@ fig.show()
447447

448448
#### Group click toggle behavior
449449

450+
*New in v5.3*
451+
450452
You can also define the toggle behavior for when a user clicks an item in a group. Here we set the `groupclick` for the `legend` to `toggleitem`. This toggles the visibility of just the item clicked on by the user. Set to `togglegroup` and it toggles the visibility of all items in the same group as the item clicked on.
451453

452454
```python

doc/python/smith-charts.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ jupyter:
3333
thumbnail: thumbnail/contourcarpet.jpg
3434
---
3535

36+
*New in v5.4*
37+
3638
A [Smith Chart](https://en.wikipedia.org/wiki/Smith_chart) is a specialized chart for visualizing [complex numbers](https://en.wikipedia.org/wiki/Complex_number): numbers with both a real and imaginary part.
3739

3840

@@ -53,7 +55,7 @@ import plotly.graph_objects as go
5355
fig = go.Figure()
5456

5557
fig.add_trace(go.Scattersmith(
56-
imag=[1],
58+
imag=[1],
5759
real=[1],
5860
marker_symbol='x',
5961
marker_size=30,
@@ -62,7 +64,7 @@ fig.add_trace(go.Scattersmith(
6264
))
6365

6466
fig.add_trace(go.Scattersmith(
65-
imag=[1],
67+
imag=[1],
6668
real=[1],
6769
marker_symbol='x',
6870
marker_size=30,

0 commit comments

Comments
 (0)