Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
45 changes: 45 additions & 0 deletions .github/workflows/check-codegen.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Check Python codegen

on:
push:
branches:
- main
pull_request:
types: [opened, reopened, synchronize]

jobs:
check-python-codegen:
name: Check Python codegen
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Set up Python
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: "3.x"

- name: Set up uv
uses: astral-sh/setup-uv@cec208311dfd045dd5311c1add060b2062131d57 # v8.0.0

- name: Install dependencies
run: |
uv venv
source .venv/bin/activate
uv pip install ".[dev_codegen]"
- name: Run codegen
run: |
source .venv/bin/activate
python commands.py codegen
- name: Check for changes
run: |
# Fail if codegen produced any changes to the working directory.
# This means the committed generated files are out of date and codegen
# needs to be re-run locally and the results committed.
if [ -n "$(git status --porcelain)" ]; then
echo "::error::Generated files are out of date. Please run 'python commands.py codegen' locally and commit the result."
echo "The following files differ after running codegen:"
git status --porcelain
echo ""
exit 1
fi
echo "Generated files are up to date."
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,4 +132,3 @@ Code and documentation copyright 2019 Plotly, Inc.
Code released under the [MIT license](https://github.com/plotly/plotly.py/blob/main/LICENSE.txt).

Docs released under the [Creative Commons license](https://creativecommons.org/licenses/by/4.0/).

15 changes: 9 additions & 6 deletions plotly/graph_objs/_box.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,12 +217,15 @@ def fillcolor(self):
the line color, marker color, or marker line color, whichever
is available.

The 'fillcolor' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
- A named CSS color: see https://plotly.com/python/css-colors/ for a list
The 'fillcolor' property is a color and may be specified as a string in the following formats:
- hex or short hex (e.g. '#d3d3d3', '#d3d')
- hex or short hex with alpha (e.g. '#d3d3d380', '#d3d8')
- rgb (e.g. 'rgb(255, 0, 0)', 'rgb(255 0 0)')
- rgba (e.g. 'rgba(255, 0, 0, 0.5)', 'rgba(255 0 0 / 0.5)')
- hsl (e.g. 'hsl(0, 100%, 50%)', 'hsl(0deg 100% 50%)')
- hsla (e.g. 'hsla(0, 100%, 50%, 0.5)', 'hsla(0deg 100% 50% / 0.5)')
- hwb (e.g. 'hwb(0, 0%, 100%)', 'hwb(0 0% 100%)')
- a named CSS color: see https://plotly.com/python/css-colors/ for a list

Returns
-------
Expand Down
15 changes: 9 additions & 6 deletions plotly/graph_objs/_carpet.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,12 +203,15 @@ def color(self):
lightened by blending this with the plot background Individual
pieces can override this.

The 'color' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
- A named CSS color: see https://plotly.com/python/css-colors/ for a list
The 'color' property is a color and may be specified as a string in the following formats:
- hex or short hex (e.g. '#d3d3d3', '#d3d')
- hex or short hex with alpha (e.g. '#d3d3d380', '#d3d8')
- rgb (e.g. 'rgb(255, 0, 0)', 'rgb(255 0 0)')
- rgba (e.g. 'rgba(255, 0, 0, 0.5)', 'rgba(255 0 0 / 0.5)')
- hsl (e.g. 'hsl(0, 100%, 50%)', 'hsl(0deg 100% 50%)')
- hsla (e.g. 'hsla(0, 100%, 50%, 0.5)', 'hsla(0deg 100% 50% / 0.5)')
- hwb (e.g. 'hwb(0, 0%, 100%)', 'hwb(0 0% 100%)')
- a named CSS color: see https://plotly.com/python/css-colors/ for a list

Returns
-------
Expand Down
15 changes: 9 additions & 6 deletions plotly/graph_objs/_contour.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,12 +318,15 @@ def fillcolor(self):
Defaults to a half-transparent variant of the line color,
marker color, or marker line color, whichever is available.

The 'fillcolor' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
- A named CSS color: see https://plotly.com/python/css-colors/ for a list
The 'fillcolor' property is a color and may be specified as a string in the following formats:
- hex or short hex (e.g. '#d3d3d3', '#d3d')
- hex or short hex with alpha (e.g. '#d3d3d380', '#d3d8')
- rgb (e.g. 'rgb(255, 0, 0)', 'rgb(255 0 0)')
- rgba (e.g. 'rgba(255, 0, 0, 0.5)', 'rgba(255 0 0 / 0.5)')
- hsl (e.g. 'hsl(0, 100%, 50%)', 'hsl(0deg 100% 50%)')
- hsla (e.g. 'hsla(0, 100%, 50%, 0.5)', 'hsla(0deg 100% 50% / 0.5)')
- hwb (e.g. 'hwb(0, 0%, 100%)', 'hwb(0 0% 100%)')
- a named CSS color: see https://plotly.com/python/css-colors/ for a list
- A number that will be interpreted as a color
according to contour.colorscale

Expand Down
15 changes: 9 additions & 6 deletions plotly/graph_objs/_contourcarpet.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,12 +417,15 @@ def fillcolor(self):
Defaults to a half-transparent variant of the line color,
marker color, or marker line color, whichever is available.

The 'fillcolor' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
- A named CSS color: see https://plotly.com/python/css-colors/ for a list
The 'fillcolor' property is a color and may be specified as a string in the following formats:
- hex or short hex (e.g. '#d3d3d3', '#d3d')
- hex or short hex with alpha (e.g. '#d3d3d380', '#d3d8')
- rgb (e.g. 'rgb(255, 0, 0)', 'rgb(255 0 0)')
- rgba (e.g. 'rgba(255, 0, 0, 0.5)', 'rgba(255 0 0 / 0.5)')
- hsl (e.g. 'hsl(0, 100%, 50%)', 'hsl(0deg 100% 50%)')
- hsla (e.g. 'hsla(0, 100%, 50%, 0.5)', 'hsla(0deg 100% 50% / 0.5)')
- hwb (e.g. 'hwb(0, 0%, 100%)', 'hwb(0 0% 100%)')
- a named CSS color: see https://plotly.com/python/css-colors/ for a list
- A number that will be interpreted as a color
according to contourcarpet.colorscale

Expand Down
30 changes: 18 additions & 12 deletions plotly/graph_objs/_layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -1357,12 +1357,15 @@ def paper_bgcolor(self):
Sets the background color of the paper where the graph is
drawn.

The 'paper_bgcolor' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
- A named CSS color: see https://plotly.com/python/css-colors/ for a list
The 'paper_bgcolor' property is a color and may be specified as a string in the following formats:
- hex or short hex (e.g. '#d3d3d3', '#d3d')
- hex or short hex with alpha (e.g. '#d3d3d380', '#d3d8')
- rgb (e.g. 'rgb(255, 0, 0)', 'rgb(255 0 0)')
- rgba (e.g. 'rgba(255, 0, 0, 0.5)', 'rgba(255 0 0 / 0.5)')
- hsl (e.g. 'hsl(0, 100%, 50%)', 'hsl(0deg 100% 50%)')
- hsla (e.g. 'hsla(0, 100%, 50%, 0.5)', 'hsla(0deg 100% 50% / 0.5)')
- hwb (e.g. 'hwb(0, 0%, 100%)', 'hwb(0 0% 100%)')
- a named CSS color: see https://plotly.com/python/css-colors/ for a list

Returns
-------
Expand Down Expand Up @@ -1402,12 +1405,15 @@ def plot_bgcolor(self):
Sets the background color of the plotting area in-between x and
y axes.

The 'plot_bgcolor' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
- A named CSS color: see https://plotly.com/python/css-colors/ for a list
The 'plot_bgcolor' property is a color and may be specified as a string in the following formats:
- hex or short hex (e.g. '#d3d3d3', '#d3d')
- hex or short hex with alpha (e.g. '#d3d3d380', '#d3d8')
- rgb (e.g. 'rgb(255, 0, 0)', 'rgb(255 0 0)')
- rgba (e.g. 'rgba(255, 0, 0, 0.5)', 'rgba(255 0 0 / 0.5)')
- hsl (e.g. 'hsl(0, 100%, 50%)', 'hsl(0deg 100% 50%)')
- hsla (e.g. 'hsla(0, 100%, 50%, 0.5)', 'hsla(0deg 100% 50% / 0.5)')
- hwb (e.g. 'hwb(0, 0%, 100%)', 'hwb(0 0% 100%)')
- a named CSS color: see https://plotly.com/python/css-colors/ for a list

Returns
-------
Expand Down
15 changes: 9 additions & 6 deletions plotly/graph_objs/_mesh3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,12 +209,15 @@ def color(self):
"""
Sets the color of the whole mesh

The 'color' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
- A named CSS color: see https://plotly.com/python/css-colors/ for a list
The 'color' property is a color and may be specified as a string in the following formats:
- hex or short hex (e.g. '#d3d3d3', '#d3d')
- hex or short hex with alpha (e.g. '#d3d3d380', '#d3d8')
- rgb (e.g. 'rgb(255, 0, 0)', 'rgb(255 0 0)')
- rgba (e.g. 'rgba(255, 0, 0, 0.5)', 'rgba(255 0 0 / 0.5)')
- hsl (e.g. 'hsl(0, 100%, 50%)', 'hsl(0deg 100% 50%)')
- hsla (e.g. 'hsla(0, 100%, 50%, 0.5)', 'hsla(0deg 100% 50% / 0.5)')
- hwb (e.g. 'hwb(0, 0%, 100%)', 'hwb(0 0% 100%)')
- a named CSS color: see https://plotly.com/python/css-colors/ for a list
- A number that will be interpreted as a color
according to mesh3d.colorscale

Expand Down
15 changes: 9 additions & 6 deletions plotly/graph_objs/_scatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,12 +279,15 @@ def fillcolor(self):
ignored except for setting the background color of the hover
label, if any.

The 'fillcolor' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
- A named CSS color: see https://plotly.com/python/css-colors/ for a list
The 'fillcolor' property is a color and may be specified as a string in the following formats:
- hex or short hex (e.g. '#d3d3d3', '#d3d')
- hex or short hex with alpha (e.g. '#d3d3d380', '#d3d8')
- rgb (e.g. 'rgb(255, 0, 0)', 'rgb(255 0 0)')
- rgba (e.g. 'rgba(255, 0, 0, 0.5)', 'rgba(255 0 0 / 0.5)')
- hsl (e.g. 'hsl(0, 100%, 50%)', 'hsl(0deg 100% 50%)')
- hsla (e.g. 'hsla(0, 100%, 50%, 0.5)', 'hsla(0deg 100% 50% / 0.5)')
- hwb (e.g. 'hwb(0, 0%, 100%)', 'hwb(0 0% 100%)')
- a named CSS color: see https://plotly.com/python/css-colors/ for a list

Returns
-------
Expand Down
15 changes: 9 additions & 6 deletions plotly/graph_objs/_scatter3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -628,12 +628,15 @@ def surfacecolor(self):
"""
Sets the surface fill color.

The 'surfacecolor' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
- A named CSS color: see https://plotly.com/python/css-colors/ for a list
The 'surfacecolor' property is a color and may be specified as a string in the following formats:
- hex or short hex (e.g. '#d3d3d3', '#d3d')
- hex or short hex with alpha (e.g. '#d3d3d380', '#d3d8')
- rgb (e.g. 'rgb(255, 0, 0)', 'rgb(255 0 0)')
- rgba (e.g. 'rgba(255, 0, 0, 0.5)', 'rgba(255 0 0 / 0.5)')
- hsl (e.g. 'hsl(0, 100%, 50%)', 'hsl(0deg 100% 50%)')
- hsla (e.g. 'hsla(0, 100%, 50%, 0.5)', 'hsla(0deg 100% 50% / 0.5)')
- hwb (e.g. 'hwb(0, 0%, 100%)', 'hwb(0 0% 100%)')
- a named CSS color: see https://plotly.com/python/css-colors/ for a list

Returns
-------
Expand Down
15 changes: 9 additions & 6 deletions plotly/graph_objs/_scattercarpet.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,12 +183,15 @@ def fillcolor(self):
the line color, marker color, or marker line color, whichever
is available.

The 'fillcolor' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
- A named CSS color: see https://plotly.com/python/css-colors/ for a list
The 'fillcolor' property is a color and may be specified as a string in the following formats:
- hex or short hex (e.g. '#d3d3d3', '#d3d')
- hex or short hex with alpha (e.g. '#d3d3d380', '#d3d8')
- rgb (e.g. 'rgb(255, 0, 0)', 'rgb(255 0 0)')
- rgba (e.g. 'rgba(255, 0, 0, 0.5)', 'rgba(255 0 0 / 0.5)')
- hsl (e.g. 'hsl(0, 100%, 50%)', 'hsl(0deg 100% 50%)')
- hsla (e.g. 'hsla(0, 100%, 50%, 0.5)', 'hsla(0deg 100% 50% / 0.5)')
- hwb (e.g. 'hwb(0, 0%, 100%)', 'hwb(0 0% 100%)')
- a named CSS color: see https://plotly.com/python/css-colors/ for a list

Returns
-------
Expand Down
15 changes: 9 additions & 6 deletions plotly/graph_objs/_scattergeo.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,12 +143,15 @@ def fillcolor(self):
the line color, marker color, or marker line color, whichever
is available.

The 'fillcolor' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
- A named CSS color: see https://plotly.com/python/css-colors/ for a list
The 'fillcolor' property is a color and may be specified as a string in the following formats:
- hex or short hex (e.g. '#d3d3d3', '#d3d')
- hex or short hex with alpha (e.g. '#d3d3d380', '#d3d8')
- rgb (e.g. 'rgb(255, 0, 0)', 'rgb(255 0 0)')
- rgba (e.g. 'rgba(255, 0, 0, 0.5)', 'rgba(255 0 0 / 0.5)')
- hsl (e.g. 'hsl(0, 100%, 50%)', 'hsl(0deg 100% 50%)')
- hsla (e.g. 'hsla(0, 100%, 50%, 0.5)', 'hsla(0deg 100% 50% / 0.5)')
- hwb (e.g. 'hwb(0, 0%, 100%)', 'hwb(0 0% 100%)')
- a named CSS color: see https://plotly.com/python/css-colors/ for a list

Returns
-------
Expand Down
15 changes: 9 additions & 6 deletions plotly/graph_objs/_scattergl.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,12 +224,15 @@ def fillcolor(self):
the line color, marker color, or marker line color, whichever
is available.

The 'fillcolor' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
- A named CSS color: see https://plotly.com/python/css-colors/ for a list
The 'fillcolor' property is a color and may be specified as a string in the following formats:
- hex or short hex (e.g. '#d3d3d3', '#d3d')
- hex or short hex with alpha (e.g. '#d3d3d380', '#d3d8')
- rgb (e.g. 'rgb(255, 0, 0)', 'rgb(255 0 0)')
- rgba (e.g. 'rgba(255, 0, 0, 0.5)', 'rgba(255 0 0 / 0.5)')
- hsl (e.g. 'hsl(0, 100%, 50%)', 'hsl(0deg 100% 50%)')
- hsla (e.g. 'hsla(0, 100%, 50%, 0.5)', 'hsla(0deg 100% 50% / 0.5)')
- hwb (e.g. 'hwb(0, 0%, 100%)', 'hwb(0 0% 100%)')
- a named CSS color: see https://plotly.com/python/css-colors/ for a list

Returns
-------
Expand Down
15 changes: 9 additions & 6 deletions plotly/graph_objs/_scattermap.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,12 +159,15 @@ def fillcolor(self):
the line color, marker color, or marker line color, whichever
is available.

The 'fillcolor' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
- A named CSS color: see https://plotly.com/python/css-colors/ for a list
The 'fillcolor' property is a color and may be specified as a string in the following formats:
- hex or short hex (e.g. '#d3d3d3', '#d3d')
- hex or short hex with alpha (e.g. '#d3d3d380', '#d3d8')
- rgb (e.g. 'rgb(255, 0, 0)', 'rgb(255 0 0)')
- rgba (e.g. 'rgba(255, 0, 0, 0.5)', 'rgba(255 0 0 / 0.5)')
- hsl (e.g. 'hsl(0, 100%, 50%)', 'hsl(0deg 100% 50%)')
- hsla (e.g. 'hsla(0, 100%, 50%, 0.5)', 'hsla(0deg 100% 50% / 0.5)')
- hwb (e.g. 'hwb(0, 0%, 100%)', 'hwb(0 0% 100%)')
- a named CSS color: see https://plotly.com/python/css-colors/ for a list

Returns
-------
Expand Down
15 changes: 9 additions & 6 deletions plotly/graph_objs/_scatterpolar.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,12 +188,15 @@ def fillcolor(self):
the line color, marker color, or marker line color, whichever
is available.

The 'fillcolor' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
- A named CSS color: see https://plotly.com/python/css-colors/ for a list
The 'fillcolor' property is a color and may be specified as a string in the following formats:
- hex or short hex (e.g. '#d3d3d3', '#d3d')
- hex or short hex with alpha (e.g. '#d3d3d380', '#d3d8')
- rgb (e.g. 'rgb(255, 0, 0)', 'rgb(255 0 0)')
- rgba (e.g. 'rgba(255, 0, 0, 0.5)', 'rgba(255 0 0 / 0.5)')
- hsl (e.g. 'hsl(0, 100%, 50%)', 'hsl(0deg 100% 50%)')
- hsla (e.g. 'hsla(0, 100%, 50%, 0.5)', 'hsla(0deg 100% 50% / 0.5)')
- hwb (e.g. 'hwb(0, 0%, 100%)', 'hwb(0 0% 100%)')
- a named CSS color: see https://plotly.com/python/css-colors/ for a list

Returns
-------
Expand Down
15 changes: 9 additions & 6 deletions plotly/graph_objs/_scatterpolargl.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,12 +176,15 @@ def fillcolor(self):
the line color, marker color, or marker line color, whichever
is available.

The 'fillcolor' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
- A named CSS color: see https://plotly.com/python/css-colors/ for a list
The 'fillcolor' property is a color and may be specified as a string in the following formats:
- hex or short hex (e.g. '#d3d3d3', '#d3d')
- hex or short hex with alpha (e.g. '#d3d3d380', '#d3d8')
- rgb (e.g. 'rgb(255, 0, 0)', 'rgb(255 0 0)')
- rgba (e.g. 'rgba(255, 0, 0, 0.5)', 'rgba(255 0 0 / 0.5)')
- hsl (e.g. 'hsl(0, 100%, 50%)', 'hsl(0deg 100% 50%)')
- hsla (e.g. 'hsla(0, 100%, 50%, 0.5)', 'hsla(0deg 100% 50% / 0.5)')
- hwb (e.g. 'hwb(0, 0%, 100%)', 'hwb(0 0% 100%)')
- a named CSS color: see https://plotly.com/python/css-colors/ for a list

Returns
-------
Expand Down
Loading
Loading