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
Scattergl.line
(self)
The 'line' property is an instance of Line that may be specified as: - An instance of :class:`plotly.graph_objs.scattergl.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.scattergl.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.scattergl.Line` - A dict of string/value properties that will be passed to the Line constructor Supported dict prop...
[ "def", "line", "(", "self", ")", ":", "return", "self", "[", "\"line\"", "]" ]
[ 714, 4 ]
[ 738, 27 ]
python
en
['en', 'error', 'th']
False
Scattergl.marker
(self)
The 'marker' property is an instance of Marker that may be specified as: - An instance of :class:`plotly.graph_objs.scattergl.Marker` - A dict of string/value properties that will be passed to the Marker constructor Supported dict properties: ...
The 'marker' property is an instance of Marker that may be specified as: - An instance of :class:`plotly.graph_objs.scattergl.Marker` - A dict of string/value properties that will be passed to the Marker constructor Supported dict properties: ...
def marker(self): """ The 'marker' property is an instance of Marker that may be specified as: - An instance of :class:`plotly.graph_objs.scattergl.Marker` - A dict of string/value properties that will be passed to the Marker constructor Supported...
[ "def", "marker", "(", "self", ")", ":", "return", "self", "[", "\"marker\"", "]" ]
[ 747, 4 ]
[ 886, 29 ]
python
en
['en', 'error', 'th']
False
Scattergl.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\"", "]" ]
[ 895, 4 ]
[ 914, 27 ]
python
en
['en', 'error', 'th']
False
Scattergl.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\"", "]" ]
[ 923, 4 ]
[ 934, 30 ]
python
en
['en', 'error', 'th']
False
Scattergl.mode
(self)
Determines the drawing mode for this scatter trace. The 'mode' property is a flaglist and may be specified as a string containing: - Any combination of ['lines', 'markers', 'text'] joined with '+' characters (e.g. 'lines+markers') OR exactly one of ['none'...
Determines the drawing mode for this scatter trace. The 'mode' property is a flaglist and may be specified as a string containing: - Any combination of ['lines', 'markers', 'text'] joined with '+' characters (e.g. 'lines+markers') OR exactly one of ['none'...
def mode(self): """ Determines the drawing mode for this scatter trace. The 'mode' property is a flaglist and may be specified as a string containing: - Any combination of ['lines', 'markers', 'text'] joined with '+' characters (e.g. 'lines+markers') ...
[ "def", "mode", "(", "self", ")", ":", "return", "self", "[", "\"mode\"", "]" ]
[ 943, 4 ]
[ 957, 27 ]
python
en
['en', 'error', 'th']
False
Scattergl.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\"", "]" ]
[ 966, 4 ]
[ 979, 27 ]
python
en
['en', 'error', 'th']
False
Scattergl.opacity
(self)
Sets the opacity of the trace. The 'opacity' property is a number and may be specified as: - An int or float in the interval [0, 1] Returns ------- int|float
Sets the opacity of the trace. The 'opacity' property is a number and may be specified as: - An int or float in the interval [0, 1]
def opacity(self): """ Sets the opacity of the trace. The 'opacity' property is a number and may be specified as: - An int or float in the interval [0, 1] Returns ------- int|float """ return self["opacity"]
[ "def", "opacity", "(", "self", ")", ":", "return", "self", "[", "\"opacity\"", "]" ]
[ 988, 4 ]
[ 999, 30 ]
python
en
['en', 'error', 'th']
False
Scattergl.selected
(self)
The 'selected' property is an instance of Selected that may be specified as: - An instance of :class:`plotly.graph_objs.scattergl.Selected` - A dict of string/value properties that will be passed to the Selected constructor Supported dict properties: ...
The 'selected' property is an instance of Selected that may be specified as: - An instance of :class:`plotly.graph_objs.scattergl.Selected` - A dict of string/value properties that will be passed to the Selected constructor Supported dict properties: ...
def selected(self): """ The 'selected' property is an instance of Selected that may be specified as: - An instance of :class:`plotly.graph_objs.scattergl.Selected` - A dict of string/value properties that will be passed to the Selected constructor ...
[ "def", "selected", "(", "self", ")", ":", "return", "self", "[", "\"selected\"", "]" ]
[ 1008, 4 ]
[ 1031, 31 ]
python
en
['en', 'error', 'th']
False
Scattergl.selectedpoints
(self)
Array containing integer indices of selected points. Has an effect only for traces that support selections. Note that an empty array means an empty selection where the `unselected` are turned on for all points, whereas, any other non-array values means no selection all where the...
Array containing integer indices of selected points. Has an effect only for traces that support selections. Note that an empty array means an empty selection where the `unselected` are turned on for all points, whereas, any other non-array values means no selection all where the...
def selectedpoints(self): """ Array containing integer indices of selected points. Has an effect only for traces that support selections. Note that an empty array means an empty selection where the `unselected` are turned on for all points, whereas, any other non-array values ...
[ "def", "selectedpoints", "(", "self", ")", ":", "return", "self", "[", "\"selectedpoints\"", "]" ]
[ 1040, 4 ]
[ 1055, 37 ]
python
en
['en', 'error', 'th']
False
Scattergl.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\"", "]" ]
[ 1064, 4 ]
[ 1076, 33 ]
python
en
['en', 'error', 'th']
False
Scattergl.stream
(self)
The 'stream' property is an instance of Stream that may be specified as: - An instance of :class:`plotly.graph_objs.scattergl.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.scattergl.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.scattergl.Stream` - A dict of string/value properties that will be passed to the Stream constructor Supported...
[ "def", "stream", "(", "self", ")", ":", "return", "self", "[", "\"stream\"", "]" ]
[ 1085, 4 ]
[ 1109, 29 ]
python
en
['en', 'error', 'th']
False
Scattergl.text
(self)
Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. If trace `hoverinfo` contains a "text" flag and "hovertext" is no...
Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. If trace `hoverinfo` contains a "text" flag and "hovertext" is no...
def text(self): """ Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. If trace `hoverinfo` contains a "text"...
[ "def", "text", "(", "self", ")", ":", "return", "self", "[", "\"text\"", "]" ]
[ 1118, 4 ]
[ 1136, 27 ]
python
en
['en', 'error', 'th']
False
Scattergl.textfont
(self)
Sets the text font. The 'textfont' property is an instance of Textfont that may be specified as: - An instance of :class:`plotly.graph_objs.scattergl.Textfont` - A dict of string/value properties that will be passed to the Textfont constructor ...
Sets the text font. The 'textfont' property is an instance of Textfont that may be specified as: - An instance of :class:`plotly.graph_objs.scattergl.Textfont` - A dict of string/value properties that will be passed to the Textfont constructor ...
def textfont(self): """ Sets the text font. The 'textfont' property is an instance of Textfont that may be specified as: - An instance of :class:`plotly.graph_objs.scattergl.Textfont` - A dict of string/value properties that will be passed to the Text...
[ "def", "textfont", "(", "self", ")", ":", "return", "self", "[", "\"textfont\"", "]" ]
[ 1145, 4 ]
[ 1192, 31 ]
python
en
['en', 'error', 'th']
False
Scattergl.textposition
(self)
Sets the positions of the `text` elements with respects to the (x,y) coordinates. The 'textposition' property is an enumeration that may be specified as: - One of the following enumeration values: ['top left', 'top center', 'top right', 'middle left', ...
Sets the positions of the `text` elements with respects to the (x,y) coordinates. The 'textposition' property is an enumeration that may be specified as: - One of the following enumeration values: ['top left', 'top center', 'top right', 'middle left', ...
def textposition(self): """ Sets the positions of the `text` elements with respects to the (x,y) coordinates. The 'textposition' property is an enumeration that may be specified as: - One of the following enumeration values: ['top left', 'top center', 'top ...
[ "def", "textposition", "(", "self", ")", ":", "return", "self", "[", "\"textposition\"", "]" ]
[ 1201, 4 ]
[ 1217, 35 ]
python
en
['en', 'error', 'th']
False
Scattergl.textpositionsrc
(self)
Sets the source reference on Chart Studio Cloud for textposition . The 'textpositionsrc' 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 textposition . The 'textpositionsrc' property must be specified as a string or as a plotly.grid_objs.Column object
def textpositionsrc(self): """ Sets the source reference on Chart Studio Cloud for textposition . The 'textpositionsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self[...
[ "def", "textpositionsrc", "(", "self", ")", ":", "return", "self", "[", "\"textpositionsrc\"", "]" ]
[ 1226, 4 ]
[ 1238, 38 ]
python
en
['en', 'error', 'th']
False
Scattergl.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\"", "]" ]
[ 1247, 4 ]
[ 1258, 30 ]
python
en
['en', 'error', 'th']
False
Scattergl.texttemplate
(self)
Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:...
Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:...
def texttemplate(self): """ Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d...
[ "def", "texttemplate", "(", "self", ")", ":", "return", "self", "[", "\"texttemplate\"", "]" ]
[ 1267, 4 ]
[ 1293, 35 ]
python
en
['en', 'error', 'th']
False
Scattergl.texttemplatesrc
(self)
Sets the source reference on Chart Studio Cloud for texttemplate . The 'texttemplatesrc' 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 texttemplate . The 'texttemplatesrc' property must be specified as a string or as a plotly.grid_objs.Column object
def texttemplatesrc(self): """ Sets the source reference on Chart Studio Cloud for texttemplate . The 'texttemplatesrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self[...
[ "def", "texttemplatesrc", "(", "self", ")", ":", "return", "self", "[", "\"texttemplatesrc\"", "]" ]
[ 1302, 4 ]
[ 1314, 38 ]
python
en
['en', 'error', 'th']
False
Scattergl.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\"", "]" ]
[ 1323, 4 ]
[ 1336, 26 ]
python
en
['en', 'error', 'th']
False
Scattergl.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\"", "]" ]
[ 1345, 4 ]
[ 1369, 33 ]
python
en
['en', 'error', 'th']
False
Scattergl.unselected
(self)
The 'unselected' property is an instance of Unselected that may be specified as: - An instance of :class:`plotly.graph_objs.scattergl.Unselected` - A dict of string/value properties that will be passed to the Unselected constructor Supported dict propert...
The 'unselected' property is an instance of Unselected that may be specified as: - An instance of :class:`plotly.graph_objs.scattergl.Unselected` - A dict of string/value properties that will be passed to the Unselected constructor Supported dict propert...
def unselected(self): """ The 'unselected' property is an instance of Unselected that may be specified as: - An instance of :class:`plotly.graph_objs.scattergl.Unselected` - A dict of string/value properties that will be passed to the Unselected constructor ...
[ "def", "unselected", "(", "self", ")", ":", "return", "self", "[", "\"unselected\"", "]" ]
[ 1378, 4 ]
[ 1401, 33 ]
python
en
['en', 'error', 'th']
False
Scattergl.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\"", "]" ]
[ 1410, 4 ]
[ 1424, 30 ]
python
en
['en', 'error', 'th']
False
Scattergl.x
(self)
Sets the x coordinates. The 'x' property is an array that may be specified as a tuple, list, numpy array, or pandas Series Returns ------- numpy.ndarray
Sets the x coordinates. The 'x' property is an array that may be specified as a tuple, list, numpy array, or pandas Series
def x(self): """ Sets the x coordinates. The 'x' property is an array that may be specified as a tuple, list, numpy array, or pandas Series Returns ------- numpy.ndarray """ return self["x"]
[ "def", "x", "(", "self", ")", ":", "return", "self", "[", "\"x\"", "]" ]
[ 1433, 4 ]
[ 1444, 24 ]
python
en
['en', 'error', 'th']
False
Scattergl.x0
(self)
Alternate to `x`. Builds a linear space of x coordinates. Use with `dx` where `x0` is the starting coordinate and `dx` the step. The 'x0' property accepts values of any type Returns ------- Any
Alternate to `x`. Builds a linear space of x coordinates. Use with `dx` where `x0` is the starting coordinate and `dx` the step. The 'x0' property accepts values of any type
def x0(self): """ Alternate to `x`. Builds a linear space of x coordinates. Use with `dx` where `x0` is the starting coordinate and `dx` the step. The 'x0' property accepts values of any type Returns ------- Any """ return self["x0"]
[ "def", "x0", "(", "self", ")", ":", "return", "self", "[", "\"x0\"", "]" ]
[ 1453, 4 ]
[ 1465, 25 ]
python
en
['en', 'error', 'th']
False
Scattergl.xaxis
(self)
Sets a reference between this trace's x coordinates and a 2D cartesian x axis. If "x" (the default value), the x coordinates refer to `layout.xaxis`. If "x2", the x coordinates refer to `layout.xaxis2`, and so on. The 'xaxis' property is an identifier of a particular ...
Sets a reference between this trace's x coordinates and a 2D cartesian x axis. If "x" (the default value), the x coordinates refer to `layout.xaxis`. If "x2", the x coordinates refer to `layout.xaxis2`, and so on. The 'xaxis' property is an identifier of a particular ...
def xaxis(self): """ Sets a reference between this trace's x coordinates and a 2D cartesian x axis. If "x" (the default value), the x coordinates refer to `layout.xaxis`. If "x2", the x coordinates refer to `layout.xaxis2`, and so on. The 'xaxis' property is an ident...
[ "def", "xaxis", "(", "self", ")", ":", "return", "self", "[", "\"xaxis\"", "]" ]
[ 1474, 4 ]
[ 1490, 28 ]
python
en
['en', 'error', 'th']
False
Scattergl.xcalendar
(self)
Sets the calendar system to use with `x` date data. The 'xcalendar' property is an enumeration that may be specified as: - One of the following enumeration values: ['gregorian', 'chinese', 'coptic', 'discworld', 'ethiopian', 'hebrew', 'islamic', 'julian', ...
Sets the calendar system to use with `x` date data. The 'xcalendar' property is an enumeration that may be specified as: - One of the following enumeration values: ['gregorian', 'chinese', 'coptic', 'discworld', 'ethiopian', 'hebrew', 'islamic', 'julian', ...
def xcalendar(self): """ Sets the calendar system to use with `x` date data. The 'xcalendar' property is an enumeration that may be specified as: - One of the following enumeration values: ['gregorian', 'chinese', 'coptic', 'discworld', 'ethiopian',...
[ "def", "xcalendar", "(", "self", ")", ":", "return", "self", "[", "\"xcalendar\"", "]" ]
[ 1499, 4 ]
[ 1514, 32 ]
python
en
['en', 'error', 'th']
False
Scattergl.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\"", "]" ]
[ 1523, 4 ]
[ 1534, 27 ]
python
en
['en', 'error', 'th']
False
Scattergl.y
(self)
Sets the y coordinates. The 'y' property is an array that may be specified as a tuple, list, numpy array, or pandas Series Returns ------- numpy.ndarray
Sets the y coordinates. The 'y' property is an array that may be specified as a tuple, list, numpy array, or pandas Series
def y(self): """ Sets the y coordinates. The 'y' property is an array that may be specified as a tuple, list, numpy array, or pandas Series Returns ------- numpy.ndarray """ return self["y"]
[ "def", "y", "(", "self", ")", ":", "return", "self", "[", "\"y\"", "]" ]
[ 1543, 4 ]
[ 1554, 24 ]
python
en
['en', 'error', 'th']
False
Scattergl.y0
(self)
Alternate to `y`. Builds a linear space of y coordinates. Use with `dy` where `y0` is the starting coordinate and `dy` the step. The 'y0' property accepts values of any type Returns ------- Any
Alternate to `y`. Builds a linear space of y coordinates. Use with `dy` where `y0` is the starting coordinate and `dy` the step. The 'y0' property accepts values of any type
def y0(self): """ Alternate to `y`. Builds a linear space of y coordinates. Use with `dy` where `y0` is the starting coordinate and `dy` the step. The 'y0' property accepts values of any type Returns ------- Any """ return self["y0"]
[ "def", "y0", "(", "self", ")", ":", "return", "self", "[", "\"y0\"", "]" ]
[ 1563, 4 ]
[ 1575, 25 ]
python
en
['en', 'error', 'th']
False
Scattergl.yaxis
(self)
Sets a reference between this trace's y coordinates and a 2D cartesian y axis. If "y" (the default value), the y coordinates refer to `layout.yaxis`. If "y2", the y coordinates refer to `layout.yaxis2`, and so on. The 'yaxis' property is an identifier of a particular ...
Sets a reference between this trace's y coordinates and a 2D cartesian y axis. If "y" (the default value), the y coordinates refer to `layout.yaxis`. If "y2", the y coordinates refer to `layout.yaxis2`, and so on. The 'yaxis' property is an identifier of a particular ...
def yaxis(self): """ Sets a reference between this trace's y coordinates and a 2D cartesian y axis. If "y" (the default value), the y coordinates refer to `layout.yaxis`. If "y2", the y coordinates refer to `layout.yaxis2`, and so on. The 'yaxis' property is an ident...
[ "def", "yaxis", "(", "self", ")", ":", "return", "self", "[", "\"yaxis\"", "]" ]
[ 1584, 4 ]
[ 1600, 28 ]
python
en
['en', 'error', 'th']
False
Scattergl.ycalendar
(self)
Sets the calendar system to use with `y` date data. The 'ycalendar' property is an enumeration that may be specified as: - One of the following enumeration values: ['gregorian', 'chinese', 'coptic', 'discworld', 'ethiopian', 'hebrew', 'islamic', 'julian', ...
Sets the calendar system to use with `y` date data. The 'ycalendar' property is an enumeration that may be specified as: - One of the following enumeration values: ['gregorian', 'chinese', 'coptic', 'discworld', 'ethiopian', 'hebrew', 'islamic', 'julian', ...
def ycalendar(self): """ Sets the calendar system to use with `y` date data. The 'ycalendar' property is an enumeration that may be specified as: - One of the following enumeration values: ['gregorian', 'chinese', 'coptic', 'discworld', 'ethiopian',...
[ "def", "ycalendar", "(", "self", ")", ":", "return", "self", "[", "\"ycalendar\"", "]" ]
[ 1609, 4 ]
[ 1624, 32 ]
python
en
['en', 'error', 'th']
False
Scattergl.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\"", "]" ]
[ 1633, 4 ]
[ 1644, 27 ]
python
en
['en', 'error', 'th']
False
Scattergl.__init__
( self, arg=None, connectgaps=None, customdata=None, customdatasrc=None, dx=None, dy=None, error_x=None, error_y=None, fill=None, fillcolor=None, hoverinfo=None, hoverinfosrc=None, hoverlabel=None, ho...
Construct a new Scattergl object The data visualized as scatter point or lines is set in `x` and `y` using the WebGL plotting engine. Bubble charts are achieved by setting `marker.size` and/or `marker.color` to a numerical arrays. Parameters ---------- ...
Construct a new Scattergl object The data visualized as scatter point or lines is set in `x` and `y` using the WebGL plotting engine. Bubble charts are achieved by setting `marker.size` and/or `marker.color` to a numerical arrays.
def __init__( self, arg=None, connectgaps=None, customdata=None, customdatasrc=None, dx=None, dy=None, error_x=None, error_y=None, fill=None, fillcolor=None, hoverinfo=None, hoverinfosrc=None, hoverlabel=None...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "connectgaps", "=", "None", ",", "customdata", "=", "None", ",", "customdatasrc", "=", "None", ",", "dx", "=", "None", ",", "dy", "=", "None", ",", "error_x", "=", "None", ",", "error_y", ...
[ 1914, 4 ]
[ 2485, 34 ]
python
en
['en', 'error', 'th']
False
print_date
()
Helper function to print current licencse and time
Helper function to print current licencse and time
def print_date(): '''Helper function to print current licencse and time''' from datetime import datetime import getpass import socket print('Last executed: %s by %s on %s' % (datetime.now(), getpass.getuser(), socket.gethostname()), flush=True)
[ "def", "print_date", "(", ")", ":", "from", "datetime", "import", "datetime", "import", "getpass", "import", "socket", "print", "(", "'Last executed: %s by %s on %s'", "%", "(", "datetime", ".", "now", "(", ")", ",", "getpass", ".", "getuser", "(", ")", ",",...
[ 1, 0 ]
[ 8, 79 ]
python
en
['en', 'en', 'en']
True
ensure_rng
(rng=None)
Simple version of the ``kwarray.ensure_rng`` Args: rng (int | numpy.random.RandomState | None): if None, then defaults to the global rng. Otherwise this can be an integer or a RandomState class Returns: (numpy.random.RandomState) : rng - a numpy random number...
Simple version of the ``kwarray.ensure_rng``
def ensure_rng(rng=None): """Simple version of the ``kwarray.ensure_rng`` Args: rng (int | numpy.random.RandomState | None): if None, then defaults to the global rng. Otherwise this can be an integer or a RandomState class Returns: (numpy.random.RandomState) : rng - ...
[ "def", "ensure_rng", "(", "rng", "=", "None", ")", ":", "if", "rng", "is", "None", ":", "rng", "=", "np", ".", "random", ".", "mtrand", ".", "_rand", "elif", "isinstance", "(", "rng", ",", "int", ")", ":", "rng", "=", "np", ".", "random", ".", ...
[ 4, 0 ]
[ 25, 14 ]
python
en
['en', 'en', 'en']
True
random_boxes
(num=1, scale=1, rng=None)
Simple version of ``kwimage.Boxes.random`` Returns: Tensor: shape (n, 4) in x1, y1, x2, y2 format. References: https://gitlab.kitware.com/computer-vision/kwimage/blob/master/kwimage/structs/boxes.py#L1390 Example: >>> num = 3 >>> scale = 512 >>> rng = 0 >>>...
Simple version of ``kwimage.Boxes.random``
def random_boxes(num=1, scale=1, rng=None): """Simple version of ``kwimage.Boxes.random`` Returns: Tensor: shape (n, 4) in x1, y1, x2, y2 format. References: https://gitlab.kitware.com/computer-vision/kwimage/blob/master/kwimage/structs/boxes.py#L1390 Example: >>> num = 3 ...
[ "def", "random_boxes", "(", "num", "=", "1", ",", "scale", "=", "1", ",", "rng", "=", "None", ")", ":", "rng", "=", "ensure_rng", "(", "rng", ")", "tlbr", "=", "rng", ".", "rand", "(", "num", ",", "4", ")", ".", "astype", "(", "np", ".", "flo...
[ 28, 0 ]
[ 62, 16 ]
python
en
['en', 'af', 'en']
True
Marker.autocolorscale
(self)
Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `marker.colorscale`. Has an effect only if in `marker.color`is set to a numerical array. In case `colorscale` is unspecified or `autocolorscale` is true, the default pal...
Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `marker.colorscale`. Has an effect only if in `marker.color`is set to a numerical array. In case `colorscale` is unspecified or `autocolorscale` is true, the default pal...
def autocolorscale(self): """ Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `marker.colorscale`. Has an effect only if in `marker.color`is set to a numerical array. In case `colorscale` is unspecified or `auto...
[ "def", "autocolorscale", "(", "self", ")", ":", "return", "self", "[", "\"autocolorscale\"", "]" ]
[ 37, 4 ]
[ 54, 37 ]
python
en
['en', 'error', 'th']
False
Marker.cauto
(self)
Determines whether or not the color domain is computed with respect to the input data (here in `marker.color`) or the bounds set in `marker.cmin` and `marker.cmax` Has an effect only if in `marker.color`is set to a numerical array. Defaults to `false` when `marker.cmin` and `ma...
Determines whether or not the color domain is computed with respect to the input data (here in `marker.color`) or the bounds set in `marker.cmin` and `marker.cmax` Has an effect only if in `marker.color`is set to a numerical array. Defaults to `false` when `marker.cmin` and `ma...
def cauto(self): """ Determines whether or not the color domain is computed with respect to the input data (here in `marker.color`) or the bounds set in `marker.cmin` and `marker.cmax` Has an effect only if in `marker.color`is set to a numerical array. Defaults to `false...
[ "def", "cauto", "(", "self", ")", ":", "return", "self", "[", "\"cauto\"", "]" ]
[ 63, 4 ]
[ 79, 28 ]
python
en
['en', 'error', 'th']
False
Marker.cmax
(self)
Sets the upper bound of the color domain. Has an effect only if in `marker.color`is set to a numerical array. Value should have the same units as in `marker.color` and if set, `marker.cmin` must be set as well. The 'cmax' property is a number and may be specified as: ...
Sets the upper bound of the color domain. Has an effect only if in `marker.color`is set to a numerical array. Value should have the same units as in `marker.color` and if set, `marker.cmin` must be set as well. The 'cmax' property is a number and may be specified as: ...
def cmax(self): """ Sets the upper bound of the color domain. Has an effect only if in `marker.color`is set to a numerical array. Value should have the same units as in `marker.color` and if set, `marker.cmin` must be set as well. The 'cmax' property is a number and ...
[ "def", "cmax", "(", "self", ")", ":", "return", "self", "[", "\"cmax\"", "]" ]
[ 88, 4 ]
[ 102, 27 ]
python
en
['en', 'error', 'th']
False
Marker.cmid
(self)
Sets the mid-point of the color domain by scaling `marker.cmin` and/or `marker.cmax` to be equidistant to this point. Has an effect only if in `marker.color`is set to a numerical array. Value should have the same units as in `marker.color`. Has no effect when `marker.cauto` is `...
Sets the mid-point of the color domain by scaling `marker.cmin` and/or `marker.cmax` to be equidistant to this point. Has an effect only if in `marker.color`is set to a numerical array. Value should have the same units as in `marker.color`. Has no effect when `marker.cauto` is `...
def cmid(self): """ Sets the mid-point of the color domain by scaling `marker.cmin` and/or `marker.cmax` to be equidistant to this point. Has an effect only if in `marker.color`is set to a numerical array. Value should have the same units as in `marker.color`. Has no effe...
[ "def", "cmid", "(", "self", ")", ":", "return", "self", "[", "\"cmid\"", "]" ]
[ 111, 4 ]
[ 126, 27 ]
python
en
['en', 'error', 'th']
False
Marker.cmin
(self)
Sets the lower bound of the color domain. Has an effect only if in `marker.color`is set to a numerical array. Value should have the same units as in `marker.color` and if set, `marker.cmax` must be set as well. The 'cmin' property is a number and may be specified as: ...
Sets the lower bound of the color domain. Has an effect only if in `marker.color`is set to a numerical array. Value should have the same units as in `marker.color` and if set, `marker.cmax` must be set as well. The 'cmin' property is a number and may be specified as: ...
def cmin(self): """ Sets the lower bound of the color domain. Has an effect only if in `marker.color`is set to a numerical array. Value should have the same units as in `marker.color` and if set, `marker.cmax` must be set as well. The 'cmin' property is a number and ...
[ "def", "cmin", "(", "self", ")", ":", "return", "self", "[", "\"cmin\"", "]" ]
[ 135, 4 ]
[ 149, 27 ]
python
en
['en', 'error', 'th']
False
Marker.color
(self)
Sets themarkercolor. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. The 'color' property is a color and may be specified as: ...
Sets themarkercolor. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. The 'color' property is a color and may be specified as: ...
def color(self): """ Sets themarkercolor. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. The 'color' property is a colo...
[ "def", "color", "(", "self", ")", ":", "return", "self", "[", "\"color\"", "]" ]
[ 158, 4 ]
[ 214, 28 ]
python
en
['en', 'error', 'th']
False
Marker.coloraxis
(self)
Sets a reference to a shared color axis. References to these shared color axes are "coloraxis", "coloraxis2", "coloraxis3", etc. Settings for these shared color axes are set in the layout, under `layout.coloraxis`, `layout.coloraxis2`, etc. Note that multiple color scales can be...
Sets a reference to a shared color axis. References to these shared color axes are "coloraxis", "coloraxis2", "coloraxis3", etc. Settings for these shared color axes are set in the layout, under `layout.coloraxis`, `layout.coloraxis2`, etc. Note that multiple color scales can be...
def coloraxis(self): """ Sets a reference to a shared color axis. References to these shared color axes are "coloraxis", "coloraxis2", "coloraxis3", etc. Settings for these shared color axes are set in the layout, under `layout.coloraxis`, `layout.coloraxis2`, etc. Note t...
[ "def", "coloraxis", "(", "self", ")", ":", "return", "self", "[", "\"coloraxis\"", "]" ]
[ 223, 4 ]
[ 241, 32 ]
python
en
['en', 'error', 'th']
False
Marker.colorbar
(self)
The 'colorbar' property is an instance of ColorBar that may be specified as: - An instance of :class:`plotly.graph_objs.scatter3d.marker.ColorBar` - A dict of string/value properties that will be passed to the ColorBar constructor Supported dict properti...
The 'colorbar' property is an instance of ColorBar that may be specified as: - An instance of :class:`plotly.graph_objs.scatter3d.marker.ColorBar` - A dict of string/value properties that will be passed to the ColorBar constructor Supported dict properti...
def colorbar(self): """ The 'colorbar' property is an instance of ColorBar that may be specified as: - An instance of :class:`plotly.graph_objs.scatter3d.marker.ColorBar` - A dict of string/value properties that will be passed to the ColorBar constructor ...
[ "def", "colorbar", "(", "self", ")", ":", "return", "self", "[", "\"colorbar\"", "]" ]
[ 250, 4 ]
[ 477, 31 ]
python
en
['en', 'error', 'th']
False
Marker.colorscale
(self)
Sets the colorscale. Has an effect only if in `marker.color`is set to a numerical array. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) v...
Sets the colorscale. Has an effect only if in `marker.color`is set to a numerical array. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) v...
def colorscale(self): """ Sets the colorscale. Has an effect only if in `marker.color`is set to a numerical array. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for ...
[ "def", "colorscale", "(", "self", ")", ":", "return", "self", "[", "\"colorscale\"", "]" ]
[ 486, 4 ]
[ 530, 33 ]
python
en
['en', 'error', 'th']
False
Marker.colorsrc
(self)
Sets the source reference on Chart Studio Cloud for color . The 'colorsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str
Sets the source reference on Chart Studio Cloud for color . The 'colorsrc' property must be specified as a string or as a plotly.grid_objs.Column object
def colorsrc(self): """ Sets the source reference on Chart Studio Cloud for color . The 'colorsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["colorsrc"]
[ "def", "colorsrc", "(", "self", ")", ":", "return", "self", "[", "\"colorsrc\"", "]" ]
[ 539, 4 ]
[ 550, 31 ]
python
en
['en', 'error', 'th']
False
Marker.line
(self)
The 'line' property is an instance of Line that may be specified as: - An instance of :class:`plotly.graph_objs.scatter3d.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.scatter3d.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.scatter3d.marker.Line` - A dict of string/value properties that will be passed to the Line constructor Supported di...
[ "def", "line", "(", "self", ")", ":", "return", "self", "[", "\"line\"", "]" ]
[ 559, 4 ]
[ 659, 27 ]
python
en
['en', 'error', 'th']
False
Marker.opacity
(self)
Sets the marker opacity. Note that the marker opacity for scatter3d traces must be a scalar value for performance reasons. To set a blending opacity value (i.e. which is not transparent), set "marker.color" to an rgba color and use its alpha channel. The 'opacity' p...
Sets the marker opacity. Note that the marker opacity for scatter3d traces must be a scalar value for performance reasons. To set a blending opacity value (i.e. which is not transparent), set "marker.color" to an rgba color and use its alpha channel. The 'opacity' p...
def opacity(self): """ Sets the marker opacity. Note that the marker opacity for scatter3d traces must be a scalar value for performance reasons. To set a blending opacity value (i.e. which is not transparent), set "marker.color" to an rgba color and use its alpha channel...
[ "def", "opacity", "(", "self", ")", ":", "return", "self", "[", "\"opacity\"", "]" ]
[ 668, 4 ]
[ 683, 30 ]
python
en
['en', 'error', 'th']
False
Marker.reversescale
(self)
Reverses the color mapping if true. Has an effect only if in `marker.color`is set to a numerical array. If true, `marker.cmin` will correspond to the last color in the array and `marker.cmax` will correspond to the first color. The 'reversescale' property must be specified ...
Reverses the color mapping if true. Has an effect only if in `marker.color`is set to a numerical array. If true, `marker.cmin` will correspond to the last color in the array and `marker.cmax` will correspond to the first color. The 'reversescale' property must be specified ...
def reversescale(self): """ Reverses the color mapping if true. Has an effect only if in `marker.color`is set to a numerical array. If true, `marker.cmin` will correspond to the last color in the array and `marker.cmax` will correspond to the first color. The 'revers...
[ "def", "reversescale", "(", "self", ")", ":", "return", "self", "[", "\"reversescale\"", "]" ]
[ 692, 4 ]
[ 706, 35 ]
python
en
['en', 'error', 'th']
False
Marker.showscale
(self)
Determines whether or not a colorbar is displayed for this trace. Has an effect only if in `marker.color`is set to a numerical array. The 'showscale' property must be specified as a bool (either True, or False) Returns ------- bool
Determines whether or not a colorbar is displayed for this trace. Has an effect only if in `marker.color`is set to a numerical array. The 'showscale' property must be specified as a bool (either True, or False)
def showscale(self): """ Determines whether or not a colorbar is displayed for this trace. Has an effect only if in `marker.color`is set to a numerical array. The 'showscale' property must be specified as a bool (either True, or False) Returns ------...
[ "def", "showscale", "(", "self", ")", ":", "return", "self", "[", "\"showscale\"", "]" ]
[ 715, 4 ]
[ 728, 32 ]
python
en
['en', 'error', 'th']
False
Marker.size
(self)
Sets the marker size (in px). The 'size' property is a number and may be specified as: - An int or float in the interval [0, inf] - A tuple, list, or one-dimensional numpy array of the above Returns ------- int|float|numpy.ndarray
Sets the marker size (in px). The 'size' property is a number and may be specified as: - An int or float in the interval [0, inf] - A tuple, list, or one-dimensional numpy array of the above
def size(self): """ Sets the marker size (in px). The 'size' property is a number and may be specified as: - An int or float in the interval [0, inf] - A tuple, list, or one-dimensional numpy array of the above Returns ------- int|float|numpy.nda...
[ "def", "size", "(", "self", ")", ":", "return", "self", "[", "\"size\"", "]" ]
[ 737, 4 ]
[ 749, 27 ]
python
en
['en', 'error', 'th']
False
Marker.sizemin
(self)
Has an effect only if `marker.size` is set to a numerical array. Sets the minimum size (in px) of the rendered marker points. The 'sizemin' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- in...
Has an effect only if `marker.size` is set to a numerical array. Sets the minimum size (in px) of the rendered marker points. The 'sizemin' property is a number and may be specified as: - An int or float in the interval [0, inf]
def sizemin(self): """ Has an effect only if `marker.size` is set to a numerical array. Sets the minimum size (in px) of the rendered marker points. The 'sizemin' property is a number and may be specified as: - An int or float in the interval [0, inf] Retu...
[ "def", "sizemin", "(", "self", ")", ":", "return", "self", "[", "\"sizemin\"", "]" ]
[ 758, 4 ]
[ 771, 30 ]
python
en
['en', 'error', 'th']
False
Marker.sizemode
(self)
Has an effect only if `marker.size` is set to a numerical array. Sets the rule for which the data in `size` is converted to pixels. The 'sizemode' property is an enumeration that may be specified as: - One of the following enumeration values: ['diameter', ...
Has an effect only if `marker.size` is set to a numerical array. Sets the rule for which the data in `size` is converted to pixels. The 'sizemode' property is an enumeration that may be specified as: - One of the following enumeration values: ['diameter', ...
def sizemode(self): """ Has an effect only if `marker.size` is set to a numerical array. Sets the rule for which the data in `size` is converted to pixels. The 'sizemode' property is an enumeration that may be specified as: - One of the following enumeration values...
[ "def", "sizemode", "(", "self", ")", ":", "return", "self", "[", "\"sizemode\"", "]" ]
[ 780, 4 ]
[ 794, 31 ]
python
en
['en', 'error', 'th']
False
Marker.sizeref
(self)
Has an effect only if `marker.size` is set to a numerical array. Sets the scale factor used to determine the rendered size of marker points. Use with `sizemin` and `sizemode`. The 'sizeref' property is a number and may be specified as: - An int or float Returns ...
Has an effect only if `marker.size` is set to a numerical array. Sets the scale factor used to determine the rendered size of marker points. Use with `sizemin` and `sizemode`. The 'sizeref' property is a number and may be specified as: - An int or float
def sizeref(self): """ Has an effect only if `marker.size` is set to a numerical array. Sets the scale factor used to determine the rendered size of marker points. Use with `sizemin` and `sizemode`. The 'sizeref' property is a number and may be specified as: - An i...
[ "def", "sizeref", "(", "self", ")", ":", "return", "self", "[", "\"sizeref\"", "]" ]
[ 803, 4 ]
[ 816, 30 ]
python
en
['en', 'error', 'th']
False
Marker.sizesrc
(self)
Sets the source reference on Chart Studio Cloud for size . The 'sizesrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str
Sets the source reference on Chart Studio Cloud for size . The 'sizesrc' property must be specified as a string or as a plotly.grid_objs.Column object
def sizesrc(self): """ Sets the source reference on Chart Studio Cloud for size . The 'sizesrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["sizesrc"]
[ "def", "sizesrc", "(", "self", ")", ":", "return", "self", "[", "\"sizesrc\"", "]" ]
[ 825, 4 ]
[ 836, 30 ]
python
en
['en', 'error', 'th']
False
Marker.symbol
(self)
Sets the marker symbol type. The 'symbol' property is an enumeration that may be specified as: - One of the following enumeration values: ['circle', 'circle-open', 'square', 'square-open', 'diamond', 'diamond-open', 'cross', 'x'] - A tuple, list,...
Sets the marker symbol type. The 'symbol' property is an enumeration that may be specified as: - One of the following enumeration values: ['circle', 'circle-open', 'square', 'square-open', 'diamond', 'diamond-open', 'cross', 'x'] - A tuple, list,...
def symbol(self): """ Sets the marker symbol type. The 'symbol' property is an enumeration that may be specified as: - One of the following enumeration values: ['circle', 'circle-open', 'square', 'square-open', 'diamond', 'diamond-open', 'cross', 'x...
[ "def", "symbol", "(", "self", ")", ":", "return", "self", "[", "\"symbol\"", "]" ]
[ 845, 4 ]
[ 859, 29 ]
python
en
['en', 'error', 'th']
False
Marker.symbolsrc
(self)
Sets the source reference on Chart Studio Cloud for symbol . The 'symbolsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str
Sets the source reference on Chart Studio Cloud for symbol . The 'symbolsrc' property must be specified as a string or as a plotly.grid_objs.Column object
def symbolsrc(self): """ Sets the source reference on Chart Studio Cloud for symbol . The 'symbolsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["symbolsrc"]
[ "def", "symbolsrc", "(", "self", ")", ":", "return", "self", "[", "\"symbolsrc\"", "]" ]
[ 868, 4 ]
[ 879, 32 ]
python
en
['en', 'error', 'th']
False
Marker.__init__
( self, arg=None, autocolorscale=None, cauto=None, cmax=None, cmid=None, cmin=None, color=None, coloraxis=None, colorbar=None, colorscale=None, colorsrc=None, line=None, opacity=None, reversescale=Non...
Construct a new Marker object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.scatter3d.Marker` autocolorscale Determines whether the colorscale is ...
Construct a new Marker object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.scatter3d.Marker` autocolorscale Determines whether the colorscale is ...
def __init__( self, arg=None, autocolorscale=None, cauto=None, cmax=None, cmid=None, cmin=None, color=None, coloraxis=None, colorbar=None, colorscale=None, colorsrc=None, line=None, opacity=None, reve...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "autocolorscale", "=", "None", ",", "cauto", "=", "None", ",", "cmax", "=", "None", ",", "cmid", "=", "None", ",", "cmin", "=", "None", ",", "color", "=", "None", ",", "coloraxis", "=", ...
[ 1000, 4 ]
[ 1268, 34 ]
python
en
['en', 'error', 'th']
False
Tickformatstop.dtickrange
(self)
range [*min*, *max*], where "min", "max" - dtick values which describe some zoom level, it is possible to omit "min" or "max" value by passing "null" The 'dtickrange' property is an info array that may be specified as: * a list or tuple of 2 elements where: (0) The...
range [*min*, *max*], where "min", "max" - dtick values which describe some zoom level, it is possible to omit "min" or "max" value by passing "null" The 'dtickrange' property is an info array that may be specified as: * a list or tuple of 2 elements where: (0) The...
def dtickrange(self): """ range [*min*, *max*], where "min", "max" - dtick values which describe some zoom level, it is possible to omit "min" or "max" value by passing "null" The 'dtickrange' property is an info array that may be specified as: * a list or tuple...
[ "def", "dtickrange", "(", "self", ")", ":", "return", "self", "[", "\"dtickrange\"", "]" ]
[ 15, 4 ]
[ 31, 33 ]
python
en
['en', 'error', 'th']
False
Tickformatstop.enabled
(self)
Determines whether or not this stop is used. If `false`, this stop is ignored even within its `dtickrange`. The 'enabled' property must be specified as a bool (either True, or False) Returns ------- bool
Determines whether or not this stop is used. If `false`, this stop is ignored even within its `dtickrange`. The 'enabled' property must be specified as a bool (either True, or False)
def enabled(self): """ Determines whether or not this stop is used. If `false`, this stop is ignored even within its `dtickrange`. The 'enabled' property must be specified as a bool (either True, or False) Returns ------- bool """ ret...
[ "def", "enabled", "(", "self", ")", ":", "return", "self", "[", "\"enabled\"", "]" ]
[ 40, 4 ]
[ 52, 30 ]
python
en
['en', 'error', 'th']
False
Tickformatstop.name
(self)
When used in a template, named items are created in the output figure in addition to any items the figure already has in this array. You can modify these items in the output figure by making your own item with `templateitemname` matching this `name` alongside your modifications ...
When used in a template, named items are created in the output figure in addition to any items the figure already has in this array. You can modify these items in the output figure by making your own item with `templateitemname` matching this `name` alongside your modifications ...
def name(self): """ When used in a template, named items are created in the output figure in addition to any items the figure already has in this array. You can modify these items in the output figure by making your own item with `templateitemname` matching this `name` al...
[ "def", "name", "(", "self", ")", ":", "return", "self", "[", "\"name\"", "]" ]
[ 61, 4 ]
[ 79, 27 ]
python
en
['en', 'error', 'th']
False
Tickformatstop.templateitemname
(self)
Used to refer to a named item in this array in the template. Named items from the template will be created even without a matching item in the input figure, but you can modify one by making an item with `templateitemname` matching its `name`, alongside your modifications (includ...
Used to refer to a named item in this array in the template. Named items from the template will be created even without a matching item in the input figure, but you can modify one by making an item with `templateitemname` matching its `name`, alongside your modifications (includ...
def templateitemname(self): """ Used to refer to a named item in this array in the template. Named items from the template will be created even without a matching item in the input figure, but you can modify one by making an item with `templateitemname` matching its `name`, ...
[ "def", "templateitemname", "(", "self", ")", ":", "return", "self", "[", "\"templateitemname\"", "]" ]
[ 88, 4 ]
[ 107, 39 ]
python
en
['en', 'error', 'th']
False
Tickformatstop.value
(self)
string - dtickformat for described zoom level, the same as "tickformat" The 'value' property is a string and must be specified as: - A string - A number that will be converted to a string Returns ------- str
string - dtickformat for described zoom level, the same as "tickformat" The 'value' property is a string and must be specified as: - A string - A number that will be converted to a string
def value(self): """ string - dtickformat for described zoom level, the same as "tickformat" The 'value' property is a string and must be specified as: - A string - A number that will be converted to a string Returns ------- str "...
[ "def", "value", "(", "self", ")", ":", "return", "self", "[", "\"value\"", "]" ]
[ 116, 4 ]
[ 129, 28 ]
python
en
['en', 'error', 'th']
False
Tickformatstop.__init__
( self, arg=None, dtickrange=None, enabled=None, name=None, templateitemname=None, value=None, **kwargs )
Construct a new Tickformatstop object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.layout.ternary .caxis.Tickformatstop` dtickrange range [*min*,...
Construct a new Tickformatstop object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.layout.ternary .caxis.Tickformatstop` dtickrange range [*min*,...
def __init__( self, arg=None, dtickrange=None, enabled=None, name=None, templateitemname=None, value=None, **kwargs ): """ Construct a new Tickformatstop object Parameters ---------- arg dict...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "dtickrange", "=", "None", ",", "enabled", "=", "None", ",", "name", "=", "None", ",", "templateitemname", "=", "None", ",", "value", "=", "None", ",", "*", "*", "kwargs", ")", ":", "sup...
[ 172, 4 ]
[ 282, 34 ]
python
en
['en', 'error', 'th']
False
convert_to_kitti_info_version2
(info)
convert kitti info v1 to v2 if possible. Args: info (dict): Info of the input kitti data. - image (dict): image info - calib (dict): calibration info - point_cloud (dict): point cloud info
convert kitti info v1 to v2 if possible.
def convert_to_kitti_info_version2(info): """convert kitti info v1 to v2 if possible. Args: info (dict): Info of the input kitti data. - image (dict): image info - calib (dict): calibration info - point_cloud (dict): point cloud info """ if 'image' not in inf...
[ "def", "convert_to_kitti_info_version2", "(", "info", ")", ":", "if", "'image'", "not", "in", "info", "or", "'calib'", "not", "in", "info", "or", "'point_cloud'", "not", "in", "info", ":", "info", "[", "'image'", "]", "=", "{", "'image_shape'", ":", "info"...
[ 8, 0 ]
[ 30, 9 ]
python
en
['it', 'en', 'sw']
False
create_kitti_info_file
(data_path, pkl_prefix='kitti', save_path=None, relative_path=True)
Create info file of KITTI dataset. Given the raw data, generate its related info file in pkl format. Args: data_path (str): Path of the data root. pkl_prefix (str): Prefix of the info file to be generated. save_path (str): Path to save the info file. relative_path (bool): Wheth...
Create info file of KITTI dataset.
def create_kitti_info_file(data_path, pkl_prefix='kitti', save_path=None, relative_path=True): """Create info file of KITTI dataset. Given the raw data, generate its related info file in pkl format. Args: data_path (s...
[ "def", "create_kitti_info_file", "(", "data_path", ",", "pkl_prefix", "=", "'kitti'", ",", "save_path", "=", "None", ",", "relative_path", "=", "True", ")", ":", "imageset_folder", "=", "Path", "(", "data_path", ")", "/", "'ImageSets'", "train_img_ids", "=", "...
[ 80, 0 ]
[ 140, 41 ]
python
en
['en', 'fi', 'it']
False
create_waymo_info_file
(data_path, pkl_prefix='waymo', save_path=None, relative_path=True, max_sweeps=5)
Create info file of waymo dataset. Given the raw data, generate its related info file in pkl format. Args: data_path (str): Path of the data root. pkl_prefix (str): Prefix of the info file to be generated. save_path (str | None): Path to save the info file. relative_path (bool)...
Create info file of waymo dataset.
def create_waymo_info_file(data_path, pkl_prefix='waymo', save_path=None, relative_path=True, max_sweeps=5): """Create info file of waymo dataset. Given the raw data, generate its related info file in pk...
[ "def", "create_waymo_info_file", "(", "data_path", ",", "pkl_prefix", "=", "'waymo'", ",", "save_path", "=", "None", ",", "relative_path", "=", "True", ",", "max_sweeps", "=", "5", ")", ":", "imageset_folder", "=", "Path", "(", "data_path", ")", "/", "'Image...
[ 143, 0 ]
[ 220, 41 ]
python
en
['en', 'sn', 'en']
True
_create_reduced_point_cloud
(data_path, info_path, save_path=None, back=False, num_features=4, front_camera_id=2)
Create reduced point clouds for given info. Args: data_path (str): Path of original data. info_path (str): Path of data info. save_path (str | None): Path to save reduced point cloud data. Default: None. back (bool): Whether to flip the points to back. num_featur...
Create reduced point clouds for given info.
def _create_reduced_point_cloud(data_path, info_path, save_path=None, back=False, num_features=4, front_camera_id=2): """Create reduced point clouds for giv...
[ "def", "_create_reduced_point_cloud", "(", "data_path", ",", "info_path", ",", "save_path", "=", "None", ",", "back", "=", "False", ",", "num_features", "=", "4", ",", "front_camera_id", "=", "2", ")", ":", "kitti_infos", "=", "mmcv", ".", "load", "(", "in...
[ 223, 0 ]
[ 279, 30 ]
python
en
['en', 'en', 'en']
True
create_reduced_point_cloud
(data_path, pkl_prefix, train_info_path=None, val_info_path=None, test_info_path=None, save_path=None, with_back=False)
Create reduced point clouds for training/validation/testing. Args: data_path (str): Path of original data. pkl_prefix (str): Prefix of info files. train_info_path (str | None): Path of training set info. Default: None. val_info_path (str | None): Path of validation set i...
Create reduced point clouds for training/validation/testing.
def create_reduced_point_cloud(data_path, pkl_prefix, train_info_path=None, val_info_path=None, test_info_path=None, save_path=None, w...
[ "def", "create_reduced_point_cloud", "(", "data_path", ",", "pkl_prefix", ",", "train_info_path", "=", "None", ",", "val_info_path", "=", "None", ",", "test_info_path", "=", "None", ",", "save_path", "=", "None", ",", "with_back", "=", "False", ")", ":", "if",...
[ 282, 0 ]
[ 322, 60 ]
python
en
['en', 'en', 'en']
True
Increasing.line
(self)
The 'line' property is an instance of Line that may be specified as: - An instance of :class:`plotly.graph_objs.ohlc.increasing.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.ohlc.increasing.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.ohlc.increasing.Line` - A dict of string/value properties that will be passed to the Line constructor Supported dic...
[ "def", "line", "(", "self", ")", ":", "return", "self", "[", "\"line\"", "]" ]
[ 15, 4 ]
[ 39, 27 ]
python
en
['en', 'error', 'th']
False
Increasing.__init__
(self, arg=None, line=None, **kwargs)
Construct a new Increasing object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.ohlc.Increasing` line :class:`plotly.graph_objects.ohlc.increasing...
Construct a new Increasing object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.ohlc.Increasing` line :class:`plotly.graph_objects.ohlc.increasing...
def __init__(self, arg=None, line=None, **kwargs): """ Construct a new Increasing object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.ohlc.Increasing` ...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "line", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", "Increasing", ",", "self", ")", ".", "__init__", "(", "\"increasing\"", ")", "if", "\"_parent\"", "in", "kwargs", ":",...
[ 55, 4 ]
[ 113, 34 ]
python
en
['en', 'error', 'th']
False
camera_to_lidar
(points, r_rect, velo2cam)
Convert points in camera coordinate to lidar coordinate. Args: points (np.ndarray, shape=[N, 3]): Points in camera coordinate. r_rect (np.ndarray, shape=[4, 4]): Matrix to project points in specific camera coordinate (e.g. CAM2) to CAM0. velo2cam (np.ndarray, shape=[4, 4]): Matr...
Convert points in camera coordinate to lidar coordinate.
def camera_to_lidar(points, r_rect, velo2cam): """Convert points in camera coordinate to lidar coordinate. Args: points (np.ndarray, shape=[N, 3]): Points in camera coordinate. r_rect (np.ndarray, shape=[4, 4]): Matrix to project points in specific camera coordinate (e.g. CAM2) to C...
[ "def", "camera_to_lidar", "(", "points", ",", "r_rect", ",", "velo2cam", ")", ":", "points_shape", "=", "list", "(", "points", ".", "shape", "[", "0", ":", "-", "1", "]", ")", "if", "points", ".", "shape", "[", "-", "1", "]", "==", "3", ":", "poi...
[ 7, 0 ]
[ 24, 32 ]
python
en
['en', 'en', 'en']
True
box_camera_to_lidar
(data, r_rect, velo2cam)
Covert boxes in camera coordinate to lidar coordinate. Args: data (np.ndarray, shape=[N, 7]): Boxes in camera coordinate. r_rect (np.ndarray, shape=[4, 4]): Matrix to project points in specific camera coordinate (e.g. CAM2) to CAM0. velo2cam (np.ndarray, shape=[4, 4]): Matrix to...
Covert boxes in camera coordinate to lidar coordinate.
def box_camera_to_lidar(data, r_rect, velo2cam): """Covert boxes in camera coordinate to lidar coordinate. Args: data (np.ndarray, shape=[N, 7]): Boxes in camera coordinate. r_rect (np.ndarray, shape=[4, 4]): Matrix to project points in specific camera coordinate (e.g. CAM2) to CAM0...
[ "def", "box_camera_to_lidar", "(", "data", ",", "r_rect", ",", "velo2cam", ")", ":", "xyz", "=", "data", "[", ":", ",", "0", ":", "3", "]", "l", ",", "h", ",", "w", "=", "data", "[", ":", ",", "3", ":", "4", "]", ",", "data", "[", ":", ",",...
[ 27, 0 ]
[ 44, 58 ]
python
en
['en', 'en', 'en']
True
corners_nd
(dims, origin=0.5)
Generate relative box corners based on length per dim and origin point. Args: dims (np.ndarray, shape=[N, ndim]): Array of length per dim origin (list or array or float): origin point relate to smallest point. Returns: np.ndarray, shape=[N, 2 ** ndim, ndim]: Returned corners. p...
Generate relative box corners based on length per dim and origin point.
def corners_nd(dims, origin=0.5): """Generate relative box corners based on length per dim and origin point. Args: dims (np.ndarray, shape=[N, ndim]): Array of length per dim origin (list or array or float): origin point relate to smallest point. Returns: np.ndarray, shape=[N, 2 **...
[ "def", "corners_nd", "(", "dims", ",", "origin", "=", "0.5", ")", ":", "ndim", "=", "int", "(", "dims", ".", "shape", "[", "1", "]", ")", "corners_norm", "=", "np", ".", "stack", "(", "np", ".", "unravel_index", "(", "np", ".", "arange", "(", "2"...
[ 47, 0 ]
[ 77, 18 ]
python
en
['en', 'en', 'en']
True
rotation_2d
(points, angles)
Rotation 2d points based on origin point clockwise when angle positive. Args: points (np.ndarray): Points to be rotated with shape \ (N, point_size, 2). angles (np.ndarray): Rotation angle with shape (N). Returns: np.ndarray: Same shape as points.
Rotation 2d points based on origin point clockwise when angle positive.
def rotation_2d(points, angles): """Rotation 2d points based on origin point clockwise when angle positive. Args: points (np.ndarray): Points to be rotated with shape \ (N, point_size, 2). angles (np.ndarray): Rotation angle with shape (N). Returns: np.ndarray: Same sha...
[ "def", "rotation_2d", "(", "points", ",", "angles", ")", ":", "rot_sin", "=", "np", ".", "sin", "(", "angles", ")", "rot_cos", "=", "np", ".", "cos", "(", "angles", ")", "rot_mat_T", "=", "np", ".", "stack", "(", "[", "[", "rot_cos", ",", "-", "r...
[ 80, 0 ]
[ 94, 55 ]
python
en
['en', 'en', 'en']
True
center_to_corner_box2d
(centers, dims, angles=None, origin=0.5)
Convert kitti locations, dimensions and angles to corners. format: center(xy), dims(xy), angles(clockwise when positive) Args: centers (np.ndarray): Locations in kitti label file with shape (N, 2). dims (np.ndarray): Dimensions in kitti label file with shape (N, 2). angles (np.ndarray):...
Convert kitti locations, dimensions and angles to corners. format: center(xy), dims(xy), angles(clockwise when positive)
def center_to_corner_box2d(centers, dims, angles=None, origin=0.5): """Convert kitti locations, dimensions and angles to corners. format: center(xy), dims(xy), angles(clockwise when positive) Args: centers (np.ndarray): Locations in kitti label file with shape (N, 2). dims (np.ndarray): Dim...
[ "def", "center_to_corner_box2d", "(", "centers", ",", "dims", ",", "angles", "=", "None", ",", "origin", "=", "0.5", ")", ":", "# 'length' in kitti format is in x axis.", "# xyz(hwl)(kitti label file)<->xyz(lhw)(camera)<->z(-x)(-y)(wlh)(lidar)", "# center in kitti format is [0.5,...
[ 97, 0 ]
[ 117, 18 ]
python
en
['en', 'en', 'en']
True
depth_to_points
(depth, trunc_pixel)
Convert depth map to points. Args: depth (np.array, shape=[H, W]): Depth map which the row of [0~`trunc_pixel`] are truncated. trunc_pixel (int): The number of truncated row. Returns: np.ndarray: Points in camera coordinates.
Convert depth map to points.
def depth_to_points(depth, trunc_pixel): """Convert depth map to points. Args: depth (np.array, shape=[H, W]): Depth map which the row of [0~`trunc_pixel`] are truncated. trunc_pixel (int): The number of truncated row. Returns: np.ndarray: Points in camera coordinates. ...
[ "def", "depth_to_points", "(", "depth", ",", "trunc_pixel", ")", ":", "num_pts", "=", "np", ".", "sum", "(", "depth", "[", "trunc_pixel", ":", ",", "]", ">", "0.1", ")", "points", "=", "np", ".", "zeros", "(", "(", "num_pts", ",", "3", ")", ",", ...
[ 121, 0 ]
[ 142, 17 ]
python
en
['en', 'en', 'en']
True
depth_to_lidar_points
(depth, trunc_pixel, P2, r_rect, velo2cam)
Convert depth map to points in lidar coordinate. Args: depth (np.array, shape=[H, W]): Depth map which the row of [0~`trunc_pixel`] are truncated. trunc_pixel (int): The number of truncated row. P2 (p.array, shape=[4, 4]): Intrinsics of Camera2. r_rect (np.ndarray, shape...
Convert depth map to points in lidar coordinate.
def depth_to_lidar_points(depth, trunc_pixel, P2, r_rect, velo2cam): """Convert depth map to points in lidar coordinate. Args: depth (np.array, shape=[H, W]): Depth map which the row of [0~`trunc_pixel`] are truncated. trunc_pixel (int): The number of truncated row. P2 (p.ar...
[ "def", "depth_to_lidar_points", "(", "depth", ",", "trunc_pixel", ",", "P2", ",", "r_rect", ",", "velo2cam", ")", ":", "pts", "=", "depth_to_points", "(", "depth", ",", "trunc_pixel", ")", "points_shape", "=", "list", "(", "pts", ".", "shape", "[", "0", ...
[ 145, 0 ]
[ 166, 23 ]
python
en
['en', 'en', 'en']
True
rotation_3d_in_axis
(points, angles, axis=0)
Rotate points in specific axis. Args: points (np.ndarray, shape=[N, point_size, 3]]): angles (np.ndarray, shape=[N]]): axis (int): Axis to rotate at. Returns: np.ndarray: Rotated points.
Rotate points in specific axis.
def rotation_3d_in_axis(points, angles, axis=0): """Rotate points in specific axis. Args: points (np.ndarray, shape=[N, point_size, 3]]): angles (np.ndarray, shape=[N]]): axis (int): Axis to rotate at. Returns: np.ndarray: Rotated points. """ # points: [N, point_siz...
[ "def", "rotation_3d_in_axis", "(", "points", ",", "angles", ",", "axis", "=", "0", ")", ":", "# points: [N, point_size, 3]", "rot_sin", "=", "np", ".", "sin", "(", "angles", ")", "rot_cos", "=", "np", ".", "cos", "(", "angles", ")", "ones", "=", "np", ...
[ 169, 0 ]
[ 197, 55 ]
python
en
['en', 'en', 'en']
True
center_to_corner_box3d
(centers, dims, angles=None, origin=(0.5, 1.0, 0.5), axis=1)
Convert kitti locations, dimensions and angles to corners. Args: centers (np.ndarray): Locations in kitti label file with shape (N, 3). dims (np.ndarray): Dimensions in kitti label file with shape (N, 3). angles (np.ndarray): Rotation_y in kitti label file with shape (N). origin (li...
Convert kitti locations, dimensions and angles to corners.
def center_to_corner_box3d(centers, dims, angles=None, origin=(0.5, 1.0, 0.5), axis=1): """Convert kitti locations, dimensions and angles to corners. Args: centers (np.ndarray): Locations in kitt...
[ "def", "center_to_corner_box3d", "(", "centers", ",", "dims", ",", "angles", "=", "None", ",", "origin", "=", "(", "0.5", ",", "1.0", ",", "0.5", ")", ",", "axis", "=", "1", ")", ":", "# 'length' in kitti format is in x axis.", "# yzx(hwl)(kitti label file)<->xy...
[ 200, 0 ]
[ 226, 18 ]
python
en
['en', 'en', 'en']
True
box2d_to_corner_jit
(boxes)
Convert box2d to corner. Args: boxes (np.ndarray, shape=[N, 5]): Boxes2d with rotation. Returns: box_corners (np.ndarray, shape=[N, 4, 2]): Box corners.
Convert box2d to corner.
def box2d_to_corner_jit(boxes): """Convert box2d to corner. Args: boxes (np.ndarray, shape=[N, 5]): Boxes2d with rotation. Returns: box_corners (np.ndarray, shape=[N, 4, 2]): Box corners. """ num_box = boxes.shape[0] corners_norm = np.zeros((4, 2), dtype=boxes.dtype) corner...
[ "def", "box2d_to_corner_jit", "(", "boxes", ")", ":", "num_box", "=", "boxes", ".", "shape", "[", "0", "]", "corners_norm", "=", "np", ".", "zeros", "(", "(", "4", ",", "2", ")", ",", "dtype", "=", "boxes", ".", "dtype", ")", "corners_norm", "[", "...
[ 230, 0 ]
[ 257, 22 ]
python
en
['en', 'zh', 'en']
True
corner_to_standup_nd_jit
(boxes_corner)
Convert boxes_corner to aligned (min-max) boxes. Args: boxes_corner (np.ndarray, shape=[N, 2**dim, dim]): Boxes corners. Returns: np.ndarray, shape=[N, dim*2]: Aligned (min-max) boxes.
Convert boxes_corner to aligned (min-max) boxes.
def corner_to_standup_nd_jit(boxes_corner): """Convert boxes_corner to aligned (min-max) boxes. Args: boxes_corner (np.ndarray, shape=[N, 2**dim, dim]): Boxes corners. Returns: np.ndarray, shape=[N, dim*2]: Aligned (min-max) boxes. """ num_boxes = boxes_corner.shape[0] ndim = b...
[ "def", "corner_to_standup_nd_jit", "(", "boxes_corner", ")", ":", "num_boxes", "=", "boxes_corner", ".", "shape", "[", "0", "]", "ndim", "=", "boxes_corner", ".", "shape", "[", "-", "1", "]", "result", "=", "np", ".", "zeros", "(", "(", "num_boxes", ",",...
[ 261, 0 ]
[ 278, 17 ]
python
en
['en', 'en', 'en']
True
corner_to_surfaces_3d_jit
(corners)
Convert 3d box corners from corner function above to surfaces that normal vectors all direct to internal. Args: corners (np.ndarray): 3d box corners with the shape of (N, 8, 3). Returns: np.ndarray: Surfaces with the shape of (N, 6, 4, 3).
Convert 3d box corners from corner function above to surfaces that normal vectors all direct to internal.
def corner_to_surfaces_3d_jit(corners): """Convert 3d box corners from corner function above to surfaces that normal vectors all direct to internal. Args: corners (np.ndarray): 3d box corners with the shape of (N, 8, 3). Returns: np.ndarray: Surfaces with the shape of (N, 6, 4, 3). ...
[ "def", "corner_to_surfaces_3d_jit", "(", "corners", ")", ":", "# box_corners: [N, 8, 3], must from corner functions in this module", "num_boxes", "=", "corners", ".", "shape", "[", "0", "]", "surfaces", "=", "np", ".", "zeros", "(", "(", "num_boxes", ",", "6", ",", ...
[ 282, 0 ]
[ 302, 19 ]
python
en
['en', 'en', 'en']
True
rotation_points_single_angle
(points, angle, axis=0)
Rotate points with a single angle. Args: points (np.ndarray, shape=[N, 3]]): angles (np.ndarray, shape=[1]]): axis (int): Axis to rotate at. Returns: np.ndarray: Rotated points.
Rotate points with a single angle.
def rotation_points_single_angle(points, angle, axis=0): """Rotate points with a single angle. Args: points (np.ndarray, shape=[N, 3]]): angles (np.ndarray, shape=[1]]): axis (int): Axis to rotate at. Returns: np.ndarray: Rotated points. """ # points: [N, 3] rot...
[ "def", "rotation_points_single_angle", "(", "points", ",", "angle", ",", "axis", "=", "0", ")", ":", "# points: [N, 3]", "rot_sin", "=", "np", ".", "sin", "(", "angle", ")", "rot_cos", "=", "np", ".", "cos", "(", "angle", ")", "if", "axis", "==", "1", ...
[ 305, 0 ]
[ 334, 40 ]
python
en
['en', 'en', 'en']
True
points_cam2img
(points_3d, proj_mat)
Project points in camera coordinates to image coordinates. Args: points_3d (np.ndarray): Points in shape (N, 3) proj_mat (np.ndarray): Transformation matrix between coordinates. Returns: np.ndarray: Points in image coordinates with shape [N, 2].
Project points in camera coordinates to image coordinates.
def points_cam2img(points_3d, proj_mat): """Project points in camera coordinates to image coordinates. Args: points_3d (np.ndarray): Points in shape (N, 3) proj_mat (np.ndarray): Transformation matrix between coordinates. Returns: np.ndarray: Points in image coordinates with shape ...
[ "def", "points_cam2img", "(", "points_3d", ",", "proj_mat", ")", ":", "points_shape", "=", "list", "(", "points_3d", ".", "shape", ")", "points_shape", "[", "-", "1", "]", "=", "1", "points_4", "=", "np", ".", "concatenate", "(", "[", "points_3d", ",", ...
[ 337, 0 ]
[ 352, 23 ]
python
en
['en', 'en', 'en']
True
box3d_to_bbox
(box3d, P2)
Convert box3d in camera coordinates to bbox in image coordinates. Args: box3d (np.ndarray, shape=[N, 7]): Boxes in camera coordinate. P2 (np.array, shape=[4, 4]): Intrinsics of Camera2. Returns: np.ndarray, shape=[N, 4]: Boxes 2d in image coordinates.
Convert box3d in camera coordinates to bbox in image coordinates.
def box3d_to_bbox(box3d, P2): """Convert box3d in camera coordinates to bbox in image coordinates. Args: box3d (np.ndarray, shape=[N, 7]): Boxes in camera coordinate. P2 (np.array, shape=[4, 4]): Intrinsics of Camera2. Returns: np.ndarray, shape=[N, 4]: Boxes 2d in image coordinate...
[ "def", "box3d_to_bbox", "(", "box3d", ",", "P2", ")", ":", "box_corners", "=", "center_to_corner_box3d", "(", "box3d", "[", ":", ",", ":", "3", "]", ",", "box3d", "[", ":", ",", "3", ":", "6", "]", ",", "box3d", "[", ":", ",", "6", "]", ",", "[...
[ 355, 0 ]
[ 372, 15 ]
python
en
['en', 'en', 'en']
True
corner_to_surfaces_3d
(corners)
convert 3d box corners from corner function above to surfaces that normal vectors all direct to internal. Args: corners (np.ndarray): 3D box corners with shape of (N, 8, 3). Returns: np.ndarray: Surfaces with the shape of (N, 6, 4, 3).
convert 3d box corners from corner function above to surfaces that normal vectors all direct to internal.
def corner_to_surfaces_3d(corners): """convert 3d box corners from corner function above to surfaces that normal vectors all direct to internal. Args: corners (np.ndarray): 3D box corners with shape of (N, 8, 3). Returns: np.ndarray: Surfaces with the shape of (N, 6, 4, 3). """ ...
[ "def", "corner_to_surfaces_3d", "(", "corners", ")", ":", "# box_corners: [N, 8, 3], must from corner functions in this module", "surfaces", "=", "np", ".", "array", "(", "[", "[", "corners", "[", ":", ",", "0", "]", ",", "corners", "[", ":", ",", "1", "]", ",...
[ 375, 0 ]
[ 394, 19 ]
python
en
['en', 'en', 'en']
True
points_in_rbbox
(points, rbbox, z_axis=2, origin=(0.5, 0.5, 0))
Check points in rotated bbox and return indicces. Args: points (np.ndarray, shape=[N, 3+dim]): Points to query. rbbox (np.ndarray, shape=[M, 7]): Boxes3d with rotation. z_axis (int): Indicate which axis is height. origin (tuple[int]): Indicate the position of box center. Return...
Check points in rotated bbox and return indicces.
def points_in_rbbox(points, rbbox, z_axis=2, origin=(0.5, 0.5, 0)): """Check points in rotated bbox and return indicces. Args: points (np.ndarray, shape=[N, 3+dim]): Points to query. rbbox (np.ndarray, shape=[M, 7]): Boxes3d with rotation. z_axis (int): Indicate which axis is height. ...
[ "def", "points_in_rbbox", "(", "points", ",", "rbbox", ",", "z_axis", "=", "2", ",", "origin", "=", "(", "0.5", ",", "0.5", ",", "0", ")", ")", ":", "# TODO: this function is different from PointCloud3D, be careful", "# when start to use nuscene, check the input", "rb...
[ 397, 0 ]
[ 415, 18 ]
python
en
['en', 'en', 'en']
True
minmax_to_corner_2d
(minmax_box)
Convert minmax box to corners2d. Args: minmax_box (np.ndarray, shape=[N, dims]): minmax boxes. Returns: np.ndarray: 2d corners of boxes
Convert minmax box to corners2d.
def minmax_to_corner_2d(minmax_box): """Convert minmax box to corners2d. Args: minmax_box (np.ndarray, shape=[N, dims]): minmax boxes. Returns: np.ndarray: 2d corners of boxes """ ndim = minmax_box.shape[-1] // 2 center = minmax_box[..., :ndim] dims = minmax_box[..., ndim:]...
[ "def", "minmax_to_corner_2d", "(", "minmax_box", ")", ":", "ndim", "=", "minmax_box", ".", "shape", "[", "-", "1", "]", "//", "2", "center", "=", "minmax_box", "[", "...", ",", ":", "ndim", "]", "dims", "=", "minmax_box", "[", "...", ",", "ndim", ":"...
[ 418, 0 ]
[ 430, 59 ]
python
en
['en', 'mt', 'en']
True
limit_period
(val, offset=0.5, period=np.pi)
Limit the value into a period for periodic function. Args: val (np.ndarray): The value to be converted. offset (float, optional): Offset to set the value range. \ Defaults to 0.5. period (float, optional): Period of the value. Defaults to np.pi. Returns: torch.Tenso...
Limit the value into a period for periodic function.
def limit_period(val, offset=0.5, period=np.pi): """Limit the value into a period for periodic function. Args: val (np.ndarray): The value to be converted. offset (float, optional): Offset to set the value range. \ Defaults to 0.5. period (float, optional): Period of the val...
[ "def", "limit_period", "(", "val", ",", "offset", "=", "0.5", ",", "period", "=", "np", ".", "pi", ")", ":", "return", "val", "-", "np", ".", "floor", "(", "val", "/", "period", "+", "offset", ")", "*", "period" ]
[ 433, 0 ]
[ 446, 57 ]
python
en
['en', 'en', 'en']
True
create_anchors_3d_range
(feature_size, anchor_range, sizes=((1.6, 3.9, 1.56), ), rotations=(0, np.pi / 2), dtype=np.float32)
Create anchors 3d by range. Args: feature_size (list[float] | tuple[float]): Feature map size. It is either a list of a tuple of [D, H, W](in order of z, y, and x). anchor_range (torch.Tensor | list[float]): Range of anchors with shape [6]. The order is consistent with that ...
Create anchors 3d by range.
def create_anchors_3d_range(feature_size, anchor_range, sizes=((1.6, 3.9, 1.56), ), rotations=(0, np.pi / 2), dtype=np.float32): """Create anchors 3d by range. Args: feature_size (list[float]...
[ "def", "create_anchors_3d_range", "(", "feature_size", ",", "anchor_range", ",", "sizes", "=", "(", "(", "1.6", ",", "3.9", ",", "1.56", ")", ",", ")", ",", "rotations", "=", "(", "0", ",", "np", ".", "pi", "/", "2", ")", ",", "dtype", "=", "np", ...
[ 449, 0 ]
[ 494, 48 ]
python
en
['en', 'en', 'en']
True
center_to_minmax_2d
(centers, dims, origin=0.5)
Center to minmax. Args: centers (np.ndarray): Center points. dims (np.ndarray): Dimensions. origin (list or array or float): origin point relate to smallest point. Returns: np.ndarray: Minmax points.
Center to minmax.
def center_to_minmax_2d(centers, dims, origin=0.5): """Center to minmax. Args: centers (np.ndarray): Center points. dims (np.ndarray): Dimensions. origin (list or array or float): origin point relate to smallest point. Returns: np.ndarray: Minmax points. """ if orig...
[ "def", "center_to_minmax_2d", "(", "centers", ",", "dims", ",", "origin", "=", "0.5", ")", ":", "if", "origin", "==", "0.5", ":", "return", "np", ".", "concatenate", "(", "[", "centers", "-", "dims", "/", "2", ",", "centers", "+", "dims", "/", "2", ...
[ 497, 0 ]
[ 512, 46 ]
python
en
['en', 'en', 'en']
True
rbbox2d_to_near_bbox
(rbboxes)
convert rotated bbox to nearest 'standing' or 'lying' bbox. Args: rbboxes (np.ndarray): Rotated bboxes with shape of \ (N, 5(x, y, xdim, ydim, rad)). Returns: np.ndarray: Bounding boxes with the shpae of (N, 4(xmin, ymin, xmax, ymax)).
convert rotated bbox to nearest 'standing' or 'lying' bbox.
def rbbox2d_to_near_bbox(rbboxes): """convert rotated bbox to nearest 'standing' or 'lying' bbox. Args: rbboxes (np.ndarray): Rotated bboxes with shape of \ (N, 5(x, y, xdim, ydim, rad)). Returns: np.ndarray: Bounding boxes with the shpae of (N, 4(xmin, ymin, xmax, ...
[ "def", "rbbox2d_to_near_bbox", "(", "rbboxes", ")", ":", "rots", "=", "rbboxes", "[", "...", ",", "-", "1", "]", "rots_0_pi_div_2", "=", "np", ".", "abs", "(", "limit_period", "(", "rots", ",", "0.5", ",", "np", ".", "pi", ")", ")", "cond", "=", "(...
[ 515, 0 ]
[ 531, 17 ]
python
en
['en', 'en', 'en']
True
iou_jit
(boxes, query_boxes, mode='iou', eps=0.0)
Calculate box iou. Note that jit version runs ~10x faster than the box_overlaps function in mmdet3d.core.evaluation. Args: boxes (np.ndarray): Input bounding boxes with shape of (N, 4). query_boxes (np.ndarray): Query boxes with shape of (K, 4). Returns: np.ndarray: Overlap between...
Calculate box iou. Note that jit version runs ~10x faster than the box_overlaps function in mmdet3d.core.evaluation.
def iou_jit(boxes, query_boxes, mode='iou', eps=0.0): """Calculate box iou. Note that jit version runs ~10x faster than the box_overlaps function in mmdet3d.core.evaluation. Args: boxes (np.ndarray): Input bounding boxes with shape of (N, 4). query_boxes (np.ndarray): Query boxes with shape...
[ "def", "iou_jit", "(", "boxes", ",", "query_boxes", ",", "mode", "=", "'iou'", ",", "eps", "=", "0.0", ")", ":", "N", "=", "boxes", ".", "shape", "[", "0", "]", "K", "=", "query_boxes", ".", "shape", "[", "0", "]", "overlaps", "=", "np", ".", "...
[ 535, 0 ]
[ 570, 19 ]
python
en
['en', 'gd', 'en']
True
projection_matrix_to_CRT_kitti
(proj)
Split projection matrix of kitti. P = C @ [R|T] C is upper triangular matrix, so we need to inverse CR and use QR stable for all kitti camera projection matrix. Args: proj (p.array, shape=[4, 4]): Intrinsics of camera. Returns: tuple[np.ndarray]: Splited matrix of C, R and T.
Split projection matrix of kitti.
def projection_matrix_to_CRT_kitti(proj): """Split projection matrix of kitti. P = C @ [R|T] C is upper triangular matrix, so we need to inverse CR and use QR stable for all kitti camera projection matrix. Args: proj (p.array, shape=[4, 4]): Intrinsics of camera. Returns: tupl...
[ "def", "projection_matrix_to_CRT_kitti", "(", "proj", ")", ":", "CR", "=", "proj", "[", "0", ":", "3", ",", "0", ":", "3", "]", "CT", "=", "proj", "[", "0", ":", "3", ",", "3", "]", "RinvCinv", "=", "np", ".", "linalg", ".", "inv", "(", "CR", ...
[ 573, 0 ]
[ 594, 18 ]
python
en
['en', 'fi', 'en']
True
remove_outside_points
(points, rect, Trv2c, P2, image_shape)
Remove points which are outside of image. Args: points (np.ndarray, shape=[N, 3+dims]): Total points. rect (np.ndarray, shape=[4, 4]): Matrix to project points in specific camera coordinate (e.g. CAM2) to CAM0. Trv2c (np.ndarray, shape=[4, 4]): Matrix to project points in ...
Remove points which are outside of image.
def remove_outside_points(points, rect, Trv2c, P2, image_shape): """Remove points which are outside of image. Args: points (np.ndarray, shape=[N, 3+dims]): Total points. rect (np.ndarray, shape=[4, 4]): Matrix to project points in specific camera coordinate (e.g. CAM2) to CAM0. ...
[ "def", "remove_outside_points", "(", "points", ",", "rect", ",", "Trv2c", ",", "P2", ",", "image_shape", ")", ":", "# 5x faster than remove_outside_points_v1(2ms vs 10ms)", "C", ",", "R", ",", "T", "=", "projection_matrix_to_CRT_kitti", "(", "P2", ")", "image_bbox",...
[ 597, 0 ]
[ 622, 17 ]
python
en
['en', 'en', 'en']
True
get_frustum
(bbox_image, C, near_clip=0.001, far_clip=100)
Get frustum corners in camera coordinates. Args: bbox_image (list[int]): box in image coordinates. C (np.ndarray): Intrinsics. near_clip (float): Nearest distance of frustum. far_clip (float): Farthest distance of frustum. Returns: np.ndarray, shape=[8, 3]: coordinates ...
Get frustum corners in camera coordinates.
def get_frustum(bbox_image, C, near_clip=0.001, far_clip=100): """Get frustum corners in camera coordinates. Args: bbox_image (list[int]): box in image coordinates. C (np.ndarray): Intrinsics. near_clip (float): Nearest distance of frustum. far_clip (float): Farthest distance of...
[ "def", "get_frustum", "(", "bbox_image", ",", "C", ",", "near_clip", "=", "0.001", ",", "far_clip", "=", "100", ")", ":", "fku", "=", "C", "[", "0", ",", "0", "]", "fkv", "=", "-", "C", "[", "1", ",", "1", "]", "u0v0", "=", "C", "[", "0", "...
[ 625, 0 ]
[ 653, 18 ]
python
en
['en', 'la', 'en']
True
surface_equ_3d
(polygon_surfaces)
Args: polygon_surfaces (np.ndarray): Polygon surfaces with shape of [num_polygon, max_num_surfaces, max_num_points_of_surface, 3]. All surfaces' normal vector must direct to internal. Max_num_points_of_surface must at least 3. Returns: tuple: normal vector ...
def surface_equ_3d(polygon_surfaces): """ Args: polygon_surfaces (np.ndarray): Polygon surfaces with shape of [num_polygon, max_num_surfaces, max_num_points_of_surface, 3]. All surfaces' normal vector must direct to internal. Max_num_points_of_surface must at least 3...
[ "def", "surface_equ_3d", "(", "polygon_surfaces", ")", ":", "# return [a, b, c], d in ax+by+cz+d=0", "# polygon_surfaces: [num_polygon, num_surfaces, num_points_of_polygon, 3]", "surface_vec", "=", "polygon_surfaces", "[", ":", ",", ":", ",", ":", "2", ",", ":", "]", "-", ...
[ 656, 0 ]
[ 677, 25 ]
python
en
['en', 'error', 'th']
False
_points_in_convex_polygon_3d_jit
(points, polygon_surfaces, normal_vec, d, num_surfaces)
Args: points (np.ndarray): Input points with shape of (num_points, 3). polygon_surfaces (np.ndarray): Polygon surfaces with shape of (num_polygon, max_num_surfaces, max_num_points_of_surface, 3). All surfaces' normal vector must direct to internal. Max_num_points...
Args: points (np.ndarray): Input points with shape of (num_points, 3). polygon_surfaces (np.ndarray): Polygon surfaces with shape of (num_polygon, max_num_surfaces, max_num_points_of_surface, 3). All surfaces' normal vector must direct to internal. Max_num_points...
def _points_in_convex_polygon_3d_jit(points, polygon_surfaces, normal_vec, d, num_surfaces): """ Args: points (np.ndarray): Input points with shape of (num_points, 3). polygon_surfaces (np.ndarray): Polygon surfaces with shape of (num_polygon, max...
[ "def", "_points_in_convex_polygon_3d_jit", "(", "points", ",", "polygon_surfaces", ",", "normal_vec", ",", "d", ",", "num_surfaces", ")", ":", "max_num_surfaces", ",", "max_num_points_of_surface", "=", "polygon_surfaces", ".", "shape", "[", "1", ":", "3", "]", "nu...
[ 681, 0 ]
[ 715, 14 ]
python
en
['en', 'error', 'th']
False
points_in_convex_polygon_3d_jit
(points, polygon_surfaces, num_surfaces=None)
Check points is in 3d convex polygons. Args: points (np.ndarray): Input points with shape of (num_points, 3). polygon_surfaces (np.ndarray): Polygon surfaces with shape of \ (num_polygon, max_num_surfaces, max_num_points_of_surface, 3). \ All surfaces' normal vector must dir...
Check points is in 3d convex polygons.
def points_in_convex_polygon_3d_jit(points, polygon_surfaces, num_surfaces=None): """Check points is in 3d convex polygons. Args: points (np.ndarray): Input points with shape of (num_points, 3). polygon_surfaces (np.ndarray...
[ "def", "points_in_convex_polygon_3d_jit", "(", "points", ",", "polygon_surfaces", ",", "num_surfaces", "=", "None", ")", ":", "max_num_surfaces", ",", "max_num_points_of_surface", "=", "polygon_surfaces", ".", "shape", "[", "1", ":", "3", "]", "# num_points = points.s...
[ 718, 0 ]
[ 744, 72 ]
python
en
['en', 'en', 'en']
True