Skip to content

Commit

Permalink
update plotly.js to 2.34.0
Browse files Browse the repository at this point in the history
  • Loading branch information
LiamConnors committed Jul 18, 2024
1 parent ec108e0 commit b9e178d
Show file tree
Hide file tree
Showing 857 changed files with 4,785 additions and 2,368 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,21 @@ This project adheres to [Semantic Versioning](http://semver.org/).
## [5.23.0] - TBD

### Updated
- Updated Plotly.js from version 2.32.0 to version 2.34.0. See the [plotly.js CHANGELOG](https:/plotly/plotly.js/blob/master/CHANGELOG.md#2340----2024-07-18) for more information. These changes are reflected in the auto-generated `plotly.graph_objects` module. Notable changes include:
- Add `subtitle` attribute to `layout.title` to enable adding subtitles to plots [[#7012](https:/plotly/plotly.js/pull/7012)]
- Introduce "u" and "s" pseudo html tags to add partial underline and strike-through styles to SVG text elements [[#7043](https:/plotly/plotly.js/pull/7043)]
- Add geometric mean functionality and 'geometric mean ascending' + 'geometric mean descending' to `category_order` on cartesian axes [[#6223](https:/plotly/plotly.js/pull/6223)],
with thanks to @acxz and @prabhathc for the contribution!
- Add axis property `ticklabelindex` for drawing the label for each minor tick n positions away from a major tick,
with thanks to @my-tien for the contribution! [[#7036](https:/plotly/plotly.js/pull/7036)]
- Add property `ticklabelstandoff` and `ticklabelshift` to cartesian axes to adjust positioning of tick labels,
with thanks to @my-tien for the contribution! [[#7006](https:/plotly/plotly.js/pull/7006)]
- Add `x0shift`, `x1shift`, `y0shift`, `y1shift` to shapes to add control over positioning of shape vertices on (multi-)category axes,
with thanks to @my-tien for the contribution! [[#7005](https:/plotly/plotly.js/pull/7005)]
- Specify Python version 3.8-3.11 for development virtual environments and pin `pytest` at version 8.1.1 to match.
- Update `IntegerValidator` to handle `extras` option to allow supporting additional keyword values. For example, 'bold' and 'normal' as well as integers as used in font weights [#4612].


## [5.22.0] - 2024-05-01

### Updated
Expand Down
14 changes: 7 additions & 7 deletions packages/javascript/jupyterlab-plotly/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/javascript/jupyterlab-plotly/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"@lumino/messaging": "^1.2.3",
"@lumino/widgets": "^1.8.1",
"lodash": "^4.17.4",
"plotly.js": "^2.33.0"
"plotly.js": "^2.34.0"
},
"jupyterlab": {
"extension": "lib/jupyterlab-plugin",
Expand Down
852 changes: 521 additions & 331 deletions packages/python/plotly/codegen/resources/plot-schema.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions packages/python/plotly/plotly/graph_objs/_bar.py
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,7 @@ def insidetextfont(self):
generates images on a server, where only a
select number of fonts are installed and
supported. These include "Arial", "Balto",
"Courier New", "Droid Sans",, "Droid Serif",
"Courier New", "Droid Sans", "Droid Serif",
"Droid Sans Mono", "Gravitas One", "Old
Standard TT", "Open Sans", "Overpass", "PT Sans
Narrow", "Raleway", "Times New Roman".
Expand Down Expand Up @@ -1281,7 +1281,7 @@ def outsidetextfont(self):
generates images on a server, where only a
select number of fonts are installed and
supported. These include "Arial", "Balto",
"Courier New", "Droid Sans",, "Droid Serif",
"Courier New", "Droid Sans", "Droid Serif",
"Droid Sans Mono", "Gravitas One", "Old
Standard TT", "Open Sans", "Overpass", "PT Sans
Narrow", "Raleway", "Times New Roman".
Expand Down Expand Up @@ -1538,7 +1538,7 @@ def textfont(self):
generates images on a server, where only a
select number of fonts are installed and
supported. These include "Arial", "Balto",
"Courier New", "Droid Sans",, "Droid Serif",
"Courier New", "Droid Sans", "Droid Serif",
"Droid Sans Mono", "Gravitas One", "Old
Standard TT", "Open Sans", "Overpass", "PT Sans
Narrow", "Raleway", "Times New Roman".
Expand Down
2 changes: 1 addition & 1 deletion packages/python/plotly/plotly/graph_objs/_carpet.py
Original file line number Diff line number Diff line change
Expand Up @@ -935,7 +935,7 @@ def font(self):
generates images on a server, where only a
select number of fonts are installed and
supported. These include "Arial", "Balto",
"Courier New", "Droid Sans",, "Droid Serif",
"Courier New", "Droid Sans", "Droid Serif",
"Droid Sans Mono", "Gravitas One", "Old
Standard TT", "Open Sans", "Overpass", "PT Sans
Narrow", "Raleway", "Times New Roman".
Expand Down
2 changes: 1 addition & 1 deletion packages/python/plotly/plotly/graph_objs/_contour.py
Original file line number Diff line number Diff line change
Expand Up @@ -1473,7 +1473,7 @@ def textfont(self):
generates images on a server, where only a
select number of fonts are installed and
supported. These include "Arial", "Balto",
"Courier New", "Droid Sans",, "Droid Serif",
"Courier New", "Droid Sans", "Droid Serif",
"Droid Sans Mono", "Gravitas One", "Old
Standard TT", "Open Sans", "Overpass", "PT Sans
Narrow", "Raleway", "Times New Roman".
Expand Down
32 changes: 30 additions & 2 deletions packages/python/plotly/plotly/graph_objs/_figure.py
Original file line number Diff line number Diff line change
Expand Up @@ -23106,8 +23106,8 @@ def add_annotation(
Sets the text associated with this annotation. Plotly
uses a subset of HTML tags to do things like newline
(<br>), bold (<b></b>), italics (<i></i>), hyperlinks
(<a href='...'></a>). Tags <em>, <sup>, <sub> <span>
are also supported.
(<a href='...'></a>). Tags <em>, <sup>, <sub>, <s>, <u>
<span> are also supported.
textangle
Sets the angle at which the `text` is drawn with
respect to the horizontal.
Expand Down Expand Up @@ -24097,12 +24097,16 @@ def add_shape(
type=None,
visible=None,
x0=None,
x0shift=None,
x1=None,
x1shift=None,
xanchor=None,
xref=None,
xsizemode=None,
y0=None,
y0shift=None,
y1=None,
y1shift=None,
yanchor=None,
yref=None,
ysizemode=None,
Expand Down Expand Up @@ -24236,9 +24240,19 @@ def add_shape(
x0
Sets the shape's starting x position. See `type` and
`xsizemode` for more info.
x0shift
Shifts `x0` away from the center of the category when
`xref` is a "category" or "multicategory" axis. -0.5
corresponds to the start of the category and 0.5
corresponds to the end of the category.
x1
Sets the shape's end x position. See `type` and
`xsizemode` for more info.
x1shift
Shifts `x1` away from the center of the category when
`xref` is a "category" or "multicategory" axis. -0.5
corresponds to the start of the category and 0.5
corresponds to the end of the category.
xanchor
Only relevant in conjunction with `xsizemode` set to
"pixel". Specifies the anchor point on the x axis to
Expand Down Expand Up @@ -24273,9 +24287,19 @@ def add_shape(
y0
Sets the shape's starting y position. See `type` and
`ysizemode` for more info.
y0shift
Shifts `y0` away from the center of the category when
`yref` is a "category" or "multicategory" axis. -0.5
corresponds to the start of the category and 0.5
corresponds to the end of the category.
y1
Sets the shape's end y position. See `type` and
`ysizemode` for more info.
y1shift
Shifts `y1` away from the center of the category when
`yref` is a "category" or "multicategory" axis. -0.5
corresponds to the start of the category and 0.5
corresponds to the end of the category.
yanchor
Only relevant in conjunction with `ysizemode` set to
"pixel". Specifies the anchor point on the y axis to
Expand Down Expand Up @@ -24347,12 +24371,16 @@ def add_shape(
type=type,
visible=visible,
x0=x0,
x0shift=x0shift,
x1=x1,
x1shift=x1shift,
xanchor=xanchor,
xref=xref,
xsizemode=xsizemode,
y0=y0,
y0shift=y0shift,
y1=y1,
y1shift=y1shift,
yanchor=yanchor,
yref=yref,
ysizemode=ysizemode,
Expand Down
32 changes: 30 additions & 2 deletions packages/python/plotly/plotly/graph_objs/_figurewidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -23112,8 +23112,8 @@ def add_annotation(
Sets the text associated with this annotation. Plotly
uses a subset of HTML tags to do things like newline
(<br>), bold (<b></b>), italics (<i></i>), hyperlinks
(<a href='...'></a>). Tags <em>, <sup>, <sub> <span>
are also supported.
(<a href='...'></a>). Tags <em>, <sup>, <sub>, <s>, <u>
<span> are also supported.
textangle
Sets the angle at which the `text` is drawn with
respect to the horizontal.
Expand Down Expand Up @@ -24103,12 +24103,16 @@ def add_shape(
type=None,
visible=None,
x0=None,
x0shift=None,
x1=None,
x1shift=None,
xanchor=None,
xref=None,
xsizemode=None,
y0=None,
y0shift=None,
y1=None,
y1shift=None,
yanchor=None,
yref=None,
ysizemode=None,
Expand Down Expand Up @@ -24242,9 +24246,19 @@ def add_shape(
x0
Sets the shape's starting x position. See `type` and
`xsizemode` for more info.
x0shift
Shifts `x0` away from the center of the category when
`xref` is a "category" or "multicategory" axis. -0.5
corresponds to the start of the category and 0.5
corresponds to the end of the category.
x1
Sets the shape's end x position. See `type` and
`xsizemode` for more info.
x1shift
Shifts `x1` away from the center of the category when
`xref` is a "category" or "multicategory" axis. -0.5
corresponds to the start of the category and 0.5
corresponds to the end of the category.
xanchor
Only relevant in conjunction with `xsizemode` set to
"pixel". Specifies the anchor point on the x axis to
Expand Down Expand Up @@ -24279,9 +24293,19 @@ def add_shape(
y0
Sets the shape's starting y position. See `type` and
`ysizemode` for more info.
y0shift
Shifts `y0` away from the center of the category when
`yref` is a "category" or "multicategory" axis. -0.5
corresponds to the start of the category and 0.5
corresponds to the end of the category.
y1
Sets the shape's end y position. See `type` and
`ysizemode` for more info.
y1shift
Shifts `y1` away from the center of the category when
`yref` is a "category" or "multicategory" axis. -0.5
corresponds to the start of the category and 0.5
corresponds to the end of the category.
yanchor
Only relevant in conjunction with `ysizemode` set to
"pixel". Specifies the anchor point on the y axis to
Expand Down Expand Up @@ -24353,12 +24377,16 @@ def add_shape(
type=type,
visible=visible,
x0=x0,
x0shift=x0shift,
x1=x1,
x1shift=x1shift,
xanchor=xanchor,
xref=xref,
xsizemode=xsizemode,
y0=y0,
y0shift=y0shift,
y1=y1,
y1shift=y1shift,
yanchor=yanchor,
yref=yref,
ysizemode=ysizemode,
Expand Down
6 changes: 3 additions & 3 deletions packages/python/plotly/plotly/graph_objs/_funnel.py
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ def insidetextfont(self):
generates images on a server, where only a
select number of fonts are installed and
supported. These include "Arial", "Balto",
"Courier New", "Droid Sans",, "Droid Serif",
"Courier New", "Droid Sans", "Droid Serif",
"Droid Sans Mono", "Gravitas One", "Old
Standard TT", "Open Sans", "Overpass", "PT Sans
Narrow", "Raleway", "Times New Roman".
Expand Down Expand Up @@ -1080,7 +1080,7 @@ def outsidetextfont(self):
generates images on a server, where only a
select number of fonts are installed and
supported. These include "Arial", "Balto",
"Courier New", "Droid Sans",, "Droid Serif",
"Courier New", "Droid Sans", "Droid Serif",
"Droid Sans Mono", "Gravitas One", "Old
Standard TT", "Open Sans", "Overpass", "PT Sans
Narrow", "Raleway", "Times New Roman".
Expand Down Expand Up @@ -1306,7 +1306,7 @@ def textfont(self):
generates images on a server, where only a
select number of fonts are installed and
supported. These include "Arial", "Balto",
"Courier New", "Droid Sans",, "Droid Serif",
"Courier New", "Droid Sans", "Droid Serif",
"Droid Sans Mono", "Gravitas One", "Old
Standard TT", "Open Sans", "Overpass", "PT Sans
Narrow", "Raleway", "Times New Roman".
Expand Down
4 changes: 2 additions & 2 deletions packages/python/plotly/plotly/graph_objs/_funnelarea.py
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ def insidetextfont(self):
generates images on a server, where only a
select number of fonts are installed and
supported. These include "Arial", "Balto",
"Courier New", "Droid Sans",, "Droid Serif",
"Courier New", "Droid Sans", "Droid Serif",
"Droid Sans Mono", "Gravitas One", "Old
Standard TT", "Open Sans", "Overpass", "PT Sans
Narrow", "Raleway", "Times New Roman".
Expand Down Expand Up @@ -1009,7 +1009,7 @@ def textfont(self):
generates images on a server, where only a
select number of fonts are installed and
supported. These include "Arial", "Balto",
"Courier New", "Droid Sans",, "Droid Serif",
"Courier New", "Droid Sans", "Droid Serif",
"Droid Sans Mono", "Gravitas One", "Old
Standard TT", "Open Sans", "Overpass", "PT Sans
Narrow", "Raleway", "Times New Roman".
Expand Down
2 changes: 1 addition & 1 deletion packages/python/plotly/plotly/graph_objs/_heatmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -1233,7 +1233,7 @@ def textfont(self):
generates images on a server, where only a
select number of fonts are installed and
supported. These include "Arial", "Balto",
"Courier New", "Droid Sans",, "Droid Serif",
"Courier New", "Droid Sans", "Droid Serif",
"Droid Sans Mono", "Gravitas One", "Old
Standard TT", "Open Sans", "Overpass", "PT Sans
Narrow", "Raleway", "Times New Roman".
Expand Down
6 changes: 3 additions & 3 deletions packages/python/plotly/plotly/graph_objs/_histogram.py
Original file line number Diff line number Diff line change
Expand Up @@ -842,7 +842,7 @@ def insidetextfont(self):
generates images on a server, where only a
select number of fonts are installed and
supported. These include "Arial", "Balto",
"Courier New", "Droid Sans",, "Droid Serif",
"Courier New", "Droid Sans", "Droid Serif",
"Droid Sans Mono", "Gravitas One", "Old
Standard TT", "Open Sans", "Overpass", "PT Sans
Narrow", "Raleway", "Times New Roman".
Expand Down Expand Up @@ -1347,7 +1347,7 @@ def outsidetextfont(self):
generates images on a server, where only a
select number of fonts are installed and
supported. These include "Arial", "Balto",
"Courier New", "Droid Sans",, "Droid Serif",
"Courier New", "Droid Sans", "Droid Serif",
"Droid Sans Mono", "Gravitas One", "Old
Standard TT", "Open Sans", "Overpass", "PT Sans
Narrow", "Raleway", "Times New Roman".
Expand Down Expand Up @@ -1576,7 +1576,7 @@ def textfont(self):
generates images on a server, where only a
select number of fonts are installed and
supported. These include "Arial", "Balto",
"Courier New", "Droid Sans",, "Droid Serif",
"Courier New", "Droid Sans", "Droid Serif",
"Droid Sans Mono", "Gravitas One", "Old
Standard TT", "Open Sans", "Overpass", "PT Sans
Narrow", "Raleway", "Times New Roman".
Expand Down
2 changes: 1 addition & 1 deletion packages/python/plotly/plotly/graph_objs/_histogram2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -1288,7 +1288,7 @@ def textfont(self):
generates images on a server, where only a
select number of fonts are installed and
supported. These include "Arial", "Balto",
"Courier New", "Droid Sans",, "Droid Serif",
"Courier New", "Droid Sans", "Droid Serif",
"Droid Sans Mono", "Gravitas One", "Old
Standard TT", "Open Sans", "Overpass", "PT Sans
Narrow", "Raleway", "Times New Roman".
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1462,7 +1462,7 @@ def textfont(self):
generates images on a server, where only a
select number of fonts are installed and
supported. These include "Arial", "Balto",
"Courier New", "Droid Sans",, "Droid Serif",
"Courier New", "Droid Sans", "Droid Serif",
"Droid Sans Mono", "Gravitas One", "Old
Standard TT", "Open Sans", "Overpass", "PT Sans
Narrow", "Raleway", "Times New Roman".
Expand Down
Loading

0 comments on commit b9e178d

Please sign in to comment.