Search is not available for this dataset
identifier stringlengths 1 155 | parameters stringlengths 2 6.09k | docstring stringlengths 11 63.4k | docstring_summary stringlengths 0 63.4k | function stringlengths 29 99.8k | function_tokens list | start_point list | end_point list | language stringclasses 1
value | docstring_language stringlengths 2 7 | docstring_language_predictions stringlengths 18 23 | is_langid_reliable stringclasses 2
values |
|---|---|---|---|---|---|---|---|---|---|---|---|
Stream.maxpoints | (self) |
Sets the maximum number of points to keep on the plots from an
incoming stream. If `maxpoints` is set to 50, only the newest
50 points will be displayed on the plot.
The 'maxpoints' property is a number and may be specified as:
- An int or float in the interval [0, 10000]... |
Sets the maximum number of points to keep on the plots from an
incoming stream. If `maxpoints` is set to 50, only the newest
50 points will be displayed on the plot.
The 'maxpoints' property is a number and may be specified as:
- An int or float in the interval [0, 10000] | def maxpoints(self):
"""
Sets the maximum number of points to keep on the plots from an
incoming stream. If `maxpoints` is set to 50, only the newest
50 points will be displayed on the plot.
The 'maxpoints' property is a number and may be specified as:
- An int or ... | [
"def",
"maxpoints",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"maxpoints\"",
"]"
] | [
15,
4
] | [
28,
32
] | python | en | ['en', 'error', 'th'] | False |
Stream.token | (self) |
The stream id number links a data trace on a plot with a
stream. See https://chart-studio.plotly.com/settings for more
details.
The 'token' property is a string and must be specified as:
- A non-empty string
Returns
-------
str
|
The stream id number links a data trace on a plot with a
stream. See https://chart-studio.plotly.com/settings for more
details.
The 'token' property is a string and must be specified as:
- A non-empty string | def token(self):
"""
The stream id number links a data trace on a plot with a
stream. See https://chart-studio.plotly.com/settings for more
details.
The 'token' property is a string and must be specified as:
- A non-empty string
Returns
-------
... | [
"def",
"token",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"token\"",
"]"
] | [
37,
4
] | [
50,
28
] | python | en | ['en', 'error', 'th'] | False |
Stream.__init__ | (self, arg=None, maxpoints=None, token=None, **kwargs) |
Construct a new Stream object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.contourcarpet.Stream`
maxpoints
Sets the maximum number of points to k... |
Construct a new Stream object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.contourcarpet.Stream`
maxpoints
Sets the maximum number of points to k... | def __init__(self, arg=None, maxpoints=None, token=None, **kwargs):
"""
Construct a new Stream object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.contourcarp... | [
"def",
"__init__",
"(",
"self",
",",
"arg",
"=",
"None",
",",
"maxpoints",
"=",
"None",
",",
"token",
"=",
"None",
",",
"*",
"*",
"kwargs",
")",
":",
"super",
"(",
"Stream",
",",
"self",
")",
".",
"__init__",
"(",
"\"stream\"",
")",
"if",
"\"_paren... | [
72,
4
] | [
140,
34
] | python | en | ['en', 'error', 'th'] | False |
check_bar_match | (old_bar, new_bar) | Check if two bars belong in the same collection (bar chart).
Positional arguments:
old_bar -- a previously sorted bar dictionary.
new_bar -- a new bar dictionary that needs to be sorted.
| Check if two bars belong in the same collection (bar chart). | def check_bar_match(old_bar, new_bar):
"""Check if two bars belong in the same collection (bar chart).
Positional arguments:
old_bar -- a previously sorted bar dictionary.
new_bar -- a new bar dictionary that needs to be sorted.
"""
tests = []
tests += (new_bar["orientation"] == old_bar["o... | [
"def",
"check_bar_match",
"(",
"old_bar",
",",
"new_bar",
")",
":",
"tests",
"=",
"[",
"]",
"tests",
"+=",
"(",
"new_bar",
"[",
"\"orientation\"",
"]",
"==",
"old_bar",
"[",
"\"orientation\"",
"]",
",",
")",
"tests",
"+=",
"(",
"new_bar",
"[",
"\"facecol... | [
13,
0
] | [
37,
20
] | python | en | ['en', 'en', 'en'] | True |
convert_dash | (mpl_dash) | Convert mpl line symbol to plotly line symbol and return symbol. | Convert mpl line symbol to plotly line symbol and return symbol. | def convert_dash(mpl_dash):
"""Convert mpl line symbol to plotly line symbol and return symbol."""
if mpl_dash in DASH_MAP:
return DASH_MAP[mpl_dash]
else:
dash_array = mpl_dash.split(",")
if len(dash_array) < 2:
return "solid"
# Catch the exception where the of... | [
"def",
"convert_dash",
"(",
"mpl_dash",
")",
":",
"if",
"mpl_dash",
"in",
"DASH_MAP",
":",
"return",
"DASH_MAP",
"[",
"mpl_dash",
"]",
"else",
":",
"dash_array",
"=",
"mpl_dash",
".",
"split",
"(",
"\",\"",
")",
"if",
"len",
"(",
"dash_array",
")",
"<",
... | [
55,
0
] | [
82,
21
] | python | en | ['en', 'ja', 'en'] | True |
convert_symbol | (mpl_symbol) | Convert mpl marker symbol to plotly symbol and return symbol. | Convert mpl marker symbol to plotly symbol and return symbol. | def convert_symbol(mpl_symbol):
"""Convert mpl marker symbol to plotly symbol and return symbol."""
if isinstance(mpl_symbol, list):
symbol = list()
for s in mpl_symbol:
symbol += [convert_symbol(s)]
return symbol
elif mpl_symbol in SYMBOL_MAP:
return SYMBOL_MAP[m... | [
"def",
"convert_symbol",
"(",
"mpl_symbol",
")",
":",
"if",
"isinstance",
"(",
"mpl_symbol",
",",
"list",
")",
":",
"symbol",
"=",
"list",
"(",
")",
"for",
"s",
"in",
"mpl_symbol",
":",
"symbol",
"+=",
"[",
"convert_symbol",
"(",
"s",
")",
"]",
"return... | [
94,
0
] | [
104,
23
] | python | en | ['en', 'sv', 'en'] | True |
hex_to_rgb | (value) |
Change a hex color to an rgb tuple
:param (str|unicode) value: The hex string we want to convert.
:return: (int, int, int) The red, green, blue int-tuple.
Example:
'#FFFFFF' --> (255, 255, 255)
|
Change a hex color to an rgb tuple | def hex_to_rgb(value):
"""
Change a hex color to an rgb tuple
:param (str|unicode) value: The hex string we want to convert.
:return: (int, int, int) The red, green, blue int-tuple.
Example:
'#FFFFFF' --> (255, 255, 255)
"""
value = value.lstrip("#")
lv = len(value)
retur... | [
"def",
"hex_to_rgb",
"(",
"value",
")",
":",
"value",
"=",
"value",
".",
"lstrip",
"(",
"\"#\"",
")",
"lv",
"=",
"len",
"(",
"value",
")",
"return",
"tuple",
"(",
"int",
"(",
"value",
"[",
"i",
":",
"i",
"+",
"lv",
"//",
"3",
"]",
",",
"16",
... | [
107,
0
] | [
121,
80
] | python | en | ['en', 'error', 'th'] | False |
merge_color_and_opacity | (color, opacity) |
Merge hex color with an alpha (opacity) to get an rgba tuple.
:param (str|unicode) color: A hex color string.
:param (float|int) opacity: A value [0, 1] for the 'a' in 'rgba'.
:return: (int, int, int, float) The rgba color and alpha tuple.
|
Merge hex color with an alpha (opacity) to get an rgba tuple. | def merge_color_and_opacity(color, opacity):
"""
Merge hex color with an alpha (opacity) to get an rgba tuple.
:param (str|unicode) color: A hex color string.
:param (float|int) opacity: A value [0, 1] for the 'a' in 'rgba'.
:return: (int, int, int, float) The rgba color and alpha tuple.
"""
... | [
"def",
"merge_color_and_opacity",
"(",
"color",
",",
"opacity",
")",
":",
"if",
"color",
"is",
"None",
":",
"# None can be used as a placeholder, just bail.",
"return",
"None",
"rgb_tup",
"=",
"hex_to_rgb",
"(",
"color",
")",
"if",
"opacity",
"is",
"None",
":",
... | [
124,
0
] | [
141,
37
] | python | en | ['en', 'error', 'th'] | False |
convert_va | (mpl_va) | Convert mpl vertical alignment word to equivalent HTML word.
Text alignment specifiers from mpl differ very slightly from those used
in HTML. See the VA_MAP for more details.
Positional arguments:
mpl_va -- vertical mpl text alignment spec.
| Convert mpl vertical alignment word to equivalent HTML word. | def convert_va(mpl_va):
"""Convert mpl vertical alignment word to equivalent HTML word.
Text alignment specifiers from mpl differ very slightly from those used
in HTML. See the VA_MAP for more details.
Positional arguments:
mpl_va -- vertical mpl text alignment spec.
"""
if mpl_va in VA_M... | [
"def",
"convert_va",
"(",
"mpl_va",
")",
":",
"if",
"mpl_va",
"in",
"VA_MAP",
":",
"return",
"VA_MAP",
"[",
"mpl_va",
"]",
"else",
":",
"return",
"None"
] | [
144,
0
] | [
157,
19
] | python | en | ['en', 'en', 'en'] | True |
convert_x_domain | (mpl_plot_bounds, mpl_max_x_bounds) | Map x dimension of current plot to plotly's domain space.
The bbox used to locate an axes object in mpl differs from the
method used to locate axes in plotly. The mpl version locates each
axes in the figure so that axes in a single-plot figure might have
the bounds, [0.125, 0.125, 0.775, 0.775] (x0, y0... | Map x dimension of current plot to plotly's domain space. | def convert_x_domain(mpl_plot_bounds, mpl_max_x_bounds):
"""Map x dimension of current plot to plotly's domain space.
The bbox used to locate an axes object in mpl differs from the
method used to locate axes in plotly. The mpl version locates each
axes in the figure so that axes in a single-plot figure... | [
"def",
"convert_x_domain",
"(",
"mpl_plot_bounds",
",",
"mpl_max_x_bounds",
")",
":",
"mpl_x_dom",
"=",
"[",
"mpl_plot_bounds",
"[",
"0",
"]",
",",
"mpl_plot_bounds",
"[",
"0",
"]",
"+",
"mpl_plot_bounds",
"[",
"2",
"]",
"]",
"plotting_width",
"=",
"mpl_max_x_... | [
160,
0
] | [
188,
19
] | python | en | ['en', 'en', 'en'] | True |
convert_y_domain | (mpl_plot_bounds, mpl_max_y_bounds) | Map y dimension of current plot to plotly's domain space.
The bbox used to locate an axes object in mpl differs from the
method used to locate axes in plotly. The mpl version locates each
axes in the figure so that axes in a single-plot figure might have
the bounds, [0.125, 0.125, 0.775, 0.775] (x0, y0... | Map y dimension of current plot to plotly's domain space. | def convert_y_domain(mpl_plot_bounds, mpl_max_y_bounds):
"""Map y dimension of current plot to plotly's domain space.
The bbox used to locate an axes object in mpl differs from the
method used to locate axes in plotly. The mpl version locates each
axes in the figure so that axes in a single-plot figure... | [
"def",
"convert_y_domain",
"(",
"mpl_plot_bounds",
",",
"mpl_max_y_bounds",
")",
":",
"mpl_y_dom",
"=",
"[",
"mpl_plot_bounds",
"[",
"1",
"]",
",",
"mpl_plot_bounds",
"[",
"1",
"]",
"+",
"mpl_plot_bounds",
"[",
"3",
"]",
"]",
"plotting_height",
"=",
"mpl_max_y... | [
191,
0
] | [
219,
19
] | python | en | ['en', 'en', 'en'] | True |
display_to_paper | (x, y, layout) | Convert mpl display coordinates to plotly paper coordinates.
Plotly references object positions with an (x, y) coordinate pair in either
'data' or 'paper' coordinates which reference actual data in a plot or
the entire plotly axes space where the bottom-left of the bottom-left
plot has the location (x,... | Convert mpl display coordinates to plotly paper coordinates. | def display_to_paper(x, y, layout):
"""Convert mpl display coordinates to plotly paper coordinates.
Plotly references object positions with an (x, y) coordinate pair in either
'data' or 'paper' coordinates which reference actual data in a plot or
the entire plotly axes space where the bottom-left of th... | [
"def",
"display_to_paper",
"(",
"x",
",",
"y",
",",
"layout",
")",
":",
"num_x",
"=",
"x",
"-",
"layout",
"[",
"\"margin\"",
"]",
"[",
"\"l\"",
"]",
"den_x",
"=",
"layout",
"[",
"\"width\"",
"]",
"-",
"(",
"layout",
"[",
"\"margin\"",
"]",
"[",
"\"... | [
222,
0
] | [
240,
39
] | python | en | ['en', 'ca', 'en'] | True |
get_axes_bounds | (fig) | Return the entire axes space for figure.
An axes object in mpl is specified by its relation to the figure where
(0,0) corresponds to the bottom-left part of the figure and (1,1)
corresponds to the top-right. Margins exist in matplotlib because axes
objects normally don't go to the edges of the figure.
... | Return the entire axes space for figure. | def get_axes_bounds(fig):
"""Return the entire axes space for figure.
An axes object in mpl is specified by its relation to the figure where
(0,0) corresponds to the bottom-left part of the figure and (1,1)
corresponds to the top-right. Margins exist in matplotlib because axes
objects normally don'... | [
"def",
"get_axes_bounds",
"(",
"fig",
")",
":",
"x_min",
",",
"x_max",
",",
"y_min",
",",
"y_max",
"=",
"[",
"]",
",",
"[",
"]",
",",
"[",
"]",
",",
"[",
"]",
"for",
"axes_obj",
"in",
"fig",
".",
"get_axes",
"(",
")",
":",
"bounds",
"=",
"axes_... | [
243,
0
] | [
265,
41
] | python | en | ['en', 'en', 'en'] | True |
get_rect_xmin | (data) | Find minimum x value from four (x,y) vertices. | Find minimum x value from four (x,y) vertices. | def get_rect_xmin(data):
"""Find minimum x value from four (x,y) vertices."""
return min(data[0][0], data[1][0], data[2][0], data[3][0]) | [
"def",
"get_rect_xmin",
"(",
"data",
")",
":",
"return",
"min",
"(",
"data",
"[",
"0",
"]",
"[",
"0",
"]",
",",
"data",
"[",
"1",
"]",
"[",
"0",
"]",
",",
"data",
"[",
"2",
"]",
"[",
"0",
"]",
",",
"data",
"[",
"3",
"]",
"[",
"0",
"]",
... | [
343,
0
] | [
345,
62
] | python | en | ['en', 'en', 'en'] | True |
get_rect_xmax | (data) | Find maximum x value from four (x,y) vertices. | Find maximum x value from four (x,y) vertices. | def get_rect_xmax(data):
"""Find maximum x value from four (x,y) vertices."""
return max(data[0][0], data[1][0], data[2][0], data[3][0]) | [
"def",
"get_rect_xmax",
"(",
"data",
")",
":",
"return",
"max",
"(",
"data",
"[",
"0",
"]",
"[",
"0",
"]",
",",
"data",
"[",
"1",
"]",
"[",
"0",
"]",
",",
"data",
"[",
"2",
"]",
"[",
"0",
"]",
",",
"data",
"[",
"3",
"]",
"[",
"0",
"]",
... | [
348,
0
] | [
350,
62
] | python | en | ['en', 'en', 'en'] | True |
get_rect_ymin | (data) | Find minimum y value from four (x,y) vertices. | Find minimum y value from four (x,y) vertices. | def get_rect_ymin(data):
"""Find minimum y value from four (x,y) vertices."""
return min(data[0][1], data[1][1], data[2][1], data[3][1]) | [
"def",
"get_rect_ymin",
"(",
"data",
")",
":",
"return",
"min",
"(",
"data",
"[",
"0",
"]",
"[",
"1",
"]",
",",
"data",
"[",
"1",
"]",
"[",
"1",
"]",
",",
"data",
"[",
"2",
"]",
"[",
"1",
"]",
",",
"data",
"[",
"3",
"]",
"[",
"1",
"]",
... | [
353,
0
] | [
355,
62
] | python | en | ['en', 'en', 'en'] | True |
get_rect_ymax | (data) | Find maximum y value from four (x,y) vertices. | Find maximum y value from four (x,y) vertices. | def get_rect_ymax(data):
"""Find maximum y value from four (x,y) vertices."""
return max(data[0][1], data[1][1], data[2][1], data[3][1]) | [
"def",
"get_rect_ymax",
"(",
"data",
")",
":",
"return",
"max",
"(",
"data",
"[",
"0",
"]",
"[",
"1",
"]",
",",
"data",
"[",
"1",
"]",
"[",
"1",
"]",
",",
"data",
"[",
"2",
"]",
"[",
"1",
"]",
",",
"data",
"[",
"3",
"]",
"[",
"1",
"]",
... | [
358,
0
] | [
360,
62
] | python | en | ['en', 'en', 'en'] | True |
get_spine_visible | (ax, spine_key) | Return some spine parameters for the spine, `spine_key`. | Return some spine parameters for the spine, `spine_key`. | def get_spine_visible(ax, spine_key):
"""Return some spine parameters for the spine, `spine_key`."""
spine = ax.spines[spine_key]
ax_frame_on = ax.get_frame_on()
spine_frame_like = spine.is_frame_like()
if not spine.get_visible():
return False
elif not spine._edgecolor[-1]: # user's may... | [
"def",
"get_spine_visible",
"(",
"ax",
",",
"spine_key",
")",
":",
"spine",
"=",
"ax",
".",
"spines",
"[",
"spine_key",
"]",
"ax_frame_on",
"=",
"ax",
".",
"get_frame_on",
"(",
")",
"spine_frame_like",
"=",
"spine",
".",
"is_frame_like",
"(",
")",
"if",
... | [
363,
0
] | [
379,
20
] | python | en | ['en', 'en', 'en'] | True |
is_bar | (bar_containers, **props) | A test to decide whether a path is a bar from a vertical bar chart. | A test to decide whether a path is a bar from a vertical bar chart. | def is_bar(bar_containers, **props):
"""A test to decide whether a path is a bar from a vertical bar chart."""
# is this patch in a bar container?
for container in bar_containers:
if props["mplobj"] in container:
return True
return False | [
"def",
"is_bar",
"(",
"bar_containers",
",",
"*",
"*",
"props",
")",
":",
"# is this patch in a bar container?",
"for",
"container",
"in",
"bar_containers",
":",
"if",
"props",
"[",
"\"mplobj\"",
"]",
"in",
"container",
":",
"return",
"True",
"return",
"False"
] | [
382,
0
] | [
389,
16
] | python | en | ['en', 'en', 'en'] | True |
make_bar | (**props) | Make an intermediate bar dictionary.
This creates a bar dictionary which aids in the comparison of new bars to
old bars from other bar chart (patch) collections. This is not the
dictionary that needs to get passed to plotly as a data dictionary. That
happens in PlotlyRenderer in that class's draw_bar m... | Make an intermediate bar dictionary. | def make_bar(**props):
"""Make an intermediate bar dictionary.
This creates a bar dictionary which aids in the comparison of new bars to
old bars from other bar chart (patch) collections. This is not the
dictionary that needs to get passed to plotly as a data dictionary. That
happens in PlotlyRende... | [
"def",
"make_bar",
"(",
"*",
"*",
"props",
")",
":",
"return",
"{",
"\"bar\"",
":",
"props",
"[",
"\"mplobj\"",
"]",
",",
"\"x0\"",
":",
"get_rect_xmin",
"(",
"props",
"[",
"\"data\"",
"]",
")",
",",
"\"y0\"",
":",
"get_rect_ymin",
"(",
"props",
"[",
... | [
392,
0
] | [
415,
5
] | python | en | ['en', 'ku', 'en'] | True |
prep_ticks | (ax, index, ax_type, props) | Prepare axis obj belonging to axes obj.
positional arguments:
ax - the mpl axes instance
index - the index of the axis in `props`
ax_type - 'x' or 'y' (for now)
props - an mplexporter poperties dictionary
| Prepare axis obj belonging to axes obj. | def prep_ticks(ax, index, ax_type, props):
"""Prepare axis obj belonging to axes obj.
positional arguments:
ax - the mpl axes instance
index - the index of the axis in `props`
ax_type - 'x' or 'y' (for now)
props - an mplexporter poperties dictionary
"""
axis_dict = dict()
if ax_ty... | [
"def",
"prep_ticks",
"(",
"ax",
",",
"index",
",",
"ax_type",
",",
"props",
")",
":",
"axis_dict",
"=",
"dict",
"(",
")",
"if",
"ax_type",
"==",
"\"x\"",
":",
"axis",
"=",
"ax",
".",
"get_xaxis",
"(",
")",
"elif",
"ax_type",
"==",
"\"y\"",
":",
"ax... | [
418,
0
] | [
504,
20
] | python | en | ['en', 'en', 'it'] | True |
mpl_dates_to_datestrings | (dates, mpl_formatter) | Convert matplotlib dates to iso-formatted-like time strings.
Plotly's accepted format: "YYYY-MM-DD HH:MM:SS" (e.g., 2001-01-01 00:00:00)
Info on mpl dates: http://matplotlib.org/api/dates_api.html
| Convert matplotlib dates to iso-formatted-like time strings. | def mpl_dates_to_datestrings(dates, mpl_formatter):
"""Convert matplotlib dates to iso-formatted-like time strings.
Plotly's accepted format: "YYYY-MM-DD HH:MM:SS" (e.g., 2001-01-01 00:00:00)
Info on mpl dates: http://matplotlib.org/api/dates_api.html
"""
_dates = dates
# this is a pandas da... | [
"def",
"mpl_dates_to_datestrings",
"(",
"dates",
",",
"mpl_formatter",
")",
":",
"_dates",
"=",
"dates",
"# this is a pandas datetime formatter, times show up in floating point days",
"# since the epoch (1970-01-01T00:00:00+00:00)",
"if",
"mpl_formatter",
"==",
"\"TimeSeries_DateForm... | [
529,
0
] | [
560,
22
] | python | en | ['en', 'en', 'en'] | True |
Image.layer | (self) |
Specifies whether images are drawn below or above traces. When
`xref` and `yref` are both set to `paper`, image is drawn below
the entire plot area.
The 'layer' property is an enumeration that may be specified as:
- One of the following enumeration values:
... |
Specifies whether images are drawn below or above traces. When
`xref` and `yref` are both set to `paper`, image is drawn below
the entire plot area.
The 'layer' property is an enumeration that may be specified as:
- One of the following enumeration values:
... | def layer(self):
"""
Specifies whether images are drawn below or above traces. When
`xref` and `yref` are both set to `paper`, image is drawn below
the entire plot area.
The 'layer' property is an enumeration that may be specified as:
- One of the following enumera... | [
"def",
"layer",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"layer\"",
"]"
] | [
31,
4
] | [
45,
28
] | python | en | ['en', 'error', 'th'] | False |
Image.name | (self) |
When used in a template, named items are created in the output
figure in addition to any items the figure already has in this
array. You can modify these items in the output figure by
making your own item with `templateitemname` matching this
`name` alongside your modifications ... |
When used in a template, named items are created in the output
figure in addition to any items the figure already has in this
array. You can modify these items in the output figure by
making your own item with `templateitemname` matching this
`name` alongside your modifications ... | def name(self):
"""
When used in a template, named items are created in the output
figure in addition to any items the figure already has in this
array. You can modify these items in the output figure by
making your own item with `templateitemname` matching this
`name` al... | [
"def",
"name",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"name\"",
"]"
] | [
54,
4
] | [
72,
27
] | python | en | ['en', 'error', 'th'] | False |
Image.opacity | (self) |
Sets the opacity of the image.
The 'opacity' property is a number and may be specified as:
- An int or float in the interval [0, 1]
Returns
-------
int|float
|
Sets the opacity of the image.
The 'opacity' property is a number and may be specified as:
- An int or float in the interval [0, 1] | def opacity(self):
"""
Sets the opacity of the image.
The 'opacity' property is a number and may be specified as:
- An int or float in the interval [0, 1]
Returns
-------
int|float
"""
return self["opacity"] | [
"def",
"opacity",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"opacity\"",
"]"
] | [
81,
4
] | [
92,
30
] | python | en | ['en', 'error', 'th'] | False |
Image.sizex | (self) |
Sets the image container size horizontally. The image will be
sized based on the `position` value. When `xref` is set to
`paper`, units are sized relative to the plot width.
The 'sizex' property is a number and may be specified as:
- An int or float
Returns
... |
Sets the image container size horizontally. The image will be
sized based on the `position` value. When `xref` is set to
`paper`, units are sized relative to the plot width.
The 'sizex' property is a number and may be specified as:
- An int or float | def sizex(self):
"""
Sets the image container size horizontally. The image will be
sized based on the `position` value. When `xref` is set to
`paper`, units are sized relative to the plot width.
The 'sizex' property is a number and may be specified as:
- An int or ... | [
"def",
"sizex",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"sizex\"",
"]"
] | [
101,
4
] | [
114,
28
] | python | en | ['en', 'error', 'th'] | False |
Image.sizey | (self) |
Sets the image container size vertically. The image will be
sized based on the `position` value. When `yref` is set to
`paper`, units are sized relative to the plot height.
The 'sizey' property is a number and may be specified as:
- An int or float
Returns
... |
Sets the image container size vertically. The image will be
sized based on the `position` value. When `yref` is set to
`paper`, units are sized relative to the plot height.
The 'sizey' property is a number and may be specified as:
- An int or float | def sizey(self):
"""
Sets the image container size vertically. The image will be
sized based on the `position` value. When `yref` is set to
`paper`, units are sized relative to the plot height.
The 'sizey' property is a number and may be specified as:
- An int or f... | [
"def",
"sizey",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"sizey\"",
"]"
] | [
123,
4
] | [
136,
28
] | python | en | ['en', 'error', 'th'] | False |
Image.sizing | (self) |
Specifies which dimension of the image to constrain.
The 'sizing' property is an enumeration that may be specified as:
- One of the following enumeration values:
['fill', 'contain', 'stretch']
Returns
-------
Any
|
Specifies which dimension of the image to constrain.
The 'sizing' property is an enumeration that may be specified as:
- One of the following enumeration values:
['fill', 'contain', 'stretch'] | def sizing(self):
"""
Specifies which dimension of the image to constrain.
The 'sizing' property is an enumeration that may be specified as:
- One of the following enumeration values:
['fill', 'contain', 'stretch']
Returns
-------
Any
... | [
"def",
"sizing",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"sizing\"",
"]"
] | [
145,
4
] | [
157,
29
] | python | en | ['en', 'error', 'th'] | False |
Image.source | (self) |
Specifies the URL of the image to be used. The URL must be
accessible from the domain where the plot code is run, and can
be either relative or absolute.
The 'source' property is an image URI that may be specified as:
- A remote image URI string
(e.g. 'http://... |
Specifies the URL of the image to be used. The URL must be
accessible from the domain where the plot code is run, and can
be either relative or absolute.
The 'source' property is an image URI that may be specified as:
- A remote image URI string
(e.g. 'http://... | def source(self):
"""
Specifies the URL of the image to be used. The URL must be
accessible from the domain where the plot code is run, and can
be either relative or absolute.
The 'source' property is an image URI that may be specified as:
- A remote image URI stri... | [
"def",
"source",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"source\"",
"]"
] | [
166,
4
] | [
185,
29
] | python | en | ['en', 'error', 'th'] | False |
Image.templateitemname | (self) |
Used to refer to a named item in this array in the template.
Named items from the template will be created even without a
matching item in the input figure, but you can modify one by
making an item with `templateitemname` matching its `name`,
alongside your modifications (includ... |
Used to refer to a named item in this array in the template.
Named items from the template will be created even without a
matching item in the input figure, but you can modify one by
making an item with `templateitemname` matching its `name`,
alongside your modifications (includ... | def templateitemname(self):
"""
Used to refer to a named item in this array in the template.
Named items from the template will be created even without a
matching item in the input figure, but you can modify one by
making an item with `templateitemname` matching its `name`,
... | [
"def",
"templateitemname",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"templateitemname\"",
"]"
] | [
194,
4
] | [
213,
39
] | python | en | ['en', 'error', 'th'] | False |
Image.visible | (self) |
Determines whether or not this image is visible.
The 'visible' property must be specified as a bool
(either True, or False)
Returns
-------
bool
|
Determines whether or not this image is visible.
The 'visible' property must be specified as a bool
(either True, or False) | def visible(self):
"""
Determines whether or not this image is visible.
The 'visible' property must be specified as a bool
(either True, or False)
Returns
-------
bool
"""
return self["visible"] | [
"def",
"visible",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"visible\"",
"]"
] | [
222,
4
] | [
233,
30
] | python | en | ['en', 'error', 'th'] | False |
Image.x | (self) |
Sets the image's x position. When `xref` is set to `paper`,
units are sized relative to the plot height. See `xref` for
more info
The 'x' property accepts values of any type
Returns
-------
Any
|
Sets the image's x position. When `xref` is set to `paper`,
units are sized relative to the plot height. See `xref` for
more info
The 'x' property accepts values of any type | def x(self):
"""
Sets the image's x position. When `xref` is set to `paper`,
units are sized relative to the plot height. See `xref` for
more info
The 'x' property accepts values of any type
Returns
-------
Any
"""
return self["x"] | [
"def",
"x",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"x\"",
"]"
] | [
242,
4
] | [
254,
24
] | python | en | ['en', 'error', 'th'] | False |
Image.xanchor | (self) |
Sets the anchor for the x position
The 'xanchor' property is an enumeration that may be specified as:
- One of the following enumeration values:
['left', 'center', 'right']
Returns
-------
Any
|
Sets the anchor for the x position
The 'xanchor' property is an enumeration that may be specified as:
- One of the following enumeration values:
['left', 'center', 'right'] | def xanchor(self):
"""
Sets the anchor for the x position
The 'xanchor' property is an enumeration that may be specified as:
- One of the following enumeration values:
['left', 'center', 'right']
Returns
-------
Any
"""
retu... | [
"def",
"xanchor",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"xanchor\"",
"]"
] | [
263,
4
] | [
275,
30
] | python | en | ['en', 'error', 'th'] | False |
Image.xref | (self) |
Sets the images's x coordinate axis. If set to a x axis id
(e.g. "x" or "x2"), the `x` position refers to an x data
coordinate If set to "paper", the `x` position refers to the
distance from the left of plot in normalized coordinates where
0 (1) corresponds to the left (right).
... |
Sets the images's x coordinate axis. If set to a x axis id
(e.g. "x" or "x2"), the `x` position refers to an x data
coordinate If set to "paper", the `x` position refers to the
distance from the left of plot in normalized coordinates where
0 (1) corresponds to the left (right).
... | def xref(self):
"""
Sets the images's x coordinate axis. If set to a x axis id
(e.g. "x" or "x2"), the `x` position refers to an x data
coordinate If set to "paper", the `x` position refers to the
distance from the left of plot in normalized coordinates where
0 (1) corres... | [
"def",
"xref",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"xref\"",
"]"
] | [
284,
4
] | [
302,
27
] | python | en | ['en', 'error', 'th'] | False |
Image.y | (self) |
Sets the image's y position. When `yref` is set to `paper`,
units are sized relative to the plot height. See `yref` for
more info
The 'y' property accepts values of any type
Returns
-------
Any
|
Sets the image's y position. When `yref` is set to `paper`,
units are sized relative to the plot height. See `yref` for
more info
The 'y' property accepts values of any type | def y(self):
"""
Sets the image's y position. When `yref` is set to `paper`,
units are sized relative to the plot height. See `yref` for
more info
The 'y' property accepts values of any type
Returns
-------
Any
"""
return self["y"] | [
"def",
"y",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"y\"",
"]"
] | [
311,
4
] | [
323,
24
] | python | en | ['en', 'error', 'th'] | False |
Image.yanchor | (self) |
Sets the anchor for the y position.
The 'yanchor' property is an enumeration that may be specified as:
- One of the following enumeration values:
['top', 'middle', 'bottom']
Returns
-------
Any
|
Sets the anchor for the y position.
The 'yanchor' property is an enumeration that may be specified as:
- One of the following enumeration values:
['top', 'middle', 'bottom'] | def yanchor(self):
"""
Sets the anchor for the y position.
The 'yanchor' property is an enumeration that may be specified as:
- One of the following enumeration values:
['top', 'middle', 'bottom']
Returns
-------
Any
"""
ret... | [
"def",
"yanchor",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"yanchor\"",
"]"
] | [
332,
4
] | [
344,
30
] | python | en | ['en', 'error', 'th'] | False |
Image.yref | (self) |
Sets the images's y coordinate axis. If set to a y axis id
(e.g. "y" or "y2"), the `y` position refers to a y data
coordinate. If set to "paper", the `y` position refers to the
distance from the bottom of the plot in normalized coordinates
where 0 (1) corresponds to the bottom (... |
Sets the images's y coordinate axis. If set to a y axis id
(e.g. "y" or "y2"), the `y` position refers to a y data
coordinate. If set to "paper", the `y` position refers to the
distance from the bottom of the plot in normalized coordinates
where 0 (1) corresponds to the bottom (... | def yref(self):
"""
Sets the images's y coordinate axis. If set to a y axis id
(e.g. "y" or "y2"), the `y` position refers to a y data
coordinate. If set to "paper", the `y` position refers to the
distance from the bottom of the plot in normalized coordinates
where 0 (1) ... | [
"def",
"yref",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"yref\"",
"]"
] | [
353,
4
] | [
371,
27
] | python | en | ['en', 'error', 'th'] | False |
Image.__init__ | (
self,
arg=None,
layer=None,
name=None,
opacity=None,
sizex=None,
sizey=None,
sizing=None,
source=None,
templateitemname=None,
visible=None,
x=None,
xanchor=None,
xref=None,
y=None,
yanchor=N... |
Construct a new Image object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of :class:`plotly.graph_objs.layout.Image`
layer
Specifies whether images are drawn below or above
t... |
Construct a new Image object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of :class:`plotly.graph_objs.layout.Image`
layer
Specifies whether images are drawn below or above
t... | def __init__(
self,
arg=None,
layer=None,
name=None,
opacity=None,
sizex=None,
sizey=None,
sizing=None,
source=None,
templateitemname=None,
visible=None,
x=None,
xanchor=None,
xref=None,
y=None,
... | [
"def",
"__init__",
"(",
"self",
",",
"arg",
"=",
"None",
",",
"layer",
"=",
"None",
",",
"name",
"=",
"None",
",",
"opacity",
"=",
"None",
",",
"sizex",
"=",
"None",
",",
"sizey",
"=",
"None",
",",
"sizing",
"=",
"None",
",",
"source",
"=",
"None... | [
453,
4
] | [
651,
34
] | python | en | ['en', 'error', 'th'] | False |
FurthestPointSampling.forward | (ctx, points_xyz: torch.Tensor,
num_points: int) | forward.
Args:
points_xyz (Tensor): (B, N, 3) where N > num_points.
num_points (int): Number of points in the sampled set.
Returns:
Tensor: (B, num_points) indices of the sampled points.
| forward. | def forward(ctx, points_xyz: torch.Tensor,
num_points: int) -> torch.Tensor:
"""forward.
Args:
points_xyz (Tensor): (B, N, 3) where N > num_points.
num_points (int): Number of points in the sampled set.
Returns:
Tensor: (B, num_points) indic... | [
"def",
"forward",
"(",
"ctx",
",",
"points_xyz",
":",
"torch",
".",
"Tensor",
",",
"num_points",
":",
"int",
")",
"->",
"torch",
".",
"Tensor",
":",
"assert",
"points_xyz",
".",
"is_contiguous",
"(",
")",
"B",
",",
"N",
"=",
"points_xyz",
".",
"size",
... | [
14,
4
] | [
34,
21
] | python | en | ['en', 'cy', 'en'] | False |
FurthestPointSamplingWithDist.forward | (ctx, points_dist: torch.Tensor,
num_points: int) | forward.
Args:
points_dist (Tensor): (B, N, N) Distance between each point pair.
num_points (int): Number of points in the sampled set.
Returns:
Tensor: (B, num_points) indices of the sampled points.
| forward. | def forward(ctx, points_dist: torch.Tensor,
num_points: int) -> torch.Tensor:
"""forward.
Args:
points_dist (Tensor): (B, N, N) Distance between each point pair.
num_points (int): Number of points in the sampled set.
Returns:
Tensor: (B, num... | [
"def",
"forward",
"(",
"ctx",
",",
"points_dist",
":",
"torch",
".",
"Tensor",
",",
"num_points",
":",
"int",
")",
"->",
"torch",
".",
"Tensor",
":",
"assert",
"points_dist",
".",
"is_contiguous",
"(",
")",
"B",
",",
"N",
",",
"_",
"=",
"points_dist",
... | [
49,
4
] | [
69,
21
] | python | en | ['en', 'cy', 'en'] | False |
weighted_mean_of_monthly_data | (ds, freq='AS') | months should be weighted by the number of days | months should be weighted by the number of days | def weighted_mean_of_monthly_data(ds, freq='AS'):
'''months should be weighted by the number of days'''
dpm = dpm_from_time_var(ds['time'])
return (ds * dpm).mean('time') / dpm.sum('time') | [
"def",
"weighted_mean_of_monthly_data",
"(",
"ds",
",",
"freq",
"=",
"'AS'",
")",
":",
"dpm",
"=",
"dpm_from_time_var",
"(",
"ds",
"[",
"'time'",
"]",
")",
"return",
"(",
"ds",
"*",
"dpm",
")",
".",
"mean",
"(",
"'time'",
")",
"/",
"dpm",
".",
"sum",... | [
4,
0
] | [
7,
52
] | python | en | ['en', 'en', 'en'] | True |
MonitorHandler.__init__ | (self) |
Initialize the handler.
|
Initialize the handler.
| def __init__(self):
"""
Initialize the handler.
"""
self.savekey = "_monitorhandler_save"
self.monitors = defaultdict(lambda: defaultdict(dict)) | [
"def",
"__init__",
"(",
"self",
")",
":",
"self",
".",
"savekey",
"=",
"\"_monitorhandler_save\"",
"self",
".",
"monitors",
"=",
"defaultdict",
"(",
"lambda",
":",
"defaultdict",
"(",
"dict",
")",
")"
] | [
32,
4
] | [
37,
62
] | python | en | ['en', 'error', 'th'] | False |
MonitorHandler.save | (self) |
Store our monitors to the database. This is called
by the server process.
Since dbserialize can't handle defaultdicts, we convert to an
intermediary save format ((obj,fieldname, idstring, callback, kwargs), ...)
|
Store our monitors to the database. This is called
by the server process. | def save(self):
"""
Store our monitors to the database. This is called
by the server process.
Since dbserialize can't handle defaultdicts, we convert to an
intermediary save format ((obj,fieldname, idstring, callback, kwargs), ...)
"""
savedata = []
if s... | [
"def",
"save",
"(",
"self",
")",
":",
"savedata",
"=",
"[",
"]",
"if",
"self",
".",
"monitors",
":",
"for",
"obj",
"in",
"self",
".",
"monitors",
":",
"for",
"fieldname",
"in",
"self",
".",
"monitors",
"[",
"obj",
"]",
":",
"for",
"idstring",
",",
... | [
39,
4
] | [
56,
71
] | python | en | ['en', 'error', 'th'] | False |
MonitorHandler.restore | (self, server_reload=True) |
Restore our monitors after a reload. This is called
by the server process.
Args:
server_reload (bool, optional): If this is False, it means
the server went through a cold reboot and all
non-persistent tickers must be killed.
|
Restore our monitors after a reload. This is called
by the server process. | def restore(self, server_reload=True):
"""
Restore our monitors after a reload. This is called
by the server process.
Args:
server_reload (bool, optional): If this is False, it means
the server went through a cold reboot and all
non-persistent... | [
"def",
"restore",
"(",
"self",
",",
"server_reload",
"=",
"True",
")",
":",
"self",
".",
"monitors",
"=",
"defaultdict",
"(",
"lambda",
":",
"defaultdict",
"(",
"dict",
")",
")",
"restored_monitors",
"=",
"ServerConfig",
".",
"objects",
".",
"conf",
"(",
... | [
58,
4
] | [
90,
64
] | python | en | ['en', 'error', 'th'] | False |
MonitorHandler.at_update | (self, obj, fieldname) |
Called by the field as it saves.
|
Called by the field as it saves. | def at_update(self, obj, fieldname):
"""
Called by the field as it saves.
"""
to_delete = []
if obj in self.monitors and fieldname in self.monitors[obj]:
for idstring, (callback, persistent, kwargs) in self.monitors[obj][fieldname].iteritems():
try:
... | [
"def",
"at_update",
"(",
"self",
",",
"obj",
",",
"fieldname",
")",
":",
"to_delete",
"=",
"[",
"]",
"if",
"obj",
"in",
"self",
".",
"monitors",
"and",
"fieldname",
"in",
"self",
".",
"monitors",
"[",
"obj",
"]",
":",
"for",
"idstring",
",",
"(",
"... | [
92,
4
] | [
107,
55
] | python | en | ['en', 'error', 'th'] | False |
MonitorHandler.add | (self, obj, fieldname, callback, idstring="", persistent=False, **kwargs) |
Add monitoring to a given field or Attribute. A field must
be specified with the full db_* name or it will be assumed
to be an Attribute (so `db_key`, not just `key`).
Args:
obj (Typeclassed Entity): The entity on which to monitor a
field or Attribute.
... |
Add monitoring to a given field or Attribute. A field must
be specified with the full db_* name or it will be assumed
to be an Attribute (so `db_key`, not just `key`). | def add(self, obj, fieldname, callback, idstring="", persistent=False, **kwargs):
"""
Add monitoring to a given field or Attribute. A field must
be specified with the full db_* name or it will be assumed
to be an Attribute (so `db_key`, not just `key`).
Args:
obj (Ty... | [
"def",
"add",
"(",
"self",
",",
"obj",
",",
"fieldname",
",",
"callback",
",",
"idstring",
"=",
"\"\"",
",",
"persistent",
"=",
"False",
",",
"*",
"*",
"kwargs",
")",
":",
"if",
"not",
"fieldname",
".",
"startswith",
"(",
"\"db_\"",
")",
"or",
"not",... | [
109,
4
] | [
152,
84
] | python | en | ['en', 'error', 'th'] | False |
MonitorHandler.remove | (self, obj, fieldname, idstring="") |
Remove a monitor.
|
Remove a monitor.
| def remove(self, obj, fieldname, idstring=""):
"""
Remove a monitor.
"""
if not fieldname.startswith("db_") or not hasattr(obj, fieldname):
obj = obj.attributes.get(fieldname, return_obj=True)
if not obj:
return
fieldname = "db_value"
... | [
"def",
"remove",
"(",
"self",
",",
"obj",
",",
"fieldname",
",",
"idstring",
"=",
"\"\"",
")",
":",
"if",
"not",
"fieldname",
".",
"startswith",
"(",
"\"db_\"",
")",
"or",
"not",
"hasattr",
"(",
"obj",
",",
"fieldname",
")",
":",
"obj",
"=",
"obj",
... | [
154,
4
] | [
166,
55
] | python | en | ['en', 'error', 'th'] | False |
MonitorHandler.clear | (self) |
Delete all monitors.
|
Delete all monitors.
| def clear(self):
"""
Delete all monitors.
"""
self.monitors = defaultdict(lambda: defaultdict(dict)) | [
"def",
"clear",
"(",
"self",
")",
":",
"self",
".",
"monitors",
"=",
"defaultdict",
"(",
"lambda",
":",
"defaultdict",
"(",
"dict",
")",
")"
] | [
168,
4
] | [
172,
62
] | python | en | ['en', 'error', 'th'] | False |
MonitorHandler.all | (self) |
List all monitors.
Returns:
monitors (list): The handled monitors.
|
List all monitors. | def all(self):
"""
List all monitors.
Returns:
monitors (list): The handled monitors.
"""
output = []
for obj in self.monitors:
for fieldname in self.monitors[obj]:
for idstring, (callback, persistent, kwargs) in self.monitors[obj... | [
"def",
"all",
"(",
"self",
")",
":",
"output",
"=",
"[",
"]",
"for",
"obj",
"in",
"self",
".",
"monitors",
":",
"for",
"fieldname",
"in",
"self",
".",
"monitors",
"[",
"obj",
"]",
":",
"for",
"idstring",
",",
"(",
"callback",
",",
"persistent",
","... | [
174,
4
] | [
187,
21
] | python | en | ['en', 'error', 'th'] | False |
Conductor.__init__ | (self, context_builder: ContextBuilder) |
Initialize an instance of Conductor.
Args:
inbound_transports: Configuration for inbound transports
outbound_transports: Configuration for outbound transports
settings: Dictionary of various settings
|
Initialize an instance of Conductor. | def __init__(self, context_builder: ContextBuilder) -> None:
"""
Initialize an instance of Conductor.
Args:
inbound_transports: Configuration for inbound transports
outbound_transports: Configuration for outbound transports
settings: Dictionary of various set... | [
"def",
"__init__",
"(",
"self",
",",
"context_builder",
":",
"ContextBuilder",
")",
"->",
"None",
":",
"self",
".",
"admin_server",
"=",
"None",
"self",
".",
"context",
":",
"InjectionContext",
"=",
"None",
"self",
".",
"context_builder",
"=",
"context_builder... | [
43,
4
] | [
58,
72
] | python | en | ['en', 'error', 'th'] | False |
Conductor.setup | (self) | Initialize the global request context. | Initialize the global request context. | async def setup(self):
"""Initialize the global request context."""
context = await self.context_builder.build()
self.dispatcher = Dispatcher(context)
wire_format = await context.inject(BaseWireFormat, required=False)
if wire_format and hasattr(wire_format, "task_queue"):
... | [
"async",
"def",
"setup",
"(",
"self",
")",
":",
"context",
"=",
"await",
"self",
".",
"context_builder",
".",
"build",
"(",
")",
"self",
".",
"dispatcher",
"=",
"Dispatcher",
"(",
"context",
")",
"wire_format",
"=",
"await",
"context",
".",
"inject",
"("... | [
60,
4
] | [
131,
30
] | python | en | ['en', 'en', 'en'] | True |
Conductor.start | (self) | Start the agent. | Start the agent. | async def start(self) -> None:
"""Start the agent."""
context = self.context
# Configure the wallet
public_did = await wallet_config(context)
# Configure the ledger
await ledger_config(context, public_did)
# Start up transports
try:
await s... | [
"async",
"def",
"start",
"(",
"self",
")",
"->",
"None",
":",
"context",
"=",
"self",
".",
"context",
"# Configure the wallet",
"public_did",
"=",
"await",
"wallet_config",
"(",
"context",
")",
"# Configure the ledger",
"await",
"ledger_config",
"(",
"context",
... | [
133,
4
] | [
211,
61
] | python | en | ['en', 'en', 'en'] | True |
Conductor.stop | (self, timeout=1.0) | Stop the agent. | Stop the agent. | async def stop(self, timeout=1.0):
"""Stop the agent."""
shutdown = TaskQueue()
if self.admin_server:
shutdown.run(self.admin_server.stop())
if self.inbound_transport_manager:
shutdown.run(self.inbound_transport_manager.stop())
if self.outbound_transport_m... | [
"async",
"def",
"stop",
"(",
"self",
",",
"timeout",
"=",
"1.0",
")",
":",
"shutdown",
"=",
"TaskQueue",
"(",
")",
"if",
"self",
".",
"admin_server",
":",
"shutdown",
".",
"run",
"(",
"self",
".",
"admin_server",
".",
"stop",
"(",
")",
")",
"if",
"... | [
213,
4
] | [
222,
40
] | python | en | ['en', 'en', 'en'] | True |
Conductor.inbound_message_router | (
self, message: InboundMessage, can_respond: bool = False
) |
Route inbound messages.
Args:
message: The inbound message instance
can_respond: If the session supports return routing
|
Route inbound messages. | def inbound_message_router(
self, message: InboundMessage, can_respond: bool = False
):
"""
Route inbound messages.
Args:
message: The inbound message instance
can_respond: If the session supports return routing
"""
if message.receipt.direct... | [
"def",
"inbound_message_router",
"(",
"self",
",",
"message",
":",
"InboundMessage",
",",
"can_respond",
":",
"bool",
"=",
"False",
")",
":",
"if",
"message",
".",
"receipt",
".",
"direct_response_requested",
"and",
"not",
"can_respond",
":",
"LOGGER",
".",
"w... | [
224,
4
] | [
250,
9
] | python | en | ['en', 'error', 'th'] | False |
Conductor.dispatch_complete | (self, message: InboundMessage, completed: CompletedTask) | Handle completion of message dispatch. | Handle completion of message dispatch. | def dispatch_complete(self, message: InboundMessage, completed: CompletedTask):
"""Handle completion of message dispatch."""
if completed.exc_info:
LOGGER.exception(
"Exception in message handler:", exc_info=completed.exc_info
)
self.inbound_transport_mana... | [
"def",
"dispatch_complete",
"(",
"self",
",",
"message",
":",
"InboundMessage",
",",
"completed",
":",
"CompletedTask",
")",
":",
"if",
"completed",
".",
"exc_info",
":",
"LOGGER",
".",
"exception",
"(",
"\"Exception in message handler:\"",
",",
"exc_info",
"=",
... | [
252,
4
] | [
258,
76
] | python | en | ['en', 'en', 'en'] | True |
Conductor.get_stats | (self) | Get the current stats tracked by the conductor. | Get the current stats tracked by the conductor. | async def get_stats(self) -> dict:
"""Get the current stats tracked by the conductor."""
stats = {
"in_sessions": len(self.inbound_transport_manager.sessions),
"out_encode": 0,
"out_deliver": 0,
"task_active": self.dispatcher.task_queue.current_active,
... | [
"async",
"def",
"get_stats",
"(",
"self",
")",
"->",
"dict",
":",
"stats",
"=",
"{",
"\"in_sessions\"",
":",
"len",
"(",
"self",
".",
"inbound_transport_manager",
".",
"sessions",
")",
",",
"\"out_encode\"",
":",
"0",
",",
"\"out_deliver\"",
":",
"0",
",",... | [
260,
4
] | [
276,
20
] | python | en | ['en', 'en', 'en'] | True |
Conductor.outbound_message_router | (
self,
context: InjectionContext,
outbound: OutboundMessage,
inbound: InboundMessage = None,
) |
Route an outbound message.
Args:
context: The request context
message: An outbound message to be sent
inbound: The inbound message that produced this response, if available
|
Route an outbound message. | async def outbound_message_router(
self,
context: InjectionContext,
outbound: OutboundMessage,
inbound: InboundMessage = None,
) -> None:
"""
Route an outbound message.
Args:
context: The request context
message: An outbound message to... | [
"async",
"def",
"outbound_message_router",
"(",
"self",
",",
"context",
":",
"InjectionContext",
",",
"outbound",
":",
"OutboundMessage",
",",
"inbound",
":",
"InboundMessage",
"=",
"None",
",",
")",
"->",
"None",
":",
"if",
"not",
"outbound",
".",
"target",
... | [
278,
4
] | [
299,
61
] | python | en | ['en', 'error', 'th'] | False |
Conductor.handle_not_returned | (self, context: InjectionContext, outbound: OutboundMessage) | Handle a message that failed delivery via an inbound session. | Handle a message that failed delivery via an inbound session. | def handle_not_returned(self, context: InjectionContext, outbound: OutboundMessage):
"""Handle a message that failed delivery via an inbound session."""
self.dispatcher.run_task(self.queue_outbound(context, outbound)) | [
"def",
"handle_not_returned",
"(",
"self",
",",
"context",
":",
"InjectionContext",
",",
"outbound",
":",
"OutboundMessage",
")",
":",
"self",
".",
"dispatcher",
".",
"run_task",
"(",
"self",
".",
"queue_outbound",
"(",
"context",
",",
"outbound",
")",
")"
] | [
301,
4
] | [
303,
72
] | python | en | ['en', 'en', 'en'] | True |
Conductor.queue_outbound | (
self,
context: InjectionContext,
outbound: OutboundMessage,
inbound: InboundMessage = None,
) |
Queue an outbound message.
Args:
context: The request context
message: An outbound message to be sent
inbound: The inbound message that produced this response, if available
|
Queue an outbound message. | async def queue_outbound(
self,
context: InjectionContext,
outbound: OutboundMessage,
inbound: InboundMessage = None,
):
"""
Queue an outbound message.
Args:
context: The request context
message: An outbound message to be sent
... | [
"async",
"def",
"queue_outbound",
"(",
"self",
",",
"context",
":",
"InjectionContext",
",",
"outbound",
":",
"OutboundMessage",
",",
"inbound",
":",
"InboundMessage",
"=",
"None",
",",
")",
":",
"# populate connection target(s)",
"if",
"not",
"outbound",
".",
"... | [
305,
4
] | [
335,
56
] | python | en | ['en', 'error', 'th'] | False |
Conductor.handle_not_delivered | (
self, context: InjectionContext, outbound: OutboundMessage
) | Handle a message that failed delivery via outbound transports. | Handle a message that failed delivery via outbound transports. | def handle_not_delivered(
self, context: InjectionContext, outbound: OutboundMessage
):
"""Handle a message that failed delivery via outbound transports."""
self.inbound_transport_manager.return_undelivered(outbound) | [
"def",
"handle_not_delivered",
"(",
"self",
",",
"context",
":",
"InjectionContext",
",",
"outbound",
":",
"OutboundMessage",
")",
":",
"self",
".",
"inbound_transport_manager",
".",
"return_undelivered",
"(",
"outbound",
")"
] | [
337,
4
] | [
341,
67
] | python | en | ['en', 'en', 'en'] | True |
Conductor.webhook_router | (
self, topic: str, payload: dict, endpoint: str, retries: int = None
) |
Route a webhook through the outbound transport manager.
Args:
topic: The webhook topic
payload: The webhook payload
endpoint: The endpoint of the webhook target
retries: The number of retries
|
Route a webhook through the outbound transport manager. | def webhook_router(
self, topic: str, payload: dict, endpoint: str, retries: int = None
):
"""
Route a webhook through the outbound transport manager.
Args:
topic: The webhook topic
payload: The webhook payload
endpoint: The endpoint of the webhoo... | [
"def",
"webhook_router",
"(",
"self",
",",
"topic",
":",
"str",
",",
"payload",
":",
"dict",
",",
"endpoint",
":",
"str",
",",
"retries",
":",
"int",
"=",
"None",
")",
":",
"try",
":",
"self",
".",
"outbound_transport_manager",
".",
"enqueue_webhook",
"(... | [
343,
4
] | [
362,
13
] | python | en | ['en', 'error', 'th'] | False |
Stream.maxpoints | (self) |
Sets the maximum number of points to keep on the plots from an
incoming stream. If `maxpoints` is set to 50, only the newest
50 points will be displayed on the plot.
The 'maxpoints' property is a number and may be specified as:
- An int or float in the interval [0, 10000]... |
Sets the maximum number of points to keep on the plots from an
incoming stream. If `maxpoints` is set to 50, only the newest
50 points will be displayed on the plot.
The 'maxpoints' property is a number and may be specified as:
- An int or float in the interval [0, 10000] | def maxpoints(self):
"""
Sets the maximum number of points to keep on the plots from an
incoming stream. If `maxpoints` is set to 50, only the newest
50 points will be displayed on the plot.
The 'maxpoints' property is a number and may be specified as:
- An int or ... | [
"def",
"maxpoints",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"maxpoints\"",
"]"
] | [
15,
4
] | [
28,
32
] | python | en | ['en', 'error', 'th'] | False |
Stream.token | (self) |
The stream id number links a data trace on a plot with a
stream. See https://chart-studio.plotly.com/settings for more
details.
The 'token' property is a string and must be specified as:
- A non-empty string
Returns
-------
str
|
The stream id number links a data trace on a plot with a
stream. See https://chart-studio.plotly.com/settings for more
details.
The 'token' property is a string and must be specified as:
- A non-empty string | def token(self):
"""
The stream id number links a data trace on a plot with a
stream. See https://chart-studio.plotly.com/settings for more
details.
The 'token' property is a string and must be specified as:
- A non-empty string
Returns
-------
... | [
"def",
"token",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"token\"",
"]"
] | [
37,
4
] | [
50,
28
] | python | en | ['en', 'error', 'th'] | False |
Stream.__init__ | (self, arg=None, maxpoints=None, token=None, **kwargs) |
Construct a new Stream object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.heatmapgl.Stream`
maxpoints
Sets the maximum number of points to keep ... |
Construct a new Stream object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.heatmapgl.Stream`
maxpoints
Sets the maximum number of points to keep ... | def __init__(self, arg=None, maxpoints=None, token=None, **kwargs):
"""
Construct a new Stream object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.heatmapgl.S... | [
"def",
"__init__",
"(",
"self",
",",
"arg",
"=",
"None",
",",
"maxpoints",
"=",
"None",
",",
"token",
"=",
"None",
",",
"*",
"*",
"kwargs",
")",
":",
"super",
"(",
"Stream",
",",
"self",
")",
".",
"__init__",
"(",
"\"stream\"",
")",
"if",
"\"_paren... | [
72,
4
] | [
140,
34
] | python | en | ['en', 'error', 'th'] | False |
Textfont.color | (self) |
The 'color' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
- A named CSS color:
... |
The 'color' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
- A named CSS color:
... | def color(self):
"""
The 'color' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
- A name... | [
"def",
"color",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"color\"",
"]"
] | [
15,
4
] | [
64,
28
] | python | en | ['en', 'error', 'th'] | False |
Textfont.colorsrc | (self) |
Sets the source reference on Chart Studio Cloud for color .
The 'colorsrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
|
Sets the source reference on Chart Studio Cloud for color .
The 'colorsrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def colorsrc(self):
"""
Sets the source reference on Chart Studio Cloud for color .
The 'colorsrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["colorsrc"] | [
"def",
"colorsrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"colorsrc\"",
"]"
] | [
73,
4
] | [
84,
31
] | python | en | ['en', 'error', 'th'] | False |
Textfont.family | (self) |
HTML font family - the typeface that will be applied by the web
browser. The web browser will only be able to apply a font if
it is available on the system which it operates. Provide
multiple font families, separated by commas, to indicate the
preference in which to apply fonts ... |
HTML font family - the typeface that will be applied by the web
browser. The web browser will only be able to apply a font if
it is available on the system which it operates. Provide
multiple font families, separated by commas, to indicate the
preference in which to apply fonts ... | def family(self):
"""
HTML font family - the typeface that will be applied by the web
browser. The web browser will only be able to apply a font if
it is available on the system which it operates. Provide
multiple font families, separated by commas, to indicate the
prefer... | [
"def",
"family",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"family\"",
"]"
] | [
93,
4
] | [
116,
29
] | python | en | ['en', 'error', 'th'] | False |
Textfont.familysrc | (self) |
Sets the source reference on Chart Studio Cloud for family .
The 'familysrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
|
Sets the source reference on Chart Studio Cloud for family .
The 'familysrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def familysrc(self):
"""
Sets the source reference on Chart Studio Cloud for family .
The 'familysrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["familysrc"] | [
"def",
"familysrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"familysrc\"",
"]"
] | [
125,
4
] | [
136,
32
] | python | en | ['en', 'error', 'th'] | False |
Textfont.size | (self) |
The 'size' property is a number and may be specified as:
- An int or float in the interval [1, inf]
- A tuple, list, or one-dimensional numpy array of the above
Returns
-------
int|float|numpy.ndarray
|
The 'size' property is a number and may be specified as:
- An int or float in the interval [1, inf]
- A tuple, list, or one-dimensional numpy array of the above | def size(self):
"""
The 'size' property is a number and may be specified as:
- An int or float in the interval [1, inf]
- A tuple, list, or one-dimensional numpy array of the above
Returns
-------
int|float|numpy.ndarray
"""
return self["size"... | [
"def",
"size",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"size\"",
"]"
] | [
145,
4
] | [
155,
27
] | python | en | ['en', 'error', 'th'] | False |
Textfont.sizesrc | (self) |
Sets the source reference on Chart Studio Cloud for size .
The 'sizesrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
|
Sets the source reference on Chart Studio Cloud for size .
The 'sizesrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def sizesrc(self):
"""
Sets the source reference on Chart Studio Cloud for size .
The 'sizesrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["sizesrc"] | [
"def",
"sizesrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"sizesrc\"",
"]"
] | [
164,
4
] | [
175,
30
] | python | en | ['en', 'error', 'th'] | False |
Textfont.__init__ | (
self,
arg=None,
color=None,
colorsrc=None,
family=None,
familysrc=None,
size=None,
sizesrc=None,
**kwargs
) |
Construct a new Textfont object
Sets the text font.
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.scatterternary.Textfont`
color
colorsrc
... |
Construct a new Textfont object
Sets the text font. | def __init__(
self,
arg=None,
color=None,
colorsrc=None,
family=None,
familysrc=None,
size=None,
sizesrc=None,
**kwargs
):
"""
Construct a new Textfont object
Sets the text font.
Parameters
----... | [
"def",
"__init__",
"(",
"self",
",",
"arg",
"=",
"None",
",",
"color",
"=",
"None",
",",
"colorsrc",
"=",
"None",
",",
"family",
"=",
"None",
",",
"familysrc",
"=",
"None",
",",
"size",
"=",
"None",
",",
"sizesrc",
"=",
"None",
",",
"*",
"*",
"kw... | [
215,
4
] | [
329,
34
] | python | en | ['en', 'error', 'th'] | False |
Pad.b | (self) |
The amount of padding (in px) along the bottom of the
component.
The 'b' property is a number and may be specified as:
- An int or float
Returns
-------
int|float
|
The amount of padding (in px) along the bottom of the
component.
The 'b' property is a number and may be specified as:
- An int or float | def b(self):
"""
The amount of padding (in px) along the bottom of the
component.
The 'b' property is a number and may be specified as:
- An int or float
Returns
-------
int|float
"""
return self["b"] | [
"def",
"b",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"b\"",
"]"
] | [
15,
4
] | [
27,
24
] | python | en | ['en', 'error', 'th'] | False |
Pad.l | (self) |
The amount of padding (in px) on the left side of the
component.
The 'l' property is a number and may be specified as:
- An int or float
Returns
-------
int|float
|
The amount of padding (in px) on the left side of the
component.
The 'l' property is a number and may be specified as:
- An int or float | def l(self):
"""
The amount of padding (in px) on the left side of the
component.
The 'l' property is a number and may be specified as:
- An int or float
Returns
-------
int|float
"""
return self["l"] | [
"def",
"l",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"l\"",
"]"
] | [
36,
4
] | [
48,
24
] | python | en | ['en', 'error', 'th'] | False |
Pad.r | (self) |
The amount of padding (in px) on the right side of the
component.
The 'r' property is a number and may be specified as:
- An int or float
Returns
-------
int|float
|
The amount of padding (in px) on the right side of the
component.
The 'r' property is a number and may be specified as:
- An int or float | def r(self):
"""
The amount of padding (in px) on the right side of the
component.
The 'r' property is a number and may be specified as:
- An int or float
Returns
-------
int|float
"""
return self["r"] | [
"def",
"r",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"r\"",
"]"
] | [
57,
4
] | [
69,
24
] | python | en | ['en', 'error', 'th'] | False |
Pad.t | (self) |
The amount of padding (in px) along the top of the component.
The 't' property is a number and may be specified as:
- An int or float
Returns
-------
int|float
|
The amount of padding (in px) along the top of the component.
The 't' property is a number and may be specified as:
- An int or float | def t(self):
"""
The amount of padding (in px) along the top of the component.
The 't' property is a number and may be specified as:
- An int or float
Returns
-------
int|float
"""
return self["t"] | [
"def",
"t",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"t\"",
"]"
] | [
78,
4
] | [
89,
24
] | python | en | ['en', 'error', 'th'] | False |
Pad.__init__ | (self, arg=None, b=None, l=None, r=None, t=None, **kwargs) |
Construct a new Pad object
Set the padding of the slider component along each side.
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.layout.slider.Pad`
... |
Construct a new Pad object
Set the padding of the slider component along each side. | def __init__(self, arg=None, b=None, l=None, r=None, t=None, **kwargs):
"""
Construct a new Pad object
Set the padding of the slider component along each side.
Parameters
----------
arg
dict of properties compatible with this constructor or
... | [
"def",
"__init__",
"(",
"self",
",",
"arg",
"=",
"None",
",",
"b",
"=",
"None",
",",
"l",
"=",
"None",
",",
"r",
"=",
"None",
",",
"t",
"=",
"None",
",",
"*",
"*",
"kwargs",
")",
":",
"super",
"(",
"Pad",
",",
"self",
")",
".",
"__init__",
... | [
114,
4
] | [
195,
34
] | python | en | ['en', 'error', 'th'] | False |
Marker.autocolorscale | (self) |
Determines whether the colorscale is a default palette
(`autocolorscale: true`) or the palette determined by
`marker.colorscale`. Has an effect only if in `marker.color`is
set to a numerical array. In case `colorscale` is unspecified
or `autocolorscale` is true, the default pal... |
Determines whether the colorscale is a default palette
(`autocolorscale: true`) or the palette determined by
`marker.colorscale`. Has an effect only if in `marker.color`is
set to a numerical array. In case `colorscale` is unspecified
or `autocolorscale` is true, the default pal... | def autocolorscale(self):
"""
Determines whether the colorscale is a default palette
(`autocolorscale: true`) or the palette determined by
`marker.colorscale`. Has an effect only if in `marker.color`is
set to a numerical array. In case `colorscale` is unspecified
or `auto... | [
"def",
"autocolorscale",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"autocolorscale\"",
"]"
] | [
38,
4
] | [
55,
37
] | python | en | ['en', 'error', 'th'] | False |
Marker.cauto | (self) |
Determines whether or not the color domain is computed with
respect to the input data (here in `marker.color`) or the
bounds set in `marker.cmin` and `marker.cmax` Has an effect
only if in `marker.color`is set to a numerical array. Defaults
to `false` when `marker.cmin` and `ma... |
Determines whether or not the color domain is computed with
respect to the input data (here in `marker.color`) or the
bounds set in `marker.cmin` and `marker.cmax` Has an effect
only if in `marker.color`is set to a numerical array. Defaults
to `false` when `marker.cmin` and `ma... | def cauto(self):
"""
Determines whether or not the color domain is computed with
respect to the input data (here in `marker.color`) or the
bounds set in `marker.cmin` and `marker.cmax` Has an effect
only if in `marker.color`is set to a numerical array. Defaults
to `false... | [
"def",
"cauto",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"cauto\"",
"]"
] | [
64,
4
] | [
80,
28
] | python | en | ['en', 'error', 'th'] | False |
Marker.cmax | (self) |
Sets the upper bound of the color domain. Has an effect only if
in `marker.color`is set to a numerical array. Value should have
the same units as in `marker.color` and if set, `marker.cmin`
must be set as well.
The 'cmax' property is a number and may be specified as:
... |
Sets the upper bound of the color domain. Has an effect only if
in `marker.color`is set to a numerical array. Value should have
the same units as in `marker.color` and if set, `marker.cmin`
must be set as well.
The 'cmax' property is a number and may be specified as:
... | def cmax(self):
"""
Sets the upper bound of the color domain. Has an effect only if
in `marker.color`is set to a numerical array. Value should have
the same units as in `marker.color` and if set, `marker.cmin`
must be set as well.
The 'cmax' property is a number and ... | [
"def",
"cmax",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"cmax\"",
"]"
] | [
89,
4
] | [
103,
27
] | python | en | ['en', 'error', 'th'] | False |
Marker.cmid | (self) |
Sets the mid-point of the color domain by scaling `marker.cmin`
and/or `marker.cmax` to be equidistant to this point. Has an
effect only if in `marker.color`is set to a numerical array.
Value should have the same units as in `marker.color`. Has no
effect when `marker.cauto` is `... |
Sets the mid-point of the color domain by scaling `marker.cmin`
and/or `marker.cmax` to be equidistant to this point. Has an
effect only if in `marker.color`is set to a numerical array.
Value should have the same units as in `marker.color`. Has no
effect when `marker.cauto` is `... | def cmid(self):
"""
Sets the mid-point of the color domain by scaling `marker.cmin`
and/or `marker.cmax` to be equidistant to this point. Has an
effect only if in `marker.color`is set to a numerical array.
Value should have the same units as in `marker.color`. Has no
effe... | [
"def",
"cmid",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"cmid\"",
"]"
] | [
112,
4
] | [
127,
27
] | python | en | ['en', 'error', 'th'] | False |
Marker.cmin | (self) |
Sets the lower bound of the color domain. Has an effect only if
in `marker.color`is set to a numerical array. Value should have
the same units as in `marker.color` and if set, `marker.cmax`
must be set as well.
The 'cmin' property is a number and may be specified as:
... |
Sets the lower bound of the color domain. Has an effect only if
in `marker.color`is set to a numerical array. Value should have
the same units as in `marker.color` and if set, `marker.cmax`
must be set as well.
The 'cmin' property is a number and may be specified as:
... | def cmin(self):
"""
Sets the lower bound of the color domain. Has an effect only if
in `marker.color`is set to a numerical array. Value should have
the same units as in `marker.color` and if set, `marker.cmax`
must be set as well.
The 'cmin' property is a number and ... | [
"def",
"cmin",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"cmin\"",
"]"
] | [
136,
4
] | [
150,
27
] | python | en | ['en', 'error', 'th'] | False |
Marker.color | (self) |
Sets themarkercolor. It accepts either a specific color or an
array of numbers that are mapped to the colorscale relative to
the max and min values of the array or relative to
`marker.cmin` and `marker.cmax` if set.
The 'color' property is a color and may be specified as:
... |
Sets themarkercolor. It accepts either a specific color or an
array of numbers that are mapped to the colorscale relative to
the max and min values of the array or relative to
`marker.cmin` and `marker.cmax` if set.
The 'color' property is a color and may be specified as:
... | def color(self):
"""
Sets themarkercolor. It accepts either a specific color or an
array of numbers that are mapped to the colorscale relative to
the max and min values of the array or relative to
`marker.cmin` and `marker.cmax` if set.
The 'color' property is a colo... | [
"def",
"color",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"color\"",
"]"
] | [
159,
4
] | [
215,
28
] | python | en | ['en', 'error', 'th'] | False |
Marker.coloraxis | (self) |
Sets a reference to a shared color axis. References to these
shared color axes are "coloraxis", "coloraxis2", "coloraxis3",
etc. Settings for these shared color axes are set in the
layout, under `layout.coloraxis`, `layout.coloraxis2`, etc.
Note that multiple color scales can be... |
Sets a reference to a shared color axis. References to these
shared color axes are "coloraxis", "coloraxis2", "coloraxis3",
etc. Settings for these shared color axes are set in the
layout, under `layout.coloraxis`, `layout.coloraxis2`, etc.
Note that multiple color scales can be... | def coloraxis(self):
"""
Sets a reference to a shared color axis. References to these
shared color axes are "coloraxis", "coloraxis2", "coloraxis3",
etc. Settings for these shared color axes are set in the
layout, under `layout.coloraxis`, `layout.coloraxis2`, etc.
Note t... | [
"def",
"coloraxis",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"coloraxis\"",
"]"
] | [
224,
4
] | [
242,
32
] | python | en | ['en', 'error', 'th'] | False |
Marker.colorbar | (self) |
The 'colorbar' property is an instance of ColorBar
that may be specified as:
- An instance of :class:`plotly.graph_objs.splom.marker.ColorBar`
- A dict of string/value properties that will be passed
to the ColorBar constructor
Supported dict properties:
... |
The 'colorbar' property is an instance of ColorBar
that may be specified as:
- An instance of :class:`plotly.graph_objs.splom.marker.ColorBar`
- A dict of string/value properties that will be passed
to the ColorBar constructor
Supported dict properties:
... | def colorbar(self):
"""
The 'colorbar' property is an instance of ColorBar
that may be specified as:
- An instance of :class:`plotly.graph_objs.splom.marker.ColorBar`
- A dict of string/value properties that will be passed
to the ColorBar constructor
... | [
"def",
"colorbar",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"colorbar\"",
"]"
] | [
251,
4
] | [
478,
31
] | python | en | ['en', 'error', 'th'] | False |
Marker.colorscale | (self) |
Sets the colorscale. Has an effect only if in `marker.color`is
set to a numerical array. The colorscale must be an array
containing arrays mapping a normalized value to an rgb, rgba,
hex, hsl, hsv, or named color string. At minimum, a mapping for
the lowest (0) and highest (1) v... |
Sets the colorscale. Has an effect only if in `marker.color`is
set to a numerical array. The colorscale must be an array
containing arrays mapping a normalized value to an rgb, rgba,
hex, hsl, hsv, or named color string. At minimum, a mapping for
the lowest (0) and highest (1) v... | def colorscale(self):
"""
Sets the colorscale. Has an effect only if in `marker.color`is
set to a numerical array. The colorscale must be an array
containing arrays mapping a normalized value to an rgb, rgba,
hex, hsl, hsv, or named color string. At minimum, a mapping for
... | [
"def",
"colorscale",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"colorscale\"",
"]"
] | [
487,
4
] | [
531,
33
] | python | en | ['en', 'error', 'th'] | False |
Marker.colorsrc | (self) |
Sets the source reference on Chart Studio Cloud for color .
The 'colorsrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
|
Sets the source reference on Chart Studio Cloud for color .
The 'colorsrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def colorsrc(self):
"""
Sets the source reference on Chart Studio Cloud for color .
The 'colorsrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["colorsrc"] | [
"def",
"colorsrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"colorsrc\"",
"]"
] | [
540,
4
] | [
551,
31
] | python | en | ['en', 'error', 'th'] | False |
Marker.line | (self) |
The 'line' property is an instance of Line
that may be specified as:
- An instance of :class:`plotly.graph_objs.splom.marker.Line`
- A dict of string/value properties that will be passed
to the Line constructor
Supported dict properties:
... |
The 'line' property is an instance of Line
that may be specified as:
- An instance of :class:`plotly.graph_objs.splom.marker.Line`
- A dict of string/value properties that will be passed
to the Line constructor
Supported dict properties:
... | def line(self):
"""
The 'line' property is an instance of Line
that may be specified as:
- An instance of :class:`plotly.graph_objs.splom.marker.Line`
- A dict of string/value properties that will be passed
to the Line constructor
Supported dict p... | [
"def",
"line",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"line\"",
"]"
] | [
560,
4
] | [
663,
27
] | python | en | ['en', 'error', 'th'] | False |
Marker.opacity | (self) |
Sets the marker opacity.
The 'opacity' property is a number and may be specified as:
- An int or float in the interval [0, 1]
- A tuple, list, or one-dimensional numpy array of the above
Returns
-------
int|float|numpy.ndarray
|
Sets the marker opacity.
The 'opacity' property is a number and may be specified as:
- An int or float in the interval [0, 1]
- A tuple, list, or one-dimensional numpy array of the above | def opacity(self):
"""
Sets the marker opacity.
The 'opacity' property is a number and may be specified as:
- An int or float in the interval [0, 1]
- A tuple, list, or one-dimensional numpy array of the above
Returns
-------
int|float|numpy.ndar... | [
"def",
"opacity",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"opacity\"",
"]"
] | [
672,
4
] | [
684,
30
] | python | en | ['en', 'error', 'th'] | False |
Marker.opacitysrc | (self) |
Sets the source reference on Chart Studio Cloud for opacity .
The 'opacitysrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
|
Sets the source reference on Chart Studio Cloud for opacity .
The 'opacitysrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def opacitysrc(self):
"""
Sets the source reference on Chart Studio Cloud for opacity .
The 'opacitysrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["opacitysrc"] | [
"def",
"opacitysrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"opacitysrc\"",
"]"
] | [
693,
4
] | [
704,
33
] | python | en | ['en', 'error', 'th'] | False |
Marker.reversescale | (self) |
Reverses the color mapping if true. Has an effect only if in
`marker.color`is set to a numerical array. If true,
`marker.cmin` will correspond to the last color in the array
and `marker.cmax` will correspond to the first color.
The 'reversescale' property must be specified ... |
Reverses the color mapping if true. Has an effect only if in
`marker.color`is set to a numerical array. If true,
`marker.cmin` will correspond to the last color in the array
and `marker.cmax` will correspond to the first color.
The 'reversescale' property must be specified ... | def reversescale(self):
"""
Reverses the color mapping if true. Has an effect only if in
`marker.color`is set to a numerical array. If true,
`marker.cmin` will correspond to the last color in the array
and `marker.cmax` will correspond to the first color.
The 'revers... | [
"def",
"reversescale",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"reversescale\"",
"]"
] | [
713,
4
] | [
727,
35
] | python | en | ['en', 'error', 'th'] | False |
Marker.showscale | (self) |
Determines whether or not a colorbar is displayed for this
trace. Has an effect only if in `marker.color`is set to a
numerical array.
The 'showscale' property must be specified as a bool
(either True, or False)
Returns
-------
bool
|
Determines whether or not a colorbar is displayed for this
trace. Has an effect only if in `marker.color`is set to a
numerical array.
The 'showscale' property must be specified as a bool
(either True, or False) | def showscale(self):
"""
Determines whether or not a colorbar is displayed for this
trace. Has an effect only if in `marker.color`is set to a
numerical array.
The 'showscale' property must be specified as a bool
(either True, or False)
Returns
------... | [
"def",
"showscale",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"showscale\"",
"]"
] | [
736,
4
] | [
749,
32
] | python | en | ['en', 'error', 'th'] | False |
Marker.size | (self) |
Sets the marker size (in px).
The 'size' property is a number and may be specified as:
- An int or float in the interval [0, inf]
- A tuple, list, or one-dimensional numpy array of the above
Returns
-------
int|float|numpy.ndarray
|
Sets the marker size (in px).
The 'size' property is a number and may be specified as:
- An int or float in the interval [0, inf]
- A tuple, list, or one-dimensional numpy array of the above | def size(self):
"""
Sets the marker size (in px).
The 'size' property is a number and may be specified as:
- An int or float in the interval [0, inf]
- A tuple, list, or one-dimensional numpy array of the above
Returns
-------
int|float|numpy.nda... | [
"def",
"size",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"size\"",
"]"
] | [
758,
4
] | [
770,
27
] | python | en | ['en', 'error', 'th'] | False |
Marker.sizemin | (self) |
Has an effect only if `marker.size` is set to a numerical
array. Sets the minimum size (in px) of the rendered marker
points.
The 'sizemin' property is a number and may be specified as:
- An int or float in the interval [0, inf]
Returns
-------
in... |
Has an effect only if `marker.size` is set to a numerical
array. Sets the minimum size (in px) of the rendered marker
points.
The 'sizemin' property is a number and may be specified as:
- An int or float in the interval [0, inf] | def sizemin(self):
"""
Has an effect only if `marker.size` is set to a numerical
array. Sets the minimum size (in px) of the rendered marker
points.
The 'sizemin' property is a number and may be specified as:
- An int or float in the interval [0, inf]
Retu... | [
"def",
"sizemin",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"sizemin\"",
"]"
] | [
779,
4
] | [
792,
30
] | python | en | ['en', 'error', 'th'] | False |
Marker.sizemode | (self) |
Has an effect only if `marker.size` is set to a numerical
array. Sets the rule for which the data in `size` is converted
to pixels.
The 'sizemode' property is an enumeration that may be specified as:
- One of the following enumeration values:
['diameter', ... |
Has an effect only if `marker.size` is set to a numerical
array. Sets the rule for which the data in `size` is converted
to pixels.
The 'sizemode' property is an enumeration that may be specified as:
- One of the following enumeration values:
['diameter', ... | def sizemode(self):
"""
Has an effect only if `marker.size` is set to a numerical
array. Sets the rule for which the data in `size` is converted
to pixels.
The 'sizemode' property is an enumeration that may be specified as:
- One of the following enumeration values... | [
"def",
"sizemode",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"sizemode\"",
"]"
] | [
801,
4
] | [
815,
31
] | python | en | ['en', 'error', 'th'] | False |
Marker.sizeref | (self) |
Has an effect only if `marker.size` is set to a numerical
array. Sets the scale factor used to determine the rendered
size of marker points. Use with `sizemin` and `sizemode`.
The 'sizeref' property is a number and may be specified as:
- An int or float
Returns
... |
Has an effect only if `marker.size` is set to a numerical
array. Sets the scale factor used to determine the rendered
size of marker points. Use with `sizemin` and `sizemode`.
The 'sizeref' property is a number and may be specified as:
- An int or float | def sizeref(self):
"""
Has an effect only if `marker.size` is set to a numerical
array. Sets the scale factor used to determine the rendered
size of marker points. Use with `sizemin` and `sizemode`.
The 'sizeref' property is a number and may be specified as:
- An i... | [
"def",
"sizeref",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"sizeref\"",
"]"
] | [
824,
4
] | [
837,
30
] | python | en | ['en', 'error', 'th'] | False |
Marker.sizesrc | (self) |
Sets the source reference on Chart Studio Cloud for size .
The 'sizesrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
|
Sets the source reference on Chart Studio Cloud for size .
The 'sizesrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def sizesrc(self):
"""
Sets the source reference on Chart Studio Cloud for size .
The 'sizesrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["sizesrc"] | [
"def",
"sizesrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"sizesrc\"",
"]"
] | [
846,
4
] | [
857,
30
] | python | en | ['en', 'error', 'th'] | False |
Marker.symbol | (self) |
Sets the marker symbol type. Adding 100 is equivalent to
appending "-open" to a symbol name. Adding 200 is equivalent to
appending "-dot" to a symbol name. Adding 300 is equivalent to
appending "-open-dot" or "dot-open" to a symbol name.
The 'symbol' property is an enumerat... |
Sets the marker symbol type. Adding 100 is equivalent to
appending "-open" to a symbol name. Adding 200 is equivalent to
appending "-dot" to a symbol name. Adding 300 is equivalent to
appending "-open-dot" or "dot-open" to a symbol name.
The 'symbol' property is an enumerat... | def symbol(self):
"""
Sets the marker symbol type. Adding 100 is equivalent to
appending "-open" to a symbol name. Adding 200 is equivalent to
appending "-dot" to a symbol name. Adding 300 is equivalent to
appending "-open-dot" or "dot-open" to a symbol name.
The 'sy... | [
"def",
"symbol",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"symbol\"",
"]"
] | [
866,
4
] | [
942,
29
] | python | en | ['en', 'error', 'th'] | False |
Marker.symbolsrc | (self) |
Sets the source reference on Chart Studio Cloud for symbol .
The 'symbolsrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
|
Sets the source reference on Chart Studio Cloud for symbol .
The 'symbolsrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def symbolsrc(self):
"""
Sets the source reference on Chart Studio Cloud for symbol .
The 'symbolsrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["symbolsrc"] | [
"def",
"symbolsrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"symbolsrc\"",
"]"
] | [
951,
4
] | [
962,
32
] | python | en | ['en', 'error', 'th'] | False |
Marker.__init__ | (
self,
arg=None,
autocolorscale=None,
cauto=None,
cmax=None,
cmid=None,
cmin=None,
color=None,
coloraxis=None,
colorbar=None,
colorscale=None,
colorsrc=None,
line=None,
opacity=None,
opacitysrc=None,... |
Construct a new Marker object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of :class:`plotly.graph_objs.splom.Marker`
autocolorscale
Determines whether the colorscale is a default palett... |
Construct a new Marker object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of :class:`plotly.graph_objs.splom.Marker`
autocolorscale
Determines whether the colorscale is a default palett... | def __init__(
self,
arg=None,
autocolorscale=None,
cauto=None,
cmax=None,
cmid=None,
cmin=None,
color=None,
coloraxis=None,
colorbar=None,
colorscale=None,
colorsrc=None,
line=None,
opacity=None,
opac... | [
"def",
"__init__",
"(",
"self",
",",
"arg",
"=",
"None",
",",
"autocolorscale",
"=",
"None",
",",
"cauto",
"=",
"None",
",",
"cmax",
"=",
"None",
",",
"cmid",
"=",
"None",
",",
"cmin",
"=",
"None",
",",
"color",
"=",
"None",
",",
"coloraxis",
"=",
... | [
1086,
4
] | [
1361,
34
] | python | en | ['en', 'error', 'th'] | False |
Font.color | (self) |
The 'color' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
- A named CSS color:
... |
The 'color' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
- A named CSS color:
... | def color(self):
"""
The 'color' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
- A name... | [
"def",
"color",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"color\"",
"]"
] | [
15,
4
] | [
63,
28
] | python | en | ['en', 'error', 'th'] | False |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.