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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
ColorBar.tickvals | (self) |
Sets the values at which ticks on this axis appear. Only has an
effect if `tickmode` is set to "array". Used with `ticktext`.
The 'tickvals' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series
Returns
-------
numpy.nda... |
Sets the values at which ticks on this axis appear. Only has an
effect if `tickmode` is set to "array". Used with `ticktext`.
The 'tickvals' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series | def tickvals(self):
"""
Sets the values at which ticks on this axis appear. Only has an
effect if `tickmode` is set to "array". Used with `ticktext`.
The 'tickvals' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series
Returns
... | [
"def",
"tickvals",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"tickvals\"",
"]"
] | [
985,
4
] | [
997,
31
] | python | en | ['en', 'error', 'th'] | False |
ColorBar.tickvalssrc | (self) |
Sets the source reference on Chart Studio Cloud for tickvals .
The 'tickvalssrc' 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 tickvals .
The 'tickvalssrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def tickvalssrc(self):
"""
Sets the source reference on Chart Studio Cloud for tickvals .
The 'tickvalssrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["tickvalssrc"] | [
"def",
"tickvalssrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"tickvalssrc\"",
"]"
] | [
1006,
4
] | [
1017,
34
] | python | en | ['en', 'error', 'th'] | False |
ColorBar.tickwidth | (self) |
Sets the tick width (in px).
The 'tickwidth' property is a number and may be specified as:
- An int or float in the interval [0, inf]
Returns
-------
int|float
|
Sets the tick width (in px).
The 'tickwidth' property is a number and may be specified as:
- An int or float in the interval [0, inf] | def tickwidth(self):
"""
Sets the tick width (in px).
The 'tickwidth' property is a number and may be specified as:
- An int or float in the interval [0, inf]
Returns
-------
int|float
"""
return self["tickwidth"] | [
"def",
"tickwidth",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"tickwidth\"",
"]"
] | [
1026,
4
] | [
1037,
32
] | python | en | ['en', 'error', 'th'] | False |
ColorBar.title | (self) |
The 'title' property is an instance of Title
that may be specified as:
- An instance of :class:`plotly.graph_objs.surface.colorbar.Title`
- A dict of string/value properties that will be passed
to the Title constructor
Supported dict properties:
... |
The 'title' property is an instance of Title
that may be specified as:
- An instance of :class:`plotly.graph_objs.surface.colorbar.Title`
- A dict of string/value properties that will be passed
to the Title constructor
Supported dict properties:
... | def title(self):
"""
The 'title' property is an instance of Title
that may be specified as:
- An instance of :class:`plotly.graph_objs.surface.colorbar.Title`
- A dict of string/value properties that will be passed
to the Title constructor
Support... | [
"def",
"title",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"title\"",
"]"
] | [
1046,
4
] | [
1076,
28
] | python | en | ['en', 'error', 'th'] | False |
ColorBar.titlefont | (self) |
Deprecated: Please use surface.colorbar.title.font instead.
Sets this color bar's title font. Note that the title's font
used to be set by the now deprecated `titlefont` attribute.
The 'font' property is an instance of Font
that may be specified as:
- An instance ... |
Deprecated: Please use surface.colorbar.title.font instead.
Sets this color bar's title font. Note that the title's font
used to be set by the now deprecated `titlefont` attribute.
The 'font' property is an instance of Font
that may be specified as:
- An instance ... | def titlefont(self):
"""
Deprecated: Please use surface.colorbar.title.font instead.
Sets this color bar's title font. Note that the title's font
used to be set by the now deprecated `titlefont` attribute.
The 'font' property is an instance of Font
that may be specif... | [
"def",
"titlefont",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"titlefont\"",
"]"
] | [
1085,
4
] | [
1124,
32
] | python | en | ['en', 'error', 'th'] | False |
ColorBar.titleside | (self) |
Deprecated: Please use surface.colorbar.title.side instead.
Determines the location of color bar's title with respect to
the color bar. Note that the title's location used to be set by
the now deprecated `titleside` attribute.
The 'side' property is an enumeration that may ... |
Deprecated: Please use surface.colorbar.title.side instead.
Determines the location of color bar's title with respect to
the color bar. Note that the title's location used to be set by
the now deprecated `titleside` attribute.
The 'side' property is an enumeration that may ... | def titleside(self):
"""
Deprecated: Please use surface.colorbar.title.side instead.
Determines the location of color bar's title with respect to
the color bar. Note that the title's location used to be set by
the now deprecated `titleside` attribute.
The 'side' prop... | [
"def",
"titleside",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"titleside\"",
"]"
] | [
1133,
4
] | [
1148,
32
] | python | en | ['en', 'error', 'th'] | False |
ColorBar.x | (self) |
Sets the x position of the color bar (in plot fraction).
The 'x' property is a number and may be specified as:
- An int or float in the interval [-2, 3]
Returns
-------
int|float
|
Sets the x position of the color bar (in plot fraction).
The 'x' property is a number and may be specified as:
- An int or float in the interval [-2, 3] | def x(self):
"""
Sets the x position of the color bar (in plot fraction).
The 'x' property is a number and may be specified as:
- An int or float in the interval [-2, 3]
Returns
-------
int|float
"""
return self["x"] | [
"def",
"x",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"x\"",
"]"
] | [
1157,
4
] | [
1168,
24
] | python | en | ['en', 'error', 'th'] | False |
ColorBar.xanchor | (self) |
Sets this color bar's horizontal position anchor. This anchor
binds the `x` position to the "left", "center" or "right" of
the color bar.
The 'xanchor' property is an enumeration that may be specified as:
- One of the following enumeration values:
['left',... |
Sets this color bar's horizontal position anchor. This anchor
binds the `x` position to the "left", "center" or "right" of
the color bar.
The 'xanchor' property is an enumeration that may be specified as:
- One of the following enumeration values:
['left',... | def xanchor(self):
"""
Sets this color bar's horizontal position anchor. This anchor
binds the `x` position to the "left", "center" or "right" of
the color bar.
The 'xanchor' property is an enumeration that may be specified as:
- One of the following enumeration va... | [
"def",
"xanchor",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"xanchor\"",
"]"
] | [
1177,
4
] | [
1191,
30
] | python | en | ['en', 'error', 'th'] | False |
ColorBar.xpad | (self) |
Sets the amount of padding (in px) along the x direction.
The 'xpad' property is a number and may be specified as:
- An int or float in the interval [0, inf]
Returns
-------
int|float
|
Sets the amount of padding (in px) along the x direction.
The 'xpad' property is a number and may be specified as:
- An int or float in the interval [0, inf] | def xpad(self):
"""
Sets the amount of padding (in px) along the x direction.
The 'xpad' property is a number and may be specified as:
- An int or float in the interval [0, inf]
Returns
-------
int|float
"""
return self["xpad"] | [
"def",
"xpad",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"xpad\"",
"]"
] | [
1200,
4
] | [
1211,
27
] | python | en | ['en', 'error', 'th'] | False |
ColorBar.y | (self) |
Sets the y position of the color bar (in plot fraction).
The 'y' property is a number and may be specified as:
- An int or float in the interval [-2, 3]
Returns
-------
int|float
|
Sets the y position of the color bar (in plot fraction).
The 'y' property is a number and may be specified as:
- An int or float in the interval [-2, 3] | def y(self):
"""
Sets the y position of the color bar (in plot fraction).
The 'y' property is a number and may be specified as:
- An int or float in the interval [-2, 3]
Returns
-------
int|float
"""
return self["y"] | [
"def",
"y",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"y\"",
"]"
] | [
1220,
4
] | [
1231,
24
] | python | en | ['en', 'error', 'th'] | False |
ColorBar.yanchor | (self) |
Sets this color bar's vertical position anchor This anchor
binds the `y` position to the "top", "middle" or "bottom" of
the color bar.
The 'yanchor' property is an enumeration that may be specified as:
- One of the following enumeration values:
['top', 'mi... |
Sets this color bar's vertical position anchor This anchor
binds the `y` position to the "top", "middle" or "bottom" of
the color bar.
The 'yanchor' property is an enumeration that may be specified as:
- One of the following enumeration values:
['top', 'mi... | def yanchor(self):
"""
Sets this color bar's vertical position anchor This anchor
binds the `y` position to the "top", "middle" or "bottom" of
the color bar.
The 'yanchor' property is an enumeration that may be specified as:
- One of the following enumeration value... | [
"def",
"yanchor",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"yanchor\"",
"]"
] | [
1240,
4
] | [
1254,
30
] | python | en | ['en', 'error', 'th'] | False |
ColorBar.ypad | (self) |
Sets the amount of padding (in px) along the y direction.
The 'ypad' property is a number and may be specified as:
- An int or float in the interval [0, inf]
Returns
-------
int|float
|
Sets the amount of padding (in px) along the y direction.
The 'ypad' property is a number and may be specified as:
- An int or float in the interval [0, inf] | def ypad(self):
"""
Sets the amount of padding (in px) along the y direction.
The 'ypad' property is a number and may be specified as:
- An int or float in the interval [0, inf]
Returns
-------
int|float
"""
return self["ypad"] | [
"def",
"ypad",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"ypad\"",
"]"
] | [
1263,
4
] | [
1274,
27
] | python | en | ['en', 'error', 'th'] | False |
ColorBar.__init__ | (
self,
arg=None,
bgcolor=None,
bordercolor=None,
borderwidth=None,
dtick=None,
exponentformat=None,
len=None,
lenmode=None,
nticks=None,
outlinecolor=None,
outlinewidth=None,
separatethousands=None,
showexpo... |
Construct a new ColorBar object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.surface.ColorBar`
bgcolor
Sets the color of padded area.
bor... |
Construct a new ColorBar object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.surface.ColorBar`
bgcolor
Sets the color of padded area.
bor... | def __init__(
self,
arg=None,
bgcolor=None,
bordercolor=None,
borderwidth=None,
dtick=None,
exponentformat=None,
len=None,
lenmode=None,
nticks=None,
outlinecolor=None,
outlinewidth=None,
separatethousands=None,
... | [
"def",
"__init__",
"(",
"self",
",",
"arg",
"=",
"None",
",",
"bgcolor",
"=",
"None",
",",
"bordercolor",
"=",
"None",
",",
"borderwidth",
"=",
"None",
",",
"dtick",
"=",
"None",
",",
"exponentformat",
"=",
"None",
",",
"len",
"=",
"None",
",",
"lenm... | [
1481,
4
] | [
1940,
34
] | python | en | ['en', 'error', 'th'] | False |
Bottleneck.init_weights | (self) | Initialize the weights. | Initialize the weights. | def init_weights(self):
"""Initialize the weights."""
if self.rfp_inplanes:
constant_init(self.rfp_conv, 0) | [
"def",
"init_weights",
"(",
"self",
")",
":",
"if",
"self",
".",
"rfp_inplanes",
":",
"constant_init",
"(",
"self",
".",
"rfp_conv",
",",
"0",
")"
] | [
60,
4
] | [
63,
43
] | python | en | ['en', 'en', 'en'] | True |
Bottleneck.rfp_forward | (self, x, rfp_feat) | The forward function that also takes the RFP features as input. | The forward function that also takes the RFP features as input. | def rfp_forward(self, x, rfp_feat):
"""The forward function that also takes the RFP features as input."""
def _inner_forward(x):
identity = x
out = self.conv1(x)
out = self.norm1(out)
out = self.relu(out)
if self.with_plugins:
... | [
"def",
"rfp_forward",
"(",
"self",
",",
"x",
",",
"rfp_feat",
")",
":",
"def",
"_inner_forward",
"(",
"x",
")",
":",
"identity",
"=",
"x",
"out",
"=",
"self",
".",
"conv1",
"(",
"x",
")",
"out",
"=",
"self",
".",
"norm1",
"(",
"out",
")",
"out",
... | [
65,
4
] | [
109,
18
] | python | en | ['en', 'en', 'en'] | True |
Aaxis.arraydtick | (self) |
The stride between grid lines along the axis
The 'arraydtick' property is a integer and may be specified as:
- An int (or float that will be cast to an int)
in the interval [1, 9223372036854775807]
Returns
-------
int
|
The stride between grid lines along the axis
The 'arraydtick' property is a integer and may be specified as:
- An int (or float that will be cast to an int)
in the interval [1, 9223372036854775807] | def arraydtick(self):
"""
The stride between grid lines along the axis
The 'arraydtick' property is a integer and may be specified as:
- An int (or float that will be cast to an int)
in the interval [1, 9223372036854775807]
Returns
-------
int
... | [
"def",
"arraydtick",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"arraydtick\"",
"]"
] | [
71,
4
] | [
83,
33
] | python | en | ['en', 'error', 'th'] | False |
Aaxis.arraytick0 | (self) |
The starting index of grid lines along the axis
The 'arraytick0' property is a integer and may be specified as:
- An int (or float that will be cast to an int)
in the interval [0, 9223372036854775807]
Returns
-------
int
|
The starting index of grid lines along the axis
The 'arraytick0' property is a integer and may be specified as:
- An int (or float that will be cast to an int)
in the interval [0, 9223372036854775807] | def arraytick0(self):
"""
The starting index of grid lines along the axis
The 'arraytick0' property is a integer and may be specified as:
- An int (or float that will be cast to an int)
in the interval [0, 9223372036854775807]
Returns
-------
i... | [
"def",
"arraytick0",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"arraytick0\"",
"]"
] | [
92,
4
] | [
104,
33
] | python | en | ['en', 'error', 'th'] | False |
Aaxis.autorange | (self) |
Determines whether or not the range of this axis is computed in
relation to the input data. See `rangemode` for more info. If
`range` is provided, then `autorange` is set to False.
The 'autorange' property is an enumeration that may be specified as:
- One of the following... |
Determines whether or not the range of this axis is computed in
relation to the input data. See `rangemode` for more info. If
`range` is provided, then `autorange` is set to False.
The 'autorange' property is an enumeration that may be specified as:
- One of the following... | def autorange(self):
"""
Determines whether or not the range of this axis is computed in
relation to the input data. See `rangemode` for more info. If
`range` is provided, then `autorange` is set to False.
The 'autorange' property is an enumeration that may be specified as:
... | [
"def",
"autorange",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"autorange\"",
"]"
] | [
113,
4
] | [
127,
32
] | python | en | ['en', 'error', 'th'] | False |
Aaxis.categoryarray | (self) |
Sets the order in which categories on this axis appear. Only
has an effect if `categoryorder` is set to "array". Used with
`categoryorder`.
The 'categoryarray' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series
Returns
... |
Sets the order in which categories on this axis appear. Only
has an effect if `categoryorder` is set to "array". Used with
`categoryorder`.
The 'categoryarray' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series | def categoryarray(self):
"""
Sets the order in which categories on this axis appear. Only
has an effect if `categoryorder` is set to "array". Used with
`categoryorder`.
The 'categoryarray' property is an array that may be specified as a tuple,
list, numpy array, or p... | [
"def",
"categoryarray",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"categoryarray\"",
"]"
] | [
136,
4
] | [
149,
36
] | python | en | ['en', 'error', 'th'] | False |
Aaxis.categoryarraysrc | (self) |
Sets the source reference on Chart Studio Cloud for
categoryarray .
The 'categoryarraysrc' 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
categoryarray .
The 'categoryarraysrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def categoryarraysrc(self):
"""
Sets the source reference on Chart Studio Cloud for
categoryarray .
The 'categoryarraysrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return se... | [
"def",
"categoryarraysrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"categoryarraysrc\"",
"]"
] | [
158,
4
] | [
170,
39
] | python | en | ['en', 'error', 'th'] | False |
Aaxis.categoryorder | (self) |
Specifies the ordering logic for the case of categorical
variables. By default, plotly uses "trace", which specifies the
order that is present in the data supplied. Set `categoryorder`
to *category ascending* or *category descending* if order
should be determined by the alphanum... |
Specifies the ordering logic for the case of categorical
variables. By default, plotly uses "trace", which specifies the
order that is present in the data supplied. Set `categoryorder`
to *category ascending* or *category descending* if order
should be determined by the alphanum... | def categoryorder(self):
"""
Specifies the ordering logic for the case of categorical
variables. By default, plotly uses "trace", which specifies the
order that is present in the data supplied. Set `categoryorder`
to *category ascending* or *category descending* if order
... | [
"def",
"categoryorder",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"categoryorder\"",
"]"
] | [
179,
4
] | [
202,
36
] | python | en | ['en', 'error', 'th'] | False |
Aaxis.cheatertype | (self) |
The 'cheatertype' property is an enumeration that may be specified as:
- One of the following enumeration values:
['index', 'value']
Returns
-------
Any
|
The 'cheatertype' property is an enumeration that may be specified as:
- One of the following enumeration values:
['index', 'value'] | def cheatertype(self):
"""
The 'cheatertype' property is an enumeration that may be specified as:
- One of the following enumeration values:
['index', 'value']
Returns
-------
Any
"""
return self["cheatertype"] | [
"def",
"cheatertype",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"cheatertype\"",
"]"
] | [
211,
4
] | [
221,
34
] | python | en | ['en', 'error', 'th'] | False |
Aaxis.color | (self) |
Sets default for all colors associated with this axis all at
once: line, font, tick, and grid colors. Grid color is
lightened by blending this with the plot background Individual
pieces can override this.
The 'color' property is a color and may be specified as:
- ... |
Sets default for all colors associated with this axis all at
once: line, font, tick, and grid colors. Grid color is
lightened by blending this with the plot background Individual
pieces can override this.
The 'color' property is a color and may be specified as:
- ... | def color(self):
"""
Sets default for all colors associated with this axis all at
once: line, font, tick, and grid colors. Grid color is
lightened by blending this with the plot background Individual
pieces can override this.
The 'color' property is a color and may b... | [
"def",
"color",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"color\"",
"]"
] | [
230,
4
] | [
283,
28
] | python | en | ['en', 'error', 'th'] | False |
Aaxis.dtick | (self) |
The stride between grid lines along the axis
The 'dtick' property is a number and may be specified as:
- An int or float in the interval [0, inf]
Returns
-------
int|float
|
The stride between grid lines along the axis
The 'dtick' property is a number and may be specified as:
- An int or float in the interval [0, inf] | def dtick(self):
"""
The stride between grid lines along the axis
The 'dtick' property is a number and may be specified as:
- An int or float in the interval [0, inf]
Returns
-------
int|float
"""
return self["dtick"] | [
"def",
"dtick",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"dtick\"",
"]"
] | [
292,
4
] | [
303,
28
] | python | en | ['en', 'error', 'th'] | False |
Aaxis.endline | (self) |
Determines whether or not a line is drawn at along the final
value of this axis. If True, the end line is drawn on top of
the grid lines.
The 'endline' property must be specified as a bool
(either True, or False)
Returns
-------
bool
|
Determines whether or not a line is drawn at along the final
value of this axis. If True, the end line is drawn on top of
the grid lines.
The 'endline' property must be specified as a bool
(either True, or False) | def endline(self):
"""
Determines whether or not a line is drawn at along the final
value of this axis. If True, the end line is drawn on top of
the grid lines.
The 'endline' property must be specified as a bool
(either True, or False)
Returns
------... | [
"def",
"endline",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"endline\"",
"]"
] | [
312,
4
] | [
325,
30
] | python | en | ['en', 'error', 'th'] | False |
Aaxis.endlinecolor | (self) |
Sets the line color of the end line.
The 'endlinecolor' 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,10... |
Sets the line color of the end line.
The 'endlinecolor' 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,10... | def endlinecolor(self):
"""
Sets the line color of the end line.
The 'endlinecolor' 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%)')
-... | [
"def",
"endlinecolor",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"endlinecolor\"",
"]"
] | [
334,
4
] | [
384,
35
] | python | en | ['en', 'error', 'th'] | False |
Aaxis.endlinewidth | (self) |
Sets the width (in px) of the end line.
The 'endlinewidth' property is a number and may be specified as:
- An int or float
Returns
-------
int|float
|
Sets the width (in px) of the end line.
The 'endlinewidth' property is a number and may be specified as:
- An int or float | def endlinewidth(self):
"""
Sets the width (in px) of the end line.
The 'endlinewidth' property is a number and may be specified as:
- An int or float
Returns
-------
int|float
"""
return self["endlinewidth"] | [
"def",
"endlinewidth",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"endlinewidth\"",
"]"
] | [
393,
4
] | [
404,
35
] | python | en | ['en', 'error', 'th'] | False |
Aaxis.exponentformat | (self) |
Determines a formatting rule for the tick exponents. For
example, consider the number 1,000,000,000. If "none", it
appears as 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If
"power", 1x10^9 (with 9 in a super script). If "SI", 1G. If
"B", 1B.
The 'exponentformat' prop... |
Determines a formatting rule for the tick exponents. For
example, consider the number 1,000,000,000. If "none", it
appears as 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If
"power", 1x10^9 (with 9 in a super script). If "SI", 1G. If
"B", 1B.
The 'exponentformat' prop... | def exponentformat(self):
"""
Determines a formatting rule for the tick exponents. For
example, consider the number 1,000,000,000. If "none", it
appears as 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If
"power", 1x10^9 (with 9 in a super script). If "SI", 1G. If
"B", 1B.
... | [
"def",
"exponentformat",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"exponentformat\"",
"]"
] | [
413,
4
] | [
429,
37
] | python | en | ['en', 'error', 'th'] | False |
Aaxis.fixedrange | (self) |
Determines whether or not this axis is zoom-able. If true, then
zoom is disabled.
The 'fixedrange' property must be specified as a bool
(either True, or False)
Returns
-------
bool
|
Determines whether or not this axis is zoom-able. If true, then
zoom is disabled.
The 'fixedrange' property must be specified as a bool
(either True, or False) | def fixedrange(self):
"""
Determines whether or not this axis is zoom-able. If true, then
zoom is disabled.
The 'fixedrange' property must be specified as a bool
(either True, or False)
Returns
-------
bool
"""
return self["fixedrange... | [
"def",
"fixedrange",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"fixedrange\"",
"]"
] | [
438,
4
] | [
450,
33
] | python | en | ['en', 'error', 'th'] | False |
Aaxis.gridcolor | (self) |
Sets the axis line color.
The 'gridcolor' 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%)')
... |
Sets the axis line color.
The 'gridcolor' 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%)')
... | def gridcolor(self):
"""
Sets the axis line color.
The 'gridcolor' 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 stri... | [
"def",
"gridcolor",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"gridcolor\"",
"]"
] | [
459,
4
] | [
509,
32
] | python | en | ['en', 'error', 'th'] | False |
Aaxis.gridwidth | (self) |
Sets the width (in px) of the axis line.
The 'gridwidth' property is a number and may be specified as:
- An int or float in the interval [0, inf]
Returns
-------
int|float
|
Sets the width (in px) of the axis line.
The 'gridwidth' property is a number and may be specified as:
- An int or float in the interval [0, inf] | def gridwidth(self):
"""
Sets the width (in px) of the axis line.
The 'gridwidth' property is a number and may be specified as:
- An int or float in the interval [0, inf]
Returns
-------
int|float
"""
return self["gridwidth"] | [
"def",
"gridwidth",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"gridwidth\"",
"]"
] | [
518,
4
] | [
529,
32
] | python | en | ['en', 'error', 'th'] | False |
Aaxis.labelpadding | (self) |
Extra padding between label and the axis
The 'labelpadding' property is a integer and may be specified as:
- An int (or float that will be cast to an int)
Returns
-------
int
|
Extra padding between label and the axis
The 'labelpadding' property is a integer and may be specified as:
- An int (or float that will be cast to an int) | def labelpadding(self):
"""
Extra padding between label and the axis
The 'labelpadding' property is a integer and may be specified as:
- An int (or float that will be cast to an int)
Returns
-------
int
"""
return self["labelpadding"] | [
"def",
"labelpadding",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"labelpadding\"",
"]"
] | [
538,
4
] | [
549,
35
] | python | en | ['en', 'error', 'th'] | False |
Aaxis.labelprefix | (self) |
Sets a axis label prefix.
The 'labelprefix' property is a string and must be specified as:
- A string
- A number that will be converted to a string
Returns
-------
str
|
Sets a axis label prefix.
The 'labelprefix' property is a string and must be specified as:
- A string
- A number that will be converted to a string | def labelprefix(self):
"""
Sets a axis label prefix.
The 'labelprefix' property is a string and must be specified as:
- A string
- A number that will be converted to a string
Returns
-------
str
"""
return self["labelprefix"] | [
"def",
"labelprefix",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"labelprefix\"",
"]"
] | [
558,
4
] | [
570,
34
] | python | en | ['en', 'error', 'th'] | False |
Aaxis.labelsuffix | (self) |
Sets a axis label suffix.
The 'labelsuffix' property is a string and must be specified as:
- A string
- A number that will be converted to a string
Returns
-------
str
|
Sets a axis label suffix.
The 'labelsuffix' property is a string and must be specified as:
- A string
- A number that will be converted to a string | def labelsuffix(self):
"""
Sets a axis label suffix.
The 'labelsuffix' property is a string and must be specified as:
- A string
- A number that will be converted to a string
Returns
-------
str
"""
return self["labelsuffix"] | [
"def",
"labelsuffix",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"labelsuffix\"",
"]"
] | [
579,
4
] | [
591,
34
] | python | en | ['en', 'error', 'th'] | False |
Aaxis.linecolor | (self) |
Sets the axis line color.
The 'linecolor' 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%)')
... |
Sets the axis line color.
The 'linecolor' 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%)')
... | def linecolor(self):
"""
Sets the axis line color.
The 'linecolor' 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 stri... | [
"def",
"linecolor",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"linecolor\"",
"]"
] | [
600,
4
] | [
650,
32
] | python | en | ['en', 'error', 'th'] | False |
Aaxis.linewidth | (self) |
Sets the width (in px) of the axis line.
The 'linewidth' property is a number and may be specified as:
- An int or float in the interval [0, inf]
Returns
-------
int|float
|
Sets the width (in px) of the axis line.
The 'linewidth' property is a number and may be specified as:
- An int or float in the interval [0, inf] | def linewidth(self):
"""
Sets the width (in px) of the axis line.
The 'linewidth' property is a number and may be specified as:
- An int or float in the interval [0, inf]
Returns
-------
int|float
"""
return self["linewidth"] | [
"def",
"linewidth",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"linewidth\"",
"]"
] | [
659,
4
] | [
670,
32
] | python | en | ['en', 'error', 'th'] | False |
Aaxis.minorgridcolor | (self) |
Sets the color of the grid lines.
The 'minorgridcolor' 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... |
Sets the color of the grid lines.
The 'minorgridcolor' 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... | def minorgridcolor(self):
"""
Sets the color of the grid lines.
The 'minorgridcolor' 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%)')
... | [
"def",
"minorgridcolor",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"minorgridcolor\"",
"]"
] | [
679,
4
] | [
729,
37
] | python | en | ['en', 'error', 'th'] | False |
Aaxis.minorgridcount | (self) |
Sets the number of minor grid ticks per major grid tick
The 'minorgridcount' property is a integer and may be specified as:
- An int (or float that will be cast to an int)
in the interval [0, 9223372036854775807]
Returns
-------
int
|
Sets the number of minor grid ticks per major grid tick
The 'minorgridcount' property is a integer and may be specified as:
- An int (or float that will be cast to an int)
in the interval [0, 9223372036854775807] | def minorgridcount(self):
"""
Sets the number of minor grid ticks per major grid tick
The 'minorgridcount' property is a integer and may be specified as:
- An int (or float that will be cast to an int)
in the interval [0, 9223372036854775807]
Returns
-... | [
"def",
"minorgridcount",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"minorgridcount\"",
"]"
] | [
738,
4
] | [
750,
37
] | python | en | ['en', 'error', 'th'] | False |
Aaxis.minorgridwidth | (self) |
Sets the width (in px) of the grid lines.
The 'minorgridwidth' property is a number and may be specified as:
- An int or float in the interval [0, inf]
Returns
-------
int|float
|
Sets the width (in px) of the grid lines.
The 'minorgridwidth' property is a number and may be specified as:
- An int or float in the interval [0, inf] | def minorgridwidth(self):
"""
Sets the width (in px) of the grid lines.
The 'minorgridwidth' property is a number and may be specified as:
- An int or float in the interval [0, inf]
Returns
-------
int|float
"""
return self["minorgridwidth"... | [
"def",
"minorgridwidth",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"minorgridwidth\"",
"]"
] | [
759,
4
] | [
770,
37
] | python | en | ['en', 'error', 'th'] | False |
Aaxis.nticks | (self) |
Specifies the maximum number of ticks for the particular axis.
The actual number of ticks will be chosen automatically to be
less than or equal to `nticks`. Has an effect only if
`tickmode` is set to "auto".
The 'nticks' property is a integer and may be specified as:
... |
Specifies the maximum number of ticks for the particular axis.
The actual number of ticks will be chosen automatically to be
less than or equal to `nticks`. Has an effect only if
`tickmode` is set to "auto".
The 'nticks' property is a integer and may be specified as:
... | def nticks(self):
"""
Specifies the maximum number of ticks for the particular axis.
The actual number of ticks will be chosen automatically to be
less than or equal to `nticks`. Has an effect only if
`tickmode` is set to "auto".
The 'nticks' property is a integer an... | [
"def",
"nticks",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"nticks\"",
"]"
] | [
779,
4
] | [
794,
29
] | python | en | ['en', 'error', 'th'] | False |
Aaxis.range | (self) |
Sets the range of this axis. If the axis `type` is "log", then
you must take the log of your desired range (e.g. to set the
range from 1 to 100, set the range from 0 to 2). If the axis
`type` is "date", it should be date strings, like date data,
though Date objects and unix mill... |
Sets the range of this axis. If the axis `type` is "log", then
you must take the log of your desired range (e.g. to set the
range from 1 to 100, set the range from 0 to 2). If the axis
`type` is "date", it should be date strings, like date data,
though Date objects and unix mill... | def range(self):
"""
Sets the range of this axis. If the axis `type` is "log", then
you must take the log of your desired range (e.g. to set the
range from 1 to 100, set the range from 0 to 2). If the axis
`type` is "date", it should be date strings, like date data,
thoug... | [
"def",
"range",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"range\"",
"]"
] | [
803,
4
] | [
824,
28
] | python | en | ['en', 'error', 'th'] | False |
Aaxis.rangemode | (self) |
If "normal", the range is computed in relation to the extrema
of the input data. If *tozero*`, the range extends to 0,
regardless of the input data If "nonnegative", the range is
non-negative, regardless of the input data.
The 'rangemode' property is an enumeration that may... |
If "normal", the range is computed in relation to the extrema
of the input data. If *tozero*`, the range extends to 0,
regardless of the input data If "nonnegative", the range is
non-negative, regardless of the input data.
The 'rangemode' property is an enumeration that may... | def rangemode(self):
"""
If "normal", the range is computed in relation to the extrema
of the input data. If *tozero*`, the range extends to 0,
regardless of the input data If "nonnegative", the range is
non-negative, regardless of the input data.
The 'rangemode' pro... | [
"def",
"rangemode",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"rangemode\"",
"]"
] | [
833,
4
] | [
848,
32
] | python | en | ['en', 'error', 'th'] | False |
Aaxis.separatethousands | (self) |
If "true", even 4-digit integers are separated
The 'separatethousands' property must be specified as a bool
(either True, or False)
Returns
-------
bool
|
If "true", even 4-digit integers are separated
The 'separatethousands' property must be specified as a bool
(either True, or False) | def separatethousands(self):
"""
If "true", even 4-digit integers are separated
The 'separatethousands' property must be specified as a bool
(either True, or False)
Returns
-------
bool
"""
return self["separatethousands"] | [
"def",
"separatethousands",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"separatethousands\"",
"]"
] | [
857,
4
] | [
868,
40
] | python | en | ['en', 'error', 'th'] | False |
Aaxis.showexponent | (self) |
If "all", all exponents are shown besides their significands.
If "first", only the exponent of the first tick is shown. If
"last", only the exponent of the last tick is shown. If "none",
no exponents appear.
The 'showexponent' property is an enumeration that may be specifie... |
If "all", all exponents are shown besides their significands.
If "first", only the exponent of the first tick is shown. If
"last", only the exponent of the last tick is shown. If "none",
no exponents appear.
The 'showexponent' property is an enumeration that may be specifie... | def showexponent(self):
"""
If "all", all exponents are shown besides their significands.
If "first", only the exponent of the first tick is shown. If
"last", only the exponent of the last tick is shown. If "none",
no exponents appear.
The 'showexponent' property is ... | [
"def",
"showexponent",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"showexponent\"",
"]"
] | [
877,
4
] | [
892,
35
] | python | en | ['en', 'error', 'th'] | False |
Aaxis.showgrid | (self) |
Determines whether or not grid lines are drawn. If True, the
grid lines are drawn at every tick mark.
The 'showgrid' property must be specified as a bool
(either True, or False)
Returns
-------
bool
|
Determines whether or not grid lines are drawn. If True, the
grid lines are drawn at every tick mark.
The 'showgrid' property must be specified as a bool
(either True, or False) | def showgrid(self):
"""
Determines whether or not grid lines are drawn. If True, the
grid lines are drawn at every tick mark.
The 'showgrid' property must be specified as a bool
(either True, or False)
Returns
-------
bool
"""
return ... | [
"def",
"showgrid",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"showgrid\"",
"]"
] | [
901,
4
] | [
913,
31
] | python | en | ['en', 'error', 'th'] | False |
Aaxis.showline | (self) |
Determines whether or not a line bounding this axis is drawn.
The 'showline' property must be specified as a bool
(either True, or False)
Returns
-------
bool
|
Determines whether or not a line bounding this axis is drawn.
The 'showline' property must be specified as a bool
(either True, or False) | def showline(self):
"""
Determines whether or not a line bounding this axis is drawn.
The 'showline' property must be specified as a bool
(either True, or False)
Returns
-------
bool
"""
return self["showline"] | [
"def",
"showline",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"showline\"",
"]"
] | [
922,
4
] | [
933,
31
] | python | en | ['en', 'error', 'th'] | False |
Aaxis.showticklabels | (self) |
Determines whether axis labels are drawn on the low side, the
high side, both, or neither side of the axis.
The 'showticklabels' property is an enumeration that may be specified as:
- One of the following enumeration values:
['start', 'end', 'both', 'none']
... |
Determines whether axis labels are drawn on the low side, the
high side, both, or neither side of the axis.
The 'showticklabels' property is an enumeration that may be specified as:
- One of the following enumeration values:
['start', 'end', 'both', 'none'] | def showticklabels(self):
"""
Determines whether axis labels are drawn on the low side, the
high side, both, or neither side of the axis.
The 'showticklabels' property is an enumeration that may be specified as:
- One of the following enumeration values:
['... | [
"def",
"showticklabels",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"showticklabels\"",
"]"
] | [
942,
4
] | [
955,
37
] | python | en | ['en', 'error', 'th'] | False |
Aaxis.showtickprefix | (self) |
If "all", all tick labels are displayed with a prefix. If
"first", only the first tick is displayed with a prefix. If
"last", only the last tick is displayed with a suffix. If
"none", tick prefixes are hidden.
The 'showtickprefix' property is an enumeration that may be spec... |
If "all", all tick labels are displayed with a prefix. If
"first", only the first tick is displayed with a prefix. If
"last", only the last tick is displayed with a suffix. If
"none", tick prefixes are hidden.
The 'showtickprefix' property is an enumeration that may be spec... | def showtickprefix(self):
"""
If "all", all tick labels are displayed with a prefix. If
"first", only the first tick is displayed with a prefix. If
"last", only the last tick is displayed with a suffix. If
"none", tick prefixes are hidden.
The 'showtickprefix' proper... | [
"def",
"showtickprefix",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"showtickprefix\"",
"]"
] | [
964,
4
] | [
979,
37
] | python | en | ['en', 'error', 'th'] | False |
Aaxis.showticksuffix | (self) |
Same as `showtickprefix` but for tick suffixes.
The 'showticksuffix' property is an enumeration that may be specified as:
- One of the following enumeration values:
['all', 'first', 'last', 'none']
Returns
-------
Any
|
Same as `showtickprefix` but for tick suffixes.
The 'showticksuffix' property is an enumeration that may be specified as:
- One of the following enumeration values:
['all', 'first', 'last', 'none'] | def showticksuffix(self):
"""
Same as `showtickprefix` but for tick suffixes.
The 'showticksuffix' property is an enumeration that may be specified as:
- One of the following enumeration values:
['all', 'first', 'last', 'none']
Returns
-------
... | [
"def",
"showticksuffix",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"showticksuffix\"",
"]"
] | [
988,
4
] | [
1000,
37
] | python | en | ['en', 'error', 'th'] | False |
Aaxis.smoothing | (self) |
The 'smoothing' property is a number and may be specified as:
- An int or float in the interval [0, 1.3]
Returns
-------
int|float
|
The 'smoothing' property is a number and may be specified as:
- An int or float in the interval [0, 1.3] | def smoothing(self):
"""
The 'smoothing' property is a number and may be specified as:
- An int or float in the interval [0, 1.3]
Returns
-------
int|float
"""
return self["smoothing"] | [
"def",
"smoothing",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"smoothing\"",
"]"
] | [
1009,
4
] | [
1018,
32
] | python | en | ['en', 'error', 'th'] | False |
Aaxis.startline | (self) |
Determines whether or not a line is drawn at along the starting
value of this axis. If True, the start line is drawn on top of
the grid lines.
The 'startline' property must be specified as a bool
(either True, or False)
Returns
-------
bool
|
Determines whether or not a line is drawn at along the starting
value of this axis. If True, the start line is drawn on top of
the grid lines.
The 'startline' property must be specified as a bool
(either True, or False) | def startline(self):
"""
Determines whether or not a line is drawn at along the starting
value of this axis. If True, the start line is drawn on top of
the grid lines.
The 'startline' property must be specified as a bool
(either True, or False)
Returns
... | [
"def",
"startline",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"startline\"",
"]"
] | [
1027,
4
] | [
1040,
32
] | python | en | ['en', 'error', 'th'] | False |
Aaxis.startlinecolor | (self) |
Sets the line color of the start line.
The 'startlinecolor' 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(... |
Sets the line color of the start line.
The 'startlinecolor' 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(... | def startlinecolor(self):
"""
Sets the line color of the start line.
The 'startlinecolor' 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%)')
... | [
"def",
"startlinecolor",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"startlinecolor\"",
"]"
] | [
1049,
4
] | [
1099,
37
] | python | en | ['en', 'error', 'th'] | False |
Aaxis.startlinewidth | (self) |
Sets the width (in px) of the start line.
The 'startlinewidth' property is a number and may be specified as:
- An int or float
Returns
-------
int|float
|
Sets the width (in px) of the start line.
The 'startlinewidth' property is a number and may be specified as:
- An int or float | def startlinewidth(self):
"""
Sets the width (in px) of the start line.
The 'startlinewidth' property is a number and may be specified as:
- An int or float
Returns
-------
int|float
"""
return self["startlinewidth"] | [
"def",
"startlinewidth",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"startlinewidth\"",
"]"
] | [
1108,
4
] | [
1119,
37
] | python | en | ['en', 'error', 'th'] | False |
Aaxis.tick0 | (self) |
The starting index of grid lines along the axis
The 'tick0' property is a number and may be specified as:
- An int or float in the interval [0, inf]
Returns
-------
int|float
|
The starting index of grid lines along the axis
The 'tick0' property is a number and may be specified as:
- An int or float in the interval [0, inf] | def tick0(self):
"""
The starting index of grid lines along the axis
The 'tick0' property is a number and may be specified as:
- An int or float in the interval [0, inf]
Returns
-------
int|float
"""
return self["tick0"] | [
"def",
"tick0",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"tick0\"",
"]"
] | [
1128,
4
] | [
1139,
28
] | python | en | ['en', 'error', 'th'] | False |
Aaxis.tickangle | (self) |
Sets the angle of the tick labels with respect to the
horizontal. For example, a `tickangle` of -90 draws the tick
labels vertically.
The 'tickangle' property is a angle (in degrees) that may be
specified as a number between -180 and 180. Numeric values outside this
... |
Sets the angle of the tick labels with respect to the
horizontal. For example, a `tickangle` of -90 draws the tick
labels vertically.
The 'tickangle' property is a angle (in degrees) that may be
specified as a number between -180 and 180. Numeric values outside this
... | def tickangle(self):
"""
Sets the angle of the tick labels with respect to the
horizontal. For example, a `tickangle` of -90 draws the tick
labels vertically.
The 'tickangle' property is a angle (in degrees) that may be
specified as a number between -180 and 180. Num... | [
"def",
"tickangle",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"tickangle\"",
"]"
] | [
1148,
4
] | [
1163,
32
] | python | en | ['en', 'error', 'th'] | False |
Aaxis.tickfont | (self) |
Sets the tick font.
The 'tickfont' property is an instance of Tickfont
that may be specified as:
- An instance of :class:`plotly.graph_objs.carpet.aaxis.Tickfont`
- A dict of string/value properties that will be passed
to the Tickfont constructor
... |
Sets the tick font.
The 'tickfont' property is an instance of Tickfont
that may be specified as:
- An instance of :class:`plotly.graph_objs.carpet.aaxis.Tickfont`
- A dict of string/value properties that will be passed
to the Tickfont constructor
... | def tickfont(self):
"""
Sets the tick font.
The 'tickfont' property is an instance of Tickfont
that may be specified as:
- An instance of :class:`plotly.graph_objs.carpet.aaxis.Tickfont`
- A dict of string/value properties that will be passed
to the T... | [
"def",
"tickfont",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"tickfont\"",
"]"
] | [
1172,
4
] | [
1209,
31
] | python | en | ['en', 'error', 'th'] | False |
Aaxis.tickformat | (self) |
Sets the tick label formatting rule using d3 formatting mini-
languages which are very similar to those in Python. For
numbers, see: https://github.com/d3/d3-3.x-api-
reference/blob/master/Formatting.md#d3_format And for dates
see: We add one item to d3's date formatter: "%{n}f... |
Sets the tick label formatting rule using d3 formatting mini-
languages which are very similar to those in Python. For
numbers, see: https://github.com/d3/d3-3.x-api-
reference/blob/master/Formatting.md#d3_format And for dates
see: We add one item to d3's date formatter: "%{n}f... | def tickformat(self):
"""
Sets the tick label formatting rule using d3 formatting mini-
languages which are very similar to those in Python. For
numbers, see: https://github.com/d3/d3-3.x-api-
reference/blob/master/Formatting.md#d3_format And for dates
see: We add one it... | [
"def",
"tickformat",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"tickformat\"",
"]"
] | [
1218,
4
] | [
1237,
33
] | python | en | ['en', 'error', 'th'] | False |
Aaxis.tickformatstops | (self) |
The 'tickformatstops' property is a tuple of instances of
Tickformatstop that may be specified as:
- A list or tuple of instances of plotly.graph_objs.carpet.aaxis.Tickformatstop
- A list or tuple of dicts of string/value properties that
will be passed to the Tickformats... |
The 'tickformatstops' property is a tuple of instances of
Tickformatstop that may be specified as:
- A list or tuple of instances of plotly.graph_objs.carpet.aaxis.Tickformatstop
- A list or tuple of dicts of string/value properties that
will be passed to the Tickformats... | def tickformatstops(self):
"""
The 'tickformatstops' property is a tuple of instances of
Tickformatstop that may be specified as:
- A list or tuple of instances of plotly.graph_objs.carpet.aaxis.Tickformatstop
- A list or tuple of dicts of string/value properties that
... | [
"def",
"tickformatstops",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"tickformatstops\"",
"]"
] | [
1246,
4
] | [
1294,
38
] | python | en | ['en', 'error', 'th'] | False |
Aaxis.tickformatstopdefaults | (self) |
When used in a template (as
layout.template.data.carpet.aaxis.tickformatstopdefaults), sets
the default property values to use for elements of
carpet.aaxis.tickformatstops
The 'tickformatstopdefaults' property is an instance of Tickformatstop
that may be specified a... |
When used in a template (as
layout.template.data.carpet.aaxis.tickformatstopdefaults), sets
the default property values to use for elements of
carpet.aaxis.tickformatstops
The 'tickformatstopdefaults' property is an instance of Tickformatstop
that may be specified a... | def tickformatstopdefaults(self):
"""
When used in a template (as
layout.template.data.carpet.aaxis.tickformatstopdefaults), sets
the default property values to use for elements of
carpet.aaxis.tickformatstops
The 'tickformatstopdefaults' property is an instance of T... | [
"def",
"tickformatstopdefaults",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"tickformatstopdefaults\"",
"]"
] | [
1303,
4
] | [
1322,
45
] | python | en | ['en', 'error', 'th'] | False |
Aaxis.tickmode | (self) |
The 'tickmode' property is an enumeration that may be specified as:
- One of the following enumeration values:
['linear', 'array']
Returns
-------
Any
|
The 'tickmode' property is an enumeration that may be specified as:
- One of the following enumeration values:
['linear', 'array'] | def tickmode(self):
"""
The 'tickmode' property is an enumeration that may be specified as:
- One of the following enumeration values:
['linear', 'array']
Returns
-------
Any
"""
return self["tickmode"] | [
"def",
"tickmode",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"tickmode\"",
"]"
] | [
1331,
4
] | [
1341,
31
] | python | en | ['en', 'error', 'th'] | False |
Aaxis.tickprefix | (self) |
Sets a tick label prefix.
The 'tickprefix' property is a string and must be specified as:
- A string
- A number that will be converted to a string
Returns
-------
str
|
Sets a tick label prefix.
The 'tickprefix' property is a string and must be specified as:
- A string
- A number that will be converted to a string | def tickprefix(self):
"""
Sets a tick label prefix.
The 'tickprefix' property is a string and must be specified as:
- A string
- A number that will be converted to a string
Returns
-------
str
"""
return self["tickprefix"] | [
"def",
"tickprefix",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"tickprefix\"",
"]"
] | [
1350,
4
] | [
1362,
33
] | python | en | ['en', 'error', 'th'] | False |
Aaxis.ticksuffix | (self) |
Sets a tick label suffix.
The 'ticksuffix' property is a string and must be specified as:
- A string
- A number that will be converted to a string
Returns
-------
str
|
Sets a tick label suffix.
The 'ticksuffix' property is a string and must be specified as:
- A string
- A number that will be converted to a string | def ticksuffix(self):
"""
Sets a tick label suffix.
The 'ticksuffix' property is a string and must be specified as:
- A string
- A number that will be converted to a string
Returns
-------
str
"""
return self["ticksuffix"] | [
"def",
"ticksuffix",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"ticksuffix\"",
"]"
] | [
1371,
4
] | [
1383,
33
] | python | en | ['en', 'error', 'th'] | False |
Aaxis.ticktext | (self) |
Sets the text displayed at the ticks position via `tickvals`.
Only has an effect if `tickmode` is set to "array". Used with
`tickvals`.
The 'ticktext' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series
Returns
-------... |
Sets the text displayed at the ticks position via `tickvals`.
Only has an effect if `tickmode` is set to "array". Used with
`tickvals`.
The 'ticktext' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series | def ticktext(self):
"""
Sets the text displayed at the ticks position via `tickvals`.
Only has an effect if `tickmode` is set to "array". Used with
`tickvals`.
The 'ticktext' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series
... | [
"def",
"ticktext",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"ticktext\"",
"]"
] | [
1392,
4
] | [
1405,
31
] | python | en | ['en', 'error', 'th'] | False |
Aaxis.ticktextsrc | (self) |
Sets the source reference on Chart Studio Cloud for ticktext .
The 'ticktextsrc' 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 ticktext .
The 'ticktextsrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def ticktextsrc(self):
"""
Sets the source reference on Chart Studio Cloud for ticktext .
The 'ticktextsrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["ticktextsrc"] | [
"def",
"ticktextsrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"ticktextsrc\"",
"]"
] | [
1414,
4
] | [
1425,
34
] | python | en | ['en', 'error', 'th'] | False |
Aaxis.tickvals | (self) |
Sets the values at which ticks on this axis appear. Only has an
effect if `tickmode` is set to "array". Used with `ticktext`.
The 'tickvals' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series
Returns
-------
numpy.nda... |
Sets the values at which ticks on this axis appear. Only has an
effect if `tickmode` is set to "array". Used with `ticktext`.
The 'tickvals' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series | def tickvals(self):
"""
Sets the values at which ticks on this axis appear. Only has an
effect if `tickmode` is set to "array". Used with `ticktext`.
The 'tickvals' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series
Returns
... | [
"def",
"tickvals",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"tickvals\"",
"]"
] | [
1434,
4
] | [
1446,
31
] | python | en | ['en', 'error', 'th'] | False |
Aaxis.tickvalssrc | (self) |
Sets the source reference on Chart Studio Cloud for tickvals .
The 'tickvalssrc' 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 tickvals .
The 'tickvalssrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def tickvalssrc(self):
"""
Sets the source reference on Chart Studio Cloud for tickvals .
The 'tickvalssrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["tickvalssrc"] | [
"def",
"tickvalssrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"tickvalssrc\"",
"]"
] | [
1455,
4
] | [
1466,
34
] | python | en | ['en', 'error', 'th'] | False |
Aaxis.title | (self) |
The 'title' property is an instance of Title
that may be specified as:
- An instance of :class:`plotly.graph_objs.carpet.aaxis.Title`
- A dict of string/value properties that will be passed
to the Title constructor
Supported dict properties:
... |
The 'title' property is an instance of Title
that may be specified as:
- An instance of :class:`plotly.graph_objs.carpet.aaxis.Title`
- A dict of string/value properties that will be passed
to the Title constructor
Supported dict properties:
... | def title(self):
"""
The 'title' property is an instance of Title
that may be specified as:
- An instance of :class:`plotly.graph_objs.carpet.aaxis.Title`
- A dict of string/value properties that will be passed
to the Title constructor
Supported d... | [
"def",
"title",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"title\"",
"]"
] | [
1475,
4
] | [
1505,
28
] | python | en | ['en', 'error', 'th'] | False |
Aaxis.titlefont | (self) |
Deprecated: Please use carpet.aaxis.title.font instead. Sets
this axis' title font. Note that the title's font used to be
set by the now deprecated `titlefont` attribute.
The 'font' property is an instance of Font
that may be specified as:
- An instance of :class:... |
Deprecated: Please use carpet.aaxis.title.font instead. Sets
this axis' title font. Note that the title's font used to be
set by the now deprecated `titlefont` attribute.
The 'font' property is an instance of Font
that may be specified as:
- An instance of :class:... | def titlefont(self):
"""
Deprecated: Please use carpet.aaxis.title.font instead. Sets
this axis' title font. Note that the title's font used to be
set by the now deprecated `titlefont` attribute.
The 'font' property is an instance of Font
that may be specified as:
... | [
"def",
"titlefont",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"titlefont\"",
"]"
] | [
1514,
4
] | [
1553,
32
] | python | en | ['en', 'error', 'th'] | False |
Aaxis.titleoffset | (self) |
Deprecated: Please use carpet.aaxis.title.offset instead. An
additional amount by which to offset the title from the tick
labels, given in pixels. Note that this used to be set by the
now deprecated `titleoffset` attribute.
The 'offset' property is a number and may be speci... |
Deprecated: Please use carpet.aaxis.title.offset instead. An
additional amount by which to offset the title from the tick
labels, given in pixels. Note that this used to be set by the
now deprecated `titleoffset` attribute.
The 'offset' property is a number and may be speci... | def titleoffset(self):
"""
Deprecated: Please use carpet.aaxis.title.offset instead. An
additional amount by which to offset the title from the tick
labels, given in pixels. Note that this used to be set by the
now deprecated `titleoffset` attribute.
The 'offset' pro... | [
"def",
"titleoffset",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"titleoffset\"",
"]"
] | [
1562,
4
] | [
1576,
34
] | python | en | ['en', 'error', 'th'] | False |
Aaxis.type | (self) |
Sets the axis type. By default, plotly attempts to determined
the axis type by looking into the data of the traces that
referenced the axis in question.
The 'type' property is an enumeration that may be specified as:
- One of the following enumeration values:
... |
Sets the axis type. By default, plotly attempts to determined
the axis type by looking into the data of the traces that
referenced the axis in question.
The 'type' property is an enumeration that may be specified as:
- One of the following enumeration values:
... | def type(self):
"""
Sets the axis type. By default, plotly attempts to determined
the axis type by looking into the data of the traces that
referenced the axis in question.
The 'type' property is an enumeration that may be specified as:
- One of the following enume... | [
"def",
"type",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"type\"",
"]"
] | [
1585,
4
] | [
1599,
27
] | python | en | ['en', 'error', 'th'] | False |
Aaxis.__init__ | (
self,
arg=None,
arraydtick=None,
arraytick0=None,
autorange=None,
categoryarray=None,
categoryarraysrc=None,
categoryorder=None,
cheatertype=None,
color=None,
dtick=None,
endline=None,
endlinecolor=None,
en... |
Construct a new Aaxis object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of :class:`plotly.graph_objs.carpet.Aaxis`
arraydtick
The stride between grid lines along the axis
array... |
Construct a new Aaxis object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of :class:`plotly.graph_objs.carpet.Aaxis`
arraydtick
The stride between grid lines along the axis
array... | def __init__(
self,
arg=None,
arraydtick=None,
arraytick0=None,
autorange=None,
categoryarray=None,
categoryarraysrc=None,
categoryorder=None,
cheatertype=None,
color=None,
dtick=None,
endline=None,
endlinecolor=None... | [
"def",
"__init__",
"(",
"self",
",",
"arg",
"=",
"None",
",",
"arraydtick",
"=",
"None",
",",
"arraytick0",
"=",
"None",
",",
"autorange",
"=",
"None",
",",
"categoryarray",
"=",
"None",
",",
"categoryarraysrc",
"=",
"None",
",",
"categoryorder",
"=",
"N... | [
1813,
4
] | [
2338,
34
] | python | en | ['en', 'error', 'th'] | False |
resolve_class | (the_cls, relative_cls: type = None) |
Resolve a class.
Args:
the_cls: The class to resolve
relative_cls: Relative class to resolve from
Returns:
The resolved class
Raises:
ClassNotFoundError: If the class could not be loaded
|
Resolve a class. | def resolve_class(the_cls, relative_cls: type = None):
"""
Resolve a class.
Args:
the_cls: The class to resolve
relative_cls: Relative class to resolve from
Returns:
The resolved class
Raises:
ClassNotFoundError: If the class could not be loaded
"""
resolv... | [
"def",
"resolve_class",
"(",
"the_cls",
",",
"relative_cls",
":",
"type",
"=",
"None",
")",
":",
"resolved",
"=",
"None",
"if",
"isinstance",
"(",
"the_cls",
",",
"type",
")",
":",
"resolved",
"=",
"the_cls",
"elif",
"isinstance",
"(",
"the_cls",
",",
"s... | [
14,
0
] | [
35,
19
] | python | en | ['en', 'error', 'th'] | False |
resolve_meta_property | (obj, prop_name: str, defval=None) |
Resolve a meta property.
Args:
prop_name: The property to resolve
defval: The default value
Returns:
The meta property
|
Resolve a meta property. | def resolve_meta_property(obj, prop_name: str, defval=None):
"""
Resolve a meta property.
Args:
prop_name: The property to resolve
defval: The default value
Returns:
The meta property
"""
cls = obj.__class__
found = defval
while cls:
Meta = getattr(cls,... | [
"def",
"resolve_meta_property",
"(",
"obj",
",",
"prop_name",
":",
"str",
",",
"defval",
"=",
"None",
")",
":",
"cls",
"=",
"obj",
".",
"__class__",
"found",
"=",
"defval",
"while",
"cls",
":",
"Meta",
"=",
"getattr",
"(",
"cls",
",",
"\"Meta\"",
",",
... | [
38,
0
] | [
60,
16
] | python | en | ['en', 'error', 'th'] | False |
BaseModel.__init__ | (self) |
Initialize BaseModel.
Raises:
TypeError: If schema_class is not set on Meta
|
Initialize BaseModel. | def __init__(self):
"""
Initialize BaseModel.
Raises:
TypeError: If schema_class is not set on Meta
"""
if not self.Meta.schema_class:
raise TypeError(
"Can't instantiate abstract class {} with no schema_class".format(
... | [
"def",
"__init__",
"(",
"self",
")",
":",
"if",
"not",
"self",
".",
"Meta",
".",
"schema_class",
":",
"raise",
"TypeError",
"(",
"\"Can't instantiate abstract class {} with no schema_class\"",
".",
"format",
"(",
"self",
".",
"__class__",
".",
"__name__",
")",
"... | [
75,
4
] | [
88,
13
] | python | en | ['en', 'error', 'th'] | False |
BaseModel._get_schema_class | (cls) |
Get the schema class.
Returns:
The resolved schema class
|
Get the schema class. | def _get_schema_class(cls):
"""
Get the schema class.
Returns:
The resolved schema class
"""
return resolve_class(cls.Meta.schema_class, cls) | [
"def",
"_get_schema_class",
"(",
"cls",
")",
":",
"return",
"resolve_class",
"(",
"cls",
".",
"Meta",
".",
"schema_class",
",",
"cls",
")"
] | [
91,
4
] | [
99,
56
] | python | en | ['en', 'error', 'th'] | False |
BaseModel.Schema | (self) |
Accessor for the model's schema class.
Returns:
The schema class
|
Accessor for the model's schema class. | def Schema(self) -> type:
"""
Accessor for the model's schema class.
Returns:
The schema class
"""
return self._get_schema_class() | [
"def",
"Schema",
"(",
"self",
")",
"->",
"type",
":",
"return",
"self",
".",
"_get_schema_class",
"(",
")"
] | [
102,
4
] | [
110,
39
] | python | en | ['en', 'error', 'th'] | False |
BaseModel.deserialize | (cls, obj) |
Convert from JSON representation to a model instance.
Args:
obj: The dict to load into a model instance
Returns:
A model instance for this data
|
Convert from JSON representation to a model instance. | def deserialize(cls, obj):
"""
Convert from JSON representation to a model instance.
Args:
obj: The dict to load into a model instance
Returns:
A model instance for this data
"""
schema = cls._get_schema_class()()
try:
return... | [
"def",
"deserialize",
"(",
"cls",
",",
"obj",
")",
":",
"schema",
"=",
"cls",
".",
"_get_schema_class",
"(",
")",
"(",
")",
"try",
":",
"return",
"schema",
".",
"loads",
"(",
"obj",
")",
"if",
"isinstance",
"(",
"obj",
",",
"str",
")",
"else",
"sch... | [
113,
4
] | [
129,
67
] | python | en | ['en', 'error', 'th'] | False |
BaseModel.serialize | (self, as_string=False) |
Create a JSON-compatible dict representation of the model instance.
Args:
as_string: Return a string of JSON instead of a dict
Returns:
A dict representation of this model, or a JSON string if as_string is True
|
Create a JSON-compatible dict representation of the model instance. | def serialize(self, as_string=False) -> dict:
"""
Create a JSON-compatible dict representation of the model instance.
Args:
as_string: Return a string of JSON instead of a dict
Returns:
A dict representation of this model, or a JSON string if as_string is True
... | [
"def",
"serialize",
"(",
"self",
",",
"as_string",
"=",
"False",
")",
"->",
"dict",
":",
"schema",
"=",
"self",
".",
"Schema",
"(",
")",
"try",
":",
"return",
"schema",
".",
"dumps",
"(",
"self",
")",
"if",
"as_string",
"else",
"schema",
".",
"dump",... | [
131,
4
] | [
147,
67
] | python | en | ['en', 'error', 'th'] | False |
BaseModel.from_json | (cls, json_repr: Union[str, bytes]) |
Parse a JSON string into a model instance.
Args:
json_repr: JSON string
Returns:
A model instance representation of this JSON
|
Parse a JSON string into a model instance. | def from_json(cls, json_repr: Union[str, bytes]):
"""
Parse a JSON string into a model instance.
Args:
json_repr: JSON string
Returns:
A model instance representation of this JSON
"""
try:
parsed = json.loads(json_repr)
excep... | [
"def",
"from_json",
"(",
"cls",
",",
"json_repr",
":",
"Union",
"[",
"str",
",",
"bytes",
"]",
")",
":",
"try",
":",
"parsed",
"=",
"json",
".",
"loads",
"(",
"json_repr",
")",
"except",
"ValueError",
"as",
"e",
":",
"LOGGER",
".",
"exception",
"(",
... | [
150,
4
] | [
166,
38
] | python | en | ['en', 'error', 'th'] | False |
BaseModel.to_json | (self) |
Create a JSON representation of the model instance.
Returns:
A JSON representation of this message
|
Create a JSON representation of the model instance. | def to_json(self) -> str:
"""
Create a JSON representation of the model instance.
Returns:
A JSON representation of this message
"""
return json.dumps(self.serialize()) | [
"def",
"to_json",
"(",
"self",
")",
"->",
"str",
":",
"return",
"json",
".",
"dumps",
"(",
"self",
".",
"serialize",
"(",
")",
")"
] | [
168,
4
] | [
176,
43
] | python | en | ['en', 'error', 'th'] | False |
BaseModel.__repr__ | (self) |
Return a human readable representation of this class.
Returns:
A human readable string for this class
|
Return a human readable representation of this class. | def __repr__(self) -> str:
"""
Return a human readable representation of this class.
Returns:
A human readable string for this class
"""
exclude = resolve_meta_property(self, "repr_exclude", [])
items = (
"{}={}".format(k, repr(v))
fo... | [
"def",
"__repr__",
"(",
"self",
")",
"->",
"str",
":",
"exclude",
"=",
"resolve_meta_property",
"(",
"self",
",",
"\"repr_exclude\"",
",",
"[",
"]",
")",
"items",
"=",
"(",
"\"{}={}\"",
".",
"format",
"(",
"k",
",",
"repr",
"(",
"v",
")",
")",
"for",... | [
178,
4
] | [
192,
75
] | python | en | ['en', 'error', 'th'] | False |
BaseModelSchema.__init__ | (self, *args, **kwargs) |
Initialize BaseModelSchema.
Raises:
TypeError: If model_class is not set on Meta
|
Initialize BaseModelSchema. | def __init__(self, *args, **kwargs):
"""
Initialize BaseModelSchema.
Raises:
TypeError: If model_class is not set on Meta
"""
super(BaseModelSchema, self).__init__(*args, **kwargs)
if not self.Meta.model_class:
raise TypeError(
"C... | [
"def",
"__init__",
"(",
"self",
",",
"*",
"args",
",",
"*",
"*",
"kwargs",
")",
":",
"super",
"(",
"BaseModelSchema",
",",
"self",
")",
".",
"__init__",
"(",
"*",
"args",
",",
"*",
"*",
"kwargs",
")",
"if",
"not",
"self",
".",
"Meta",
".",
"model... | [
205,
4
] | [
219,
13
] | python | en | ['en', 'error', 'th'] | False |
BaseModelSchema._get_model_class | (cls) |
Get the model class.
Returns:
The model class
|
Get the model class. | def _get_model_class(cls):
"""
Get the model class.
Returns:
The model class
"""
return resolve_class(cls.Meta.model_class, cls) | [
"def",
"_get_model_class",
"(",
"cls",
")",
":",
"return",
"resolve_class",
"(",
"cls",
".",
"Meta",
".",
"model_class",
",",
"cls",
")"
] | [
222,
4
] | [
230,
55
] | python | en | ['en', 'error', 'th'] | False |
BaseModelSchema.Model | (self) |
Accessor for the schema's model class.
Returns:
The model class
|
Accessor for the schema's model class. | def Model(self) -> type:
"""
Accessor for the schema's model class.
Returns:
The model class
"""
return self._get_model_class() | [
"def",
"Model",
"(",
"self",
")",
"->",
"type",
":",
"return",
"self",
".",
"_get_model_class",
"(",
")"
] | [
233,
4
] | [
241,
38
] | python | en | ['en', 'error', 'th'] | False |
BaseModelSchema.skip_dump_only | (self, data, **kwargs) |
Skip fields that are only expected during serialization.
Args:
data: The incoming data to clean
Returns:
The modified data
|
Skip fields that are only expected during serialization. | def skip_dump_only(self, data, **kwargs):
"""
Skip fields that are only expected during serialization.
Args:
data: The incoming data to clean
Returns:
The modified data
"""
# not sure why this is necessary, seems like a bug
to_remove = {... | [
"def",
"skip_dump_only",
"(",
"self",
",",
"data",
",",
"*",
"*",
"kwargs",
")",
":",
"# not sure why this is necessary, seems like a bug",
"to_remove",
"=",
"{",
"field_obj",
".",
"data_key",
"or",
"field_name",
"for",
"field_name",
",",
"field_obj",
"in",
"self"... | [
244,
4
] | [
264,
19
] | python | en | ['en', 'error', 'th'] | False |
BaseModelSchema.make_model | (self, data: dict, **kwargs) |
Return model instance after loading.
Returns:
A model instance
|
Return model instance after loading. | def make_model(self, data: dict, **kwargs):
"""
Return model instance after loading.
Returns:
A model instance
"""
return self.Model(**data) | [
"def",
"make_model",
"(",
"self",
",",
"data",
":",
"dict",
",",
"*",
"*",
"kwargs",
")",
":",
"return",
"self",
".",
"Model",
"(",
"*",
"*",
"data",
")"
] | [
267,
4
] | [
275,
33
] | python | en | ['en', 'error', 'th'] | False |
BaseModelSchema.remove_skipped_values | (self, data, **kwargs) |
Remove values that are are marked to skip.
Returns:
Returns this modified data
|
Remove values that are are marked to skip. | def remove_skipped_values(self, data, **kwargs):
"""
Remove values that are are marked to skip.
Returns:
Returns this modified data
"""
skip_vals = resolve_meta_property(self, "skip_values", [])
return {key: value for key, value in data.items() if value not ... | [
"def",
"remove_skipped_values",
"(",
"self",
",",
"data",
",",
"*",
"*",
"kwargs",
")",
":",
"skip_vals",
"=",
"resolve_meta_property",
"(",
"self",
",",
"\"skip_values\"",
",",
"[",
"]",
")",
"return",
"{",
"key",
":",
"value",
"for",
"key",
",",
"value... | [
278,
4
] | [
287,
84
] | python | en | ['en', 'error', 'th'] | False |
get_tag | (tokens, tag) |
Extracts the value inside the given tag.
|
Extracts the value inside the given tag.
| def get_tag(tokens, tag):
"""
Extracts the value inside the given tag.
"""
start = tokens.index('<' + tag + '>') + 1
stop = tokens.index('</' + tag + '>')
return tokens[start:stop] | [
"def",
"get_tag",
"(",
"tokens",
",",
"tag",
")",
":",
"start",
"=",
"tokens",
".",
"index",
"(",
"'<'",
"+",
"tag",
"+",
"'>'",
")",
"+",
"1",
"stop",
"=",
"tokens",
".",
"index",
"(",
"'</'",
"+",
"tag",
"+",
"'>'",
")",
"return",
"tokens",
"... | [
32,
0
] | [
38,
29
] | python | en | ['en', 'error', 'th'] | False |
OneCommonTeacher._split_referents | (self, raw_referents, spans) |
Split the referents.
The first 3 values are begin idx, end idx, and eos idx The next N_OBJECT values
are booleans of if the object is referred e.g. 3 4 10 0 1 0 0 0 0 0 means idx 3
to 4 is a markable of an utterance with <eos> at idx 10, and it refers to the
2nd dot
|
Split the referents. | def _split_referents(self, raw_referents, spans):
"""
Split the referents.
The first 3 values are begin idx, end idx, and eos idx The next N_OBJECT values
are booleans of if the object is referred e.g. 3 4 10 0 1 0 0 0 0 0 means idx 3
to 4 is a markable of an utterance with <eos... | [
"def",
"_split_referents",
"(",
"self",
",",
"raw_referents",
",",
"spans",
")",
":",
"referent_len",
"=",
"3",
"+",
"N_OBJECT",
"splitted_referents",
"=",
"[",
"]",
"for",
"i",
"in",
"range",
"(",
"len",
"(",
"raw_referents",
")",
"//",
"referent_len",
")... | [
227,
4
] | [
265,
24
] | python | en | ['en', 'error', 'th'] | False |
TutorialObject.at_object_creation | (self) | Called when the object is first created. | Called when the object is first created. | def at_object_creation(self):
"""Called when the object is first created."""
super(TutorialObject, self).at_object_creation()
self.db.tutorial_info = "No tutorial info is available for this object." | [
"def",
"at_object_creation",
"(",
"self",
")",
":",
"super",
"(",
"TutorialObject",
",",
"self",
")",
".",
"at_object_creation",
"(",
")",
"self",
".",
"db",
".",
"tutorial_info",
"=",
"\"No tutorial info is available for this object.\""
] | [
50,
4
] | [
53,
80
] | python | en | ['en', 'en', 'en'] | True |
TutorialObject.reset | (self) | Resets the object, whatever that may mean. | Resets the object, whatever that may mean. | def reset(self):
"""Resets the object, whatever that may mean."""
self.location = self.home | [
"def",
"reset",
"(",
"self",
")",
":",
"self",
".",
"location",
"=",
"self",
".",
"home"
] | [
55,
4
] | [
57,
33
] | python | en | ['en', 'en', 'en'] | True |
CmdRead.func | (self) |
Implements the read command. This simply looks for an
Attribute "readable_text" on the object and displays that.
|
Implements the read command. This simply looks for an
Attribute "readable_text" on the object and displays that.
| def func(self):
"""
Implements the read command. This simply looks for an
Attribute "readable_text" on the object and displays that.
"""
if self.args:
obj = self.caller.search(self.args.strip())
else:
obj = self.obj
if not obj:
... | [
"def",
"func",
"(",
"self",
")",
":",
"if",
"self",
".",
"args",
":",
"obj",
"=",
"self",
".",
"caller",
".",
"search",
"(",
"self",
".",
"args",
".",
"strip",
"(",
")",
")",
"else",
":",
"obj",
"=",
"self",
".",
"obj",
"if",
"not",
"obj",
":... | [
82,
4
] | [
100,
31
] | python | en | ['en', 'error', 'th'] | False |
CmdSetReadable.at_cmdset_creation | (self) |
Called when the cmdset is created.
|
Called when the cmdset is created.
| def at_cmdset_creation(self):
"""
Called when the cmdset is created.
"""
self.add(CmdRead()) | [
"def",
"at_cmdset_creation",
"(",
"self",
")",
":",
"self",
".",
"add",
"(",
"CmdRead",
"(",
")",
")"
] | [
108,
4
] | [
112,
27
] | python | en | ['en', 'error', 'th'] | False |
Readable.at_object_creation | (self) |
Called when object is created. We make sure to set the needed
Attribute and add the readable cmdset.
|
Called when object is created. We make sure to set the needed
Attribute and add the readable cmdset.
| def at_object_creation(self):
"""
Called when object is created. We make sure to set the needed
Attribute and add the readable cmdset.
"""
super(Readable, self).at_object_creation()
self.db.tutorial_info = "This is an object with a 'read' command defined in a command set ... | [
"def",
"at_object_creation",
"(",
"self",
")",
":",
"super",
"(",
"Readable",
",",
"self",
")",
".",
"at_object_creation",
"(",
")",
"self",
".",
"db",
".",
"tutorial_info",
"=",
"\"This is an object with a 'read' command defined in a command set on itself.\"",
"self",
... | [
120,
4
] | [
129,
63
] | python | en | ['en', 'error', 'th'] | False |
CmdClimb.func | (self) | Implements function | Implements function | def func(self):
"""Implements function"""
if not self.args:
self.caller.msg("What do you want to climb?")
return
obj = self.caller.search(self.args.strip())
if not obj:
return
if obj != self.obj:
self.caller.msg("Try as you might, ... | [
"def",
"func",
"(",
"self",
")",
":",
"if",
"not",
"self",
".",
"args",
":",
"self",
".",
"caller",
".",
"msg",
"(",
"\"What do you want to climb?\"",
")",
"return",
"obj",
"=",
"self",
".",
"caller",
".",
"search",
"(",
"self",
".",
"args",
".",
"st... | [
157,
4
] | [
174,
80
] | python | en | ['en', 'en', 'en'] | False |
CmdSetClimbable.at_cmdset_creation | (self) | populate set | populate set | def at_cmdset_creation(self):
"""populate set"""
self.add(CmdClimb()) | [
"def",
"at_cmdset_creation",
"(",
"self",
")",
":",
"self",
".",
"add",
"(",
"CmdClimb",
"(",
")",
")"
] | [
180,
4
] | [
182,
28
] | python | en | ['en', 'bs', 'en'] | False |
Climbable.at_object_creation | (self) | Called at initial creation only | Called at initial creation only | def at_object_creation(self):
"""Called at initial creation only"""
self.cmdset.add_default(CmdSetClimbable, permanent=True) | [
"def",
"at_object_creation",
"(",
"self",
")",
":",
"self",
".",
"cmdset",
".",
"add_default",
"(",
"CmdSetClimbable",
",",
"permanent",
"=",
"True",
")"
] | [
191,
4
] | [
193,
64
] | python | en | ['en', 'en', 'en'] | True |
Obelisk.at_object_creation | (self) | Called when object is created. | Called when object is created. | def at_object_creation(self):
"""Called when object is created."""
super(Obelisk, self).at_object_creation()
self.db.tutorial_info = "This object changes its desc randomly, and makes sure to remember which one you saw."
self.db.puzzle_descs = ["You see a normal stone slab"]
# mak... | [
"def",
"at_object_creation",
"(",
"self",
")",
":",
"super",
"(",
"Obelisk",
",",
"self",
")",
".",
"at_object_creation",
"(",
")",
"self",
".",
"db",
".",
"tutorial_info",
"=",
"\"This object changes its desc randomly, and makes sure to remember which one you saw.\"",
... | [
221,
4
] | [
227,
37
] | python | en | ['en', 'en', 'en'] | True |
Obelisk.return_appearance | (self, caller) |
This hook is called by the look command to get the description
of the object. We overload it with our own version.
|
This hook is called by the look command to get the description
of the object. We overload it with our own version.
| def return_appearance(self, caller):
"""
This hook is called by the look command to get the description
of the object. We overload it with our own version.
"""
# randomly get the index for one of the descriptions
descs = self.db.puzzle_descs
clueindex = random.ran... | [
"def",
"return_appearance",
"(",
"self",
",",
"caller",
")",
":",
"# randomly get the index for one of the descriptions",
"descs",
"=",
"self",
".",
"db",
".",
"puzzle_descs",
"clueindex",
"=",
"random",
".",
"randint",
"(",
"0",
",",
"len",
"(",
"descs",
")",
... | [
229,
4
] | [
247,
61
] | python | en | ['en', 'error', 'th'] | False |
CmdLight.func | (self) |
Implements the light command. Since this command is designed
to sit on a "lightable" object, we operate only on self.obj.
|
Implements the light command. Since this command is designed
to sit on a "lightable" object, we operate only on self.obj.
| def func(self):
"""
Implements the light command. Since this command is designed
to sit on a "lightable" object, we operate only on self.obj.
"""
if self.obj.light():
self.caller.msg("You light %s." % self.obj.key)
self.caller.location.msg_contents("%s li... | [
"def",
"func",
"(",
"self",
")",
":",
"if",
"self",
".",
"obj",
".",
"light",
"(",
")",
":",
"self",
".",
"caller",
".",
"msg",
"(",
"\"You light %s.\"",
"%",
"self",
".",
"obj",
".",
"key",
")",
"self",
".",
"caller",
".",
"location",
".",
"msg_... | [
277,
4
] | [
287,
68
] | 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.