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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
PickledObjectField.get_db_prep_value | (self, value, connection=None, prepared=False) |
Pickle and b64encode the object, optionally compressing it.
The pickling protocol is specified explicitly (by default 2),
rather than as -1 or HIGHEST_PROTOCOL, because we don't want the
protocol to change over time. If it did, ``exact`` and ``in``
lookups would likely fail, si... |
Pickle and b64encode the object, optionally compressing it. | def get_db_prep_value(self, value, connection=None, prepared=False):
"""
Pickle and b64encode the object, optionally compressing it.
The pickling protocol is specified explicitly (by default 2),
rather than as -1 or HIGHEST_PROTOCOL, because we don't want the
protocol to change ... | [
"def",
"get_db_prep_value",
"(",
"self",
",",
"value",
",",
"connection",
"=",
"None",
",",
"prepared",
"=",
"False",
")",
":",
"if",
"value",
"is",
"not",
"None",
"and",
"not",
"isinstance",
"(",
"value",
",",
"PickledObject",
")",
":",
"# We call force_t... | [
240,
4
] | [
259,
20
] | 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.treemap.Stream`
maxpoints
Sets the maximum number of points to keep on... |
Construct a new Stream object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.treemap.Stream`
maxpoints
Sets the maximum number of points to keep on... | 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.treemap.Str... | [
"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 |
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.candlestick.Stream`
maxpoints
Sets the maximum number of points to kee... |
Construct a new Stream object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.candlestick.Stream`
maxpoints
Sets the maximum number of points to kee... | 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.candlestick... | [
"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 |
BaseSampler._sample_pos | (self, assign_result, num_expected, **kwargs) | Sample positive samples. | Sample positive samples. | def _sample_pos(self, assign_result, num_expected, **kwargs):
"""Sample positive samples."""
pass | [
"def",
"_sample_pos",
"(",
"self",
",",
"assign_result",
",",
"num_expected",
",",
"*",
"*",
"kwargs",
")",
":",
"pass"
] | [
24,
4
] | [
26,
12
] | python | da | ['fr', 'da', 'en'] | False |
BaseSampler._sample_neg | (self, assign_result, num_expected, **kwargs) | Sample negative samples. | Sample negative samples. | def _sample_neg(self, assign_result, num_expected, **kwargs):
"""Sample negative samples."""
pass | [
"def",
"_sample_neg",
"(",
"self",
",",
"assign_result",
",",
"num_expected",
",",
"*",
"*",
"kwargs",
")",
":",
"pass"
] | [
29,
4
] | [
31,
12
] | python | sl | ['sl', 'sl', 'en'] | True |
BaseSampler.sample | (self,
assign_result,
bboxes,
gt_bboxes,
gt_labels=None,
**kwargs) | Sample positive and negative bboxes.
This is a simple implementation of bbox sampling given candidates,
assigning results and ground truth bboxes.
Args:
assign_result (:obj:`AssignResult`): Bbox assigning results.
bboxes (Tensor): Boxes to be sampled from.
g... | Sample positive and negative bboxes. | def sample(self,
assign_result,
bboxes,
gt_bboxes,
gt_labels=None,
**kwargs):
"""Sample positive and negative bboxes.
This is a simple implementation of bbox sampling given candidates,
assigning results and ground truth ... | [
"def",
"sample",
"(",
"self",
",",
"assign_result",
",",
"bboxes",
",",
"gt_bboxes",
",",
"gt_labels",
"=",
"None",
",",
"*",
"*",
"kwargs",
")",
":",
"if",
"len",
"(",
"bboxes",
".",
"shape",
")",
"<",
"2",
":",
"bboxes",
"=",
"bboxes",
"[",
"None... | [
33,
4
] | [
100,
30
] | python | en | ['en', 'en', 'en'] | True |
Eye.x | (self) |
The 'x' property is a number and may be specified as:
- An int or float
Returns
-------
int|float
|
The 'x' property is a number and may be specified as:
- An int or float | def x(self):
"""
The 'x' property is a number and may be specified as:
- An int or float
Returns
-------
int|float
"""
return self["x"] | [
"def",
"x",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"x\"",
"]"
] | [
15,
4
] | [
24,
24
] | python | en | ['en', 'error', 'th'] | False |
Eye.y | (self) |
The 'y' property is a number and may be specified as:
- An int or float
Returns
-------
int|float
|
The 'y' property is a number and may be specified as:
- An int or float | def y(self):
"""
The 'y' property is a number and may be specified as:
- An int or float
Returns
-------
int|float
"""
return self["y"] | [
"def",
"y",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"y\"",
"]"
] | [
33,
4
] | [
42,
24
] | python | en | ['en', 'error', 'th'] | False |
Eye.z | (self) |
The 'z' property is a number and may be specified as:
- An int or float
Returns
-------
int|float
|
The 'z' property is a number and may be specified as:
- An int or float | def z(self):
"""
The 'z' property is a number and may be specified as:
- An int or float
Returns
-------
int|float
"""
return self["z"] | [
"def",
"z",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"z\"",
"]"
] | [
51,
4
] | [
60,
24
] | python | en | ['en', 'error', 'th'] | False |
Eye.__init__ | (self, arg=None, x=None, y=None, z=None, **kwargs) |
Construct a new Eye object
Sets the (x,y,z) components of the 'eye' camera vector. This
vector determines the view point about the origin of this
scene.
Parameters
----------
arg
dict of properties compatible with this constructor or
... |
Construct a new Eye object
Sets the (x,y,z) components of the 'eye' camera vector. This
vector determines the view point about the origin of this
scene. | def __init__(self, arg=None, x=None, y=None, z=None, **kwargs):
"""
Construct a new Eye object
Sets the (x,y,z) components of the 'eye' camera vector. This
vector determines the view point about the origin of this
scene.
Parameters
----------
arg... | [
"def",
"__init__",
"(",
"self",
",",
"arg",
"=",
"None",
",",
"x",
"=",
"None",
",",
"y",
"=",
"None",
",",
"z",
"=",
"None",
",",
"*",
"*",
"kwargs",
")",
":",
"super",
"(",
"Eye",
",",
"self",
")",
".",
"__init__",
"(",
"\"eye\"",
")",
"if"... | [
79,
4
] | [
152,
34
] | python | en | ['en', 'error', 'th'] | False |
Heatmap.autocolorscale | (self) |
Determines whether the colorscale is a default palette
(`autocolorscale: true`) or the palette determined by
`colorscale`. In case `colorscale` is unspecified or
`autocolorscale` is true, the default palette will be chosen
according to whether numbers in the `color` array are a... |
Determines whether the colorscale is a default palette
(`autocolorscale: true`) or the palette determined by
`colorscale`. In case `colorscale` is unspecified or
`autocolorscale` is true, the default palette will be chosen
according to whether numbers in the `color` array are a... | def autocolorscale(self):
"""
Determines whether the colorscale is a default palette
(`autocolorscale: true`) or the palette determined by
`colorscale`. In case `colorscale` is unspecified or
`autocolorscale` is true, the default palette will be chosen
according to wheth... | [
"def",
"autocolorscale",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"autocolorscale\"",
"]"
] | [
73,
4
] | [
89,
37
] | python | en | ['en', 'error', 'th'] | False |
Heatmap.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\"",
"]"
] | [
98,
4
] | [
116,
32
] | python | en | ['en', 'error', 'th'] | False |
Heatmap.colorbar | (self) |
The 'colorbar' property is an instance of ColorBar
that may be specified as:
- An instance of :class:`plotly.graph_objs.heatmap.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.heatmap.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.heatmap.ColorBar`
- A dict of string/value properties that will be passed
to the ColorBar constructor
S... | [
"def",
"colorbar",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"colorbar\"",
"]"
] | [
125,
4
] | [
351,
31
] | python | en | ['en', 'error', 'th'] | False |
Heatmap.colorscale | (self) |
Sets the colorscale. 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) values are required. For example,
`[[0, 'rgb(0,0,255)'], [1, 'rgb(255... |
Sets the colorscale. 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) values are required. For example,
`[[0, 'rgb(0,0,255)'], [1, 'rgb(255... | def colorscale(self):
"""
Sets the colorscale. 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) values are required. For example,
`[... | [
"def",
"colorscale",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"colorscale\"",
"]"
] | [
360,
4
] | [
403,
33
] | python | en | ['en', 'error', 'th'] | False |
Heatmap.connectgaps | (self) |
Determines whether or not gaps (i.e. {nan} or missing values)
in the `z` data are filled in. It is defaulted to true if `z`
is a one dimensional array and `zsmooth` is not false;
otherwise it is defaulted to false.
The 'connectgaps' property must be specified as a bool
... |
Determines whether or not gaps (i.e. {nan} or missing values)
in the `z` data are filled in. It is defaulted to true if `z`
is a one dimensional array and `zsmooth` is not false;
otherwise it is defaulted to false.
The 'connectgaps' property must be specified as a bool
... | def connectgaps(self):
"""
Determines whether or not gaps (i.e. {nan} or missing values)
in the `z` data are filled in. It is defaulted to true if `z`
is a one dimensional array and `zsmooth` is not false;
otherwise it is defaulted to false.
The 'connectgaps' propert... | [
"def",
"connectgaps",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"connectgaps\"",
"]"
] | [
412,
4
] | [
426,
34
] | python | en | ['en', 'error', 'th'] | False |
Heatmap.customdata | (self) |
Assigns extra data each datum. This may be useful when
listening to hover, click and selection events. Note that,
"scatter" traces also appends customdata items in the markers
DOM elements
The 'customdata' property is an array that may be specified as a tuple,
list,... |
Assigns extra data each datum. This may be useful when
listening to hover, click and selection events. Note that,
"scatter" traces also appends customdata items in the markers
DOM elements
The 'customdata' property is an array that may be specified as a tuple,
list,... | def customdata(self):
"""
Assigns extra data each datum. This may be useful when
listening to hover, click and selection events. Note that,
"scatter" traces also appends customdata items in the markers
DOM elements
The 'customdata' property is an array that may be sp... | [
"def",
"customdata",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"customdata\"",
"]"
] | [
435,
4
] | [
449,
33
] | python | en | ['en', 'error', 'th'] | False |
Heatmap.customdatasrc | (self) |
Sets the source reference on Chart Studio Cloud for customdata
.
The 'customdatasrc' 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 customdata
.
The 'customdatasrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def customdatasrc(self):
"""
Sets the source reference on Chart Studio Cloud for customdata
.
The 'customdatasrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["cust... | [
"def",
"customdatasrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"customdatasrc\"",
"]"
] | [
458,
4
] | [
470,
36
] | python | en | ['en', 'error', 'th'] | False |
Heatmap.dx | (self) |
Sets the x coordinate step. See `x0` for more info.
The 'dx' property is a number and may be specified as:
- An int or float
Returns
-------
int|float
|
Sets the x coordinate step. See `x0` for more info.
The 'dx' property is a number and may be specified as:
- An int or float | def dx(self):
"""
Sets the x coordinate step. See `x0` for more info.
The 'dx' property is a number and may be specified as:
- An int or float
Returns
-------
int|float
"""
return self["dx"] | [
"def",
"dx",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"dx\"",
"]"
] | [
479,
4
] | [
490,
25
] | python | en | ['en', 'error', 'th'] | False |
Heatmap.dy | (self) |
Sets the y coordinate step. See `y0` for more info.
The 'dy' property is a number and may be specified as:
- An int or float
Returns
-------
int|float
|
Sets the y coordinate step. See `y0` for more info.
The 'dy' property is a number and may be specified as:
- An int or float | def dy(self):
"""
Sets the y coordinate step. See `y0` for more info.
The 'dy' property is a number and may be specified as:
- An int or float
Returns
-------
int|float
"""
return self["dy"] | [
"def",
"dy",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"dy\"",
"]"
] | [
499,
4
] | [
510,
25
] | python | en | ['en', 'error', 'th'] | False |
Heatmap.hoverinfo | (self) |
Determines which trace information appear on hover. If `none`
or `skip` are set, no information is displayed upon hovering.
But, if `none` is set, click and hover events are still fired.
The 'hoverinfo' property is a flaglist and may be specified
as a string containing:
... |
Determines which trace information appear on hover. If `none`
or `skip` are set, no information is displayed upon hovering.
But, if `none` is set, click and hover events are still fired.
The 'hoverinfo' property is a flaglist and may be specified
as a string containing:
... | def hoverinfo(self):
"""
Determines which trace information appear on hover. If `none`
or `skip` are set, no information is displayed upon hovering.
But, if `none` is set, click and hover events are still fired.
The 'hoverinfo' property is a flaglist and may be specified
... | [
"def",
"hoverinfo",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"hoverinfo\"",
"]"
] | [
519,
4
] | [
536,
32
] | python | en | ['en', 'error', 'th'] | False |
Heatmap.hoverinfosrc | (self) |
Sets the source reference on Chart Studio Cloud for hoverinfo
.
The 'hoverinfosrc' 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 hoverinfo
.
The 'hoverinfosrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def hoverinfosrc(self):
"""
Sets the source reference on Chart Studio Cloud for hoverinfo
.
The 'hoverinfosrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["hoverin... | [
"def",
"hoverinfosrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"hoverinfosrc\"",
"]"
] | [
545,
4
] | [
557,
35
] | python | en | ['en', 'error', 'th'] | False |
Heatmap.hoverlabel | (self) |
The 'hoverlabel' property is an instance of Hoverlabel
that may be specified as:
- An instance of :class:`plotly.graph_objs.heatmap.Hoverlabel`
- A dict of string/value properties that will be passed
to the Hoverlabel constructor
Supported dict propertie... |
The 'hoverlabel' property is an instance of Hoverlabel
that may be specified as:
- An instance of :class:`plotly.graph_objs.heatmap.Hoverlabel`
- A dict of string/value properties that will be passed
to the Hoverlabel constructor
Supported dict propertie... | def hoverlabel(self):
"""
The 'hoverlabel' property is an instance of Hoverlabel
that may be specified as:
- An instance of :class:`plotly.graph_objs.heatmap.Hoverlabel`
- A dict of string/value properties that will be passed
to the Hoverlabel constructor
... | [
"def",
"hoverlabel",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"hoverlabel\"",
"]"
] | [
566,
4
] | [
616,
33
] | python | en | ['en', 'error', 'th'] | False |
Heatmap.hoverongaps | (self) |
Determines whether or not gaps (i.e. {nan} or missing values)
in the `z` data have hover labels associated with them.
The 'hoverongaps' property must be specified as a bool
(either True, or False)
Returns
-------
bool
|
Determines whether or not gaps (i.e. {nan} or missing values)
in the `z` data have hover labels associated with them.
The 'hoverongaps' property must be specified as a bool
(either True, or False) | def hoverongaps(self):
"""
Determines whether or not gaps (i.e. {nan} or missing values)
in the `z` data have hover labels associated with them.
The 'hoverongaps' property must be specified as a bool
(either True, or False)
Returns
-------
bool
... | [
"def",
"hoverongaps",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"hoverongaps\"",
"]"
] | [
625,
4
] | [
637,
34
] | python | en | ['en', 'error', 'th'] | False |
Heatmap.hovertemplate | (self) |
Template string used for rendering the information that appear
on hover box. Note that this will override `hoverinfo`.
Variables are inserted using %{variable}, for example "y:
%{y}". Numbers are formatted using d3-format's syntax
%{variable:d3-format}, for example "Price: %{y:$... |
Template string used for rendering the information that appear
on hover box. Note that this will override `hoverinfo`.
Variables are inserted using %{variable}, for example "y:
%{y}". Numbers are formatted using d3-format's syntax
%{variable:d3-format}, for example "Price: %{y:$... | def hovertemplate(self):
"""
Template string used for rendering the information that appear
on hover box. Note that this will override `hoverinfo`.
Variables are inserted using %{variable}, for example "y:
%{y}". Numbers are formatted using d3-format's syntax
%{variable:d... | [
"def",
"hovertemplate",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"hovertemplate\"",
"]"
] | [
646,
4
] | [
678,
36
] | python | en | ['en', 'error', 'th'] | False |
Heatmap.hovertemplatesrc | (self) |
Sets the source reference on Chart Studio Cloud for
hovertemplate .
The 'hovertemplatesrc' 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
hovertemplate .
The 'hovertemplatesrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def hovertemplatesrc(self):
"""
Sets the source reference on Chart Studio Cloud for
hovertemplate .
The 'hovertemplatesrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return se... | [
"def",
"hovertemplatesrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"hovertemplatesrc\"",
"]"
] | [
687,
4
] | [
699,
39
] | python | en | ['en', 'error', 'th'] | False |
Heatmap.hovertext | (self) |
Same as `text`.
The 'hovertext' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series
Returns
-------
numpy.ndarray
|
Same as `text`.
The 'hovertext' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series | def hovertext(self):
"""
Same as `text`.
The 'hovertext' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series
Returns
-------
numpy.ndarray
"""
return self["hovertext"] | [
"def",
"hovertext",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"hovertext\"",
"]"
] | [
708,
4
] | [
719,
32
] | python | en | ['en', 'error', 'th'] | False |
Heatmap.hovertextsrc | (self) |
Sets the source reference on Chart Studio Cloud for hovertext
.
The 'hovertextsrc' 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 hovertext
.
The 'hovertextsrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def hovertextsrc(self):
"""
Sets the source reference on Chart Studio Cloud for hovertext
.
The 'hovertextsrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["hoverte... | [
"def",
"hovertextsrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"hovertextsrc\"",
"]"
] | [
728,
4
] | [
740,
35
] | python | en | ['en', 'error', 'th'] | False |
Heatmap.ids | (self) |
Assigns id labels to each datum. These ids for object constancy
of data points during animation. Should be an array of strings,
not numbers or any other type.
The 'ids' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series
Retur... |
Assigns id labels to each datum. These ids for object constancy
of data points during animation. Should be an array of strings,
not numbers or any other type.
The 'ids' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series | def ids(self):
"""
Assigns id labels to each datum. These ids for object constancy
of data points during animation. Should be an array of strings,
not numbers or any other type.
The 'ids' property is an array that may be specified as a tuple,
list, numpy array, or pa... | [
"def",
"ids",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"ids\"",
"]"
] | [
749,
4
] | [
762,
26
] | python | en | ['en', 'error', 'th'] | False |
Heatmap.idssrc | (self) |
Sets the source reference on Chart Studio Cloud for ids .
The 'idssrc' 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 ids .
The 'idssrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def idssrc(self):
"""
Sets the source reference on Chart Studio Cloud for ids .
The 'idssrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["idssrc"] | [
"def",
"idssrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"idssrc\"",
"]"
] | [
771,
4
] | [
782,
29
] | python | en | ['en', 'error', 'th'] | False |
Heatmap.legendgroup | (self) |
Sets the legend group for this trace. Traces part of the same
legend group hide/show at the same time when toggling legend
items.
The 'legendgroup' property is a string and must be specified as:
- A string
- A number that will be converted to a string
R... |
Sets the legend group for this trace. Traces part of the same
legend group hide/show at the same time when toggling legend
items.
The 'legendgroup' property is a string and must be specified as:
- A string
- A number that will be converted to a string | def legendgroup(self):
"""
Sets the legend group for this trace. Traces part of the same
legend group hide/show at the same time when toggling legend
items.
The 'legendgroup' property is a string and must be specified as:
- A string
- A number that will b... | [
"def",
"legendgroup",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"legendgroup\"",
"]"
] | [
791,
4
] | [
805,
34
] | python | en | ['en', 'error', 'th'] | False |
Heatmap.meta | (self) |
Assigns extra meta information associated with this trace that
can be used in various text attributes. Attributes such as
trace `name`, graph, axis and colorbar `title.text`, annotation
`text` `rangeselector`, `updatemenues` and `sliders` `label`
text all support `meta`. To acce... |
Assigns extra meta information associated with this trace that
can be used in various text attributes. Attributes such as
trace `name`, graph, axis and colorbar `title.text`, annotation
`text` `rangeselector`, `updatemenues` and `sliders` `label`
text all support `meta`. To acce... | def meta(self):
"""
Assigns extra meta information associated with this trace that
can be used in various text attributes. Attributes such as
trace `name`, graph, axis and colorbar `title.text`, annotation
`text` `rangeselector`, `updatemenues` and `sliders` `label`
text ... | [
"def",
"meta",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"meta\"",
"]"
] | [
814,
4
] | [
833,
27
] | python | en | ['en', 'error', 'th'] | False |
Heatmap.metasrc | (self) |
Sets the source reference on Chart Studio Cloud for meta .
The 'metasrc' 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 meta .
The 'metasrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def metasrc(self):
"""
Sets the source reference on Chart Studio Cloud for meta .
The 'metasrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["metasrc"] | [
"def",
"metasrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"metasrc\"",
"]"
] | [
842,
4
] | [
853,
30
] | python | en | ['en', 'error', 'th'] | False |
Heatmap.name | (self) |
Sets the trace name. The trace name appear as the legend item
and on hover.
The 'name' property is a string and must be specified as:
- A string
- A number that will be converted to a string
Returns
-------
str
|
Sets the trace name. The trace name appear as the legend item
and on hover.
The 'name' property is a string and must be specified as:
- A string
- A number that will be converted to a string | def name(self):
"""
Sets the trace name. The trace name appear as the legend item
and on hover.
The 'name' property is a string and must be specified as:
- A string
- A number that will be converted to a string
Returns
-------
str
... | [
"def",
"name",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"name\"",
"]"
] | [
862,
4
] | [
875,
27
] | python | en | ['en', 'error', 'th'] | False |
Heatmap.opacity | (self) |
Sets the opacity of the trace.
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 trace.
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 trace.
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\"",
"]"
] | [
884,
4
] | [
895,
30
] | python | en | ['en', 'error', 'th'] | False |
Heatmap.reversescale | (self) |
Reverses the color mapping if true. If true, `zmin` will
correspond to the last color in the array and `zmax` will
correspond to the first color.
The 'reversescale' property must be specified as a bool
(either True, or False)
Returns
-------
bool
... |
Reverses the color mapping if true. If true, `zmin` will
correspond to the last color in the array and `zmax` will
correspond to the first color.
The 'reversescale' property must be specified as a bool
(either True, or False) | def reversescale(self):
"""
Reverses the color mapping if true. If true, `zmin` will
correspond to the last color in the array and `zmax` will
correspond to the first color.
The 'reversescale' property must be specified as a bool
(either True, or False)
Retu... | [
"def",
"reversescale",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"reversescale\"",
"]"
] | [
904,
4
] | [
917,
35
] | python | en | ['en', 'error', 'th'] | False |
Heatmap.showlegend | (self) |
Determines whether or not an item corresponding to this trace
is shown in the legend.
The 'showlegend' property must be specified as a bool
(either True, or False)
Returns
-------
bool
|
Determines whether or not an item corresponding to this trace
is shown in the legend.
The 'showlegend' property must be specified as a bool
(either True, or False) | def showlegend(self):
"""
Determines whether or not an item corresponding to this trace
is shown in the legend.
The 'showlegend' property must be specified as a bool
(either True, or False)
Returns
-------
bool
"""
return self["showle... | [
"def",
"showlegend",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"showlegend\"",
"]"
] | [
926,
4
] | [
938,
33
] | python | en | ['en', 'error', 'th'] | False |
Heatmap.showscale | (self) |
Determines whether or not a colorbar is displayed for this
trace.
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.
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.
The 'showscale' property must be specified as a bool
(either True, or False)
Returns
-------
bool
"""
return self["showscale"] | [
"def",
"showscale",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"showscale\"",
"]"
] | [
947,
4
] | [
959,
32
] | python | en | ['en', 'error', 'th'] | False |
Heatmap.stream | (self) |
The 'stream' property is an instance of Stream
that may be specified as:
- An instance of :class:`plotly.graph_objs.heatmap.Stream`
- A dict of string/value properties that will be passed
to the Stream constructor
Supported dict properties:
... |
The 'stream' property is an instance of Stream
that may be specified as:
- An instance of :class:`plotly.graph_objs.heatmap.Stream`
- A dict of string/value properties that will be passed
to the Stream constructor
Supported dict properties:
... | def stream(self):
"""
The 'stream' property is an instance of Stream
that may be specified as:
- An instance of :class:`plotly.graph_objs.heatmap.Stream`
- A dict of string/value properties that will be passed
to the Stream constructor
Supported d... | [
"def",
"stream",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"stream\"",
"]"
] | [
968,
4
] | [
992,
29
] | python | en | ['en', 'error', 'th'] | False |
Heatmap.text | (self) |
Sets the text elements associated with each z value.
The 'text' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series
Returns
-------
numpy.ndarray
|
Sets the text elements associated with each z value.
The 'text' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series | def text(self):
"""
Sets the text elements associated with each z value.
The 'text' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series
Returns
-------
numpy.ndarray
"""
return self["text"] | [
"def",
"text",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"text\"",
"]"
] | [
1001,
4
] | [
1012,
27
] | python | en | ['en', 'error', 'th'] | False |
Heatmap.textsrc | (self) |
Sets the source reference on Chart Studio Cloud for text .
The 'textsrc' 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 text .
The 'textsrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def textsrc(self):
"""
Sets the source reference on Chart Studio Cloud for text .
The 'textsrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["textsrc"] | [
"def",
"textsrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"textsrc\"",
"]"
] | [
1021,
4
] | [
1032,
30
] | python | en | ['en', 'error', 'th'] | False |
Heatmap.transpose | (self) |
Transposes the z data.
The 'transpose' property must be specified as a bool
(either True, or False)
Returns
-------
bool
|
Transposes the z data.
The 'transpose' property must be specified as a bool
(either True, or False) | def transpose(self):
"""
Transposes the z data.
The 'transpose' property must be specified as a bool
(either True, or False)
Returns
-------
bool
"""
return self["transpose"] | [
"def",
"transpose",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"transpose\"",
"]"
] | [
1041,
4
] | [
1052,
32
] | python | en | ['en', 'error', 'th'] | False |
Heatmap.uid | (self) |
Assign an id to this trace, Use this to provide object
constancy between traces during animations and transitions.
The 'uid' property is a string and must be specified as:
- A string
- A number that will be converted to a string
Returns
-------
... |
Assign an id to this trace, Use this to provide object
constancy between traces during animations and transitions.
The 'uid' property is a string and must be specified as:
- A string
- A number that will be converted to a string | def uid(self):
"""
Assign an id to this trace, Use this to provide object
constancy between traces during animations and transitions.
The 'uid' property is a string and must be specified as:
- A string
- A number that will be converted to a string
Return... | [
"def",
"uid",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"uid\"",
"]"
] | [
1061,
4
] | [
1074,
26
] | python | en | ['en', 'error', 'th'] | False |
Heatmap.uirevision | (self) |
Controls persistence of some user-driven changes to the trace:
`constraintrange` in `parcoords` traces, as well as some
`editable: true` modifications such as `name` and
`colorbar.title`. Defaults to `layout.uirevision`. Note that
other user-driven trace attribute changes are co... |
Controls persistence of some user-driven changes to the trace:
`constraintrange` in `parcoords` traces, as well as some
`editable: true` modifications such as `name` and
`colorbar.title`. Defaults to `layout.uirevision`. Note that
other user-driven trace attribute changes are co... | def uirevision(self):
"""
Controls persistence of some user-driven changes to the trace:
`constraintrange` in `parcoords` traces, as well as some
`editable: true` modifications such as `name` and
`colorbar.title`. Defaults to `layout.uirevision`. Note that
other user-driv... | [
"def",
"uirevision",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"uirevision\"",
"]"
] | [
1083,
4
] | [
1107,
33
] | python | en | ['en', 'error', 'th'] | False |
Heatmap.visible | (self) |
Determines whether or not this trace is visible. If
"legendonly", the trace is not drawn, but can appear as a
legend item (provided that the legend itself is visible).
The 'visible' property is an enumeration that may be specified as:
- One of the following enumeration va... |
Determines whether or not this trace is visible. If
"legendonly", the trace is not drawn, but can appear as a
legend item (provided that the legend itself is visible).
The 'visible' property is an enumeration that may be specified as:
- One of the following enumeration va... | def visible(self):
"""
Determines whether or not this trace is visible. If
"legendonly", the trace is not drawn, but can appear as a
legend item (provided that the legend itself is visible).
The 'visible' property is an enumeration that may be specified as:
- One o... | [
"def",
"visible",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"visible\"",
"]"
] | [
1116,
4
] | [
1130,
30
] | python | en | ['en', 'error', 'th'] | False |
Heatmap.x | (self) |
Sets the x coordinates.
The 'x' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series
Returns
-------
numpy.ndarray
|
Sets the x coordinates.
The 'x' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series | def x(self):
"""
Sets the x coordinates.
The 'x' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series
Returns
-------
numpy.ndarray
"""
return self["x"] | [
"def",
"x",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"x\"",
"]"
] | [
1139,
4
] | [
1150,
24
] | python | en | ['en', 'error', 'th'] | False |
Heatmap.x0 | (self) |
Alternate to `x`. Builds a linear space of x coordinates. Use
with `dx` where `x0` is the starting coordinate and `dx` the
step.
The 'x0' property accepts values of any type
Returns
-------
Any
|
Alternate to `x`. Builds a linear space of x coordinates. Use
with `dx` where `x0` is the starting coordinate and `dx` the
step.
The 'x0' property accepts values of any type | def x0(self):
"""
Alternate to `x`. Builds a linear space of x coordinates. Use
with `dx` where `x0` is the starting coordinate and `dx` the
step.
The 'x0' property accepts values of any type
Returns
-------
Any
"""
return self["x0"] | [
"def",
"x0",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"x0\"",
"]"
] | [
1159,
4
] | [
1171,
25
] | python | en | ['en', 'error', 'th'] | False |
Heatmap.xaxis | (self) |
Sets a reference between this trace's x coordinates and a 2D
cartesian x axis. If "x" (the default value), the x coordinates
refer to `layout.xaxis`. If "x2", the x coordinates refer to
`layout.xaxis2`, and so on.
The 'xaxis' property is an identifier of a particular
... |
Sets a reference between this trace's x coordinates and a 2D
cartesian x axis. If "x" (the default value), the x coordinates
refer to `layout.xaxis`. If "x2", the x coordinates refer to
`layout.xaxis2`, and so on.
The 'xaxis' property is an identifier of a particular
... | def xaxis(self):
"""
Sets a reference between this trace's x coordinates and a 2D
cartesian x axis. If "x" (the default value), the x coordinates
refer to `layout.xaxis`. If "x2", the x coordinates refer to
`layout.xaxis2`, and so on.
The 'xaxis' property is an ident... | [
"def",
"xaxis",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"xaxis\"",
"]"
] | [
1180,
4
] | [
1196,
28
] | python | en | ['en', 'error', 'th'] | False |
Heatmap.xcalendar | (self) |
Sets the calendar system to use with `x` date data.
The 'xcalendar' property is an enumeration that may be specified as:
- One of the following enumeration values:
['gregorian', 'chinese', 'coptic', 'discworld',
'ethiopian', 'hebrew', 'islamic', 'julian', ... |
Sets the calendar system to use with `x` date data.
The 'xcalendar' property is an enumeration that may be specified as:
- One of the following enumeration values:
['gregorian', 'chinese', 'coptic', 'discworld',
'ethiopian', 'hebrew', 'islamic', 'julian', ... | def xcalendar(self):
"""
Sets the calendar system to use with `x` date data.
The 'xcalendar' property is an enumeration that may be specified as:
- One of the following enumeration values:
['gregorian', 'chinese', 'coptic', 'discworld',
'ethiopian',... | [
"def",
"xcalendar",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"xcalendar\"",
"]"
] | [
1205,
4
] | [
1220,
32
] | python | en | ['en', 'error', 'th'] | False |
Heatmap.xgap | (self) |
Sets the horizontal gap (in pixels) between bricks.
The 'xgap' property is a number and may be specified as:
- An int or float in the interval [0, inf]
Returns
-------
int|float
|
Sets the horizontal gap (in pixels) between bricks.
The 'xgap' property is a number and may be specified as:
- An int or float in the interval [0, inf] | def xgap(self):
"""
Sets the horizontal gap (in pixels) between bricks.
The 'xgap' property is a number and may be specified as:
- An int or float in the interval [0, inf]
Returns
-------
int|float
"""
return self["xgap"] | [
"def",
"xgap",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"xgap\"",
"]"
] | [
1229,
4
] | [
1240,
27
] | python | en | ['en', 'error', 'th'] | False |
Heatmap.xsrc | (self) |
Sets the source reference on Chart Studio Cloud for x .
The 'xsrc' 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 x .
The 'xsrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def xsrc(self):
"""
Sets the source reference on Chart Studio Cloud for x .
The 'xsrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["xsrc"] | [
"def",
"xsrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"xsrc\"",
"]"
] | [
1249,
4
] | [
1260,
27
] | python | en | ['en', 'error', 'th'] | False |
Heatmap.xtype | (self) |
If "array", the heatmap's x coordinates are given by "x" (the
default behavior when `x` is provided). If "scaled", the
heatmap's x coordinates are given by "x0" and "dx" (the default
behavior when `x` is not provided).
The 'xtype' property is an enumeration that may be spec... |
If "array", the heatmap's x coordinates are given by "x" (the
default behavior when `x` is provided). If "scaled", the
heatmap's x coordinates are given by "x0" and "dx" (the default
behavior when `x` is not provided).
The 'xtype' property is an enumeration that may be spec... | def xtype(self):
"""
If "array", the heatmap's x coordinates are given by "x" (the
default behavior when `x` is provided). If "scaled", the
heatmap's x coordinates are given by "x0" and "dx" (the default
behavior when `x` is not provided).
The 'xtype' property is an ... | [
"def",
"xtype",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"xtype\"",
"]"
] | [
1269,
4
] | [
1284,
28
] | python | en | ['en', 'error', 'th'] | False |
Heatmap.y | (self) |
Sets the y coordinates.
The 'y' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series
Returns
-------
numpy.ndarray
|
Sets the y coordinates.
The 'y' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series | def y(self):
"""
Sets the y coordinates.
The 'y' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series
Returns
-------
numpy.ndarray
"""
return self["y"] | [
"def",
"y",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"y\"",
"]"
] | [
1293,
4
] | [
1304,
24
] | python | en | ['en', 'error', 'th'] | False |
Heatmap.y0 | (self) |
Alternate to `y`. Builds a linear space of y coordinates. Use
with `dy` where `y0` is the starting coordinate and `dy` the
step.
The 'y0' property accepts values of any type
Returns
-------
Any
|
Alternate to `y`. Builds a linear space of y coordinates. Use
with `dy` where `y0` is the starting coordinate and `dy` the
step.
The 'y0' property accepts values of any type | def y0(self):
"""
Alternate to `y`. Builds a linear space of y coordinates. Use
with `dy` where `y0` is the starting coordinate and `dy` the
step.
The 'y0' property accepts values of any type
Returns
-------
Any
"""
return self["y0"] | [
"def",
"y0",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"y0\"",
"]"
] | [
1313,
4
] | [
1325,
25
] | python | en | ['en', 'error', 'th'] | False |
Heatmap.yaxis | (self) |
Sets a reference between this trace's y coordinates and a 2D
cartesian y axis. If "y" (the default value), the y coordinates
refer to `layout.yaxis`. If "y2", the y coordinates refer to
`layout.yaxis2`, and so on.
The 'yaxis' property is an identifier of a particular
... |
Sets a reference between this trace's y coordinates and a 2D
cartesian y axis. If "y" (the default value), the y coordinates
refer to `layout.yaxis`. If "y2", the y coordinates refer to
`layout.yaxis2`, and so on.
The 'yaxis' property is an identifier of a particular
... | def yaxis(self):
"""
Sets a reference between this trace's y coordinates and a 2D
cartesian y axis. If "y" (the default value), the y coordinates
refer to `layout.yaxis`. If "y2", the y coordinates refer to
`layout.yaxis2`, and so on.
The 'yaxis' property is an ident... | [
"def",
"yaxis",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"yaxis\"",
"]"
] | [
1334,
4
] | [
1350,
28
] | python | en | ['en', 'error', 'th'] | False |
Heatmap.ycalendar | (self) |
Sets the calendar system to use with `y` date data.
The 'ycalendar' property is an enumeration that may be specified as:
- One of the following enumeration values:
['gregorian', 'chinese', 'coptic', 'discworld',
'ethiopian', 'hebrew', 'islamic', 'julian', ... |
Sets the calendar system to use with `y` date data.
The 'ycalendar' property is an enumeration that may be specified as:
- One of the following enumeration values:
['gregorian', 'chinese', 'coptic', 'discworld',
'ethiopian', 'hebrew', 'islamic', 'julian', ... | def ycalendar(self):
"""
Sets the calendar system to use with `y` date data.
The 'ycalendar' property is an enumeration that may be specified as:
- One of the following enumeration values:
['gregorian', 'chinese', 'coptic', 'discworld',
'ethiopian',... | [
"def",
"ycalendar",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"ycalendar\"",
"]"
] | [
1359,
4
] | [
1374,
32
] | python | en | ['en', 'error', 'th'] | False |
Heatmap.ygap | (self) |
Sets the vertical gap (in pixels) between bricks.
The 'ygap' property is a number and may be specified as:
- An int or float in the interval [0, inf]
Returns
-------
int|float
|
Sets the vertical gap (in pixels) between bricks.
The 'ygap' property is a number and may be specified as:
- An int or float in the interval [0, inf] | def ygap(self):
"""
Sets the vertical gap (in pixels) between bricks.
The 'ygap' property is a number and may be specified as:
- An int or float in the interval [0, inf]
Returns
-------
int|float
"""
return self["ygap"] | [
"def",
"ygap",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"ygap\"",
"]"
] | [
1383,
4
] | [
1394,
27
] | python | en | ['en', 'error', 'th'] | False |
Heatmap.ysrc | (self) |
Sets the source reference on Chart Studio Cloud for y .
The 'ysrc' 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 y .
The 'ysrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def ysrc(self):
"""
Sets the source reference on Chart Studio Cloud for y .
The 'ysrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["ysrc"] | [
"def",
"ysrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"ysrc\"",
"]"
] | [
1403,
4
] | [
1414,
27
] | python | en | ['en', 'error', 'th'] | False |
Heatmap.ytype | (self) |
If "array", the heatmap's y coordinates are given by "y" (the
default behavior when `y` is provided) If "scaled", the
heatmap's y coordinates are given by "y0" and "dy" (the default
behavior when `y` is not provided)
The 'ytype' property is an enumeration that may be specif... |
If "array", the heatmap's y coordinates are given by "y" (the
default behavior when `y` is provided) If "scaled", the
heatmap's y coordinates are given by "y0" and "dy" (the default
behavior when `y` is not provided)
The 'ytype' property is an enumeration that may be specif... | def ytype(self):
"""
If "array", the heatmap's y coordinates are given by "y" (the
default behavior when `y` is provided) If "scaled", the
heatmap's y coordinates are given by "y0" and "dy" (the default
behavior when `y` is not provided)
The 'ytype' property is an en... | [
"def",
"ytype",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"ytype\"",
"]"
] | [
1423,
4
] | [
1438,
28
] | python | en | ['en', 'error', 'th'] | False |
Heatmap.z | (self) |
Sets the z data.
The 'z' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series
Returns
-------
numpy.ndarray
|
Sets the z data.
The 'z' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series | def z(self):
"""
Sets the z data.
The 'z' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series
Returns
-------
numpy.ndarray
"""
return self["z"] | [
"def",
"z",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"z\"",
"]"
] | [
1447,
4
] | [
1458,
24
] | python | en | ['en', 'error', 'th'] | False |
Heatmap.zauto | (self) |
Determines whether or not the color domain is computed with
respect to the input data (here in `z`) or the bounds set in
`zmin` and `zmax` Defaults to `false` when `zmin` and `zmax`
are set by the user.
The 'zauto' property must be specified as a bool
(either True,... |
Determines whether or not the color domain is computed with
respect to the input data (here in `z`) or the bounds set in
`zmin` and `zmax` Defaults to `false` when `zmin` and `zmax`
are set by the user.
The 'zauto' property must be specified as a bool
(either True,... | def zauto(self):
"""
Determines whether or not the color domain is computed with
respect to the input data (here in `z`) or the bounds set in
`zmin` and `zmax` Defaults to `false` when `zmin` and `zmax`
are set by the user.
The 'zauto' property must be specified as ... | [
"def",
"zauto",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"zauto\"",
"]"
] | [
1467,
4
] | [
1481,
28
] | python | en | ['en', 'error', 'th'] | False |
Heatmap.zhoverformat | (self) |
Sets the hover text formatting rule using d3 formatting mini-
languages which are very similar to those in Python. See:
https://github.com/d3/d3-3.x-api-
reference/blob/master/Formatting.md#d3_format
The 'zhoverformat' property is a string and must be specified as:
... |
Sets the hover text formatting rule using d3 formatting mini-
languages which are very similar to those in Python. See:
https://github.com/d3/d3-3.x-api-
reference/blob/master/Formatting.md#d3_format
The 'zhoverformat' property is a string and must be specified as:
... | def zhoverformat(self):
"""
Sets the hover text formatting rule using d3 formatting mini-
languages which are very similar to those in Python. See:
https://github.com/d3/d3-3.x-api-
reference/blob/master/Formatting.md#d3_format
The 'zhoverformat' property is a string... | [
"def",
"zhoverformat",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"zhoverformat\"",
"]"
] | [
1490,
4
] | [
1505,
35
] | python | en | ['en', 'error', 'th'] | False |
Heatmap.zmax | (self) |
Sets the upper bound of the color domain. Value should have the
same units as in `z` and if set, `zmin` must be set as well.
The 'zmax' property is a number and may be specified as:
- An int or float
Returns
-------
int|float
|
Sets the upper bound of the color domain. Value should have the
same units as in `z` and if set, `zmin` must be set as well.
The 'zmax' property is a number and may be specified as:
- An int or float | def zmax(self):
"""
Sets the upper bound of the color domain. Value should have the
same units as in `z` and if set, `zmin` must be set as well.
The 'zmax' property is a number and may be specified as:
- An int or float
Returns
-------
int|float
... | [
"def",
"zmax",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"zmax\"",
"]"
] | [
1514,
4
] | [
1526,
27
] | python | en | ['en', 'error', 'th'] | False |
Heatmap.zmid | (self) |
Sets the mid-point of the color domain by scaling `zmin` and/or
`zmax` to be equidistant to this point. Value should have the
same units as in `z`. Has no effect when `zauto` is `false`.
The 'zmid' property is a number and may be specified as:
- An int or float
R... |
Sets the mid-point of the color domain by scaling `zmin` and/or
`zmax` to be equidistant to this point. Value should have the
same units as in `z`. Has no effect when `zauto` is `false`.
The 'zmid' property is a number and may be specified as:
- An int or float | def zmid(self):
"""
Sets the mid-point of the color domain by scaling `zmin` and/or
`zmax` to be equidistant to this point. Value should have the
same units as in `z`. Has no effect when `zauto` is `false`.
The 'zmid' property is a number and may be specified as:
-... | [
"def",
"zmid",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"zmid\"",
"]"
] | [
1535,
4
] | [
1548,
27
] | python | en | ['en', 'error', 'th'] | False |
Heatmap.zmin | (self) |
Sets the lower bound of the color domain. Value should have the
same units as in `z` and if set, `zmax` must be set as well.
The 'zmin' property is a number and may be specified as:
- An int or float
Returns
-------
int|float
|
Sets the lower bound of the color domain. Value should have the
same units as in `z` and if set, `zmax` must be set as well.
The 'zmin' property is a number and may be specified as:
- An int or float | def zmin(self):
"""
Sets the lower bound of the color domain. Value should have the
same units as in `z` and if set, `zmax` must be set as well.
The 'zmin' property is a number and may be specified as:
- An int or float
Returns
-------
int|float
... | [
"def",
"zmin",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"zmin\"",
"]"
] | [
1557,
4
] | [
1569,
27
] | python | en | ['en', 'error', 'th'] | False |
Heatmap.zsmooth | (self) |
Picks a smoothing algorithm use to smooth `z` data.
The 'zsmooth' property is an enumeration that may be specified as:
- One of the following enumeration values:
['fast', 'best', False]
Returns
-------
Any
|
Picks a smoothing algorithm use to smooth `z` data.
The 'zsmooth' property is an enumeration that may be specified as:
- One of the following enumeration values:
['fast', 'best', False] | def zsmooth(self):
"""
Picks a smoothing algorithm use to smooth `z` data.
The 'zsmooth' property is an enumeration that may be specified as:
- One of the following enumeration values:
['fast', 'best', False]
Returns
-------
Any
"""... | [
"def",
"zsmooth",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"zsmooth\"",
"]"
] | [
1578,
4
] | [
1590,
30
] | python | en | ['en', 'error', 'th'] | False |
Heatmap.zsrc | (self) |
Sets the source reference on Chart Studio Cloud for z .
The 'zsrc' 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 z .
The 'zsrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def zsrc(self):
"""
Sets the source reference on Chart Studio Cloud for z .
The 'zsrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["zsrc"] | [
"def",
"zsrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"zsrc\"",
"]"
] | [
1599,
4
] | [
1610,
27
] | python | en | ['en', 'error', 'th'] | False |
Heatmap.__init__ | (
self,
arg=None,
autocolorscale=None,
coloraxis=None,
colorbar=None,
colorscale=None,
connectgaps=None,
customdata=None,
customdatasrc=None,
dx=None,
dy=None,
hoverinfo=None,
hoverinfosrc=None,
hoverlabel=No... |
Construct a new Heatmap object
The data that describes the heatmap value-to-color mapping is
set in `z`. Data in `z` can either be a 2D list of values
(ragged or not) or a 1D array of values. In the case where `z`
is a 2D list, say that `z` has N rows and M columns. The... |
Construct a new Heatmap object
The data that describes the heatmap value-to-color mapping is
set in `z`. Data in `z` can either be a 2D list of values
(ragged or not) or a 1D array of values. In the case where `z`
is a 2D list, say that `z` has N rows and M columns. The... | def __init__(
self,
arg=None,
autocolorscale=None,
coloraxis=None,
colorbar=None,
colorscale=None,
connectgaps=None,
customdata=None,
customdatasrc=None,
dx=None,
dy=None,
hoverinfo=None,
hoverinfosrc=None,
h... | [
"def",
"__init__",
"(",
"self",
",",
"arg",
"=",
"None",
",",
"autocolorscale",
"=",
"None",
",",
"coloraxis",
"=",
"None",
",",
"colorbar",
"=",
"None",
",",
"colorscale",
"=",
"None",
",",
"connectgaps",
"=",
"None",
",",
"customdata",
"=",
"None",
"... | [
1878,
4
] | [
2485,
34
] | python | en | ['en', 'error', 'th'] | False |
ParlaiLogger.__init__ | (self, name, console_level=INFO) |
Initialize the logger object.
:param name:
Name of the logger
:param console_level:
minimum level of messages logged to console
|
Initialize the logger object. | def __init__(self, name, console_level=INFO):
"""
Initialize the logger object.
:param name:
Name of the logger
:param console_level:
minimum level of messages logged to console
"""
super().__init__(name, console_level) # can be initialized with ... | [
"def",
"__init__",
"(",
"self",
",",
"name",
",",
"console_level",
"=",
"INFO",
")",
":",
"super",
"(",
")",
".",
"__init__",
"(",
"name",
",",
"console_level",
")",
"# can be initialized with any level",
"# Logging to stdout",
"self",
".",
"streamHandler",
"=",... | [
63,
4
] | [
79,
46
] | python | en | ['en', 'error', 'th'] | False |
ParlaiLogger.log | (self, msg, level=INFO) |
Default Logging function.
|
Default Logging function.
| def log(self, msg, level=INFO):
"""
Default Logging function.
"""
super().log(level, msg) | [
"def",
"log",
"(",
"self",
",",
"msg",
",",
"level",
"=",
"INFO",
")",
":",
"super",
"(",
")",
".",
"log",
"(",
"level",
",",
"msg",
")"
] | [
103,
4
] | [
107,
31
] | python | en | ['en', 'error', 'th'] | False |
ParlaiLogger.add_format_prefix | (self, prefix) |
Include `prefix` in all future logging statements.
|
Include `prefix` in all future logging statements.
| def add_format_prefix(self, prefix):
"""
Include `prefix` in all future logging statements.
"""
# change both handler formatters to add a prefix
self.prefix = prefix
self.streamHandler.setFormatter(self._build_formatter()) | [
"def",
"add_format_prefix",
"(",
"self",
",",
"prefix",
")",
":",
"# change both handler formatters to add a prefix",
"self",
".",
"prefix",
"=",
"prefix",
"self",
".",
"streamHandler",
".",
"setFormatter",
"(",
"self",
".",
"_build_formatter",
"(",
")",
")"
] | [
109,
4
] | [
115,
64
] | python | en | ['en', 'error', 'th'] | False |
ParlaiLogger.mute | (self) |
Stop logging to stdout.
|
Stop logging to stdout.
| def mute(self):
"""
Stop logging to stdout.
"""
self.prev_level = self.streamHandler.level
self.streamHandler.level = ERROR
return self.prev_level | [
"def",
"mute",
"(",
"self",
")",
":",
"self",
".",
"prev_level",
"=",
"self",
".",
"streamHandler",
".",
"level",
"self",
".",
"streamHandler",
".",
"level",
"=",
"ERROR",
"return",
"self",
".",
"prev_level"
] | [
117,
4
] | [
123,
30
] | python | en | ['en', 'error', 'th'] | False |
ParlaiLogger.unmute | (self) |
Resume logging to stdout.
|
Resume logging to stdout.
| def unmute(self):
"""
Resume logging to stdout.
"""
self.streamHandler.level = self.prev_level | [
"def",
"unmute",
"(",
"self",
")",
":",
"self",
".",
"streamHandler",
".",
"level",
"=",
"self",
".",
"prev_level"
] | [
125,
4
] | [
129,
50
] | python | en | ['en', 'error', 'th'] | False |
retrieve | (fid, share_key=None) |
Retrieve a general file from Plotly.
:param (str) fid: The `{username}:{idlocal}` identifier. E.g. `foo:88`.
:param (str) share_key: The secret key granting 'read' access if private.
:returns: (requests.Response) Returns response directly from requests.
|
Retrieve a general file from Plotly. | def retrieve(fid, share_key=None):
"""
Retrieve a general file from Plotly.
:param (str) fid: The `{username}:{idlocal}` identifier. E.g. `foo:88`.
:param (str) share_key: The secret key granting 'read' access if private.
:returns: (requests.Response) Returns response directly from requests.
"... | [
"def",
"retrieve",
"(",
"fid",
",",
"share_key",
"=",
"None",
")",
":",
"url",
"=",
"build_url",
"(",
"RESOURCE",
",",
"id",
"=",
"fid",
")",
"params",
"=",
"make_params",
"(",
"share_key",
"=",
"share_key",
")",
"return",
"request",
"(",
"\"get\"",
",... | [
8,
0
] | [
19,
45
] | python | en | ['en', 'error', 'th'] | False |
update | (fid, body) |
Update a general file from Plotly.
:param (str) fid: The `{username}:{idlocal}` identifier. E.g. `foo:88`.
:param (dict) body: A mapping of body param names to values.
:returns: (requests.Response) Returns response directly from requests.
|
Update a general file from Plotly. | def update(fid, body):
"""
Update a general file from Plotly.
:param (str) fid: The `{username}:{idlocal}` identifier. E.g. `foo:88`.
:param (dict) body: A mapping of body param names to values.
:returns: (requests.Response) Returns response directly from requests.
"""
url = build_url(RESO... | [
"def",
"update",
"(",
"fid",
",",
"body",
")",
":",
"url",
"=",
"build_url",
"(",
"RESOURCE",
",",
"id",
"=",
"fid",
")",
"return",
"request",
"(",
"\"put\"",
",",
"url",
",",
"json",
"=",
"body",
")"
] | [
22,
0
] | [
32,
41
] | python | en | ['en', 'error', 'th'] | False |
trash | (fid) |
Soft-delete a general file from Plotly. (Can be undone with 'restore').
:param (str) fid: The `{username}:{idlocal}` identifier. E.g. `foo:88`.
:returns: (requests.Response) Returns response directly from requests.
|
Soft-delete a general file from Plotly. (Can be undone with 'restore'). | def trash(fid):
"""
Soft-delete a general file from Plotly. (Can be undone with 'restore').
:param (str) fid: The `{username}:{idlocal}` identifier. E.g. `foo:88`.
:returns: (requests.Response) Returns response directly from requests.
"""
url = build_url(RESOURCE, id=fid, route="trash")
re... | [
"def",
"trash",
"(",
"fid",
")",
":",
"url",
"=",
"build_url",
"(",
"RESOURCE",
",",
"id",
"=",
"fid",
",",
"route",
"=",
"\"trash\"",
")",
"return",
"request",
"(",
"\"post\"",
",",
"url",
")"
] | [
35,
0
] | [
44,
31
] | python | en | ['en', 'error', 'th'] | False |
restore | (fid) |
Restore a trashed, general file from Plotly. See 'trash'.
:param (str) fid: The `{username}:{idlocal}` identifier. E.g. `foo:88`.
:returns: (requests.Response) Returns response directly from requests.
|
Restore a trashed, general file from Plotly. See 'trash'. | def restore(fid):
"""
Restore a trashed, general file from Plotly. See 'trash'.
:param (str) fid: The `{username}:{idlocal}` identifier. E.g. `foo:88`.
:returns: (requests.Response) Returns response directly from requests.
"""
url = build_url(RESOURCE, id=fid, route="restore")
return reque... | [
"def",
"restore",
"(",
"fid",
")",
":",
"url",
"=",
"build_url",
"(",
"RESOURCE",
",",
"id",
"=",
"fid",
",",
"route",
"=",
"\"restore\"",
")",
"return",
"request",
"(",
"\"post\"",
",",
"url",
")"
] | [
47,
0
] | [
56,
31
] | python | en | ['en', 'error', 'th'] | False |
permanent_delete | (fid) |
Permanently delete a trashed, general file from Plotly. See 'trash'.
:param (str) fid: The `{username}:{idlocal}` identifier. E.g. `foo:88`.
:returns: (requests.Response) Returns response directly from requests.
|
Permanently delete a trashed, general file from Plotly. See 'trash'. | def permanent_delete(fid):
"""
Permanently delete a trashed, general file from Plotly. See 'trash'.
:param (str) fid: The `{username}:{idlocal}` identifier. E.g. `foo:88`.
:returns: (requests.Response) Returns response directly from requests.
"""
url = build_url(RESOURCE, id=fid, route="perman... | [
"def",
"permanent_delete",
"(",
"fid",
")",
":",
"url",
"=",
"build_url",
"(",
"RESOURCE",
",",
"id",
"=",
"fid",
",",
"route",
"=",
"\"permanent_delete\"",
")",
"return",
"request",
"(",
"\"delete\"",
",",
"url",
")"
] | [
59,
0
] | [
68,
33
] | python | en | ['en', 'error', 'th'] | False |
lookup | (path, parent=None, user=None, exists=None) |
Retrieve a general file from Plotly without needing a fid.
:param (str) path: The '/'-delimited path specifying the file location.
:param (int) parent: Parent id, an integer, which the path is relative to.
:param (str) user: The username to target files for. Defaults to requestor.
:param (bool) ex... |
Retrieve a general file from Plotly without needing a fid. | def lookup(path, parent=None, user=None, exists=None):
"""
Retrieve a general file from Plotly without needing a fid.
:param (str) path: The '/'-delimited path specifying the file location.
:param (int) parent: Parent id, an integer, which the path is relative to.
:param (str) user: The username to... | [
"def",
"lookup",
"(",
"path",
",",
"parent",
"=",
"None",
",",
"user",
"=",
"None",
",",
"exists",
"=",
"None",
")",
":",
"url",
"=",
"build_url",
"(",
"RESOURCE",
",",
"route",
"=",
"\"lookup\"",
")",
"params",
"=",
"make_params",
"(",
"path",
"=",
... | [
71,
0
] | [
84,
45
] | python | en | ['en', 'error', 'th'] | False |
lamp_electrical_input | (setpoints: Setpoints) |
Equation A16 [2]
Args:
setpoints:
Returns: the electrical input to the lamp [W m^-2]
|
Equation A16 [2]
Args:
setpoints: | def lamp_electrical_input(setpoints: Setpoints):
"""
Equation A16 [2]
Args:
setpoints:
Returns: the electrical input to the lamp [W m^-2]
"""
return Coefficients.Lamp.electrical_capacity_lamp*setpoints.U_Lamp | [
"def",
"lamp_electrical_input",
"(",
"setpoints",
":",
"Setpoints",
")",
":",
"return",
"Coefficients",
".",
"Lamp",
".",
"electrical_capacity_lamp",
"*",
"setpoints",
".",
"U_Lamp"
] | [
4,
0
] | [
12,
70
] | python | en | ['en', 'error', 'th'] | False |
inter_lamp_electrical_input | (setpoints: Setpoints) |
Equation A26 [5]
Args:
setpoints:
Returns: Interlight electrical input [W m^{-2}]
|
Equation A26 [5]
Args:
setpoints: | def inter_lamp_electrical_input(setpoints: Setpoints):
"""
Equation A26 [5]
Args:
setpoints:
Returns: Interlight electrical input [W m^{-2}]
"""
return Coefficients.Interlight.electrical_capacity_inter_lamp*setpoints.U_IntLamp | [
"def",
"inter_lamp_electrical_input",
"(",
"setpoints",
":",
"Setpoints",
")",
":",
"return",
"Coefficients",
".",
"Interlight",
".",
"electrical_capacity_inter_lamp",
"*",
"setpoints",
".",
"U_IntLamp"
] | [
15,
0
] | [
23,
85
] | python | en | ['en', 'error', 'th'] | False |
Project.x | (self) |
Determines whether or not these contour lines are projected on
the x plane. If `highlight` is set to True (the default), the
projected lines are shown on hover. If `show` is set to True,
the projected lines are shown in permanence.
The 'x' property must be specified as a bo... |
Determines whether or not these contour lines are projected on
the x plane. If `highlight` is set to True (the default), the
projected lines are shown on hover. If `show` is set to True,
the projected lines are shown in permanence.
The 'x' property must be specified as a bo... | def x(self):
"""
Determines whether or not these contour lines are projected on
the x plane. If `highlight` is set to True (the default), the
projected lines are shown on hover. If `show` is set to True,
the projected lines are shown in permanence.
The 'x' property m... | [
"def",
"x",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"x\"",
"]"
] | [
15,
4
] | [
29,
24
] | python | en | ['en', 'error', 'th'] | False |
Project.y | (self) |
Determines whether or not these contour lines are projected on
the y plane. If `highlight` is set to True (the default), the
projected lines are shown on hover. If `show` is set to True,
the projected lines are shown in permanence.
The 'y' property must be specified as a bo... |
Determines whether or not these contour lines are projected on
the y plane. If `highlight` is set to True (the default), the
projected lines are shown on hover. If `show` is set to True,
the projected lines are shown in permanence.
The 'y' property must be specified as a bo... | def y(self):
"""
Determines whether or not these contour lines are projected on
the y plane. If `highlight` is set to True (the default), the
projected lines are shown on hover. If `show` is set to True,
the projected lines are shown in permanence.
The 'y' property m... | [
"def",
"y",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"y\"",
"]"
] | [
38,
4
] | [
52,
24
] | python | en | ['en', 'error', 'th'] | False |
Project.z | (self) |
Determines whether or not these contour lines are projected on
the z plane. If `highlight` is set to True (the default), the
projected lines are shown on hover. If `show` is set to True,
the projected lines are shown in permanence.
The 'z' property must be specified as a bo... |
Determines whether or not these contour lines are projected on
the z plane. If `highlight` is set to True (the default), the
projected lines are shown on hover. If `show` is set to True,
the projected lines are shown in permanence.
The 'z' property must be specified as a bo... | def z(self):
"""
Determines whether or not these contour lines are projected on
the z plane. If `highlight` is set to True (the default), the
projected lines are shown on hover. If `show` is set to True,
the projected lines are shown in permanence.
The 'z' property m... | [
"def",
"z",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"z\"",
"]"
] | [
61,
4
] | [
75,
24
] | python | en | ['en', 'error', 'th'] | False |
Project.__init__ | (self, arg=None, x=None, y=None, z=None, **kwargs) |
Construct a new Project object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.surface.contours.y.Project`
x
Determines whether or not these contour... |
Construct a new Project object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.surface.contours.y.Project`
x
Determines whether or not these contour... | def __init__(self, arg=None, x=None, y=None, z=None, **kwargs):
"""
Construct a new Project object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.surface.contou... | [
"def",
"__init__",
"(",
"self",
",",
"arg",
"=",
"None",
",",
"x",
"=",
"None",
",",
"y",
"=",
"None",
",",
"z",
"=",
"None",
",",
"*",
"*",
"kwargs",
")",
":",
"super",
"(",
"Project",
",",
"self",
")",
".",
"__init__",
"(",
"\"project\"",
")"... | [
106,
4
] | [
187,
34
] | python | en | ['en', 'error', 'th'] | False |
ImagePolyencoderAgent.add_cmdline_args | (
cls, parser: ParlaiParser, partial_opt: Optional[Opt] = None
) |
Add command-line arguments specifically for this agent.
|
Add command-line arguments specifically for this agent.
| def add_cmdline_args(
cls, parser: ParlaiParser, partial_opt: Optional[Opt] = None
) -> ParlaiParser:
"""
Add command-line arguments specifically for this agent.
"""
PolyencoderAgent.add_cmdline_args(parser, partial_opt=partial_opt)
TorchImageAgent.add_cmdline_args(pa... | [
"def",
"add_cmdline_args",
"(",
"cls",
",",
"parser",
":",
"ParlaiParser",
",",
"partial_opt",
":",
"Optional",
"[",
"Opt",
"]",
"=",
"None",
")",
"->",
"ParlaiParser",
":",
"PolyencoderAgent",
".",
"add_cmdline_args",
"(",
"parser",
",",
"partial_opt",
"=",
... | [
34,
4
] | [
55,
20
] | python | en | ['en', 'error', 'th'] | False |
ImagePolyencoderAgent.build_model | (self, states=None) |
Return built model.
|
Return built model.
| def build_model(self, states=None):
"""
Return built model.
"""
return ImagePolyencoderModule(self.opt, self.dict, self.NULL_IDX) | [
"def",
"build_model",
"(",
"self",
",",
"states",
"=",
"None",
")",
":",
"return",
"ImagePolyencoderModule",
"(",
"self",
".",
"opt",
",",
"self",
".",
"dict",
",",
"self",
".",
"NULL_IDX",
")"
] | [
57,
4
] | [
61,
73
] | python | en | ['en', 'error', 'th'] | False |
ImagePolyencoderAgent.batchify_image_features | (self, batch: Batch) |
Return the image features as a Tensor of the correct type.
Fill in missing feature vectors. Here, we require image features to be saved in
`batch` as a Tensor for passing through the image encoder. This is required for
data_parallel.
|
Return the image features as a Tensor of the correct type. | def batchify_image_features(self, batch: Batch) -> Batch:
"""
Return the image features as a Tensor of the correct type.
Fill in missing feature vectors. Here, we require image features to be saved in
`batch` as a Tensor for passing through the image encoder. This is required for
... | [
"def",
"batchify_image_features",
"(",
"self",
",",
"batch",
":",
"Batch",
")",
"->",
"Batch",
":",
"# Checks/formatting of batch.image",
"bsz",
"=",
"self",
".",
"_get_batch_size",
"(",
"batch",
")",
"if",
"batch",
".",
"image",
"is",
"None",
"or",
"len",
"... | [
63,
4
] | [
99,
20
] | python | en | ['en', 'error', 'th'] | False |
ImagePolyencoderAgent._get_batch_size | (self, batch) |
Return the size of the batch.
Use the size of the text vec if it exists; otherwise, use the length of the
image feature list.
|
Return the size of the batch. | def _get_batch_size(self, batch) -> int:
"""
Return the size of the batch.
Use the size of the text vec if it exists; otherwise, use the length of the
image feature list.
"""
if batch.text_vec is not None:
return batch.text_vec.size(0)
else:
... | [
"def",
"_get_batch_size",
"(",
"self",
",",
"batch",
")",
"->",
"int",
":",
"if",
"batch",
".",
"text_vec",
"is",
"not",
"None",
":",
"return",
"batch",
".",
"text_vec",
".",
"size",
"(",
"0",
")",
"else",
":",
"return",
"len",
"(",
"batch",
".",
"... | [
101,
4
] | [
111,
35
] | python | en | ['en', 'error', 'th'] | False |
ImagePolyencoderAgent._model_context_input | (self, batch) |
Override PolyencoderAgent's context inputs into the model.
|
Override PolyencoderAgent's context inputs into the model.
| def _model_context_input(self, batch) -> Dict[str, Any]:
"""
Override PolyencoderAgent's context inputs into the model.
"""
return {'ctxt_tokens': batch.text_vec, 'ctxt_image': batch.image} | [
"def",
"_model_context_input",
"(",
"self",
",",
"batch",
")",
"->",
"Dict",
"[",
"str",
",",
"Any",
"]",
":",
"return",
"{",
"'ctxt_tokens'",
":",
"batch",
".",
"text_vec",
",",
"'ctxt_image'",
":",
"batch",
".",
"image",
"}"
] | [
113,
4
] | [
117,
73
] | python | en | ['en', 'error', 'th'] | False |
ImagePolyencoderAgent.load_state_dict | (self, state_dict) |
Override to account for weights used for image features.
|
Override to account for weights used for image features.
| def load_state_dict(self, state_dict):
"""
Override to account for weights used for image features.
"""
for tensor in ['dummy_image_enc', 'ones_mask']:
key = f'encoder_ctxt.{tensor}'
if hasattr(self.model.encoder_ctxt, tensor) and key not in state_dict:
... | [
"def",
"load_state_dict",
"(",
"self",
",",
"state_dict",
")",
":",
"for",
"tensor",
"in",
"[",
"'dummy_image_enc'",
",",
"'ones_mask'",
"]",
":",
"key",
"=",
"f'encoder_ctxt.{tensor}'",
"if",
"hasattr",
"(",
"self",
".",
"model",
".",
"encoder_ctxt",
",",
"... | [
119,
4
] | [
133,
43
] | python | en | ['en', 'error', 'th'] | False |
ImagePolyencoderModule.get_encoder | (self, opt, dict_, null_idx, reduction_type, for_context: bool) |
Return encoder that allows for image features to be passed in, given options.
:param opt:
opt dict
:param dict:
dictionary agent
:param null_idx:
null/pad index into dict
:param reduction_type: only used for compatibility with the superclass ... |
Return encoder that allows for image features to be passed in, given options. | def get_encoder(self, opt, dict_, null_idx, reduction_type, for_context: bool):
"""
Return encoder that allows for image features to be passed in, given options.
:param opt:
opt dict
:param dict:
dictionary agent
:param null_idx:
null/pad inde... | [
"def",
"get_encoder",
"(",
"self",
",",
"opt",
",",
"dict_",
",",
"null_idx",
",",
"reduction_type",
",",
"for_context",
":",
"bool",
")",
":",
"if",
"for_context",
":",
"if",
"reduction_type",
"is",
"not",
"None",
":",
"raise",
"NotImplementedError",
"(",
... | [
144,
4
] | [
199,
13
] | python | en | ['en', 'error', 'th'] | False |
ImagePolyencoderModule._context_encoder_input | (self, ctxt_inputs: Dict[str, Any]) |
Override PolyEncoderModule's inputs into the context encoder.
|
Override PolyEncoderModule's inputs into the context encoder.
| def _context_encoder_input(self, ctxt_inputs: Dict[str, Any]) -> Dict[str, Any]:
"""
Override PolyEncoderModule's inputs into the context encoder.
"""
assert set(ctxt_inputs.keys()) == {'ctxt_tokens', 'ctxt_image'}
return {
'src_tokens': ctxt_inputs['ctxt_tokens'],
... | [
"def",
"_context_encoder_input",
"(",
"self",
",",
"ctxt_inputs",
":",
"Dict",
"[",
"str",
",",
"Any",
"]",
")",
"->",
"Dict",
"[",
"str",
",",
"Any",
"]",
":",
"assert",
"set",
"(",
"ctxt_inputs",
".",
"keys",
"(",
")",
")",
"==",
"{",
"'ctxt_tokens... | [
201,
4
] | [
209,
9
] | python | en | ['en', 'error', 'th'] | False |
ImagePolyencoderModule._get_context_batch_size | (self, **ctxt_inputs: torch.Tensor) |
Return the batch size of the context.
|
Return the batch size of the context.
| def _get_context_batch_size(self, **ctxt_inputs: torch.Tensor) -> int:
"""
Return the batch size of the context.
"""
if ctxt_inputs['ctxt_tokens'] is not None:
return ctxt_inputs['ctxt_tokens'].size(0)
else:
return ctxt_inputs['ctxt_image'].size(0) | [
"def",
"_get_context_batch_size",
"(",
"self",
",",
"*",
"*",
"ctxt_inputs",
":",
"torch",
".",
"Tensor",
")",
"->",
"int",
":",
"if",
"ctxt_inputs",
"[",
"'ctxt_tokens'",
"]",
"is",
"not",
"None",
":",
"return",
"ctxt_inputs",
"[",
"'ctxt_tokens'",
"]",
"... | [
211,
4
] | [
218,
52
] | python | en | ['en', 'error', 'th'] | False |
convert | (src, dst) | Convert keys in pycls pretrained RegNet models to mmdet style. | Convert keys in pycls pretrained RegNet models to mmdet style. | def convert(src, dst):
"""Convert keys in pycls pretrained RegNet models to mmdet style."""
# load caffe model
regnet_model = torch.load(src)
blobs = regnet_model['model_state']
# convert to pytorch style
state_dict = OrderedDict()
converted_names = set()
for key, weight in blobs.items()... | [
"def",
"convert",
"(",
"src",
",",
"dst",
")",
":",
"# load caffe model",
"regnet_model",
"=",
"torch",
".",
"load",
"(",
"src",
")",
"blobs",
"=",
"regnet_model",
"[",
"'model_state'",
"]",
"# convert to pytorch style",
"state_dict",
"=",
"OrderedDict",
"(",
... | [
53,
0
] | [
76,
31
] | python | en | ['en', 'en', 'en'] | True |
Hoverlabel.align | (self) |
Sets the horizontal alignment of the text content within hover
label box. Has an effect only if the hover label text spans
more two or more lines
The 'align' property is an enumeration that may be specified as:
- One of the following enumeration values:
['... |
Sets the horizontal alignment of the text content within hover
label box. Has an effect only if the hover label text spans
more two or more lines
The 'align' property is an enumeration that may be specified as:
- One of the following enumeration values:
['... | def align(self):
"""
Sets the horizontal alignment of the text content within hover
label box. Has an effect only if the hover label text spans
more two or more lines
The 'align' property is an enumeration that may be specified as:
- One of the following enumeratio... | [
"def",
"align",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"align\"",
"]"
] | [
25,
4
] | [
40,
28
] | python | en | ['en', 'error', 'th'] | False |
Hoverlabel.alignsrc | (self) |
Sets the source reference on Chart Studio Cloud for align .
The 'alignsrc' 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 align .
The 'alignsrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def alignsrc(self):
"""
Sets the source reference on Chart Studio Cloud for align .
The 'alignsrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["alignsrc"] | [
"def",
"alignsrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"alignsrc\"",
"]"
] | [
49,
4
] | [
60,
31
] | 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.