Skip to content

Commit ac0be21

Browse files
conditional docstring
1 parent 6d9f4ad commit ac0be21

File tree

72 files changed

+152
-149
lines changed

Some content is hidden

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

72 files changed

+152
-149
lines changed

Diff for: packages/python/plotly/_plotly_utils/basevalidators.py

+6-3
Original file line numberDiff line numberDiff line change
@@ -1675,11 +1675,14 @@ def __init__(self, plotly_name, parent_name, array_ok=False, **kwargs):
16751675
def description(self):
16761676
desc = """\
16771677
The '{plotly_name}' property is a angle (in degrees) that may be
1678-
specified as a number between -180 and 180. Numeric values outside this
1679-
range are converted to the equivalent value
1678+
specified as a number between -180 and 180{array_ok}.
1679+
Numeric values outside this range are converted to the equivalent value
16801680
(e.g. 270 is converted to -90).
16811681
""".format(
1682-
plotly_name=self.plotly_name
1682+
plotly_name=self.plotly_name,
1683+
array_ok=", or a list, numpy array or other iterable thereof"
1684+
if self.array_ok
1685+
else "",
16831686
)
16841687

16851688
return desc

Diff for: packages/python/plotly/plotly/graph_objs/_bar.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1374,8 +1374,8 @@ def textangle(self):
13741374
the maximum size in bars.
13751375
13761376
The 'textangle' property is a angle (in degrees) that may be
1377-
specified as a number between -180 and 180. Numeric values outside this
1378-
range are converted to the equivalent value
1377+
specified as a number between -180 and 180.
1378+
Numeric values outside this range are converted to the equivalent value
13791379
(e.g. 270 is converted to -90).
13801380
13811381
Returns

Diff for: packages/python/plotly/plotly/graph_objs/_funnel.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1150,8 +1150,8 @@ def textangle(self):
11501150
the maximum size in bars.
11511151
11521152
The 'textangle' property is a angle (in degrees) that may be
1153-
specified as a number between -180 and 180. Numeric values outside this
1154-
range are converted to the equivalent value
1153+
specified as a number between -180 and 180.
1154+
Numeric values outside this range are converted to the equivalent value
11551155
(e.g. 270 is converted to -90).
11561156
11571157
Returns

Diff for: packages/python/plotly/plotly/graph_objs/_histogram.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1450,8 +1450,8 @@ def textangle(self):
14501450
the maximum size in bars.
14511451
14521452
The 'textangle' property is a angle (in degrees) that may be
1453-
specified as a number between -180 and 180. Numeric values outside this
1454-
range are converted to the equivalent value
1453+
specified as a number between -180 and 180.
1454+
Numeric values outside this range are converted to the equivalent value
14551455
(e.g. 270 is converted to -90).
14561456
14571457
Returns

Diff for: packages/python/plotly/plotly/graph_objs/_parcoords.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -302,8 +302,8 @@ def labelangle(self):
302302
margins when `labelposition` is set to "bottom".
303303
304304
The 'labelangle' property is a angle (in degrees) that may be
305-
specified as a number between -180 and 180. Numeric values outside this
306-
range are converted to the equivalent value
305+
specified as a number between -180 and 180.
306+
Numeric values outside this range are converted to the equivalent value
307307
(e.g. 270 is converted to -90).
308308
309309
Returns

Diff for: packages/python/plotly/plotly/graph_objs/_pie.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -970,8 +970,8 @@ def rotation(self):
970970
some other angle.
971971
972972
The 'rotation' property is a angle (in degrees) that may be
973-
specified as a number between -180 and 180. Numeric values outside this
974-
range are converted to the equivalent value
973+
specified as a number between -180 and 180.
974+
Numeric values outside this range are converted to the equivalent value
975975
(e.g. 270 is converted to -90).
976976
977977
Returns

Diff for: packages/python/plotly/plotly/graph_objs/_sunburst.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1065,8 +1065,8 @@ def rotation(self):
10651065
default the first slice starts at 3 o'clock.
10661066
10671067
The 'rotation' property is a angle (in degrees) that may be
1068-
specified as a number between -180 and 180. Numeric values outside this
1069-
range are converted to the equivalent value
1068+
specified as a number between -180 and 180.
1069+
Numeric values outside this range are converted to the equivalent value
10701070
(e.g. 270 is converted to -90).
10711071
10721072
Returns

Diff for: packages/python/plotly/plotly/graph_objs/_waterfall.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1173,8 +1173,8 @@ def textangle(self):
11731173
the maximum size in bars.
11741174
11751175
The 'textangle' property is a angle (in degrees) that may be
1176-
specified as a number between -180 and 180. Numeric values outside this
1177-
range are converted to the equivalent value
1176+
specified as a number between -180 and 180.
1177+
Numeric values outside this range are converted to the equivalent value
11781178
(e.g. 270 is converted to -90).
11791179
11801180
Returns

Diff for: packages/python/plotly/plotly/graph_objs/bar/marker/_colorbar.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -640,8 +640,8 @@ def tickangle(self):
640640
labels vertically.
641641
642642
The 'tickangle' property is a angle (in degrees) that may be
643-
specified as a number between -180 and 180. Numeric values outside this
644-
range are converted to the equivalent value
643+
specified as a number between -180 and 180.
644+
Numeric values outside this range are converted to the equivalent value
645645
(e.g. 270 is converted to -90).
646646
647647
Returns

Diff for: packages/python/plotly/plotly/graph_objs/barpolar/marker/_colorbar.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -640,8 +640,8 @@ def tickangle(self):
640640
labels vertically.
641641
642642
The 'tickangle' property is a angle (in degrees) that may be
643-
specified as a number between -180 and 180. Numeric values outside this
644-
range are converted to the equivalent value
643+
specified as a number between -180 and 180.
644+
Numeric values outside this range are converted to the equivalent value
645645
(e.g. 270 is converted to -90).
646646
647647
Returns

Diff for: packages/python/plotly/plotly/graph_objs/box/_marker.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ def angle(self):
2626
Sets the marker angle in respect to `angleref`.
2727
2828
The 'angle' property is a angle (in degrees) that may be
29-
specified as a number between -180 and 180. Numeric values outside this
30-
range are converted to the equivalent value
29+
specified as a number between -180 and 180.
30+
Numeric values outside this range are converted to the equivalent value
3131
(e.g. 270 is converted to -90).
3232
3333
Returns

Diff for: packages/python/plotly/plotly/graph_objs/carpet/_aaxis.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1253,8 +1253,8 @@ def tickangle(self):
12531253
labels vertically.
12541254
12551255
The 'tickangle' property is a angle (in degrees) that may be
1256-
specified as a number between -180 and 180. Numeric values outside this
1257-
range are converted to the equivalent value
1256+
specified as a number between -180 and 180.
1257+
Numeric values outside this range are converted to the equivalent value
12581258
(e.g. 270 is converted to -90).
12591259
12601260
Returns

Diff for: packages/python/plotly/plotly/graph_objs/carpet/_baxis.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1253,8 +1253,8 @@ def tickangle(self):
12531253
labels vertically.
12541254
12551255
The 'tickangle' property is a angle (in degrees) that may be
1256-
specified as a number between -180 and 180. Numeric values outside this
1257-
range are converted to the equivalent value
1256+
specified as a number between -180 and 180.
1257+
Numeric values outside this range are converted to the equivalent value
12581258
(e.g. 270 is converted to -90).
12591259
12601260
Returns

Diff for: packages/python/plotly/plotly/graph_objs/choropleth/_colorbar.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -640,8 +640,8 @@ def tickangle(self):
640640
labels vertically.
641641
642642
The 'tickangle' property is a angle (in degrees) that may be
643-
specified as a number between -180 and 180. Numeric values outside this
644-
range are converted to the equivalent value
643+
specified as a number between -180 and 180.
644+
Numeric values outside this range are converted to the equivalent value
645645
(e.g. 270 is converted to -90).
646646
647647
Returns

Diff for: packages/python/plotly/plotly/graph_objs/choroplethmapbox/_colorbar.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -640,8 +640,8 @@ def tickangle(self):
640640
labels vertically.
641641
642642
The 'tickangle' property is a angle (in degrees) that may be
643-
specified as a number between -180 and 180. Numeric values outside this
644-
range are converted to the equivalent value
643+
specified as a number between -180 and 180.
644+
Numeric values outside this range are converted to the equivalent value
645645
(e.g. 270 is converted to -90).
646646
647647
Returns

Diff for: packages/python/plotly/plotly/graph_objs/cone/_colorbar.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -640,8 +640,8 @@ def tickangle(self):
640640
labels vertically.
641641
642642
The 'tickangle' property is a angle (in degrees) that may be
643-
specified as a number between -180 and 180. Numeric values outside this
644-
range are converted to the equivalent value
643+
specified as a number between -180 and 180.
644+
Numeric values outside this range are converted to the equivalent value
645645
(e.g. 270 is converted to -90).
646646
647647
Returns

Diff for: packages/python/plotly/plotly/graph_objs/contour/_colorbar.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -640,8 +640,8 @@ def tickangle(self):
640640
labels vertically.
641641
642642
The 'tickangle' property is a angle (in degrees) that may be
643-
specified as a number between -180 and 180. Numeric values outside this
644-
range are converted to the equivalent value
643+
specified as a number between -180 and 180.
644+
Numeric values outside this range are converted to the equivalent value
645645
(e.g. 270 is converted to -90).
646646
647647
Returns

Diff for: packages/python/plotly/plotly/graph_objs/contourcarpet/_colorbar.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -640,8 +640,8 @@ def tickangle(self):
640640
labels vertically.
641641
642642
The 'tickangle' property is a angle (in degrees) that may be
643-
specified as a number between -180 and 180. Numeric values outside this
644-
range are converted to the equivalent value
643+
specified as a number between -180 and 180.
644+
Numeric values outside this range are converted to the equivalent value
645645
(e.g. 270 is converted to -90).
646646
647647
Returns

Diff for: packages/python/plotly/plotly/graph_objs/densitymapbox/_colorbar.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -640,8 +640,8 @@ def tickangle(self):
640640
labels vertically.
641641
642642
The 'tickangle' property is a angle (in degrees) that may be
643-
specified as a number between -180 and 180. Numeric values outside this
644-
range are converted to the equivalent value
643+
specified as a number between -180 and 180.
644+
Numeric values outside this range are converted to the equivalent value
645645
(e.g. 270 is converted to -90).
646646
647647
Returns

Diff for: packages/python/plotly/plotly/graph_objs/funnel/marker/_colorbar.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -640,8 +640,8 @@ def tickangle(self):
640640
labels vertically.
641641
642642
The 'tickangle' property is a angle (in degrees) that may be
643-
specified as a number between -180 and 180. Numeric values outside this
644-
range are converted to the equivalent value
643+
specified as a number between -180 and 180.
644+
Numeric values outside this range are converted to the equivalent value
645645
(e.g. 270 is converted to -90).
646646
647647
Returns

Diff for: packages/python/plotly/plotly/graph_objs/heatmap/_colorbar.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -640,8 +640,8 @@ def tickangle(self):
640640
labels vertically.
641641
642642
The 'tickangle' property is a angle (in degrees) that may be
643-
specified as a number between -180 and 180. Numeric values outside this
644-
range are converted to the equivalent value
643+
specified as a number between -180 and 180.
644+
Numeric values outside this range are converted to the equivalent value
645645
(e.g. 270 is converted to -90).
646646
647647
Returns

Diff for: packages/python/plotly/plotly/graph_objs/heatmapgl/_colorbar.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -640,8 +640,8 @@ def tickangle(self):
640640
labels vertically.
641641
642642
The 'tickangle' property is a angle (in degrees) that may be
643-
specified as a number between -180 and 180. Numeric values outside this
644-
range are converted to the equivalent value
643+
specified as a number between -180 and 180.
644+
Numeric values outside this range are converted to the equivalent value
645645
(e.g. 270 is converted to -90).
646646
647647
Returns

Diff for: packages/python/plotly/plotly/graph_objs/histogram/marker/_colorbar.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -640,8 +640,8 @@ def tickangle(self):
640640
labels vertically.
641641
642642
The 'tickangle' property is a angle (in degrees) that may be
643-
specified as a number between -180 and 180. Numeric values outside this
644-
range are converted to the equivalent value
643+
specified as a number between -180 and 180.
644+
Numeric values outside this range are converted to the equivalent value
645645
(e.g. 270 is converted to -90).
646646
647647
Returns

Diff for: packages/python/plotly/plotly/graph_objs/histogram2d/_colorbar.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -640,8 +640,8 @@ def tickangle(self):
640640
labels vertically.
641641
642642
The 'tickangle' property is a angle (in degrees) that may be
643-
specified as a number between -180 and 180. Numeric values outside this
644-
range are converted to the equivalent value
643+
specified as a number between -180 and 180.
644+
Numeric values outside this range are converted to the equivalent value
645645
(e.g. 270 is converted to -90).
646646
647647
Returns

Diff for: packages/python/plotly/plotly/graph_objs/histogram2dcontour/_colorbar.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -640,8 +640,8 @@ def tickangle(self):
640640
labels vertically.
641641
642642
The 'tickangle' property is a angle (in degrees) that may be
643-
specified as a number between -180 and 180. Numeric values outside this
644-
range are converted to the equivalent value
643+
specified as a number between -180 and 180.
644+
Numeric values outside this range are converted to the equivalent value
645645
(e.g. 270 is converted to -90).
646646
647647
Returns

Diff for: packages/python/plotly/plotly/graph_objs/icicle/marker/_colorbar.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -640,8 +640,8 @@ def tickangle(self):
640640
labels vertically.
641641
642642
The 'tickangle' property is a angle (in degrees) that may be
643-
specified as a number between -180 and 180. Numeric values outside this
644-
range are converted to the equivalent value
643+
specified as a number between -180 and 180.
644+
Numeric values outside this range are converted to the equivalent value
645645
(e.g. 270 is converted to -90).
646646
647647
Returns

Diff for: packages/python/plotly/plotly/graph_objs/indicator/gauge/_axis.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -319,8 +319,8 @@ def tickangle(self):
319319
labels vertically.
320320
321321
The 'tickangle' property is a angle (in degrees) that may be
322-
specified as a number between -180 and 180. Numeric values outside this
323-
range are converted to the equivalent value
322+
specified as a number between -180 and 180.
323+
Numeric values outside this range are converted to the equivalent value
324324
(e.g. 270 is converted to -90).
325325
326326
Returns

Diff for: packages/python/plotly/plotly/graph_objs/isosurface/_colorbar.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -640,8 +640,8 @@ def tickangle(self):
640640
labels vertically.
641641
642642
The 'tickangle' property is a angle (in degrees) that may be
643-
specified as a number between -180 and 180. Numeric values outside this
644-
range are converted to the equivalent value
643+
specified as a number between -180 and 180.
644+
Numeric values outside this range are converted to the equivalent value
645645
(e.g. 270 is converted to -90).
646646
647647
Returns

Diff for: packages/python/plotly/plotly/graph_objs/layout/_annotation.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -918,8 +918,8 @@ def textangle(self):
918918
horizontal.
919919
920920
The 'textangle' property is a angle (in degrees) that may be
921-
specified as a number between -180 and 180. Numeric values outside this
922-
range are converted to the equivalent value
921+
specified as a number between -180 and 180.
922+
Numeric values outside this range are converted to the equivalent value
923923
(e.g. 270 is converted to -90).
924924
925925
Returns

Diff for: packages/python/plotly/plotly/graph_objs/layout/_xaxis.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1859,8 +1859,8 @@ def tickangle(self):
18591859
labels vertically.
18601860
18611861
The 'tickangle' property is a angle (in degrees) that may be
1862-
specified as a number between -180 and 180. Numeric values outside this
1863-
range are converted to the equivalent value
1862+
specified as a number between -180 and 180.
1863+
Numeric values outside this range are converted to the equivalent value
18641864
(e.g. 270 is converted to -90).
18651865
18661866
Returns

Diff for: packages/python/plotly/plotly/graph_objs/layout/_yaxis.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1782,8 +1782,8 @@ def tickangle(self):
17821782
labels vertically.
17831783
17841784
The 'tickangle' property is a angle (in degrees) that may be
1785-
specified as a number between -180 and 180. Numeric values outside this
1786-
range are converted to the equivalent value
1785+
specified as a number between -180 and 180.
1786+
Numeric values outside this range are converted to the equivalent value
17871787
(e.g. 270 is converted to -90).
17881788
17891789
Returns

Diff for: packages/python/plotly/plotly/graph_objs/layout/coloraxis/_colorbar.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -640,8 +640,8 @@ def tickangle(self):
640640
labels vertically.
641641
642642
The 'tickangle' property is a angle (in degrees) that may be
643-
specified as a number between -180 and 180. Numeric values outside this
644-
range are converted to the equivalent value
643+
specified as a number between -180 and 180.
644+
Numeric values outside this range are converted to the equivalent value
645645
(e.g. 270 is converted to -90).
646646
647647
Returns

Diff for: packages/python/plotly/plotly/graph_objs/layout/polar/_angularaxis.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -631,8 +631,8 @@ def rotation(self):
631631
corresponds to due North (like on a compass),
632632
633633
The 'rotation' property is a angle (in degrees) that may be
634-
specified as a number between -180 and 180. Numeric values outside this
635-
range are converted to the equivalent value
634+
specified as a number between -180 and 180.
635+
Numeric values outside this range are converted to the equivalent value
636636
(e.g. 270 is converted to -90).
637637
638638
Returns
@@ -854,8 +854,8 @@ def tickangle(self):
854854
labels vertically.
855855
856856
The 'tickangle' property is a angle (in degrees) that may be
857-
specified as a number between -180 and 180. Numeric values outside this
858-
range are converted to the equivalent value
857+
specified as a number between -180 and 180.
858+
Numeric values outside this range are converted to the equivalent value
859859
(e.g. 270 is converted to -90).
860860
861861
Returns

0 commit comments

Comments
 (0)