Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

feat: modifying code generation to reduce bundle size #4978

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Apr 17, 2025
  •  
  •  
  •  
Prev Previous commit
Next Next commit
feat: adding https://plotly.com/python/css-colors/ URL for colors.
  • Loading branch information
gvwilson committed Apr 16, 2025
commit 97c418fb1b5b8dba6b54d4cd5644cc6972f9eb90
2 changes: 1 addition & 1 deletion 2 _plotly_utils/basevalidators.py
Original file line number Diff line number Diff line change
Expand Up @@ -1334,7 +1334,7 @@ def description(self):
- 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""".format(
- A named CSS color: see https://plotly.com/python/css-colors/ for a list""".format(
plotly_name=self.plotly_name
)

Expand Down
2 changes: 1 addition & 1 deletion 2 plotly/graph_objs/_box.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ def fillcolor(self):
- 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
- A named CSS color: see https://plotly.com/python/css-colors/ for a list

Returns
-------
Expand Down
2 changes: 1 addition & 1 deletion 2 plotly/graph_objs/_carpet.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ def color(self):
- 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
- A named CSS color: see https://plotly.com/python/css-colors/ for a list

Returns
-------
Expand Down
2 changes: 1 addition & 1 deletion 2 plotly/graph_objs/_contour.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ def fillcolor(self):
- 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
- 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
2 changes: 1 addition & 1 deletion 2 plotly/graph_objs/_contourcarpet.py
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ def fillcolor(self):
- 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
- 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
4 changes: 2 additions & 2 deletions 4 plotly/graph_objs/_layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -1388,7 +1388,7 @@ def paper_bgcolor(self):
- 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
- A named CSS color: see https://plotly.com/python/css-colors/ for a list

Returns
-------
Expand Down Expand Up @@ -1433,7 +1433,7 @@ def plot_bgcolor(self):
- 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
- A named CSS color: see https://plotly.com/python/css-colors/ for a list

Returns
-------
Expand Down
2 changes: 1 addition & 1 deletion 2 plotly/graph_objs/_mesh3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ def color(self):
- 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
- 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
2 changes: 1 addition & 1 deletion 2 plotly/graph_objs/_scatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ def fillcolor(self):
- 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
- A named CSS color: see https://plotly.com/python/css-colors/ for a list

Returns
-------
Expand Down
2 changes: 1 addition & 1 deletion 2 plotly/graph_objs/_scatter3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,7 @@ def surfacecolor(self):
- 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
- A named CSS color: see https://plotly.com/python/css-colors/ for a list

Returns
-------
Expand Down
2 changes: 1 addition & 1 deletion 2 plotly/graph_objs/_scattercarpet.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ def fillcolor(self):
- 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
- A named CSS color: see https://plotly.com/python/css-colors/ for a list

Returns
-------
Expand Down
2 changes: 1 addition & 1 deletion 2 plotly/graph_objs/_scattergeo.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def fillcolor(self):
- 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
- A named CSS color: see https://plotly.com/python/css-colors/ for a list

Returns
-------
Expand Down
2 changes: 1 addition & 1 deletion 2 plotly/graph_objs/_scattergl.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ def fillcolor(self):
- 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
- A named CSS color: see https://plotly.com/python/css-colors/ for a list

Returns
-------
Expand Down
2 changes: 1 addition & 1 deletion 2 plotly/graph_objs/_scattermap.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def fillcolor(self):
- 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
- A named CSS color: see https://plotly.com/python/css-colors/ for a list

Returns
-------
Expand Down
2 changes: 1 addition & 1 deletion 2 plotly/graph_objs/_scattermapbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def fillcolor(self):
- 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
- A named CSS color: see https://plotly.com/python/css-colors/ for a list

Returns
-------
Expand Down
2 changes: 1 addition & 1 deletion 2 plotly/graph_objs/_scatterpolar.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ def fillcolor(self):
- 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
- A named CSS color: see https://plotly.com/python/css-colors/ for a list

Returns
-------
Expand Down
2 changes: 1 addition & 1 deletion 2 plotly/graph_objs/_scatterpolargl.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ def fillcolor(self):
- 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
- A named CSS color: see https://plotly.com/python/css-colors/ for a list

Returns
-------
Expand Down
2 changes: 1 addition & 1 deletion 2 plotly/graph_objs/_scattersmith.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def fillcolor(self):
- 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
- A named CSS color: see https://plotly.com/python/css-colors/ for a list

Returns
-------
Expand Down
2 changes: 1 addition & 1 deletion 2 plotly/graph_objs/_scatterternary.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ def fillcolor(self):
- 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
- A named CSS color: see https://plotly.com/python/css-colors/ for a list

Returns
-------
Expand Down
2 changes: 1 addition & 1 deletion 2 plotly/graph_objs/_violin.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def fillcolor(self):
- 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
- A named CSS color: see https://plotly.com/python/css-colors/ for a list

Returns
-------
Expand Down
2 changes: 1 addition & 1 deletion 2 plotly/graph_objs/bar/_error_x.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def color(self):
- 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
- A named CSS color: see https://plotly.com/python/css-colors/ for a list

Returns
-------
Expand Down
2 changes: 1 addition & 1 deletion 2 plotly/graph_objs/bar/_error_y.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def color(self):
- 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
- A named CSS color: see https://plotly.com/python/css-colors/ for a list

Returns
-------
Expand Down
4 changes: 2 additions & 2 deletions 4 plotly/graph_objs/bar/_hoverlabel.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def bgcolor(self):
- 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
- A named CSS color: see https://plotly.com/python/css-colors/ for a list
- A list or array of any of the above

Returns
Expand Down Expand Up @@ -112,7 +112,7 @@ def bordercolor(self):
- 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
- A named CSS color: see https://plotly.com/python/css-colors/ for a list
- A list or array of any of the above

Returns
Expand Down
2 changes: 1 addition & 1 deletion 2 plotly/graph_objs/bar/_insidetextfont.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def color(self):
- 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
- A named CSS color: see https://plotly.com/python/css-colors/ for a list
- A list or array of any of the above

Returns
Expand Down
2 changes: 1 addition & 1 deletion 2 plotly/graph_objs/bar/_marker.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def color(self):
- 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
- 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 bar.marker.colorscale
- A list or array of any of the above
Expand Down
2 changes: 1 addition & 1 deletion 2 plotly/graph_objs/bar/_outsidetextfont.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def color(self):
- 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
- A named CSS color: see https://plotly.com/python/css-colors/ for a list
- A list or array of any of the above

Returns
Expand Down
2 changes: 1 addition & 1 deletion 2 plotly/graph_objs/bar/_textfont.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def color(self):
- 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
- A named CSS color: see https://plotly.com/python/css-colors/ for a list
- A list or array of any of the above

Returns
Expand Down
2 changes: 1 addition & 1 deletion 2 plotly/graph_objs/bar/hoverlabel/_font.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def color(self):
- 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
- A named CSS color: see https://plotly.com/python/css-colors/ for a list
- A list or array of any of the above

Returns
Expand Down
2 changes: 1 addition & 1 deletion 2 plotly/graph_objs/bar/legendgrouptitle/_font.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def color(self):
- 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
- A named CSS color: see https://plotly.com/python/css-colors/ for a list

Returns
-------
Expand Down
8 changes: 4 additions & 4 deletions 8 plotly/graph_objs/bar/marker/_colorbar.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def bgcolor(self):
- 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
- A named CSS color: see https://plotly.com/python/css-colors/ for a list

Returns
-------
Expand All @@ -93,7 +93,7 @@ def bordercolor(self):
- 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
- A named CSS color: see https://plotly.com/python/css-colors/ for a list

Returns
-------
Expand Down Expand Up @@ -318,7 +318,7 @@ def outlinecolor(self):
- 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
- A named CSS color: see https://plotly.com/python/css-colors/ for a list

Returns
-------
Expand Down Expand Up @@ -544,7 +544,7 @@ def tickcolor(self):
- 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
- A named CSS color: see https://plotly.com/python/css-colors/ for a list

Returns
-------
Expand Down
2 changes: 1 addition & 1 deletion 2 plotly/graph_objs/bar/marker/_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def color(self):
- 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
- 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 bar.marker.line.colorscale
- A list or array of any of the above
Expand Down
4 changes: 2 additions & 2 deletions 4 plotly/graph_objs/bar/marker/_pattern.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def bgcolor(self):
- 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
- A named CSS color: see https://plotly.com/python/css-colors/ for a list
- A list or array of any of the above

Returns
Expand Down Expand Up @@ -81,7 +81,7 @@ def fgcolor(self):
- 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
- A named CSS color: see https://plotly.com/python/css-colors/ for a list
- A list or array of any of the above

Returns
Expand Down
2 changes: 1 addition & 1 deletion 2 plotly/graph_objs/bar/marker/colorbar/_tickfont.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def color(self):
- 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
- A named CSS color: see https://plotly.com/python/css-colors/ for a list

Returns
-------
Expand Down
2 changes: 1 addition & 1 deletion 2 plotly/graph_objs/bar/marker/colorbar/title/_font.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def color(self):
- 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
- A named CSS color: see https://plotly.com/python/css-colors/ for a list

Returns
-------
Expand Down
2 changes: 1 addition & 1 deletion 2 plotly/graph_objs/bar/selected/_marker.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def color(self):
- 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
- A named CSS color: see https://plotly.com/python/css-colors/ for a list

Returns
-------
Expand Down
2 changes: 1 addition & 1 deletion 2 plotly/graph_objs/bar/selected/_textfont.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def color(self):
- 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
- A named CSS color: see https://plotly.com/python/css-colors/ for a list

Returns
-------
Expand Down
2 changes: 1 addition & 1 deletion 2 plotly/graph_objs/bar/unselected/_marker.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def color(self):
- 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
- A named CSS color: see https://plotly.com/python/css-colors/ for a list

Returns
-------
Expand Down
2 changes: 1 addition & 1 deletion 2 plotly/graph_objs/bar/unselected/_textfont.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def color(self):
- 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
- A named CSS color: see https://plotly.com/python/css-colors/ for a list

Returns
-------
Expand Down
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.