@@ -339,23 +339,25 @@ def description(self):
339
339
enum_vals_str = '\n ' .join (
340
340
textwrap .wrap (
341
341
repr (enum_vals ),
342
+ initial_indent = ' ' * 12 ,
342
343
subsequent_indent = ' ' * 12 ,
343
344
break_on_hyphens = False ))
344
345
345
346
desc = desc + """
346
347
- One of the following enumeration values:
347
- {enum_vals_str}""" .format (enum_vals_str = enum_vals_str )
348
+ {enum_vals_str}""" .format (enum_vals_str = enum_vals_str )
348
349
349
350
if enum_regexs :
350
351
enum_regexs_str = '\n ' .join (
351
352
textwrap .wrap (
352
353
repr (enum_regexs ),
354
+ initial_indent = ' ' * 12 ,
353
355
subsequent_indent = ' ' * 12 ,
354
356
break_on_hyphens = False ))
355
357
356
358
desc = desc + """
357
359
- A string that matches one of the following regular expressions:
358
- {enum_vals_str }""" .format (enum_vals_str = enum_regexs_str )
360
+ {enum_regexs_str }""" .format (enum_regexs_str = enum_regexs_str )
359
361
360
362
if self .array_ok :
361
363
desc = desc + """
@@ -681,12 +683,13 @@ def description(self):
681
683
valid_str = '\n ' .join (
682
684
textwrap .wrap (
683
685
repr (self .values ),
686
+ initial_indent = ' ' * 12 ,
684
687
subsequent_indent = ' ' * 12 ,
685
688
break_on_hyphens = False ))
686
689
687
690
desc = desc + """
688
691
- One of the following strings:
689
- {valid_str}""" .format (valid_str = valid_str )
692
+ {valid_str}""" .format (valid_str = valid_str )
690
693
else :
691
694
desc = desc + """
692
695
- A string"""
@@ -1003,15 +1006,16 @@ def __init__(self, plotly_name, parent_name, **kwargs):
1003
1006
1004
1007
def description (self ):
1005
1008
desc = """\
1006
- The '{plotly_name}' property is a colorscale and may be specified as:
1007
- - A list of 2-element lists where the first element is the normalized
1008
- color level value (starting at 0 and ending at 1), and the second
1009
- item is a valid color string.
1009
+ The '{plotly_name}' property is a colorscale and may be
1010
+ specified as:
1011
+ - A list of 2-element lists where the first element is the
1012
+ normalized color level value (starting at 0 and ending at 1),
1013
+ and the second item is a valid color string.
1010
1014
(e.g. [[0, 'green'], [0.5, 'red'], [1.0, 'rgb(0, 0, 255)']])
1011
1015
- One of the following named colorscales:
1012
1016
['Greys', 'YlGnBu', 'Greens', 'YlOrRd', 'Bluered', 'RdBu',
1013
- 'Reds', 'Blues', 'Picnic', 'Rainbow', 'Portland', 'Jet', 'Hot',
1014
- 'Blackbody', 'Earth', 'Electric', 'Viridis']
1017
+ 'Reds', 'Blues', 'Picnic', 'Rainbow', 'Portland', 'Jet',
1018
+ 'Hot', ' Blackbody', 'Earth', 'Electric', 'Viridis']
1015
1019
""" .format (plotly_name = self .plotly_name )
1016
1020
1017
1021
return desc
@@ -1489,8 +1493,8 @@ def description(self):
1489
1493
The '{plotly_name}' property is an instance of {class_str}
1490
1494
that may be specified as:
1491
1495
- An instance of {module_str}.{class_str}
1492
- - A dict of string/value properties that will be passed to the
1493
- {class_str} constructor
1496
+ - A dict of string/value properties that will be passed
1497
+ to the {class_str} constructor
1494
1498
1495
1499
Supported dict properties:
1496
1500
{constructor_params_str}""" ).format (
@@ -1539,8 +1543,8 @@ def description(self):
1539
1543
The '{plotly_name}' property is a tuple of instances of
1540
1544
{class_str} that may be specified as:
1541
1545
- A list or tuple of instances of {module_str}.{class_str}
1542
- - A list or tuple of dicts of string/value properties that will be
1543
- passed to the {class_str} constructor
1546
+ - A list or tuple of dicts of string/value properties that
1547
+ will be passed to the {class_str} constructor
1544
1548
1545
1549
Supported dict properties:
1546
1550
{constructor_params_str}""" ).format (
@@ -1606,7 +1610,10 @@ def description(self):
1606
1610
1607
1611
trace_types_wrapped = '\n ' .join (
1608
1612
textwrap .wrap (
1609
- trace_types , subsequent_indent = ' ' * 21 , width = 79 - 12 ))
1613
+ trace_types ,
1614
+ initial_indent = ' One of: ' ,
1615
+ subsequent_indent = ' ' * 21 ,
1616
+ width = 79 - 12 ))
1610
1617
1611
1618
desc = ("""\
1612
1619
The '{plotly_name}' property is a tuple of trace instances
@@ -1615,10 +1622,10 @@ def description(self):
1615
1622
(e.g. [Scatter(...), Bar(...)])
1616
1623
- A list or tuple of dicts of string/value properties where:
1617
1624
- The 'type' property specifies the trace type
1618
- One of: {trace_types}
1625
+ {trace_types}
1619
1626
1620
- - All remaining properties are passed to the constructor of the
1621
- specified trace type
1627
+ - All remaining properties are passed to the constructor of
1628
+ the specified trace type
1622
1629
1623
1630
(e.g. [{{'type': 'scatter', ...}}, {{'type': 'bar, ...}}])""" ).format (
1624
1631
plotly_name = self .plotly_name , trace_types = trace_types_wrapped )
0 commit comments