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
Isosurface.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\"", "]" ]
[ 858, 4 ]
[ 869, 29 ]
python
en
['en', 'error', 'th']
False
Isosurface.isomax
(self)
Sets the maximum boundary for iso-surface plot. The 'isomax' property is a number and may be specified as: - An int or float Returns ------- int|float
Sets the maximum boundary for iso-surface plot. The 'isomax' property is a number and may be specified as: - An int or float
def isomax(self): """ Sets the maximum boundary for iso-surface plot. The 'isomax' property is a number and may be specified as: - An int or float Returns ------- int|float """ return self["isomax"]
[ "def", "isomax", "(", "self", ")", ":", "return", "self", "[", "\"isomax\"", "]" ]
[ 878, 4 ]
[ 889, 29 ]
python
en
['en', 'error', 'th']
False
Isosurface.isomin
(self)
Sets the minimum boundary for iso-surface plot. The 'isomin' property is a number and may be specified as: - An int or float Returns ------- int|float
Sets the minimum boundary for iso-surface plot. The 'isomin' property is a number and may be specified as: - An int or float
def isomin(self): """ Sets the minimum boundary for iso-surface plot. The 'isomin' property is a number and may be specified as: - An int or float Returns ------- int|float """ return self["isomin"]
[ "def", "isomin", "(", "self", ")", ":", "return", "self", "[", "\"isomin\"", "]" ]
[ 898, 4 ]
[ 909, 29 ]
python
en
['en', 'error', 'th']
False
Isosurface.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\"", "]" ]
[ 918, 4 ]
[ 932, 34 ]
python
en
['en', 'error', 'th']
False
Isosurface.lighting
(self)
The 'lighting' property is an instance of Lighting that may be specified as: - An instance of :class:`plotly.graph_objs.isosurface.Lighting` - A dict of string/value properties that will be passed to the Lighting constructor Supported dict properties: ...
The 'lighting' property is an instance of Lighting that may be specified as: - An instance of :class:`plotly.graph_objs.isosurface.Lighting` - A dict of string/value properties that will be passed to the Lighting constructor Supported dict properties: ...
def lighting(self): """ The 'lighting' property is an instance of Lighting that may be specified as: - An instance of :class:`plotly.graph_objs.isosurface.Lighting` - A dict of string/value properties that will be passed to the Lighting constructor ...
[ "def", "lighting", "(", "self", ")", ":", "return", "self", "[", "\"lighting\"", "]" ]
[ 941, 4 ]
[ 980, 31 ]
python
en
['en', 'error', 'th']
False
Isosurface.lightposition
(self)
The 'lightposition' property is an instance of Lightposition that may be specified as: - An instance of :class:`plotly.graph_objs.isosurface.Lightposition` - A dict of string/value properties that will be passed to the Lightposition constructor Supported...
The 'lightposition' property is an instance of Lightposition that may be specified as: - An instance of :class:`plotly.graph_objs.isosurface.Lightposition` - A dict of string/value properties that will be passed to the Lightposition constructor Supported...
def lightposition(self): """ The 'lightposition' property is an instance of Lightposition that may be specified as: - An instance of :class:`plotly.graph_objs.isosurface.Lightposition` - A dict of string/value properties that will be passed to the Lightposition co...
[ "def", "lightposition", "(", "self", ")", ":", "return", "self", "[", "\"lightposition\"", "]" ]
[ 989, 4 ]
[ 1013, 36 ]
python
en
['en', 'error', 'th']
False
Isosurface.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\"", "]" ]
[ 1022, 4 ]
[ 1041, 27 ]
python
en
['en', 'error', 'th']
False
Isosurface.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\"", "]" ]
[ 1050, 4 ]
[ 1061, 30 ]
python
en
['en', 'error', 'th']
False
Isosurface.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\"", "]" ]
[ 1070, 4 ]
[ 1083, 27 ]
python
en
['en', 'error', 'th']
False
Isosurface.opacity
(self)
Sets the opacity of the surface. Please note that in the case of using high `opacity` values for example a value greater than or equal to 0.5 on two surfaces (and 0.25 with four surfaces), an overlay of multiple transparent surfaces may not perfectly be sorted in depth by the we...
Sets the opacity of the surface. Please note that in the case of using high `opacity` values for example a value greater than or equal to 0.5 on two surfaces (and 0.25 with four surfaces), an overlay of multiple transparent surfaces may not perfectly be sorted in depth by the we...
def opacity(self): """ Sets the opacity of the surface. Please note that in the case of using high `opacity` values for example a value greater than or equal to 0.5 on two surfaces (and 0.25 with four surfaces), an overlay of multiple transparent surfaces may not perfectly ...
[ "def", "opacity", "(", "self", ")", ":", "return", "self", "[", "\"opacity\"", "]" ]
[ 1092, 4 ]
[ 1108, 30 ]
python
en
['en', 'error', 'th']
False
Isosurface.reversescale
(self)
Reverses the color mapping if true. If true, `cmin` will correspond to the last color in the array and `cmax` 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, `cmin` will correspond to the last color in the array and `cmax` 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, `cmin` will correspond to the last color in the array and `cmax` 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\"", "]" ]
[ 1117, 4 ]
[ 1130, 35 ]
python
en
['en', 'error', 'th']
False
Isosurface.scene
(self)
Sets a reference between this trace's 3D coordinate system and a 3D scene. If "scene" (the default value), the (x,y,z) coordinates refer to `layout.scene`. If "scene2", the (x,y,z) coordinates refer to `layout.scene2`, and so on. The 'scene' property is an identifier of a p...
Sets a reference between this trace's 3D coordinate system and a 3D scene. If "scene" (the default value), the (x,y,z) coordinates refer to `layout.scene`. If "scene2", the (x,y,z) coordinates refer to `layout.scene2`, and so on. The 'scene' property is an identifier of a p...
def scene(self): """ Sets a reference between this trace's 3D coordinate system and a 3D scene. If "scene" (the default value), the (x,y,z) coordinates refer to `layout.scene`. If "scene2", the (x,y,z) coordinates refer to `layout.scene2`, and so on. The 'scene' prop...
[ "def", "scene", "(", "self", ")", ":", "return", "self", "[", "\"scene\"", "]" ]
[ 1139, 4 ]
[ 1155, 28 ]
python
en
['en', 'error', 'th']
False
Isosurface.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\"", "]" ]
[ 1164, 4 ]
[ 1176, 33 ]
python
en
['en', 'error', 'th']
False
Isosurface.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\"", "]" ]
[ 1185, 4 ]
[ 1197, 32 ]
python
en
['en', 'error', 'th']
False
Isosurface.slices
(self)
The 'slices' property is an instance of Slices that may be specified as: - An instance of :class:`plotly.graph_objs.isosurface.Slices` - A dict of string/value properties that will be passed to the Slices constructor Supported dict properties: ...
The 'slices' property is an instance of Slices that may be specified as: - An instance of :class:`plotly.graph_objs.isosurface.Slices` - A dict of string/value properties that will be passed to the Slices constructor Supported dict properties: ...
def slices(self): """ The 'slices' property is an instance of Slices that may be specified as: - An instance of :class:`plotly.graph_objs.isosurface.Slices` - A dict of string/value properties that will be passed to the Slices constructor Supporte...
[ "def", "slices", "(", "self", ")", ":", "return", "self", "[", "\"slices\"", "]" ]
[ 1206, 4 ]
[ 1230, 29 ]
python
en
['en', 'error', 'th']
False
Isosurface.spaceframe
(self)
The 'spaceframe' property is an instance of Spaceframe that may be specified as: - An instance of :class:`plotly.graph_objs.isosurface.Spaceframe` - A dict of string/value properties that will be passed to the Spaceframe constructor Supported dict proper...
The 'spaceframe' property is an instance of Spaceframe that may be specified as: - An instance of :class:`plotly.graph_objs.isosurface.Spaceframe` - A dict of string/value properties that will be passed to the Spaceframe constructor Supported dict proper...
def spaceframe(self): """ The 'spaceframe' property is an instance of Spaceframe that may be specified as: - An instance of :class:`plotly.graph_objs.isosurface.Spaceframe` - A dict of string/value properties that will be passed to the Spaceframe constructor ...
[ "def", "spaceframe", "(", "self", ")", ":", "return", "self", "[", "\"spaceframe\"", "]" ]
[ 1239, 4 ]
[ 1267, 33 ]
python
en
['en', 'error', 'th']
False
Isosurface.stream
(self)
The 'stream' property is an instance of Stream that may be specified as: - An instance of :class:`plotly.graph_objs.isosurface.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.isosurface.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.isosurface.Stream` - A dict of string/value properties that will be passed to the Stream constructor Supporte...
[ "def", "stream", "(", "self", ")", ":", "return", "self", "[", "\"stream\"", "]" ]
[ 1276, 4 ]
[ 1300, 29 ]
python
en
['en', 'error', 'th']
False
Isosurface.surface
(self)
The 'surface' property is an instance of Surface that may be specified as: - An instance of :class:`plotly.graph_objs.isosurface.Surface` - A dict of string/value properties that will be passed to the Surface constructor Supported dict properties: ...
The 'surface' property is an instance of Surface that may be specified as: - An instance of :class:`plotly.graph_objs.isosurface.Surface` - A dict of string/value properties that will be passed to the Surface constructor Supported dict properties: ...
def surface(self): """ The 'surface' property is an instance of Surface that may be specified as: - An instance of :class:`plotly.graph_objs.isosurface.Surface` - A dict of string/value properties that will be passed to the Surface constructor Sup...
[ "def", "surface", "(", "self", ")", ":", "return", "self", "[", "\"surface\"", "]" ]
[ 1309, 4 ]
[ 1350, 30 ]
python
en
['en', 'error', 'th']
False
Isosurface.text
(self)
Sets the text elements associated with the vertices. If trace `hoverinfo` contains a "text" flag and "hovertext" is not set, these elements will be seen in the hover labels. The 'text' property is a string and must be specified as: - A string - A number that wil...
Sets the text elements associated with the vertices. If trace `hoverinfo` contains a "text" flag and "hovertext" is not set, these elements will be seen in the hover labels. The 'text' property is a string and must be specified as: - A string - A number that wil...
def text(self): """ Sets the text elements associated with the vertices. If trace `hoverinfo` contains a "text" flag and "hovertext" is not set, these elements will be seen in the hover labels. The 'text' property is a string and must be specified as: - A string ...
[ "def", "text", "(", "self", ")", ":", "return", "self", "[", "\"text\"", "]" ]
[ 1359, 4 ]
[ 1374, 27 ]
python
en
['en', 'error', 'th']
False
Isosurface.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\"", "]" ]
[ 1383, 4 ]
[ 1394, 30 ]
python
en
['en', 'error', 'th']
False
Isosurface.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\"", "]" ]
[ 1403, 4 ]
[ 1416, 26 ]
python
en
['en', 'error', 'th']
False
Isosurface.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\"", "]" ]
[ 1425, 4 ]
[ 1449, 33 ]
python
en
['en', 'error', 'th']
False
Isosurface.value
(self)
Sets the 4th dimension (value) of the vertices. The 'value' property is an array that may be specified as a tuple, list, numpy array, or pandas Series Returns ------- numpy.ndarray
Sets the 4th dimension (value) of the vertices. The 'value' property is an array that may be specified as a tuple, list, numpy array, or pandas Series
def value(self): """ Sets the 4th dimension (value) of the vertices. The 'value' property is an array that may be specified as a tuple, list, numpy array, or pandas Series Returns ------- numpy.ndarray """ return self["value"]
[ "def", "value", "(", "self", ")", ":", "return", "self", "[", "\"value\"", "]" ]
[ 1458, 4 ]
[ 1469, 28 ]
python
en
['en', 'error', 'th']
False
Isosurface.valuesrc
(self)
Sets the source reference on Chart Studio Cloud for value . The 'valuesrc' 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 value . The 'valuesrc' property must be specified as a string or as a plotly.grid_objs.Column object
def valuesrc(self): """ Sets the source reference on Chart Studio Cloud for value . The 'valuesrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["valuesrc"]
[ "def", "valuesrc", "(", "self", ")", ":", "return", "self", "[", "\"valuesrc\"", "]" ]
[ 1478, 4 ]
[ 1489, 31 ]
python
en
['en', 'error', 'th']
False
Isosurface.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\"", "]" ]
[ 1498, 4 ]
[ 1512, 30 ]
python
en
['en', 'error', 'th']
False
Isosurface.x
(self)
Sets the X coordinates of the vertices on X axis. 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 of the vertices on X axis. 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 of the vertices on X axis. 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\"", "]" ]
[ 1521, 4 ]
[ 1532, 24 ]
python
en
['en', 'error', 'th']
False
Isosurface.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\"", "]" ]
[ 1541, 4 ]
[ 1552, 27 ]
python
en
['en', 'error', 'th']
False
Isosurface.y
(self)
Sets the Y coordinates of the vertices on Y axis. 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 of the vertices on Y axis. 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 of the vertices on Y axis. 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\"", "]" ]
[ 1561, 4 ]
[ 1572, 24 ]
python
en
['en', 'error', 'th']
False
Isosurface.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\"", "]" ]
[ 1581, 4 ]
[ 1592, 27 ]
python
en
['en', 'error', 'th']
False
Isosurface.z
(self)
Sets the Z coordinates of the vertices on Z axis. 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 coordinates of the vertices on Z axis. 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 coordinates of the vertices on Z axis. 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\"", "]" ]
[ 1601, 4 ]
[ 1612, 24 ]
python
en
['en', 'error', 'th']
False
Isosurface.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\"", "]" ]
[ 1621, 4 ]
[ 1632, 27 ]
python
en
['en', 'error', 'th']
False
Isosurface.__init__
( self, arg=None, autocolorscale=None, caps=None, cauto=None, cmax=None, cmid=None, cmin=None, coloraxis=None, colorbar=None, colorscale=None, contour=None, customdata=None, customdatasrc=None, flatsh...
Construct a new Isosurface object Draws isosurfaces between iso-min and iso-max values with coordinates given by four 1-dimensional arrays containing the `value`, `x`, `y` and `z` of every vertex of a uniform or non- uniform 3-D grid. Horizontal or vertical slices, caps...
Construct a new Isosurface object Draws isosurfaces between iso-min and iso-max values with coordinates given by four 1-dimensional arrays containing the `value`, `x`, `y` and `z` of every vertex of a uniform or non- uniform 3-D grid. Horizontal or vertical slices, caps...
def __init__( self, arg=None, autocolorscale=None, caps=None, cauto=None, cmax=None, cmid=None, cmin=None, coloraxis=None, colorbar=None, colorscale=None, contour=None, customdata=None, customdatasrc=None, ...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "autocolorscale", "=", "None", ",", "caps", "=", "None", ",", "cauto", "=", "None", ",", "cmax", "=", "None", ",", "cmid", "=", "None", ",", "cmin", "=", "None", ",", "coloraxis", "=", ...
[ 1889, 4 ]
[ 2454, 34 ]
python
en
['en', 'error', 'th']
False
gapminder
()
Each row represents a country on a given year. https://www.gapminder.org/data/ Returns: A `pandas.DataFrame` with 1704 rows and the following columns: `['country', 'continent', 'year', 'lifeExp', 'pop', 'gdpPercap', 'iso_alpha', 'iso_num']`.
Each row represents a country on a given year.
def gapminder(): """ Each row represents a country on a given year. https://www.gapminder.org/data/ Returns: A `pandas.DataFrame` with 1704 rows and the following columns: `['country', 'continent', 'year', 'lifeExp', 'pop', 'gdpPercap', 'iso_alpha', 'iso_num']`. """ return _get_dataset("gapminder"...
[ "def", "gapminder", "(", ")", ":", "return", "_get_dataset", "(", "\"gapminder\"", ")" ]
[ 5, 0 ]
[ 16, 36 ]
python
en
['en', 'error', 'th']
False
tips
()
Each row represents a restaurant bill. https://vincentarelbundock.github.io/Rdatasets/doc/reshape2/tips.html Returns: A `pandas.DataFrame` with 244 rows and the following columns: `['total_bill', 'tip', 'sex', 'smoker', 'day', 'time', 'size']`.
Each row represents a restaurant bill.
def tips(): """ Each row represents a restaurant bill. https://vincentarelbundock.github.io/Rdatasets/doc/reshape2/tips.html Returns: A `pandas.DataFrame` with 244 rows and the following columns: `['total_bill', 'tip', 'sex', 'smoker', 'day', 'time', 'size']`. """ return _get_dataset("tips")
[ "def", "tips", "(", ")", ":", "return", "_get_dataset", "(", "\"tips\"", ")" ]
[ 19, 0 ]
[ 29, 31 ]
python
en
['en', 'error', 'th']
False
iris
()
Each row represents a flower. https://en.wikipedia.org/wiki/Iris_flower_data_set Returns: A `pandas.DataFrame` with 150 rows and the following columns: `['sepal_length', 'sepal_width', 'petal_length', 'petal_width', 'species', 'species_id']`.
Each row represents a flower.
def iris(): """ Each row represents a flower. https://en.wikipedia.org/wiki/Iris_flower_data_set Returns: A `pandas.DataFrame` with 150 rows and the following columns: `['sepal_length', 'sepal_width', 'petal_length', 'petal_width', 'species', 'species_id']`. """ return _get_dataset("iris")
[ "def", "iris", "(", ")", ":", "return", "_get_dataset", "(", "\"iris\"", ")" ]
[ 32, 0 ]
[ 42, 31 ]
python
en
['en', 'error', 'th']
False
wind
()
Each row represents a level of wind intensity in a cardinal direction, and its frequency. Returns: A `pandas.DataFrame` with 128 rows and the following columns: `['direction', 'strength', 'frequency']`.
Each row represents a level of wind intensity in a cardinal direction, and its frequency.
def wind(): """ Each row represents a level of wind intensity in a cardinal direction, and its frequency. Returns: A `pandas.DataFrame` with 128 rows and the following columns: `['direction', 'strength', 'frequency']`. """ return _get_dataset("wind")
[ "def", "wind", "(", ")", ":", "return", "_get_dataset", "(", "\"wind\"", ")" ]
[ 45, 0 ]
[ 53, 31 ]
python
en
['en', 'error', 'th']
False
election
()
Each row represents voting results for an electoral district in the 2013 Montreal mayoral election. Returns: A `pandas.DataFrame` with 58 rows and the following columns: `['district', 'Coderre', 'Bergeron', 'Joly', 'total', 'winner', 'result', 'district_id']`.
Each row represents voting results for an electoral district in the 2013 Montreal mayoral election.
def election(): """ Each row represents voting results for an electoral district in the 2013 Montreal mayoral election. Returns: A `pandas.DataFrame` with 58 rows and the following columns: `['district', 'Coderre', 'Bergeron', 'Joly', 'total', 'winner', 'result', 'district_id']`. """ return _get_datase...
[ "def", "election", "(", ")", ":", "return", "_get_dataset", "(", "\"election\"", ")" ]
[ 56, 0 ]
[ 65, 35 ]
python
en
['en', 'error', 'th']
False
election_geojson
()
Each feature represents an electoral district in the 2013 Montreal mayoral election. Returns: A GeoJSON-formatted `dict` with 58 polygon or multi-polygon features whose `id` is an electoral district numerical ID and whose `district` property is the ID and district name.
Each feature represents an electoral district in the 2013 Montreal mayoral election.
def election_geojson(): """ Each feature represents an electoral district in the 2013 Montreal mayoral election. Returns: A GeoJSON-formatted `dict` with 58 polygon or multi-polygon features whose `id` is an electoral district numerical ID and whose `district` property is the ID and district name. """ ...
[ "def", "election_geojson", "(", ")", ":", "import", "gzip", "import", "json", "import", "os", "path", "=", "os", ".", "path", ".", "join", "(", "os", ".", "path", ".", "dirname", "(", "os", ".", "path", ".", "dirname", "(", "__file__", ")", ")", ",...
[ 68, 0 ]
[ 89, 17 ]
python
en
['en', 'error', 'th']
False
carshare
()
Each row represents the availability of car-sharing services near the centroid of a zone in Montreal over a month-long period. Returns: A `pandas.DataFrame` with 249 rows and the following columns: `['centroid_lat', 'centroid_lon', 'car_hours', 'peak_hour']`.
Each row represents the availability of car-sharing services near the centroid of a zone in Montreal over a month-long period.
def carshare(): """ Each row represents the availability of car-sharing services near the centroid of a zone in Montreal over a month-long period. Returns: A `pandas.DataFrame` with 249 rows and the following columns: `['centroid_lat', 'centroid_lon', 'car_hours', 'peak_hour']`. """ return _get_dataset...
[ "def", "carshare", "(", ")", ":", "return", "_get_dataset", "(", "\"carshare\"", ")" ]
[ 92, 0 ]
[ 101, 35 ]
python
en
['en', 'error', 'th']
False
stocks
(indexed=False)
Each row in this wide dataset represents closing prices from 6 tech stocks in 2018/2019. Returns: A `pandas.DataFrame` with 100 rows and the following columns: `['date', 'GOOG', 'AAPL', 'AMZN', 'FB', 'NFLX', 'MSFT']`. If `indexed` is True, the 'date' column is used as the index and the column index is...
Each row in this wide dataset represents closing prices from 6 tech stocks in 2018/2019.
def stocks(indexed=False): """ Each row in this wide dataset represents closing prices from 6 tech stocks in 2018/2019. Returns: A `pandas.DataFrame` with 100 rows and the following columns: `['date', 'GOOG', 'AAPL', 'AMZN', 'FB', 'NFLX', 'MSFT']`. If `indexed` is True, the 'date' column is used as the...
[ "def", "stocks", "(", "indexed", "=", "False", ")", ":", "df", "=", "_get_dataset", "(", "\"stocks\"", ")", "if", "indexed", ":", "df", "=", "df", ".", "set_index", "(", "\"date\"", ")", "df", ".", "columns", ".", "name", "=", "\"company\"", "return", ...
[ 104, 0 ]
[ 118, 13 ]
python
en
['en', 'error', 'th']
False
experiment
(indexed=False)
Each row in this wide dataset represents the results of 100 simulated participants on three hypothetical experiments, along with their gender and control/treatment group. Returns: A `pandas.DataFrame` with 100 rows and the following columns: `['experiment_1', 'experiment_2', 'experiment_3', 'gender', 'group'...
Each row in this wide dataset represents the results of 100 simulated participants on three hypothetical experiments, along with their gender and control/treatment group.
def experiment(indexed=False): """ Each row in this wide dataset represents the results of 100 simulated participants on three hypothetical experiments, along with their gender and control/treatment group. Returns: A `pandas.DataFrame` with 100 rows and the following columns: `['experiment_1', 'experiment...
[ "def", "experiment", "(", "indexed", "=", "False", ")", ":", "df", "=", "_get_dataset", "(", "\"experiment\"", ")", "if", "indexed", ":", "df", ".", "index", ".", "name", "=", "\"participant\"", "return", "df" ]
[ 121, 0 ]
[ 135, 13 ]
python
en
['en', 'error', 'th']
False
medals_wide
(indexed=False)
This dataset represents the medal table for Olympic Short Track Speed Skating for the top three nations as of 2020. Returns: A `pandas.DataFrame` with 3 rows and the following columns: `['nation', 'gold', 'silver', 'bronze']`. If `indexed` is True, the 'nation' column is used as the index and the column i...
This dataset represents the medal table for Olympic Short Track Speed Skating for the top three nations as of 2020.
def medals_wide(indexed=False): """ This dataset represents the medal table for Olympic Short Track Speed Skating for the top three nations as of 2020. Returns: A `pandas.DataFrame` with 3 rows and the following columns: `['nation', 'gold', 'silver', 'bronze']`. If `indexed` is True, the 'nation' colum...
[ "def", "medals_wide", "(", "indexed", "=", "False", ")", ":", "df", "=", "_get_dataset", "(", "\"medals\"", ")", "if", "indexed", ":", "df", "=", "df", ".", "set_index", "(", "\"nation\"", ")", "df", ".", "columns", ".", "name", "=", "\"medal\"", "retu...
[ 138, 0 ]
[ 153, 13 ]
python
en
['en', 'error', 'th']
False
medals_long
(indexed=False)
This dataset represents the medal table for Olympic Short Track Speed Skating for the top three nations as of 2020. Returns: A `pandas.DataFrame` with 9 rows and the following columns: `['nation', 'medal', 'count']`. If `indexed` is True, the 'nation' column is used as the index.
This dataset represents the medal table for Olympic Short Track Speed Skating for the top three nations as of 2020.
def medals_long(indexed=False): """ This dataset represents the medal table for Olympic Short Track Speed Skating for the top three nations as of 2020. Returns: A `pandas.DataFrame` with 9 rows and the following columns: `['nation', 'medal', 'count']`. If `indexed` is True, the 'nation' column is used ...
[ "def", "medals_long", "(", "indexed", "=", "False", ")", ":", "df", "=", "_get_dataset", "(", "\"medals\"", ")", ".", "melt", "(", "id_vars", "=", "[", "\"nation\"", "]", ",", "value_name", "=", "\"count\"", ",", "var_name", "=", "\"medal\"", ")", "if", ...
[ 156, 0 ]
[ 171, 13 ]
python
en
['en', 'error', 'th']
False
Z.color
(self)
Sets the color of the contour lines. The 'color' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%...
Sets the color of the contour lines. The 'color' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%...
def color(self): """ Sets the color of the contour lines. The 'color' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva s...
[ "def", "color", "(", "self", ")", ":", "return", "self", "[", "\"color\"", "]" ]
[ 27, 4 ]
[ 77, 28 ]
python
en
['en', 'error', 'th']
False
Z.end
(self)
Sets the end contour level value. Must be more than `contours.start` The 'end' property is a number and may be specified as: - An int or float Returns ------- int|float
Sets the end contour level value. Must be more than `contours.start` The 'end' property is a number and may be specified as: - An int or float
def end(self): """ Sets the end contour level value. Must be more than `contours.start` The 'end' property is a number and may be specified as: - An int or float Returns ------- int|float """ return self["end"]
[ "def", "end", "(", "self", ")", ":", "return", "self", "[", "\"end\"", "]" ]
[ 86, 4 ]
[ 98, 26 ]
python
en
['en', 'error', 'th']
False
Z.highlight
(self)
Determines whether or not contour lines about the z dimension are highlighted on hover. The 'highlight' property must be specified as a bool (either True, or False) Returns ------- bool
Determines whether or not contour lines about the z dimension are highlighted on hover. The 'highlight' property must be specified as a bool (either True, or False)
def highlight(self): """ Determines whether or not contour lines about the z dimension are highlighted on hover. The 'highlight' property must be specified as a bool (either True, or False) Returns ------- bool """ return self["highli...
[ "def", "highlight", "(", "self", ")", ":", "return", "self", "[", "\"highlight\"", "]" ]
[ 107, 4 ]
[ 119, 32 ]
python
en
['en', 'error', 'th']
False
Z.highlightcolor
(self)
Sets the color of the highlighted contour lines. The 'highlightcolor' 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 (...
Sets the color of the highlighted contour lines. The 'highlightcolor' 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 (...
def highlightcolor(self): """ Sets the color of the highlighted contour lines. The 'highlightcolor' 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", "highlightcolor", "(", "self", ")", ":", "return", "self", "[", "\"highlightcolor\"", "]" ]
[ 128, 4 ]
[ 178, 37 ]
python
en
['en', 'error', 'th']
False
Z.highlightwidth
(self)
Sets the width of the highlighted contour lines. The 'highlightwidth' property is a number and may be specified as: - An int or float in the interval [1, 16] Returns ------- int|float
Sets the width of the highlighted contour lines. The 'highlightwidth' property is a number and may be specified as: - An int or float in the interval [1, 16]
def highlightwidth(self): """ Sets the width of the highlighted contour lines. The 'highlightwidth' property is a number and may be specified as: - An int or float in the interval [1, 16] Returns ------- int|float """ return self["highlight...
[ "def", "highlightwidth", "(", "self", ")", ":", "return", "self", "[", "\"highlightwidth\"", "]" ]
[ 187, 4 ]
[ 198, 37 ]
python
en
['en', 'error', 'th']
False
Z.project
(self)
The 'project' property is an instance of Project that may be specified as: - An instance of :class:`plotly.graph_objs.surface.contours.z.Project` - A dict of string/value properties that will be passed to the Project constructor Supported dict properties...
The 'project' property is an instance of Project that may be specified as: - An instance of :class:`plotly.graph_objs.surface.contours.z.Project` - A dict of string/value properties that will be passed to the Project constructor Supported dict properties...
def project(self): """ The 'project' property is an instance of Project that may be specified as: - An instance of :class:`plotly.graph_objs.surface.contours.z.Project` - A dict of string/value properties that will be passed to the Project constructor ...
[ "def", "project", "(", "self", ")", ":", "return", "self", "[", "\"project\"", "]" ]
[ 207, 4 ]
[ 240, 30 ]
python
en
['en', 'error', 'th']
False
Z.show
(self)
Determines whether or not contour lines about the z dimension are drawn. The 'show' property must be specified as a bool (either True, or False) Returns ------- bool
Determines whether or not contour lines about the z dimension are drawn. The 'show' property must be specified as a bool (either True, or False)
def show(self): """ Determines whether or not contour lines about the z dimension are drawn. The 'show' property must be specified as a bool (either True, or False) Returns ------- bool """ return self["show"]
[ "def", "show", "(", "self", ")", ":", "return", "self", "[", "\"show\"", "]" ]
[ 249, 4 ]
[ 261, 27 ]
python
en
['en', 'error', 'th']
False
Z.size
(self)
Sets the step between each contour level. Must be positive. The 'size' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float
Sets the step between each contour level. Must be positive. The 'size' property is a number and may be specified as: - An int or float in the interval [0, inf]
def size(self): """ Sets the step between each contour level. Must be positive. The 'size' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float """ return self["size"]
[ "def", "size", "(", "self", ")", ":", "return", "self", "[", "\"size\"", "]" ]
[ 270, 4 ]
[ 281, 27 ]
python
en
['en', 'error', 'th']
False
Z.start
(self)
Sets the starting contour level value. Must be less than `contours.end` The 'start' property is a number and may be specified as: - An int or float Returns ------- int|float
Sets the starting contour level value. Must be less than `contours.end` The 'start' property is a number and may be specified as: - An int or float
def start(self): """ Sets the starting contour level value. Must be less than `contours.end` The 'start' property is a number and may be specified as: - An int or float Returns ------- int|float """ return self["start"]
[ "def", "start", "(", "self", ")", ":", "return", "self", "[", "\"start\"", "]" ]
[ 290, 4 ]
[ 302, 28 ]
python
en
['en', 'error', 'th']
False
Z.usecolormap
(self)
An alternate to "color". Determines whether or not the contour lines are colored using the trace "colorscale". The 'usecolormap' property must be specified as a bool (either True, or False) Returns ------- bool
An alternate to "color". Determines whether or not the contour lines are colored using the trace "colorscale". The 'usecolormap' property must be specified as a bool (either True, or False)
def usecolormap(self): """ An alternate to "color". Determines whether or not the contour lines are colored using the trace "colorscale". The 'usecolormap' property must be specified as a bool (either True, or False) Returns ------- bool """ ...
[ "def", "usecolormap", "(", "self", ")", ":", "return", "self", "[", "\"usecolormap\"", "]" ]
[ 311, 4 ]
[ 323, 34 ]
python
en
['en', 'error', 'th']
False
Z.width
(self)
Sets the width of the contour lines. The 'width' property is a number and may be specified as: - An int or float in the interval [1, 16] Returns ------- int|float
Sets the width of the contour lines. The 'width' property is a number and may be specified as: - An int or float in the interval [1, 16]
def width(self): """ Sets the width of the contour lines. The 'width' property is a number and may be specified as: - An int or float in the interval [1, 16] Returns ------- int|float """ return self["width"]
[ "def", "width", "(", "self", ")", ":", "return", "self", "[", "\"width\"", "]" ]
[ 332, 4 ]
[ 343, 28 ]
python
en
['en', 'error', 'th']
False
Z.__init__
( self, arg=None, color=None, end=None, highlight=None, highlightcolor=None, highlightwidth=None, project=None, show=None, size=None, start=None, usecolormap=None, width=None, **kwargs )
Construct a new Z object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.surface.contours.Z` color Sets the color of the contour lines. end ...
Construct a new Z object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.surface.contours.Z` color Sets the color of the contour lines. end ...
def __init__( self, arg=None, color=None, end=None, highlight=None, highlightcolor=None, highlightwidth=None, project=None, show=None, size=None, start=None, usecolormap=None, width=None, **kwargs ): ...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "color", "=", "None", ",", "end", "=", "None", ",", "highlight", "=", "None", ",", "highlightcolor", "=", "None", ",", "highlightwidth", "=", "None", ",", "project", "=", "None", ",", "sho...
[ 385, 4 ]
[ 524, 34 ]
python
en
['en', 'error', 'th']
False
test_committed
()
Check that it is possible to set and get committed items
Check that it is possible to set and get committed items
def test_committed(): """ Check that it is possible to set and get committed items """ cache = make_idr_cache() cache.set(identifier, *committed_items) real_items = cache.get(identifier) assert committed_items == real_items real_items = cache.get(identifier, isCommitted=False) assert...
[ "def", "test_committed", "(", ")", ":", "cache", "=", "make_idr_cache", "(", ")", "cache", ".", "set", "(", "identifier", ",", "*", "committed_items", ")", "real_items", "=", "cache", ".", "get", "(", "identifier", ")", "assert", "committed_items", "==", "...
[ 23, 0 ]
[ 32, 40 ]
python
en
['en', 'error', 'th']
False
test_uncommitted
()
Check that it is possible to set and get uncommitted items
Check that it is possible to set and get uncommitted items
def test_uncommitted(): """ Check that it is possible to set and get uncommitted items """ cache = make_idr_cache() cache.set(identifier, *uncommitted_items, isCommitted=False) real_items = cache.get(identifier, isCommitted=False) assert uncommitted_items == real_items
[ "def", "test_uncommitted", "(", ")", ":", "cache", "=", "make_idr_cache", "(", ")", "cache", ".", "set", "(", "identifier", ",", "*", "uncommitted_items", ",", "isCommitted", "=", "False", ")", "real_items", "=", "cache", ".", "get", "(", "identifier", ","...
[ 35, 0 ]
[ 42, 42 ]
python
en
['en', 'error', 'th']
False
test_committed_and_uncommitted
()
Check that uncommitted and committed can present together
Check that uncommitted and committed can present together
def test_committed_and_uncommitted(): """ Check that uncommitted and committed can present together """ cache = make_idr_cache() cache.set(identifier, *committed_items, isCommitted=True) cache.set(identifier, *uncommitted_items, isCommitted=False) assert uncommitted_items == cache.get(identi...
[ "def", "test_committed_and_uncommitted", "(", ")", ":", "cache", "=", "make_idr_cache", "(", ")", "cache", ".", "set", "(", "identifier", ",", "*", "committed_items", ",", "isCommitted", "=", "True", ")", "cache", ".", "set", "(", "identifier", ",", "*", "...
[ 45, 0 ]
[ 53, 69 ]
python
en
['en', 'error', 'th']
False
to_json
(fig, validate=True, pretty=False, remove_uids=True)
Convert a figure to a JSON string representation Parameters ---------- fig: Figure object or dict representing a figure validate: bool (default True) True if the figure should be validated before being converted to JSON, False otherwise. pretty: bool (default False) ...
Convert a figure to a JSON string representation
def to_json(fig, validate=True, pretty=False, remove_uids=True): """ Convert a figure to a JSON string representation Parameters ---------- fig: Figure object or dict representing a figure validate: bool (default True) True if the figure should be validated before being convert...
[ "def", "to_json", "(", "fig", ",", "validate", "=", "True", ",", "pretty", "=", "False", ",", "remove_uids", "=", "True", ")", ":", "from", "_plotly_utils", ".", "utils", "import", "PlotlyJSONEncoder", "# Validate figure", "# ---------------", "fig_dict", "=", ...
[ 9, 0 ]
[ 55, 62 ]
python
en
['en', 'error', 'th']
False
write_json
(fig, file, validate=True, pretty=False, remove_uids=True)
Convert a figure to JSON and write it to a file or writeable object Parameters ---------- fig: Figure object or dict representing a figure file: str or writeable A string representing a local file path or a writeable object (e.g. an open file descriptor) pretty: b...
Convert a figure to JSON and write it to a file or writeable object
def write_json(fig, file, validate=True, pretty=False, remove_uids=True): """ Convert a figure to JSON and write it to a file or writeable object Parameters ---------- fig: Figure object or dict representing a figure file: str or writeable A string representing a local file...
[ "def", "write_json", "(", "fig", ",", "file", ",", "validate", "=", "True", ",", "pretty", "=", "False", ",", "remove_uids", "=", "True", ")", ":", "# Get JSON string", "# ---------------", "# Pass through validate argument and let to_json handle validation logic", "jso...
[ 58, 0 ]
[ 99, 28 ]
python
en
['en', 'error', 'th']
False
from_json
(value, output_type="Figure", skip_invalid=False)
Construct a figure from a JSON string Parameters ---------- value: str String containing the JSON representation of a figure output_type: type or str (default 'Figure') The output figure type or type name. One of: graph_objs.Figure, 'Figure', graph_objs.FigureWidget, 'Fig...
Construct a figure from a JSON string
def from_json(value, output_type="Figure", skip_invalid=False): """ Construct a figure from a JSON string Parameters ---------- value: str String containing the JSON representation of a figure output_type: type or str (default 'Figure') The output figure type or type name. ...
[ "def", "from_json", "(", "value", ",", "output_type", "=", "\"Figure\"", ",", "skip_invalid", "=", "False", ")", ":", "# Validate value", "# --------------", "if", "not", "isinstance", "(", "value", ",", "string_types", ")", ":", "raise", "ValueError", "(", "\...
[ 102, 0 ]
[ 152, 14 ]
python
en
['en', 'error', 'th']
False
read_json
(file, output_type="Figure", skip_invalid=False)
Construct a figure from the JSON contents of a local file or readable Python object Parameters ---------- file: str or readable A string containing the path to a local file or a read-able Python object (e.g. an open file descriptor) output_type: type or str (default 'Figure') ...
Construct a figure from the JSON contents of a local file or readable Python object
def read_json(file, output_type="Figure", skip_invalid=False): """ Construct a figure from the JSON contents of a local file or readable Python object Parameters ---------- file: str or readable A string containing the path to a local file or a read-able Python object (e.g. an ope...
[ "def", "read_json", "(", "file", ",", "output_type", "=", "\"Figure\"", ",", "skip_invalid", "=", "False", ")", ":", "# Check if file is a string", "# -------------------------", "# If it's a string we assume it's a local file path. If it's not a string", "# then we assume it's a r...
[ 155, 0 ]
[ 195, 82 ]
python
en
['en', 'error', 'th']
False
setup
(bot)
Mandatory function to add the Cog to the bot.
Mandatory function to add the Cog to the bot.
def setup(bot): """ Mandatory function to add the Cog to the bot. """ bot.add_cog(TranslateCog(bot))
[ "def", "setup", "(", "bot", ")", ":", "bot", ".", "add_cog", "(", "TranslateCog", "(", "bot", ")", ")" ]
[ 325, 0 ]
[ 329, 34 ]
python
en
['en', 'error', 'th']
False
TranslateCog.emoji_translate_listener
(self, payload)
Translates a Message when you add a Flag Emoji to it. The flag emoji represents the language you want the message translated to. The translated message is then send to you via DM.
Translates a Message when you add a Flag Emoji to it. The flag emoji represents the language you want the message translated to. The translated message is then send to you via DM.
async def emoji_translate_listener(self, payload): """ Translates a Message when you add a Flag Emoji to it. The flag emoji represents the language you want the message translated to. The translated message is then send to you via DM. """ if self.completely_ready is Fals...
[ "async", "def", "emoji_translate_listener", "(", "self", ",", "payload", ")", ":", "if", "self", ".", "completely_ready", "is", "False", ":", "return", "if", "await", "self", ".", "_emoji_translate_checks", "(", "payload", ")", "is", "False", ":", "return", ...
[ 182, 4 ]
[ 207, 167 ]
python
en
['en', 'error', 'th']
False
TranslateCog.translate
(self, ctx, to_language_id: Optional[LanguageConverter] = "english", *, text_to_translate: str)
Translates text into multiple different languages. Tries to auto-guess input language. Args: text_to_translate (str): the text to translate, quotes are optional to_language_id (Optional[LanguageConverter], optional): either can be the name of the language or an languag...
Translates text into multiple different languages.
async def translate(self, ctx, to_language_id: Optional[LanguageConverter] = "english", *, text_to_translate: str): """ Translates text into multiple different languages. Tries to auto-guess input language. Args: text_to_translate (str): the text to translate, quotes are op...
[ "async", "def", "translate", "(", "self", ",", "ctx", ",", "to_language_id", ":", "Optional", "[", "LanguageConverter", "]", "=", "\"english\"", ",", "*", ",", "text_to_translate", ":", "str", ")", ":", "translated", "=", "self", ".", "translator", ".", "t...
[ 242, 4 ]
[ 261, 34 ]
python
en
['en', 'error', 'th']
False
TranslateCog.available_languages
(self, ctx: commands.Context)
Sends a list of all available languages, that can be used with the `translate` command. Example: @AntiPetros available_languages Info: Your invoking message gets deleted and after 120 seconds the message with the list of languages gets deleted too.
Sends a list of all available languages, that can be used with the `translate` command.
async def available_languages(self, ctx: commands.Context): """ Sends a list of all available languages, that can be used with the `translate` command. Example: @AntiPetros available_languages Info: Your invoking message gets deleted and after 120 seconds the me...
[ "async", "def", "available_languages", "(", "self", ",", "ctx", ":", "commands", ".", "Context", ")", ":", "text", "=", "ListMarker", ".", "make_list", "(", "list", "(", "LANGUAGES", ".", "values", "(", ")", ")", ")", "await", "ctx", ".", "send", "(", ...
[ 266, 4 ]
[ 279, 49 ]
python
en
['en', 'error', 'th']
False
Domain.column
(self)
If there is a layout grid, use the domain for this column in the grid for this mapbox subplot . The 'column' 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 ...
If there is a layout grid, use the domain for this column in the grid for this mapbox subplot . The 'column' 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 column(self): """ If there is a layout grid, use the domain for this column in the grid for this mapbox subplot . The 'column' property is a integer and may be specified as: - An int (or float that will be cast to an int) in the interval [0, 922337203685477...
[ "def", "column", "(", "self", ")", ":", "return", "self", "[", "\"column\"", "]" ]
[ 15, 4 ]
[ 28, 29 ]
python
en
['en', 'error', 'th']
False
Domain.row
(self)
If there is a layout grid, use the domain for this row in the grid for this mapbox subplot . The 'row' 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 ----...
If there is a layout grid, use the domain for this row in the grid for this mapbox subplot . The 'row' 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 row(self): """ If there is a layout grid, use the domain for this row in the grid for this mapbox subplot . The 'row' 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", "row", "(", "self", ")", ":", "return", "self", "[", "\"row\"", "]" ]
[ 37, 4 ]
[ 50, 26 ]
python
en
['en', 'error', 'th']
False
Domain.x
(self)
Sets the horizontal domain of this mapbox subplot (in plot fraction). The 'x' property is an info array that may be specified as: * a list or tuple of 2 elements where: (0) The 'x[0]' property is a number and may be specified as: - An int or float in the interval...
Sets the horizontal domain of this mapbox subplot (in plot fraction). The 'x' property is an info array that may be specified as: * a list or tuple of 2 elements where: (0) The 'x[0]' property is a number and may be specified as: - An int or float in the interval...
def x(self): """ Sets the horizontal domain of this mapbox subplot (in plot fraction). The 'x' property is an info array that may be specified as: * a list or tuple of 2 elements where: (0) The 'x[0]' property is a number and may be specified as: - An int ...
[ "def", "x", "(", "self", ")", ":", "return", "self", "[", "\"x\"", "]" ]
[ 59, 4 ]
[ 76, 24 ]
python
en
['en', 'error', 'th']
False
Domain.y
(self)
Sets the vertical domain of this mapbox subplot (in plot fraction). The 'y' property is an info array that may be specified as: * a list or tuple of 2 elements where: (0) The 'y[0]' property is a number and may be specified as: - An int or float in the interval [...
Sets the vertical domain of this mapbox subplot (in plot fraction). The 'y' property is an info array that may be specified as: * a list or tuple of 2 elements where: (0) The 'y[0]' property is a number and may be specified as: - An int or float in the interval [...
def y(self): """ Sets the vertical domain of this mapbox subplot (in plot fraction). The 'y' property is an info array that may be specified as: * a list or tuple of 2 elements where: (0) The 'y[0]' property is a number and may be specified as: - An int or...
[ "def", "y", "(", "self", ")", ":", "return", "self", "[", "\"y\"", "]" ]
[ 85, 4 ]
[ 102, 24 ]
python
en
['en', 'error', 'th']
False
Domain.__init__
(self, arg=None, column=None, row=None, x=None, y=None, **kwargs)
Construct a new Domain object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.layout.mapbox.Domain` column If there is a layout grid, use the domain...
Construct a new Domain object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.layout.mapbox.Domain` column If there is a layout grid, use the domain...
def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): """ Construct a new Domain object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs....
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "column", "=", "None", ",", "row", "=", "None", ",", "x", "=", "None", ",", "y", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", "Domain", ",", "self", ")", ".", "__i...
[ 127, 4 ]
[ 206, 34 ]
python
en
['en', 'error', 'th']
False
Title.font
(self)
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 of :class:`plotly.graph_objs.densitymapbox.colorbar.title.Font` ...
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 of :class:`plotly.graph_objs.densitymapbox.colorbar.title.Font` ...
def font(self): """ 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 of :class:`plotly.graph_objs.densitymapbo...
[ "def", "font", "(", "self", ")", ":", "return", "self", "[", "\"font\"", "]" ]
[ 15, 4 ]
[ 53, 27 ]
python
en
['en', 'error', 'th']
False
Title.side
(self)
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 be specified as: - One of the following enumeration values...
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 be specified as: - One of the following enumeration values...
def side(self): """ 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 be specified as: - One of the f...
[ "def", "side", "(", "self", ")", ":", "return", "self", "[", "\"side\"", "]" ]
[ 62, 4 ]
[ 76, 27 ]
python
en
['en', 'error', 'th']
False
Title.text
(self)
Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. The 'text' property is a string and must be specified as: - A string - A ...
Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. The 'text' property is a string and must be specified as: - A string - A ...
def text(self): """ Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. The 'text' property is a string and must be specified as: ...
[ "def", "text", "(", "self", ")", ":", "return", "self", "[", "\"text\"", "]" ]
[ 85, 4 ]
[ 99, 27 ]
python
en
['en', 'error', 'th']
False
Title.__init__
(self, arg=None, font=None, side=None, text=None, **kwargs)
Construct a new Title object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.densitymapbox.colorbar.Title` font Sets this color bar's title font. No...
Construct a new Title object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.densitymapbox.colorbar.Title` font Sets this color bar's title font. No...
def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): """ Construct a new Title object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.density...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "font", "=", "None", ",", "side", "=", "None", ",", "text", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", "Title", ",", "self", ")", ".", "__init__", "(", "\"title\"", ...
[ 126, 4 ]
[ 203, 34 ]
python
en
['en', 'error', 'th']
False
Hoverlabel.bgcolor
(self)
Sets the background color of the hover label. By default uses the annotation's `bgcolor` made opaque, or white if it was transparent. The 'bgcolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0...
Sets the background color of the hover label. By default uses the annotation's `bgcolor` made opaque, or white if it was transparent. The 'bgcolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0...
def bgcolor(self): """ Sets the background color of the hover label. By default uses the annotation's `bgcolor` made opaque, or white if it was transparent. The 'bgcolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rg...
[ "def", "bgcolor", "(", "self", ")", ":", "return", "self", "[", "\"bgcolor\"", "]" ]
[ 15, 4 ]
[ 67, 30 ]
python
en
['en', 'error', 'th']
False
Hoverlabel.bordercolor
(self)
Sets the border color of the hover label. By default uses either dark grey or white, for maximum contrast with `hoverlabel.bgcolor`. The 'bordercolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(25...
Sets the border color of the hover label. By default uses either dark grey or white, for maximum contrast with `hoverlabel.bgcolor`. The 'bordercolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(25...
def bordercolor(self): """ Sets the border color of the hover label. By default uses either dark grey or white, for maximum contrast with `hoverlabel.bgcolor`. The 'bordercolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') ...
[ "def", "bordercolor", "(", "self", ")", ":", "return", "self", "[", "\"bordercolor\"", "]" ]
[ 76, 4 ]
[ 128, 34 ]
python
en
['en', 'error', 'th']
False
Hoverlabel.font
(self)
Sets the hover label text font. By default uses the global hover font and size, with color from `hoverlabel.bordercolor`. The 'font' property is an instance of Font that may be specified as: - An instance of :class:`plotly.graph_objs.layout.annotation.hoverlabel.Font` ...
Sets the hover label text font. By default uses the global hover font and size, with color from `hoverlabel.bordercolor`. The 'font' property is an instance of Font that may be specified as: - An instance of :class:`plotly.graph_objs.layout.annotation.hoverlabel.Font` ...
def font(self): """ Sets the hover label text font. By default uses the global hover font and size, with color from `hoverlabel.bordercolor`. The 'font' property is an instance of Font that may be specified as: - An instance of :class:`plotly.graph_objs.layout.anno...
[ "def", "font", "(", "self", ")", ":", "return", "self", "[", "\"font\"", "]" ]
[ 137, 4 ]
[ 175, 27 ]
python
en
['en', 'error', 'th']
False
Hoverlabel.__init__
(self, arg=None, bgcolor=None, bordercolor=None, font=None, **kwargs)
Construct a new Hoverlabel object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.layout.annotation.Hoverlabel` bgcolor Sets the background color of...
Construct a new Hoverlabel object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.layout.annotation.Hoverlabel` bgcolor Sets the background color of...
def __init__(self, arg=None, bgcolor=None, bordercolor=None, font=None, **kwargs): """ Construct a new Hoverlabel object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.gra...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "bgcolor", "=", "None", ",", "bordercolor", "=", "None", ",", "font", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", "Hoverlabel", ",", "self", ")", ".", "__init__", "(", ...
[ 200, 4 ]
[ 275, 34 ]
python
en
['en', 'error', 'th']
False
Caps.x
(self)
The 'x' property is an instance of X that may be specified as: - An instance of :class:`plotly.graph_objs.volume.caps.X` - A dict of string/value properties that will be passed to the X constructor Supported dict properties: ...
The 'x' property is an instance of X that may be specified as: - An instance of :class:`plotly.graph_objs.volume.caps.X` - A dict of string/value properties that will be passed to the X constructor Supported dict properties: ...
def x(self): """ The 'x' property is an instance of X that may be specified as: - An instance of :class:`plotly.graph_objs.volume.caps.X` - A dict of string/value properties that will be passed to the X constructor Supported dict properties: ...
[ "def", "x", "(", "self", ")", ":", "return", "self", "[", "\"x\"", "]" ]
[ 15, 4 ]
[ 43, 24 ]
python
en
['en', 'error', 'th']
False
Caps.y
(self)
The 'y' property is an instance of Y that may be specified as: - An instance of :class:`plotly.graph_objs.volume.caps.Y` - A dict of string/value properties that will be passed to the Y constructor Supported dict properties: ...
The 'y' property is an instance of Y that may be specified as: - An instance of :class:`plotly.graph_objs.volume.caps.Y` - A dict of string/value properties that will be passed to the Y constructor Supported dict properties: ...
def y(self): """ The 'y' property is an instance of Y that may be specified as: - An instance of :class:`plotly.graph_objs.volume.caps.Y` - A dict of string/value properties that will be passed to the Y constructor Supported dict properties: ...
[ "def", "y", "(", "self", ")", ":", "return", "self", "[", "\"y\"", "]" ]
[ 52, 4 ]
[ 80, 24 ]
python
en
['en', 'error', 'th']
False
Caps.z
(self)
The 'z' property is an instance of Z that may be specified as: - An instance of :class:`plotly.graph_objs.volume.caps.Z` - A dict of string/value properties that will be passed to the Z constructor Supported dict properties: ...
The 'z' property is an instance of Z that may be specified as: - An instance of :class:`plotly.graph_objs.volume.caps.Z` - A dict of string/value properties that will be passed to the Z constructor Supported dict properties: ...
def z(self): """ The 'z' property is an instance of Z that may be specified as: - An instance of :class:`plotly.graph_objs.volume.caps.Z` - A dict of string/value properties that will be passed to the Z constructor Supported dict properties: ...
[ "def", "z", "(", "self", ")", ":", "return", "self", "[", "\"z\"", "]" ]
[ 89, 4 ]
[ 117, 24 ]
python
en
['en', 'error', 'th']
False
Caps.__init__
(self, arg=None, x=None, y=None, z=None, **kwargs)
Construct a new Caps object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.volume.Caps` x :class:`plotly.graph_objects.volume.caps.X` instance or d...
Construct a new Caps object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.volume.Caps` x :class:`plotly.graph_objects.volume.caps.X` instance or d...
def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): """ Construct a new Caps object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.volume.Caps` x ...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "x", "=", "None", ",", "y", "=", "None", ",", "z", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", "Caps", ",", "self", ")", ".", "__init__", "(", "\"caps\"", ")", "i...
[ 139, 4 ]
[ 210, 34 ]
python
en
['en', 'error', 'th']
False
ConfigLedgerAuthStrategy.get_auth_constraint
(self, action_id: str)
Find rule_id for incoming action_id and return AuthConstraint instance
Find rule_id for incoming action_id and return AuthConstraint instance
def get_auth_constraint(self, action_id: str) -> AbstractAuthConstraint: """ Find rule_id for incoming action_id and return AuthConstraint instance """ return self._find_auth_constraint(action_id, self.auth_map)
[ "def", "get_auth_constraint", "(", "self", ",", "action_id", ":", "str", ")", "->", "AbstractAuthConstraint", ":", "return", "self", ".", "_find_auth_constraint", "(", "action_id", ",", "self", ".", "auth_map", ")" ]
[ 69, 4 ]
[ 73, 67 ]
python
en
['en', 'error', 'th']
False
Marker.color
(self)
Sets themarkercolor. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. The 'color' property is a color and may be specified as: ...
Sets themarkercolor. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. The 'color' property is a color and may be specified as: ...
def color(self): """ Sets themarkercolor. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. The 'color' property is a colo...
[ "def", "color", "(", "self", ")", ":", "return", "self", "[", "\"color\"", "]" ]
[ 15, 4 ]
[ 68, 28 ]
python
en
['en', 'error', 'th']
False
Marker.line
(self)
The 'line' property is an instance of Line that may be specified as: - An instance of :class:`plotly.graph_objs.box.marker.Line` - A dict of string/value properties that will be passed to the Line constructor Supported dict properties: ...
The 'line' property is an instance of Line that may be specified as: - An instance of :class:`plotly.graph_objs.box.marker.Line` - A dict of string/value properties that will be passed to the Line constructor Supported dict properties: ...
def line(self): """ The 'line' property is an instance of Line that may be specified as: - An instance of :class:`plotly.graph_objs.box.marker.Line` - A dict of string/value properties that will be passed to the Line constructor Supported dict pro...
[ "def", "line", "(", "self", ")", ":", "return", "self", "[", "\"line\"", "]" ]
[ 77, 4 ]
[ 108, 27 ]
python
en
['en', 'error', 'th']
False
Marker.opacity
(self)
Sets the marker opacity. The 'opacity' property is a number and may be specified as: - An int or float in the interval [0, 1] Returns ------- int|float
Sets the marker opacity. 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 marker opacity. 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\"", "]" ]
[ 117, 4 ]
[ 128, 30 ]
python
en
['en', 'error', 'th']
False
Marker.outliercolor
(self)
Sets the color of the outlier sample points. The 'outliercolor' 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. '...
Sets the color of the outlier sample points. The 'outliercolor' 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. '...
def outliercolor(self): """ Sets the color of the outlier sample points. The 'outliercolor' 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", "outliercolor", "(", "self", ")", ":", "return", "self", "[", "\"outliercolor\"", "]" ]
[ 137, 4 ]
[ 187, 35 ]
python
en
['en', 'error', 'th']
False
Marker.size
(self)
Sets the marker size (in px). The 'size' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float
Sets the marker size (in px). The 'size' property is a number and may be specified as: - An int or float in the interval [0, inf]
def size(self): """ Sets the marker size (in px). The 'size' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float """ return self["size"]
[ "def", "size", "(", "self", ")", ":", "return", "self", "[", "\"size\"", "]" ]
[ 196, 4 ]
[ 207, 27 ]
python
en
['en', 'error', 'th']
False
Marker.symbol
(self)
Sets the marker symbol type. Adding 100 is equivalent to appending "-open" to a symbol name. Adding 200 is equivalent to appending "-dot" to a symbol name. Adding 300 is equivalent to appending "-open-dot" or "dot-open" to a symbol name. The 'symbol' property is an enumerat...
Sets the marker symbol type. Adding 100 is equivalent to appending "-open" to a symbol name. Adding 200 is equivalent to appending "-dot" to a symbol name. Adding 300 is equivalent to appending "-open-dot" or "dot-open" to a symbol name. The 'symbol' property is an enumerat...
def symbol(self): """ Sets the marker symbol type. Adding 100 is equivalent to appending "-open" to a symbol name. Adding 200 is equivalent to appending "-dot" to a symbol name. Adding 300 is equivalent to appending "-open-dot" or "dot-open" to a symbol name. The 'sy...
[ "def", "symbol", "(", "self", ")", ":", "return", "self", "[", "\"symbol\"", "]" ]
[ 216, 4 ]
[ 291, 29 ]
python
en
['en', 'error', 'th']
False
Marker.__init__
( self, arg=None, color=None, line=None, opacity=None, outliercolor=None, size=None, symbol=None, **kwargs )
Construct a new Marker object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.box.Marker` color Sets themarkercolor. It accepts either a specific color ...
Construct a new Marker object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.box.Marker` color Sets themarkercolor. It accepts either a specific color ...
def __init__( self, arg=None, color=None, line=None, opacity=None, outliercolor=None, size=None, symbol=None, **kwargs ): """ Construct a new Marker object Parameters ---------- arg d...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "color", "=", "None", ",", "line", "=", "None", ",", "opacity", "=", "None", ",", "outliercolor", "=", "None", ",", "size", "=", "None", ",", "symbol", "=", "None", ",", "*", "*", "kwa...
[ 325, 4 ]
[ 430, 34 ]
python
en
['en', 'error', 'th']
False
plot_image
(image, figsize)
Display an image
Display an image
def plot_image(image, figsize): """ Display an image """ fig = plt.figure(figsize = figsize) plt.imshow(image, cmap = 'gray') plt.title(''), plt.xticks([]), plt.yticks([]) plt.show()
[ "def", "plot_image", "(", "image", ",", "figsize", ")", ":", "fig", "=", "plt", ".", "figure", "(", "figsize", "=", "figsize", ")", "plt", ".", "imshow", "(", "image", ",", "cmap", "=", "'gray'", ")", "plt", ".", "title", "(", "''", ")", ",", "pl...
[ 10, 0 ]
[ 17, 14 ]
python
en
['en', 'ceb', 'en']
True
pattern_detection
(img, figsize)
Performs object segmentation by morphological filtering
Performs object segmentation by morphological filtering
def pattern_detection(img, figsize): """ Performs object segmentation by morphological filtering """ # BGR to grayscale imgGray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) img_backup = img.copy() # Get image size height, width, _ = np.array(img).shape # Erosion morphological filte...
[ "def", "pattern_detection", "(", "img", ",", "figsize", ")", ":", "# BGR to grayscale", "imgGray", "=", "cv2", ".", "cvtColor", "(", "img", ",", "cv2", ".", "COLOR_BGR2GRAY", ")", "img_backup", "=", "img", ".", "copy", "(", ")", "# Get image size", "height",...
[ 19, 0 ]
[ 60, 28 ]
python
en
['en', 'en', 'en']
True
image_loader
(image)
Load image and returns pytorch tensor
Load image and returns pytorch tensor
def image_loader(image): """ Load image and returns pytorch tensor """ imsize = 256 loader = transforms.Compose([transforms.Resize(imsize), transforms.ToTensor()]) image = Image.fromarray(image) image = loader(image).float() image = Variable(image, requires_grad = True) image = image....
[ "def", "image_loader", "(", "image", ")", ":", "imsize", "=", "256", "loader", "=", "transforms", ".", "Compose", "(", "[", "transforms", ".", "Resize", "(", "imsize", ")", ",", "transforms", ".", "ToTensor", "(", ")", "]", ")", "image", "=", "Image", ...
[ 62, 0 ]
[ 74, 16 ]
python
en
['en', 'en', 'en']
True
build_model
()
Build feature extractor based on ResNet-34
Build feature extractor based on ResNet-34
def build_model(): """ Build feature extractor based on ResNet-34 """ # If True, returns a model pre-trained on ImageNet convnet = models.resnet34(pretrained = True) convnet = list(convnet.children())[:-2] convnet = torch.nn.Sequential(*convnet, torch.nn.AdaptiveAvgPool2d(output_size = (4, 4))) ...
[ "def", "build_model", "(", ")", ":", "# If True, returns a model pre-trained on ImageNet", "convnet", "=", "models", ".", "resnet34", "(", "pretrained", "=", "True", ")", "convnet", "=", "list", "(", "convnet", ".", "children", "(", ")", ")", "[", ":", "-", ...
[ 76, 0 ]
[ 85, 18 ]
python
en
['en', 'en', 'en']
True
feature_extraction
(model, objects, patterns)
Feature extraction from all detected patterns
Feature extraction from all detected patterns
def feature_extraction(model, objects, patterns): """ Feature extraction from all detected patterns """ feature_vectors = [] for i in range(len(patterns)): x_min, y_min, width, height = patterns[i][0], patterns[i][1], patterns[i][2], patterns[i][3] image = image_loader(objects[i]) ...
[ "def", "feature_extraction", "(", "model", ",", "objects", ",", "patterns", ")", ":", "feature_vectors", "=", "[", "]", "for", "i", "in", "range", "(", "len", "(", "patterns", ")", ")", ":", "x_min", ",", "y_min", ",", "width", ",", "height", "=", "p...
[ 87, 0 ]
[ 102, 26 ]
python
en
['en', 'en', 'en']
True
pairwise_matrix
(feature_vectors)
Compute cosine similarity between feature vectors
Compute cosine similarity between feature vectors
def pairwise_matrix(feature_vectors): """ Compute cosine similarity between feature vectors """ cosine_similarity = np.ones((len(feature_vectors[0]), len(feature_vectors[0]))) for i in range(len(feature_vectors)-1): for j in range(len(feature_vectors)-1): cosine_similarity[i,j] = np.d...
[ "def", "pairwise_matrix", "(", "feature_vectors", ")", ":", "cosine_similarity", "=", "np", ".", "ones", "(", "(", "len", "(", "feature_vectors", "[", "0", "]", ")", ",", "len", "(", "feature_vectors", "[", "0", "]", ")", ")", ")", "for", "i", "in", ...
[ 104, 0 ]
[ 114, 28 ]
python
en
['en', 'nl', '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
Hoverlabel.bgcolor
(self)
Sets the background color of the hover labels for this trace The 'bgcolor' 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 str...
Sets the background color of the hover labels for this trace The 'bgcolor' 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 str...
def bgcolor(self): """ Sets the background color of the hover labels for this trace The 'bgcolor' 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", "bgcolor", "(", "self", ")", ":", "return", "self", "[", "\"bgcolor\"", "]" ]
[ 69, 4 ]
[ 120, 30 ]
python
en
['en', 'error', 'th']
False