@@ -89,18 +89,18 @@ def __init__(self, data=None, layout=None,
89
89
frames=None, skip_invalid=False, **kwargs):
90
90
\" \" \"
91
91
Create a new :class:{ fig_classname } instance
92
-
92
+
93
93
Parameters
94
94
----------
95
95
data
96
96
{ data_description }
97
-
97
+
98
98
layout
99
99
{ layout_description }
100
-
100
+
101
101
frames
102
102
{ frames_description }
103
-
103
+
104
104
skip_invalid: bool
105
105
If True, invalid properties in the figure specification will be
106
106
skipped silently. If False (default) invalid properties in the
@@ -233,8 +233,8 @@ def add_{trace_node.plotly_name}(self"""
233
233
* If False, only select yaxis objects associated with the primary
234
234
y-axis of the subplot.
235
235
* If None (the default), do not filter yaxis objects based on
236
- a secondary y-axis condition.
237
-
236
+ a secondary y-axis condition.
237
+
238
238
To select yaxis objects by secondary y-axis, the Figure must
239
239
have been created using plotly.subplots.make_subplots. See
240
240
the docstring for the specs argument to make_subplots for more
@@ -287,7 +287,7 @@ def for_each_{singular_name}(
287
287
\" \" \"
288
288
Apply a function to all { singular_name } objects that satisfy the
289
289
specified selection criteria
290
-
290
+
291
291
Parameters
292
292
----------
293
293
fn:
@@ -329,7 +329,7 @@ def update_{plural_name}(
329
329
\" \" \"
330
330
Perform a property update operation on all { singular_name } objects
331
331
that satisfy the specified selection criteria
332
-
332
+
333
333
Parameters
334
334
----------
335
335
patch: dict
@@ -395,15 +395,17 @@ def select_{method_prefix}{plural_name}(
395
395
396
396
Parameters
397
397
----------
398
- selector: dict, function, or None (default None)
398
+ selector: dict, function, int, str, or None (default None)
399
399
Dict to use as selection criteria.
400
400
Annotations will be selected if they contain properties corresponding
401
401
to all of the dictionary's keys, with values that exactly match
402
402
the supplied values. If None (the default), all { plural_name } are
403
403
selected. If a function, it must be a function accepting a single
404
404
argument and returning a boolean. The function will be called on
405
405
each { singular_name } and those for which the function returned True
406
- will be in the selection.
406
+ will be in the selection. If an int N, the Nth { singular_name } matching row
407
+ and col will be selected (N can be negative). If a string S, the selector
408
+ is equivalent to dict(type=S).
407
409
row, col: int or None (default None)
408
410
Subplot row and column index of { plural_name } to select.
409
411
To select { plural_name } by row and column, the Figure must have been
@@ -443,15 +445,17 @@ def for_each_{method_prefix}{singular_name}(
443
445
----------
444
446
fn:
445
447
Function that inputs a single { singular_name } object.
446
- selector: dict, function, or None (default None)
448
+ selector: dict, function, int, str or None (default None)
447
449
Dict to use as selection criteria.
448
450
Traces will be selected if they contain properties corresponding
449
451
to all of the dictionary's keys, with values that exactly match
450
452
the supplied values. If None (the default), all { plural_name } are
451
453
selected. If a function, it must be a function accepting a single
452
454
argument and returning a boolean. The function will be called on
453
455
each { singular_name } and those for which the function returned True
454
- will be in the selection.
456
+ will be in the selection. If an int N, the Nth { singular_name } matching row
457
+ and col will be selected (N can be negative). If a string S, the selector
458
+ is equivalent to dict(type=S).
455
459
row, col: int or None (default None)
456
460
Subplot row and column index of { plural_name } to select.
457
461
To select { plural_name } by row and column, the Figure must have been
@@ -504,15 +508,17 @@ def update_{method_prefix}{plural_name}(
504
508
patch: dict or None (default None)
505
509
Dictionary of property updates to be applied to all { plural_name } that
506
510
satisfy the selection criteria.
507
- selector: dict, function, or None (default None)
511
+ selector: dict, function, int, str or None (default None)
508
512
Dict to use as selection criteria.
509
513
Traces will be selected if they contain properties corresponding
510
514
to all of the dictionary's keys, with values that exactly match
511
515
the supplied values. If None (the default), all { plural_name } are
512
516
selected. If a function, it must be a function accepting a single
513
517
argument and returning a boolean. The function will be called on
514
518
each { singular_name } and those for which the function returned True
515
- will be in the selection.
519
+ will be in the selection. If an int N, the Nth { singular_name } matching row
520
+ and col will be selected (N can be negative). If a string S, the selector
521
+ is equivalent to dict(type=S).
516
522
row, col: int or None (default None)
517
523
Subplot row and column index of { plural_name } to select.
518
524
To select { plural_name } by row and column, the Figure must have been
0 commit comments