Skip to content

Commit 354e291

Browse files
committed
Merge pull request #89 from plotly/sync_gref
sync graph ref commits of july 21
2 parents a7d8bd5 + 0cbe31e commit 354e291

File tree

3 files changed

+26
-25
lines changed

3 files changed

+26
-25
lines changed

plotly/graph_reference/graph_objs_meta.json

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@
139139
"stream": {
140140
"val_types": "dictionary-like",
141141
"required": false,
142-
"type": "plot_info",
142+
"type": "object",
143143
"description": "The stream dictionary-like object that initializes traces as writable-streams, for use with the real-time streaming API. Learn more here:\nhttps://plot.ly/python/streaming/"
144144
},
145145
"visible": {
@@ -237,7 +237,7 @@
237237
"stream": {
238238
"val_types": "dictionary-like",
239239
"required": false,
240-
"type": "plot_info",
240+
"type": "object",
241241
"description": "The stream dictionary-like object that initializes traces as writable-streams, for use with the real-time streaming API. Learn more here:\nhttps://plot.ly/python/streaming/"
242242
},
243243
"visible": {
@@ -398,7 +398,7 @@
398398
"stream": {
399399
"val_types": "dictionary-like",
400400
"required": false,
401-
"type": "plot_info",
401+
"type": "object",
402402
"description": "The stream dictionary-like object that initializes traces as writable-streams, for use with the real-time streaming API. Learn more here:\nhttps://plot.ly/python/streaming/"
403403
},
404404
"visible": {
@@ -539,7 +539,7 @@
539539
"stream": {
540540
"val_types": "dictionary-like",
541541
"required": false,
542-
"type": "plot_info",
542+
"type": "object",
543543
"description": "The stream dictionary-like object that initializes traces as writable-streams, for use with the real-time streaming API. Learn more here:\nhttps://plot.ly/python/streaming/"
544544
},
545545
"visible": {
@@ -675,7 +675,7 @@
675675
"stream": {
676676
"val_types": "dictionary-like",
677677
"required": false,
678-
"type": "plot_info",
678+
"type": "object",
679679
"description": "The stream dictionary-like object that initializes traces as writable-streams, for use with the real-time streaming API. Learn more here:\nhttps://plot.ly/python/streaming/"
680680
},
681681
"visible": {
@@ -870,7 +870,7 @@
870870
"stream": {
871871
"val_types": "dictionary-like",
872872
"required": false,
873-
"type": "plot_info",
873+
"type": "object",
874874
"description": "The stream dictionary-like object that initializes traces as writable-streams, for use with the real-time streaming API. Learn more here:\nhttps://plot.ly/python/streaming/"
875875
},
876876
"visible": {
@@ -1081,7 +1081,7 @@
10811081
"stream": {
10821082
"val_types": "dictionary-like",
10831083
"required": false,
1084-
"type": "plot_info",
1084+
"type": "object",
10851085
"description": "The stream dictionary-like object that initializes traces as writable-streams, for use with the real-time streaming API. Learn more here:\nhttps://plot.ly/python/streaming/"
10861086
},
10871087
"visible": {
@@ -1271,7 +1271,7 @@
12711271
"stream": {
12721272
"val_types": "dictionary-like",
12731273
"required": false,
1274-
"type": "plot_info",
1274+
"type": "object",
12751275
"description": "The stream dictionary-like object that initializes traces as writable-streams, for use with the real-time streaming API. Learn more here:\nhttps://plot.ly/python/streaming/"
12761276
},
12771277
"visible": {
@@ -1324,7 +1324,7 @@
13241324
"stream": {
13251325
"val_types": "dictionary-like",
13261326
"required": false,
1327-
"type": "plot_info",
1327+
"type": "object",
13281328
"description": "The stream dictionary-like object that initializes traces as writable-streams, for use with the real-time streaming API. Learn more here:\nhttps://plot.ly/python/streaming/"
13291329
},
13301330
"visible": {
@@ -1835,9 +1835,9 @@
18351835
"description": "The x-axis title."
18361836
},
18371837
"titlefont": {
1838-
"val_types": "string",
1838+
"val_types": "dictionary-like",
18391839
"required": false,
1840-
"type": "style",
1840+
"type": "object",
18411841
"description": "A dictionary-like object describing the font settings of the x-axis title."
18421842
},
18431843
"range": {
@@ -2089,9 +2089,9 @@
20892089
"description": "The y-axis title."
20902090
},
20912091
"titlefont": {
2092-
"val_types": "string",
2092+
"val_types": "dictionary-like",
20932093
"required": false,
2094-
"type": "style",
2094+
"type": "object",
20952095
"description": "A dictionary-like object describing the font settings of the y-axis title."
20962096
},
20972097
"range": {
@@ -2589,9 +2589,9 @@
25892589
"description": "Location of colorbar title with respect to the colorbar."
25902590
},
25912591
"titlefont": {
2592-
"val_types": "string",
2592+
"val_types": "dictionary-like",
25932593
"required": false,
2594-
"type": "style",
2594+
"type": "object",
25952595
"description": "A dictionary-like object describing the font settings of the colorbar title."
25962596
},
25972597
"thickness": {
@@ -2979,9 +2979,9 @@
29792979
"description": "The title of the figure."
29802980
},
29812981
"titlefont": {
2982-
"val_types": "string",
2982+
"val_types": "dictionary-like",
29832983
"required": false,
2984-
"type": "style",
2984+
"type": "object",
29852985
"description": "A dictionary-like object describing the font settings of the figure's title."
29862986
},
29872987
"font": {
@@ -3033,7 +3033,7 @@
30333033
"description": "A dictionary-like object containing the legend parameters for this figure."
30343034
},
30353035
"annotations": {
3036-
"val_types": "dictionary-like",
3036+
"val_types": "array-like of one or several dictionaries",
30373037
"required": false,
30383038
"type": "object",
30393039
"description": "A list-like object that contains one or multiple annotation dictionaries."
@@ -3145,7 +3145,7 @@
31453145
},
31463146
"figure": {
31473147
"data": {
3148-
"val_types": "dictionary-like",
3148+
"val_types": "array-like of one or several dictionaries",
31493149
"required": false,
31503150
"type": "object",
31513151
"description": "A list-like array of the data trace(s) that is/are to be visualized."

plotly/graph_reference/graph_objs_meta.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ def _number(lt=None, le=None, gt=None, ge=None, list=False):
9393
color_array="array-like of string describing color",
9494
matrix="matrix-like: list of lists, numpy.matrix",
9595
object="dictionary-like",
96+
object_list="array-like of one or several dictionaries",
9697
)
9798

9899
### @required_cond@ - Inventory of shortcuts for conditionally required keys
@@ -580,7 +581,7 @@ def make_font(obj):
580581
# @stream@
581582
drop_stream=dict(
582583
required=False,
583-
type='plot_info',
584+
type='object',
584585
val_types=val_types['object'],
585586
description="The stream dictionary-like object that initializes traces as "
586587
"writable-streams, for use with the real-time streaming "
@@ -1066,8 +1067,8 @@ def make_title(obj, x_or_y=False):
10661067
# @titlefont@
10671068
def make_titlefont(obj, x_or_y=False):
10681069
_required=False
1069-
_type='style'
1070-
_val_types=val_types['string']
1070+
_type='object'
1071+
_val_types=val_types['object']
10711072
_description=dict(
10721073
axis="A dictionary-like object describing the font "
10731074
"settings of the {S}-axis title.".format(S=x_or_y),
@@ -2949,7 +2950,7 @@ def meta_axis(x_or_y):
29492950
('annotations', dict(
29502951
required=False,
29512952
type='object',
2952-
val_types=val_types['object'],
2953+
val_types=val_types['object_list'],
29532954
description="A list-like object that contains one or multiple "
29542955
"annotation dictionaries."
29552956
)),
@@ -3125,7 +3126,7 @@ def meta_axis(x_or_y):
31253126
('data', dict(
31263127
required=False,
31273128
type='object',
3128-
val_types=val_types['object'],
3129+
val_types=val_types['object_list'],
31293130
description="A list-like array of the data trace(s) that is/are "
31303131
"to be visualized."
31313132
)),

submodules/graph_reference

Submodule graph_reference updated from 62f24ff to 200abcc

0 commit comments

Comments
 (0)