Skip to content

Commit efde201

Browse files
committed
Fixed formatting for 'Compound' and 'color' properties.
1 parent 683643c commit efde201

File tree

843 files changed

+8659
-7808
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

843 files changed

+8659
-7808
lines changed

_plotly_utils/basevalidators.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1317,27 +1317,28 @@ def numbers_allowed(self):
13171317
def description(self):
13181318
valid_color_description = """\
13191319
The '{plotly_name}' property is a color and may be specified as:
1320-
- A hex string (e.g. '#ff0000')
1321-
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
1322-
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
1323-
- An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
1324-
- A named CSS color: see https://plotly.com/python/css-colors/ for a list""".format(
1320+
1321+
- A hex string (e.g. '#ff0000')
1322+
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
1323+
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
1324+
- An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
1325+
- A named CSS color: see https://plotly.com/python/css-colors/ for a list""".format(
13251326
plotly_name=self.plotly_name
13261327
)
13271328

13281329
if self.colorscale_path:
13291330
valid_color_description = (
13301331
valid_color_description
13311332
+ """
1332-
- A number that will be interpreted as a color
1333-
according to {colorscale_path}""".format(colorscale_path=self.colorscale_path)
1334-
)
1333+
- A number that will be interpreted as a color according to {colorscale_path}""".format(
1334+
colorscale_path=self.colorscale_path)
1335+
)
13351336

13361337
if self.array_ok:
13371338
valid_color_description = (
13381339
valid_color_description
13391340
+ """
1340-
- A list or array of any of the above"""
1341+
- A list or array of any of the above"""
13411342
)
13421343

13431344
return valid_color_description
@@ -2419,10 +2420,9 @@ def description(self):
24192420
desc = (
24202421
"""\
24212422
The '{plotly_name}' property is an instance of {class_str}
2422-
that may be specified as:
2423-
- An instance of :class:`{module_str}.{class_str}`
2424-
- A dict of string/value properties that will be passed
2425-
to the {class_str} constructor"""
2423+
that may be specified as:\n
2424+
- An instance of :class:`{module_str}.{class_str}`
2425+
- A dict of string/value properties that will be passed to the {class_str} constructor"""
24262426
).format(
24272427
plotly_name=self.plotly_name,
24282428
class_str=self.data_class_str,

plotly/graph_objects/_bar.py

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -272,9 +272,9 @@ def error_x(self):
272272
"""
273273
The 'error_x' property is an instance of ErrorX
274274
that may be specified as:
275-
- An instance of :class:`plotly.graph_objects.bar.ErrorX`
276-
- A dict of string/value properties that will be passed
277-
to the ErrorX constructor
275+
276+
- An instance of :class:`plotly.graph_objects.bar.ErrorX`
277+
- A dict of string/value properties that will be passed to the ErrorX constructor
278278
279279
Returns
280280
-------
@@ -291,9 +291,9 @@ def error_y(self):
291291
"""
292292
The 'error_y' property is an instance of ErrorY
293293
that may be specified as:
294-
- An instance of :class:`plotly.graph_objects.bar.ErrorY`
295-
- A dict of string/value properties that will be passed
296-
to the ErrorY constructor
294+
295+
- An instance of :class:`plotly.graph_objects.bar.ErrorY`
296+
- A dict of string/value properties that will be passed to the ErrorY constructor
297297
298298
Returns
299299
-------
@@ -353,9 +353,9 @@ def hoverlabel(self):
353353
"""
354354
The 'hoverlabel' property is an instance of Hoverlabel
355355
that may be specified as:
356-
- An instance of :class:`plotly.graph_objects.bar.Hoverlabel`
357-
- A dict of string/value properties that will be passed
358-
to the Hoverlabel constructor
356+
357+
- An instance of :class:`plotly.graph_objects.bar.Hoverlabel`
358+
- A dict of string/value properties that will be passed to the Hoverlabel constructor
359359
360360
Returns
361361
-------
@@ -546,9 +546,9 @@ def insidetextfont(self):
546546
547547
The 'insidetextfont' property is an instance of Insidetextfont
548548
that may be specified as:
549-
- An instance of :class:`plotly.graph_objects.bar.Insidetextfont`
550-
- A dict of string/value properties that will be passed
551-
to the Insidetextfont constructor
549+
550+
- An instance of :class:`plotly.graph_objects.bar.Insidetextfont`
551+
- A dict of string/value properties that will be passed to the Insidetextfont constructor
552552
553553
Returns
554554
-------
@@ -611,9 +611,9 @@ def legendgrouptitle(self):
611611
"""
612612
The 'legendgrouptitle' property is an instance of Legendgrouptitle
613613
that may be specified as:
614-
- An instance of :class:`plotly.graph_objects.bar.Legendgrouptitle`
615-
- A dict of string/value properties that will be passed
616-
to the Legendgrouptitle constructor
614+
615+
- An instance of :class:`plotly.graph_objects.bar.Legendgrouptitle`
616+
- A dict of string/value properties that will be passed to the Legendgrouptitle constructor
617617
618618
Returns
619619
-------
@@ -676,9 +676,9 @@ def marker(self):
676676
"""
677677
The 'marker' property is an instance of Marker
678678
that may be specified as:
679-
- An instance of :class:`plotly.graph_objects.bar.Marker`
680-
- A dict of string/value properties that will be passed
681-
to the Marker constructor
679+
680+
- An instance of :class:`plotly.graph_objects.bar.Marker`
681+
- A dict of string/value properties that will be passed to the Marker constructor
682682
683683
Returns
684684
-------
@@ -868,9 +868,9 @@ def outsidetextfont(self):
868868
869869
The 'outsidetextfont' property is an instance of Outsidetextfont
870870
that may be specified as:
871-
- An instance of :class:`plotly.graph_objects.bar.Outsidetextfont`
872-
- A dict of string/value properties that will be passed
873-
to the Outsidetextfont constructor
871+
872+
- An instance of :class:`plotly.graph_objects.bar.Outsidetextfont`
873+
- A dict of string/value properties that will be passed to the Outsidetextfont constructor
874874
875875
Returns
876876
-------
@@ -887,9 +887,9 @@ def selected(self):
887887
"""
888888
The 'selected' property is an instance of Selected
889889
that may be specified as:
890-
- An instance of :class:`plotly.graph_objects.bar.Selected`
891-
- A dict of string/value properties that will be passed
892-
to the Selected constructor
890+
891+
- An instance of :class:`plotly.graph_objects.bar.Selected`
892+
- A dict of string/value properties that will be passed to the Selected constructor
893893
894894
Returns
895895
-------
@@ -947,9 +947,9 @@ def stream(self):
947947
"""
948948
The 'stream' property is an instance of Stream
949949
that may be specified as:
950-
- An instance of :class:`plotly.graph_objects.bar.Stream`
951-
- A dict of string/value properties that will be passed
952-
to the Stream constructor
950+
951+
- An instance of :class:`plotly.graph_objects.bar.Stream`
952+
- A dict of string/value properties that will be passed to the Stream constructor
953953
954954
Returns
955955
-------
@@ -1019,9 +1019,9 @@ def textfont(self):
10191019
10201020
The 'textfont' property is an instance of Textfont
10211021
that may be specified as:
1022-
- An instance of :class:`plotly.graph_objects.bar.Textfont`
1023-
- A dict of string/value properties that will be passed
1024-
to the Textfont constructor
1022+
1023+
- An instance of :class:`plotly.graph_objects.bar.Textfont`
1024+
- A dict of string/value properties that will be passed to the Textfont constructor
10251025
10261026
Returns
10271027
-------
@@ -1213,9 +1213,9 @@ def unselected(self):
12131213
"""
12141214
The 'unselected' property is an instance of Unselected
12151215
that may be specified as:
1216-
- An instance of :class:`plotly.graph_objects.bar.Unselected`
1217-
- A dict of string/value properties that will be passed
1218-
to the Unselected constructor
1216+
1217+
- An instance of :class:`plotly.graph_objects.bar.Unselected`
1218+
- A dict of string/value properties that will be passed to the Unselected constructor
12191219
12201220
Returns
12211221
-------

plotly/graph_objects/_barpolar.py

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -224,9 +224,9 @@ def hoverlabel(self):
224224
"""
225225
The 'hoverlabel' property is an instance of Hoverlabel
226226
that may be specified as:
227-
- An instance of :class:`plotly.graph_objects.barpolar.Hoverlabel`
228-
- A dict of string/value properties that will be passed
229-
to the Hoverlabel constructor
227+
228+
- An instance of :class:`plotly.graph_objects.barpolar.Hoverlabel`
229+
- A dict of string/value properties that will be passed to the Hoverlabel constructor
230230
231231
Returns
232232
-------
@@ -433,9 +433,9 @@ def legendgrouptitle(self):
433433
"""
434434
The 'legendgrouptitle' property is an instance of Legendgrouptitle
435435
that may be specified as:
436-
- An instance of :class:`plotly.graph_objects.barpolar.Legendgrouptitle`
437-
- A dict of string/value properties that will be passed
438-
to the Legendgrouptitle constructor
436+
437+
- An instance of :class:`plotly.graph_objects.barpolar.Legendgrouptitle`
438+
- A dict of string/value properties that will be passed to the Legendgrouptitle constructor
439439
440440
Returns
441441
-------
@@ -498,9 +498,9 @@ def marker(self):
498498
"""
499499
The 'marker' property is an instance of Marker
500500
that may be specified as:
501-
- An instance of :class:`plotly.graph_objects.barpolar.Marker`
502-
- A dict of string/value properties that will be passed
503-
to the Marker constructor
501+
502+
- An instance of :class:`plotly.graph_objects.barpolar.Marker`
503+
- A dict of string/value properties that will be passed to the Marker constructor
504504
505505
Returns
506506
-------
@@ -697,9 +697,9 @@ def selected(self):
697697
"""
698698
The 'selected' property is an instance of Selected
699699
that may be specified as:
700-
- An instance of :class:`plotly.graph_objects.barpolar.Selected`
701-
- A dict of string/value properties that will be passed
702-
to the Selected constructor
700+
701+
- An instance of :class:`plotly.graph_objects.barpolar.Selected`
702+
- A dict of string/value properties that will be passed to the Selected constructor
703703
704704
Returns
705705
-------
@@ -757,9 +757,9 @@ def stream(self):
757757
"""
758758
The 'stream' property is an instance of Stream
759759
that may be specified as:
760-
- An instance of :class:`plotly.graph_objects.barpolar.Stream`
761-
- A dict of string/value properties that will be passed
762-
to the Stream constructor
760+
761+
- An instance of :class:`plotly.graph_objects.barpolar.Stream`
762+
- A dict of string/value properties that will be passed to the Stream constructor
763763
764764
Returns
765765
-------
@@ -973,9 +973,9 @@ def unselected(self):
973973
"""
974974
The 'unselected' property is an instance of Unselected
975975
that may be specified as:
976-
- An instance of :class:`plotly.graph_objects.barpolar.Unselected`
977-
- A dict of string/value properties that will be passed
978-
to the Unselected constructor
976+
977+
- An instance of :class:`plotly.graph_objects.barpolar.Unselected`
978+
- A dict of string/value properties that will be passed to the Unselected constructor
979979
980980
Returns
981981
-------

plotly/graph_objects/_box.py

Lines changed: 27 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -262,11 +262,12 @@ def fillcolor(self):
262262
is available.
263263
264264
The 'fillcolor' property is a color and may be specified as:
265-
- A hex string (e.g. '#ff0000')
266-
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
267-
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
268-
- An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
269-
- A named CSS color: see https://plotly.com/python/css-colors/ for a list
265+
266+
- A hex string (e.g. '#ff0000')
267+
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
268+
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
269+
- An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
270+
- A named CSS color: see https://plotly.com/python/css-colors/ for a list
270271
271272
Returns
272273
-------
@@ -326,9 +327,9 @@ def hoverlabel(self):
326327
"""
327328
The 'hoverlabel' property is an instance of Hoverlabel
328329
that may be specified as:
329-
- An instance of :class:`plotly.graph_objects.box.Hoverlabel`
330-
- A dict of string/value properties that will be passed
331-
to the Hoverlabel constructor
330+
331+
- An instance of :class:`plotly.graph_objects.box.Hoverlabel`
332+
- A dict of string/value properties that will be passed to the Hoverlabel constructor
332333
333334
Returns
334335
-------
@@ -578,9 +579,9 @@ def legendgrouptitle(self):
578579
"""
579580
The 'legendgrouptitle' property is an instance of Legendgrouptitle
580581
that may be specified as:
581-
- An instance of :class:`plotly.graph_objects.box.Legendgrouptitle`
582-
- A dict of string/value properties that will be passed
583-
to the Legendgrouptitle constructor
582+
583+
- An instance of :class:`plotly.graph_objects.box.Legendgrouptitle`
584+
- A dict of string/value properties that will be passed to the Legendgrouptitle constructor
584585
585586
Returns
586587
-------
@@ -643,9 +644,9 @@ def line(self):
643644
"""
644645
The 'line' property is an instance of Line
645646
that may be specified as:
646-
- An instance of :class:`plotly.graph_objects.box.Line`
647-
- A dict of string/value properties that will be passed
648-
to the Line constructor
647+
648+
- An instance of :class:`plotly.graph_objects.box.Line`
649+
- A dict of string/value properties that will be passed to the Line constructor
649650
650651
Returns
651652
-------
@@ -703,9 +704,9 @@ def marker(self):
703704
"""
704705
The 'marker' property is an instance of Marker
705706
that may be specified as:
706-
- An instance of :class:`plotly.graph_objects.box.Marker`
707-
- A dict of string/value properties that will be passed
708-
to the Marker constructor
707+
708+
- An instance of :class:`plotly.graph_objects.box.Marker`
709+
- A dict of string/value properties that will be passed to the Marker constructor
709710
710711
Returns
711712
-------
@@ -1209,9 +1210,9 @@ def selected(self):
12091210
"""
12101211
The 'selected' property is an instance of Selected
12111212
that may be specified as:
1212-
- An instance of :class:`plotly.graph_objects.box.Selected`
1213-
- A dict of string/value properties that will be passed
1214-
to the Selected constructor
1213+
1214+
- An instance of :class:`plotly.graph_objects.box.Selected`
1215+
- A dict of string/value properties that will be passed to the Selected constructor
12151216
12161217
Returns
12171218
-------
@@ -1313,9 +1314,9 @@ def stream(self):
13131314
"""
13141315
The 'stream' property is an instance of Stream
13151316
that may be specified as:
1316-
- An instance of :class:`plotly.graph_objects.box.Stream`
1317-
- A dict of string/value properties that will be passed
1318-
to the Stream constructor
1317+
1318+
- An instance of :class:`plotly.graph_objects.box.Stream`
1319+
- A dict of string/value properties that will be passed to the Stream constructor
13191320
13201321
Returns
13211322
-------
@@ -1430,9 +1431,9 @@ def unselected(self):
14301431
"""
14311432
The 'unselected' property is an instance of Unselected
14321433
that may be specified as:
1433-
- An instance of :class:`plotly.graph_objects.box.Unselected`
1434-
- A dict of string/value properties that will be passed
1435-
to the Unselected constructor
1434+
1435+
- An instance of :class:`plotly.graph_objects.box.Unselected`
1436+
- A dict of string/value properties that will be passed to the Unselected constructor
14361437
14371438
Returns
14381439
-------

0 commit comments

Comments
 (0)