Skip to content

Commit b9e5f7a

Browse files
committed
Merge branch 'main' into upgrade-kaleido
2 parents ad57031 + 3d262d7 commit b9e5f7a

File tree

10 files changed

+32
-93
lines changed

10 files changed

+32
-93
lines changed

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Change Log
1+
# Changelog
22
All notable changes to this project will be documented in this file.
33
This project adheres to [Semantic Versioning](http://semver.org/).
44

doc/python/3d-axes.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jupyter:
66
extension: .md
77
format_name: markdown
88
format_version: '1.3'
9-
jupytext_version: 1.15.1
9+
jupytext_version: 1.16.4
1010
kernelspec:
1111
display_name: Python 3 (ipykernel)
1212
language: python
@@ -114,7 +114,7 @@ fig = make_subplots(rows=2, cols=2,
114114
print_grid=False)
115115
for i in [1,2]:
116116
for j in [1,2]:
117-
fig.append_trace(
117+
fig.add_trace(
118118
go.Mesh3d(
119119
x=(60*np.random.randn(N)),
120120
y=(25*np.random.randn(N)),

doc/python/histograms.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ jupyter:
66
extension: .md
77
format_name: markdown
88
format_version: '1.3'
9-
jupytext_version: 1.14.1
9+
jupytext_version: 1.16.4
1010
kernelspec:
11-
display_name: Python 3
11+
display_name: Python 3 (ipykernel)
1212
language: python
1313
name: python3
1414
language_info:
@@ -20,7 +20,7 @@ jupyter:
2020
name: python
2121
nbconvert_exporter: python
2222
pygments_lexer: ipython3
23-
version: 3.8.8
23+
version: 3.11.10
2424
plotly:
2525
description: How to make Histograms in Python with Plotly.
2626
display_as: statistical
@@ -438,12 +438,12 @@ trace5 = go.Histogram(x=x,
438438
autobinx = False
439439
)
440440

441-
fig.append_trace(trace0, 1, 1)
442-
fig.append_trace(trace1, 1, 2)
443-
fig.append_trace(trace2, 2, 1)
444-
fig.append_trace(trace3, 2, 2)
445-
fig.append_trace(trace4, 3, 1)
446-
fig.append_trace(trace5, 3, 2)
441+
fig.add_trace(trace0, 1, 1)
442+
fig.add_trace(trace1, 1, 2)
443+
fig.add_trace(trace2, 2, 1)
444+
fig.add_trace(trace3, 2, 2)
445+
fig.add_trace(trace4, 3, 1)
446+
fig.add_trace(trace5, 3, 2)
447447

448448
fig.show()
449449
```

doc/python/horizontal-bar-charts.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ jupyter:
55
text_representation:
66
extension: .md
77
format_name: markdown
8-
format_version: '1.1'
9-
jupytext_version: 1.1.1
8+
format_version: '1.3'
9+
jupytext_version: 1.16.4
1010
kernelspec:
11-
display_name: Python 3
11+
display_name: Python 3 (ipykernel)
1212
language: python
1313
name: python3
1414
language_info:
@@ -20,7 +20,7 @@ jupyter:
2020
name: python
2121
nbconvert_exporter: python
2222
pygments_lexer: ipython3
23-
version: 3.6.7
23+
version: 3.11.10
2424
plotly:
2525
description: How to make horizontal bar charts in Python with Plotly.
2626
display_as: basic
@@ -239,7 +239,7 @@ x = ['Japan', 'United Kingdom', 'Canada', 'Netherlands',
239239
fig = make_subplots(rows=1, cols=2, specs=[[{}, {}]], shared_xaxes=True,
240240
shared_yaxes=False, vertical_spacing=0.001)
241241

242-
fig.append_trace(go.Bar(
242+
fig.add_trace(go.Bar(
243243
x=y_saving,
244244
y=x,
245245
marker=dict(
@@ -252,7 +252,7 @@ fig.append_trace(go.Bar(
252252
orientation='h',
253253
), 1, 1)
254254

255-
fig.append_trace(go.Scatter(
255+
fig.add_trace(go.Scatter(
256256
x=y_net_worth, y=x,
257257
mode='lines+markers',
258258
line_color='rgb(128, 0, 128)',
@@ -335,4 +335,4 @@ fig.show()
335335

336336
### Reference
337337

338-
See more examples of bar charts and styling options [here](https://plotly.com/python/bar-charts/).<br> See https://plotly.com/python/reference/bar/ for more information and chart attribute options!
338+
See more examples of bar charts and styling options [here](https://plotly.com/python/bar-charts/).<br> See https://plotly.com/python/reference/bar/ for more information and chart attribute options!

doc/python/subplots.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ jupyter:
66
extension: .md
77
format_name: markdown
88
format_version: '1.3'
9-
jupytext_version: 1.14.1
9+
jupytext_version: 1.16.4
1010
kernelspec:
11-
display_name: Python 3
11+
display_name: Python 3 (ipykernel)
1212
language: python
1313
name: python3
1414
language_info:
@@ -20,7 +20,7 @@ jupyter:
2020
name: python
2121
nbconvert_exporter: python
2222
pygments_lexer: ipython3
23-
version: 3.8.8
23+
version: 3.11.10
2424
plotly:
2525
description: How to make subplots in with Plotly's Python graphing library. Examples
2626
of stacked, custom-sized, gridded, and annotated subplots.
@@ -80,17 +80,17 @@ import plotly.graph_objects as go
8080

8181
fig = make_subplots(rows=3, cols=1)
8282

83-
fig.append_trace(go.Scatter(
83+
fig.add_trace(go.Scatter(
8484
x=[3, 4, 5],
8585
y=[1000, 1100, 1200],
8686
), row=1, col=1)
8787

88-
fig.append_trace(go.Scatter(
88+
fig.add_trace(go.Scatter(
8989
x=[2, 3, 4],
9090
y=[100, 110, 120],
9191
), row=2, col=1)
9292

93-
fig.append_trace(go.Scatter(
93+
fig.add_trace(go.Scatter(
9494
x=[0, 1, 2],
9595
y=[10, 11, 12]
9696
), row=3, col=1)

plotly/io/_html.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -471,8 +471,7 @@ def write_html(
471471
472472
Returns
473473
-------
474-
str
475-
Representation of figure as an HTML div string
474+
None
476475
"""
477476

478477
# Build HTML string

plotly/io/_renderers.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -400,8 +400,8 @@ def show(fig, renderer=None, validate=True, **kwargs):
400400
plot is. The default is set in plotly.js.
401401
402402
height: int or float
403-
An integer or float that determines the number of pixels wide the
404-
plot is. The default is set in plotly.js.
403+
An integer or float specifying the height of the plot in pixels.
404+
The default is set in plotly.js.
405405
406406
config: dict
407407
A dict of parameters to configure the figure. The defaults are set

plotly/subplots.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ def make_subplots(
5959
- 'bottom-left': Subplots are numbererd with (1, 1) in the bottom
6060
left corner
6161
62-
print_grid: boolean (default True):
63-
If True, prints a string representation of the plot grid. Grid may
62+
print_grid: boolean (default False):
63+
If True, prints a string representation of the plot grid. Grid may
6464
also be printed using the `Figure.print_grid()` method on the
6565
resulting figure.
6666
@@ -218,7 +218,7 @@ def make_subplots(
218218
>>> fig.add_scatter(y=[1, 3, 2], row=2, col=1) # doctest: +ELLIPSIS
219219
Figure(...)
220220
221-
or see Figure.append_trace
221+
or see Figure.add_trace
222222
223223
Example 2:
224224

plotly/tools.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ def make_subplots(
249249
fig['data'] += [Scatter(x=[1,2,3], y=[2,1,2])]
250250
fig['data'] += [Scatter(x=[1,2,3], y=[2,1,2], xaxis='x2', yaxis='y2')]
251251
252-
# or see Figure.append_trace
252+
# or see Figure.add_trace
253253
254254
Example 2:
255255
# subplots with shared x axes

tests/test_optional/test_figure_factory/test_figure_factory.py

-60
Original file line numberDiff line numberDiff line change
@@ -4108,66 +4108,6 @@ def test_scope_is_not_list(self):
41084108
scope="foo",
41094109
)
41104110

4111-
def test_full_choropleth(self):
4112-
fips = [1001]
4113-
values = [1]
4114-
fig = ff.create_choropleth(fips=fips, values=values, simplify_county=1)
4115-
4116-
exp_fig_head = (
4117-
-88.053375,
4118-
-88.02916499999999,
4119-
-88.02432999999999,
4120-
-88.04504299999999,
4121-
-88.053375,
4122-
np_nan(),
4123-
-88.211209,
4124-
-88.209999,
4125-
-88.208733,
4126-
-88.209559,
4127-
-88.211209,
4128-
np_nan(),
4129-
-88.22511999999999,
4130-
-88.22128099999999,
4131-
-88.218694,
4132-
-88.22465299999999,
4133-
-88.22511999999999,
4134-
np_nan(),
4135-
-88.264659,
4136-
-88.25782699999999,
4137-
-88.25947,
4138-
-88.255659,
4139-
-88.264659,
4140-
np_nan(),
4141-
-88.327302,
4142-
-88.20146799999999,
4143-
-88.141143,
4144-
-88.124658,
4145-
-88.074854,
4146-
-88.12493599999999,
4147-
-88.10665399999999,
4148-
-88.149812,
4149-
-88.327302,
4150-
np_nan(),
4151-
-88.346745,
4152-
-88.341235,
4153-
-88.33288999999999,
4154-
-88.346823,
4155-
-88.346745,
4156-
np_nan(),
4157-
-88.473227,
4158-
-88.097888,
4159-
-88.154617,
4160-
-88.20295899999999,
4161-
-85.605165,
4162-
-85.18440000000001,
4163-
-85.12218899999999,
4164-
-85.142567,
4165-
-85.113329,
4166-
-85.10533699999999,
4167-
)
4168-
4169-
self.assertEqual(fig["data"][2]["x"][:50], exp_fig_head)
4170-
41714111

41724112
class TestQuiver(TestCaseNoTemplate):
41734113
def test_scaleratio_param(self):

0 commit comments

Comments
 (0)