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
Title.font
(self)
Sets this color bar's title font. Note that the title's font used to be set by the now deprecated `titlefont` attribute. The 'font' property is an instance of Font that may be specified as: - An instance of :class:`plotly.graph_objs.histogram2d.colorbar.title.Font` ...
Sets this color bar's title font. Note that the title's font used to be set by the now deprecated `titlefont` attribute. The 'font' property is an instance of Font that may be specified as: - An instance of :class:`plotly.graph_objs.histogram2d.colorbar.title.Font` ...
def font(self): """ Sets this color bar's title font. Note that the title's font used to be set by the now deprecated `titlefont` attribute. The 'font' property is an instance of Font that may be specified as: - An instance of :class:`plotly.graph_objs.histogram2d....
[ "def", "font", "(", "self", ")", ":", "return", "self", "[", "\"font\"", "]" ]
[ 15, 4 ]
[ 53, 27 ]
python
en
['en', 'error', 'th']
False
Title.side
(self)
Determines the location of color bar's title with respect to the color bar. Note that the title's location used to be set by the now deprecated `titleside` attribute. The 'side' property is an enumeration that may be specified as: - One of the following enumeration values...
Determines the location of color bar's title with respect to the color bar. Note that the title's location used to be set by the now deprecated `titleside` attribute. The 'side' property is an enumeration that may be specified as: - One of the following enumeration values...
def side(self): """ Determines the location of color bar's title with respect to the color bar. Note that the title's location used to be set by the now deprecated `titleside` attribute. The 'side' property is an enumeration that may be specified as: - One of the f...
[ "def", "side", "(", "self", ")", ":", "return", "self", "[", "\"side\"", "]" ]
[ 62, 4 ]
[ 76, 27 ]
python
en
['en', 'error', 'th']
False
Title.text
(self)
Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. The 'text' property is a string and must be specified as: - A string - A ...
Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. The 'text' property is a string and must be specified as: - A string - A ...
def text(self): """ Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. The 'text' property is a string and must be specified as: ...
[ "def", "text", "(", "self", ")", ":", "return", "self", "[", "\"text\"", "]" ]
[ 85, 4 ]
[ 99, 27 ]
python
en
['en', 'error', 'th']
False
Title.__init__
(self, arg=None, font=None, side=None, text=None, **kwargs)
Construct a new Title object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.histogram2d.colorbar.Title` font Sets this color bar's title font. Note...
Construct a new Title object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.histogram2d.colorbar.Title` font Sets this color bar's title font. Note...
def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): """ Construct a new Title object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.histogr...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "font", "=", "None", ",", "side", "=", "None", ",", "text", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", "Title", ",", "self", ")", ".", "__init__", "(", "\"title\"", ...
[ 126, 4 ]
[ 203, 34 ]
python
en
['en', 'error', 'th']
False
X.color
(self)
Sets the color of the contour lines. The 'color' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%...
Sets the color of the contour lines. The 'color' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%...
def color(self): """ Sets the color of the contour lines. The 'color' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva s...
[ "def", "color", "(", "self", ")", ":", "return", "self", "[", "\"color\"", "]" ]
[ 27, 4 ]
[ 77, 28 ]
python
en
['en', 'error', 'th']
False
X.end
(self)
Sets the end contour level value. Must be more than `contours.start` The 'end' property is a number and may be specified as: - An int or float Returns ------- int|float
Sets the end contour level value. Must be more than `contours.start` The 'end' property is a number and may be specified as: - An int or float
def end(self): """ Sets the end contour level value. Must be more than `contours.start` The 'end' property is a number and may be specified as: - An int or float Returns ------- int|float """ return self["end"]
[ "def", "end", "(", "self", ")", ":", "return", "self", "[", "\"end\"", "]" ]
[ 86, 4 ]
[ 98, 26 ]
python
en
['en', 'error', 'th']
False
X.highlight
(self)
Determines whether or not contour lines about the x dimension are highlighted on hover. The 'highlight' property must be specified as a bool (either True, or False) Returns ------- bool
Determines whether or not contour lines about the x dimension are highlighted on hover. The 'highlight' property must be specified as a bool (either True, or False)
def highlight(self): """ Determines whether or not contour lines about the x dimension are highlighted on hover. The 'highlight' property must be specified as a bool (either True, or False) Returns ------- bool """ return self["highli...
[ "def", "highlight", "(", "self", ")", ":", "return", "self", "[", "\"highlight\"", "]" ]
[ 107, 4 ]
[ 119, 32 ]
python
en
['en', 'error', 'th']
False
X.highlightcolor
(self)
Sets the color of the highlighted contour lines. The 'highlightcolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (...
Sets the color of the highlighted contour lines. The 'highlightcolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (...
def highlightcolor(self): """ Sets the color of the highlighted contour lines. The 'highlightcolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50...
[ "def", "highlightcolor", "(", "self", ")", ":", "return", "self", "[", "\"highlightcolor\"", "]" ]
[ 128, 4 ]
[ 178, 37 ]
python
en
['en', 'error', 'th']
False
X.highlightwidth
(self)
Sets the width of the highlighted contour lines. The 'highlightwidth' property is a number and may be specified as: - An int or float in the interval [1, 16] Returns ------- int|float
Sets the width of the highlighted contour lines. The 'highlightwidth' property is a number and may be specified as: - An int or float in the interval [1, 16]
def highlightwidth(self): """ Sets the width of the highlighted contour lines. The 'highlightwidth' property is a number and may be specified as: - An int or float in the interval [1, 16] Returns ------- int|float """ return self["highlight...
[ "def", "highlightwidth", "(", "self", ")", ":", "return", "self", "[", "\"highlightwidth\"", "]" ]
[ 187, 4 ]
[ 198, 37 ]
python
en
['en', 'error', 'th']
False
X.project
(self)
The 'project' property is an instance of Project that may be specified as: - An instance of :class:`plotly.graph_objs.surface.contours.x.Project` - A dict of string/value properties that will be passed to the Project constructor Supported dict properties...
The 'project' property is an instance of Project that may be specified as: - An instance of :class:`plotly.graph_objs.surface.contours.x.Project` - A dict of string/value properties that will be passed to the Project constructor Supported dict properties...
def project(self): """ The 'project' property is an instance of Project that may be specified as: - An instance of :class:`plotly.graph_objs.surface.contours.x.Project` - A dict of string/value properties that will be passed to the Project constructor ...
[ "def", "project", "(", "self", ")", ":", "return", "self", "[", "\"project\"", "]" ]
[ 207, 4 ]
[ 240, 30 ]
python
en
['en', 'error', 'th']
False
X.show
(self)
Determines whether or not contour lines about the x dimension are drawn. The 'show' property must be specified as a bool (either True, or False) Returns ------- bool
Determines whether or not contour lines about the x dimension are drawn. The 'show' property must be specified as a bool (either True, or False)
def show(self): """ Determines whether or not contour lines about the x dimension are drawn. The 'show' property must be specified as a bool (either True, or False) Returns ------- bool """ return self["show"]
[ "def", "show", "(", "self", ")", ":", "return", "self", "[", "\"show\"", "]" ]
[ 249, 4 ]
[ 261, 27 ]
python
en
['en', 'error', 'th']
False
X.size
(self)
Sets the step between each contour level. Must be positive. The 'size' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float
Sets the step between each contour level. Must be positive. The 'size' property is a number and may be specified as: - An int or float in the interval [0, inf]
def size(self): """ Sets the step between each contour level. Must be positive. The 'size' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float """ return self["size"]
[ "def", "size", "(", "self", ")", ":", "return", "self", "[", "\"size\"", "]" ]
[ 270, 4 ]
[ 281, 27 ]
python
en
['en', 'error', 'th']
False
X.start
(self)
Sets the starting contour level value. Must be less than `contours.end` The 'start' property is a number and may be specified as: - An int or float Returns ------- int|float
Sets the starting contour level value. Must be less than `contours.end` The 'start' property is a number and may be specified as: - An int or float
def start(self): """ Sets the starting contour level value. Must be less than `contours.end` The 'start' property is a number and may be specified as: - An int or float Returns ------- int|float """ return self["start"]
[ "def", "start", "(", "self", ")", ":", "return", "self", "[", "\"start\"", "]" ]
[ 290, 4 ]
[ 302, 28 ]
python
en
['en', 'error', 'th']
False
X.usecolormap
(self)
An alternate to "color". Determines whether or not the contour lines are colored using the trace "colorscale". The 'usecolormap' property must be specified as a bool (either True, or False) Returns ------- bool
An alternate to "color". Determines whether or not the contour lines are colored using the trace "colorscale". The 'usecolormap' property must be specified as a bool (either True, or False)
def usecolormap(self): """ An alternate to "color". Determines whether or not the contour lines are colored using the trace "colorscale". The 'usecolormap' property must be specified as a bool (either True, or False) Returns ------- bool """ ...
[ "def", "usecolormap", "(", "self", ")", ":", "return", "self", "[", "\"usecolormap\"", "]" ]
[ 311, 4 ]
[ 323, 34 ]
python
en
['en', 'error', 'th']
False
X.width
(self)
Sets the width of the contour lines. The 'width' property is a number and may be specified as: - An int or float in the interval [1, 16] Returns ------- int|float
Sets the width of the contour lines. The 'width' property is a number and may be specified as: - An int or float in the interval [1, 16]
def width(self): """ Sets the width of the contour lines. The 'width' property is a number and may be specified as: - An int or float in the interval [1, 16] Returns ------- int|float """ return self["width"]
[ "def", "width", "(", "self", ")", ":", "return", "self", "[", "\"width\"", "]" ]
[ 332, 4 ]
[ 343, 28 ]
python
en
['en', 'error', 'th']
False
X.__init__
( self, arg=None, color=None, end=None, highlight=None, highlightcolor=None, highlightwidth=None, project=None, show=None, size=None, start=None, usecolormap=None, width=None, **kwargs )
Construct a new X object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.surface.contours.X` color Sets the color of the contour lines. end ...
Construct a new X object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.surface.contours.X` color Sets the color of the contour lines. end ...
def __init__( self, arg=None, color=None, end=None, highlight=None, highlightcolor=None, highlightwidth=None, project=None, show=None, size=None, start=None, usecolormap=None, width=None, **kwargs ): ...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "color", "=", "None", ",", "end", "=", "None", ",", "highlight", "=", "None", ",", "highlightcolor", "=", "None", ",", "highlightwidth", "=", "None", ",", "project", "=", "None", ",", "sho...
[ 385, 4 ]
[ 524, 34 ]
python
en
['en', 'error', 'th']
False
TestAbstractImageTeacher._test_display_output
(self, image_mode)
Test display data output with given image_mode.
Test display data output with given image_mode.
def _test_display_output(self, image_mode): """ Test display data output with given image_mode. """ with testing_utils.tempdir() as tmpdir: data_path = tmpdir PathManager.mkdirs(os.path.join(data_path, 'ImageTeacher')) opt = { 'task': ...
[ "def", "_test_display_output", "(", "self", ",", "image_mode", ")", ":", "with", "testing_utils", ".", "tempdir", "(", ")", "as", "tmpdir", ":", "data_path", "=", "tmpdir", "PathManager", ".", "mkdirs", "(", "os", ".", "path", ".", "join", "(", "data_path"...
[ 31, 4 ]
[ 52, 70 ]
python
en
['en', 'error', 'th']
False
TestAbstractImageTeacher.test_display_data_no_image
(self)
Test that, with no images loaded, all examples are different.
Test that, with no images loaded, all examples are different.
def test_display_data_no_image(self): """ Test that, with no images loaded, all examples are different. """ self._test_display_output('no_image_model')
[ "def", "test_display_data_no_image", "(", "self", ")", ":", "self", ".", "_test_display_output", "(", "'no_image_model'", ")" ]
[ 54, 4 ]
[ 58, 51 ]
python
en
['en', 'error', 'th']
False
TestAbstractImageTeacher.test_display_data_resnet
(self)
Test that, with pre-loaded image features, all examples are different.
Test that, with pre-loaded image features, all examples are different.
def test_display_data_resnet(self): """ Test that, with pre-loaded image features, all examples are different. """ self._test_display_output('resnet152')
[ "def", "test_display_data_resnet", "(", "self", ")", ":", "self", ".", "_test_display_output", "(", "'resnet152'", ")" ]
[ 62, 4 ]
[ 66, 46 ]
python
en
['en', 'error', 'th']
False
TestParlAIDialogTeacher.test_good_fileformat
(self)
Checks that we fail to load a dataset where the use specified eval_labels.
Checks that we fail to load a dataset where the use specified eval_labels.
def test_good_fileformat(self): """ Checks that we fail to load a dataset where the use specified eval_labels. """ with testing_utils.tempdir() as tmpdir: fp = os.path.join(tmpdir, "goodfile.txt") with PathManager.open(fp, "w") as f: f.write('id:te...
[ "def", "test_good_fileformat", "(", "self", ")", ":", "with", "testing_utils", ".", "tempdir", "(", ")", "as", "tmpdir", ":", "fp", "=", "os", ".", "path", ".", "join", "(", "tmpdir", ",", "\"goodfile.txt\"", ")", "with", "PathManager", ".", "open", "(",...
[ 70, 4 ]
[ 79, 43 ]
python
en
['en', 'error', 'th']
False
TestParlAIDialogTeacher.test_bad_fileformat
(self)
Checks that we fail to load a dataset where the use specified eval_labels.
Checks that we fail to load a dataset where the use specified eval_labels.
def test_bad_fileformat(self): """ Checks that we fail to load a dataset where the use specified eval_labels. """ with testing_utils.tempdir() as tmpdir: fp = os.path.join(tmpdir, "badfile.txt") with PathManager.open(fp, "w") as f: f.write('id:test...
[ "def", "test_bad_fileformat", "(", "self", ")", ":", "with", "testing_utils", ".", "tempdir", "(", ")", "as", "tmpdir", ":", "fp", "=", "os", ".", "path", ".", "join", "(", "tmpdir", ",", "\"badfile.txt\"", ")", "with", "PathManager", ".", "open", "(", ...
[ 81, 4 ]
[ 91, 47 ]
python
en
['en', 'error', 'th']
False
TestConversationTeacher.test_good_fileformat
(self)
Checks that we succeed in loading a well formatted jsonl file.
Checks that we succeed in loading a well formatted jsonl file.
def test_good_fileformat(self): """ Checks that we succeed in loading a well formatted jsonl file. """ with testing_utils.tempdir() as tmpdir: fp = os.path.join(tmpdir, "goodfile.jsonl") with PathManager.open(fp, "w") as f: f.write( ...
[ "def", "test_good_fileformat", "(", "self", ")", ":", "with", "testing_utils", ".", "tempdir", "(", ")", "as", "tmpdir", ":", "fp", "=", "os", ".", "path", ".", "join", "(", "tmpdir", ",", "\"goodfile.jsonl\"", ")", "with", "PathManager", ".", "open", "(...
[ 138, 4 ]
[ 149, 43 ]
python
en
['en', 'error', 'th']
False
TestChunkTeacher.test_slow_loading
(self)
Test that a slow loading teacher sees the right examples during validation.
Test that a slow loading teacher sees the right examples during validation.
def test_slow_loading(self): """ Test that a slow loading teacher sees the right examples during validation. """ with testing_utils.tempdir() as tmpdir: model_file = os.path.join(tmpdir, 'model') valid, test = testing_utils.train_model( dict( ...
[ "def", "test_slow_loading", "(", "self", ")", ":", "with", "testing_utils", ".", "tempdir", "(", ")", "as", "tmpdir", ":", "model_file", "=", "os", ".", "path", ".", "join", "(", "tmpdir", ",", "'model'", ")", "valid", ",", "test", "=", "testing_utils", ...
[ 346, 4 ]
[ 364, 13 ]
python
en
['en', 'error', 'th']
False
Stream.maxpoints
(self)
Sets the maximum number of points to keep on the plots from an incoming stream. If `maxpoints` is set to 50, only the newest 50 points will be displayed on the plot. The 'maxpoints' property is a number and may be specified as: - An int or float in the interval [0, 10000]...
Sets the maximum number of points to keep on the plots from an incoming stream. If `maxpoints` is set to 50, only the newest 50 points will be displayed on the plot. The 'maxpoints' property is a number and may be specified as: - An int or float in the interval [0, 10000]
def maxpoints(self): """ Sets the maximum number of points to keep on the plots from an incoming stream. If `maxpoints` is set to 50, only the newest 50 points will be displayed on the plot. The 'maxpoints' property is a number and may be specified as: - An int or ...
[ "def", "maxpoints", "(", "self", ")", ":", "return", "self", "[", "\"maxpoints\"", "]" ]
[ 15, 4 ]
[ 28, 32 ]
python
en
['en', 'error', 'th']
False
Stream.token
(self)
The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. The 'token' property is a string and must be specified as: - A non-empty string Returns ------- str
The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. The 'token' property is a string and must be specified as: - A non-empty string
def token(self): """ The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. The 'token' property is a string and must be specified as: - A non-empty string Returns ------- ...
[ "def", "token", "(", "self", ")", ":", "return", "self", "[", "\"token\"", "]" ]
[ 37, 4 ]
[ 50, 28 ]
python
en
['en', 'error', 'th']
False
Stream.__init__
(self, arg=None, maxpoints=None, token=None, **kwargs)
Construct a new Stream object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.contour.Stream` maxpoints Sets the maximum number of points to keep on...
Construct a new Stream object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.contour.Stream` maxpoints Sets the maximum number of points to keep on...
def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): """ Construct a new Stream object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.contour.Str...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "maxpoints", "=", "None", ",", "token", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", "Stream", ",", "self", ")", ".", "__init__", "(", "\"stream\"", ")", "if", "\"_paren...
[ 72, 4 ]
[ 140, 34 ]
python
en
['en', 'error', 'th']
False
Selected.marker
(self)
The 'marker' property is an instance of Marker that may be specified as: - An instance of :class:`plotly.graph_objs.scattermapbox.selected.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.scattermapbox.selected.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.scattermapbox.selected.Marker` - A dict of string/value properties that will be passed to the Marker constructor ...
[ "def", "marker", "(", "self", ")", ":", "return", "self", "[", "\"marker\"", "]" ]
[ 15, 4 ]
[ 36, 29 ]
python
en
['en', 'error', 'th']
False
Selected.__init__
(self, arg=None, marker=None, **kwargs)
Construct a new Selected object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.scattermapbox.Selected` marker :class:`plotly.graph_objects.scatterm...
Construct a new Selected object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.scattermapbox.Selected` marker :class:`plotly.graph_objects.scatterm...
def __init__(self, arg=None, marker=None, **kwargs): """ Construct a new Selected object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.scattermapbox.Selected` ...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "marker", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", "Selected", ",", "self", ")", ".", "__init__", "(", "\"selected\"", ")", "if", "\"_parent\"", "in", "kwargs", ":", ...
[ 52, 4 ]
[ 110, 34 ]
python
en
['en', 'error', 'th']
False
ColorBar.bgcolor
(self)
Sets the color of padded area. The 'bgcolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') ...
Sets the color of padded area. The 'bgcolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') ...
def bgcolor(self): """ Sets the color of padded area. The 'bgcolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva str...
[ "def", "bgcolor", "(", "self", ")", ":", "return", "self", "[", "\"bgcolor\"", "]" ]
[ 59, 4 ]
[ 109, 30 ]
python
en
['en', 'error', 'th']
False
ColorBar.bordercolor
(self)
Sets the axis line color. The 'bordercolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') ...
Sets the axis line color. The 'bordercolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') ...
def bordercolor(self): """ Sets the axis line color. The 'bordercolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva ...
[ "def", "bordercolor", "(", "self", ")", ":", "return", "self", "[", "\"bordercolor\"", "]" ]
[ 118, 4 ]
[ 168, 34 ]
python
en
['en', 'error', 'th']
False
ColorBar.borderwidth
(self)
Sets the width (in px) or the border enclosing this color bar. The 'borderwidth' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float
Sets the width (in px) or the border enclosing this color bar. The 'borderwidth' property is a number and may be specified as: - An int or float in the interval [0, inf]
def borderwidth(self): """ Sets the width (in px) or the border enclosing this color bar. The 'borderwidth' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float """ return self["...
[ "def", "borderwidth", "(", "self", ")", ":", "return", "self", "[", "\"borderwidth\"", "]" ]
[ 177, 4 ]
[ 188, 34 ]
python
en
['en', 'error', 'th']
False
ColorBar.dtick
(self)
Sets the step in-between ticks on this axis. Use with `tick0`. Must be a positive number, or special strings available to "log" and "date" axes. If the axis `type` is "log", then ticks are set every 10^(n*dtick) where n is the tick number. For example, to set a tick mark at 1, 1...
Sets the step in-between ticks on this axis. Use with `tick0`. Must be a positive number, or special strings available to "log" and "date" axes. If the axis `type` is "log", then ticks are set every 10^(n*dtick) where n is the tick number. For example, to set a tick mark at 1, 1...
def dtick(self): """ Sets the step in-between ticks on this axis. Use with `tick0`. Must be a positive number, or special strings available to "log" and "date" axes. If the axis `type` is "log", then ticks are set every 10^(n*dtick) where n is the tick number. For example...
[ "def", "dtick", "(", "self", ")", ":", "return", "self", "[", "\"dtick\"", "]" ]
[ 197, 4 ]
[ 226, 28 ]
python
en
['en', 'error', 'th']
False
ColorBar.exponentformat
(self)
Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If "none", it appears as 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If "power", 1x10^9 (with 9 in a super script). If "SI", 1G. If "B", 1B. The 'exponentformat' prop...
Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If "none", it appears as 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If "power", 1x10^9 (with 9 in a super script). If "SI", 1G. If "B", 1B. The 'exponentformat' prop...
def exponentformat(self): """ Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If "none", it appears as 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If "power", 1x10^9 (with 9 in a super script). If "SI", 1G. If "B", 1B. ...
[ "def", "exponentformat", "(", "self", ")", ":", "return", "self", "[", "\"exponentformat\"", "]" ]
[ 235, 4 ]
[ 251, 37 ]
python
en
['en', 'error', 'th']
False
ColorBar.len
(self)
Sets the length of the color bar This measure excludes the padding of both ends. That is, the color bar length is this length minus the padding on both ends. The 'len' property is a number and may be specified as: - An int or float in the interval [0, inf] Return...
Sets the length of the color bar This measure excludes the padding of both ends. That is, the color bar length is this length minus the padding on both ends. The 'len' property is a number and may be specified as: - An int or float in the interval [0, inf]
def len(self): """ Sets the length of the color bar This measure excludes the padding of both ends. That is, the color bar length is this length minus the padding on both ends. The 'len' property is a number and may be specified as: - An int or float in the interva...
[ "def", "len", "(", "self", ")", ":", "return", "self", "[", "\"len\"", "]" ]
[ 260, 4 ]
[ 273, 26 ]
python
en
['en', 'error', 'th']
False
ColorBar.lenmode
(self)
Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot "fraction" or in *pixels. Use `len` to set the value. The 'lenmode' property is an enumeration that may be specified as: - One of the following enumerati...
Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot "fraction" or in *pixels. Use `len` to set the value. The 'lenmode' property is an enumeration that may be specified as: - One of the following enumerati...
def lenmode(self): """ Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot "fraction" or in *pixels. Use `len` to set the value. The 'lenmode' property is an enumeration that may be specified as: - ...
[ "def", "lenmode", "(", "self", ")", ":", "return", "self", "[", "\"lenmode\"", "]" ]
[ 282, 4 ]
[ 296, 30 ]
python
en
['en', 'error', 'th']
False
ColorBar.nticks
(self)
Specifies the maximum number of ticks for the particular axis. The actual number of ticks will be chosen automatically to be less than or equal to `nticks`. Has an effect only if `tickmode` is set to "auto". The 'nticks' property is a integer and may be specified as: ...
Specifies the maximum number of ticks for the particular axis. The actual number of ticks will be chosen automatically to be less than or equal to `nticks`. Has an effect only if `tickmode` is set to "auto". The 'nticks' property is a integer and may be specified as: ...
def nticks(self): """ Specifies the maximum number of ticks for the particular axis. The actual number of ticks will be chosen automatically to be less than or equal to `nticks`. Has an effect only if `tickmode` is set to "auto". The 'nticks' property is a integer an...
[ "def", "nticks", "(", "self", ")", ":", "return", "self", "[", "\"nticks\"", "]" ]
[ 305, 4 ]
[ 320, 29 ]
python
en
['en', 'error', 'th']
False
ColorBar.outlinecolor
(self)
Sets the axis line color. The 'outlinecolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') ...
Sets the axis line color. The 'outlinecolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') ...
def outlinecolor(self): """ Sets the axis line color. The 'outlinecolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsv...
[ "def", "outlinecolor", "(", "self", ")", ":", "return", "self", "[", "\"outlinecolor\"", "]" ]
[ 329, 4 ]
[ 379, 35 ]
python
en
['en', 'error', 'th']
False
ColorBar.outlinewidth
(self)
Sets the width (in px) of the axis line. The 'outlinewidth' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float
Sets the width (in px) of the axis line. The 'outlinewidth' property is a number and may be specified as: - An int or float in the interval [0, inf]
def outlinewidth(self): """ Sets the width (in px) of the axis line. The 'outlinewidth' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float """ return self["outlinewidth"]
[ "def", "outlinewidth", "(", "self", ")", ":", "return", "self", "[", "\"outlinewidth\"", "]" ]
[ 388, 4 ]
[ 399, 35 ]
python
en
['en', 'error', 'th']
False
ColorBar.separatethousands
(self)
If "true", even 4-digit integers are separated The 'separatethousands' property must be specified as a bool (either True, or False) Returns ------- bool
If "true", even 4-digit integers are separated The 'separatethousands' property must be specified as a bool (either True, or False)
def separatethousands(self): """ If "true", even 4-digit integers are separated The 'separatethousands' property must be specified as a bool (either True, or False) Returns ------- bool """ return self["separatethousands"]
[ "def", "separatethousands", "(", "self", ")", ":", "return", "self", "[", "\"separatethousands\"", "]" ]
[ 408, 4 ]
[ 419, 40 ]
python
en
['en', 'error', 'th']
False
ColorBar.showexponent
(self)
If "all", all exponents are shown besides their significands. If "first", only the exponent of the first tick is shown. If "last", only the exponent of the last tick is shown. If "none", no exponents appear. The 'showexponent' property is an enumeration that may be specifie...
If "all", all exponents are shown besides their significands. If "first", only the exponent of the first tick is shown. If "last", only the exponent of the last tick is shown. If "none", no exponents appear. The 'showexponent' property is an enumeration that may be specifie...
def showexponent(self): """ If "all", all exponents are shown besides their significands. If "first", only the exponent of the first tick is shown. If "last", only the exponent of the last tick is shown. If "none", no exponents appear. The 'showexponent' property is ...
[ "def", "showexponent", "(", "self", ")", ":", "return", "self", "[", "\"showexponent\"", "]" ]
[ 428, 4 ]
[ 443, 35 ]
python
en
['en', 'error', 'th']
False
ColorBar.showticklabels
(self)
Determines whether or not the tick labels are drawn. The 'showticklabels' property must be specified as a bool (either True, or False) Returns ------- bool
Determines whether or not the tick labels are drawn. The 'showticklabels' property must be specified as a bool (either True, or False)
def showticklabels(self): """ Determines whether or not the tick labels are drawn. The 'showticklabels' property must be specified as a bool (either True, or False) Returns ------- bool """ return self["showticklabels"]
[ "def", "showticklabels", "(", "self", ")", ":", "return", "self", "[", "\"showticklabels\"", "]" ]
[ 452, 4 ]
[ 463, 37 ]
python
en
['en', 'error', 'th']
False
ColorBar.showtickprefix
(self)
If "all", all tick labels are displayed with a prefix. If "first", only the first tick is displayed with a prefix. If "last", only the last tick is displayed with a suffix. If "none", tick prefixes are hidden. The 'showtickprefix' property is an enumeration that may be spec...
If "all", all tick labels are displayed with a prefix. If "first", only the first tick is displayed with a prefix. If "last", only the last tick is displayed with a suffix. If "none", tick prefixes are hidden. The 'showtickprefix' property is an enumeration that may be spec...
def showtickprefix(self): """ If "all", all tick labels are displayed with a prefix. If "first", only the first tick is displayed with a prefix. If "last", only the last tick is displayed with a suffix. If "none", tick prefixes are hidden. The 'showtickprefix' proper...
[ "def", "showtickprefix", "(", "self", ")", ":", "return", "self", "[", "\"showtickprefix\"", "]" ]
[ 472, 4 ]
[ 487, 37 ]
python
en
['en', 'error', 'th']
False
ColorBar.showticksuffix
(self)
Same as `showtickprefix` but for tick suffixes. The 'showticksuffix' property is an enumeration that may be specified as: - One of the following enumeration values: ['all', 'first', 'last', 'none'] Returns ------- Any
Same as `showtickprefix` but for tick suffixes. The 'showticksuffix' property is an enumeration that may be specified as: - One of the following enumeration values: ['all', 'first', 'last', 'none']
def showticksuffix(self): """ Same as `showtickprefix` but for tick suffixes. The 'showticksuffix' property is an enumeration that may be specified as: - One of the following enumeration values: ['all', 'first', 'last', 'none'] Returns ------- ...
[ "def", "showticksuffix", "(", "self", ")", ":", "return", "self", "[", "\"showticksuffix\"", "]" ]
[ 496, 4 ]
[ 508, 37 ]
python
en
['en', 'error', 'th']
False
ColorBar.thickness
(self)
Sets the thickness of the color bar This measure excludes the size of the padding, ticks and labels. The 'thickness' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float
Sets the thickness of the color bar This measure excludes the size of the padding, ticks and labels. The 'thickness' property is a number and may be specified as: - An int or float in the interval [0, inf]
def thickness(self): """ Sets the thickness of the color bar This measure excludes the size of the padding, ticks and labels. The 'thickness' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- i...
[ "def", "thickness", "(", "self", ")", ":", "return", "self", "[", "\"thickness\"", "]" ]
[ 517, 4 ]
[ 529, 32 ]
python
en
['en', 'error', 'th']
False
ColorBar.thicknessmode
(self)
Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot "fraction" or in "pixels". Use `thickness` to set the value. The 'thicknessmode' property is an enumeration that may be specified as: - One of the foll...
Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot "fraction" or in "pixels". Use `thickness` to set the value. The 'thicknessmode' property is an enumeration that may be specified as: - One of the foll...
def thicknessmode(self): """ Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot "fraction" or in "pixels". Use `thickness` to set the value. The 'thicknessmode' property is an enumeration that may be speci...
[ "def", "thicknessmode", "(", "self", ")", ":", "return", "self", "[", "\"thicknessmode\"", "]" ]
[ 538, 4 ]
[ 552, 36 ]
python
en
['en', 'error', 'th']
False
ColorBar.tick0
(self)
Sets the placement of the first tick on this axis. Use with `dtick`. If the axis `type` is "log", then you must take the log of your starting tick (e.g. to set the starting tick to 100, set the `tick0` to 2) except when `dtick`=*L<f>* (see `dtick` for more info). If the axis `ty...
Sets the placement of the first tick on this axis. Use with `dtick`. If the axis `type` is "log", then you must take the log of your starting tick (e.g. to set the starting tick to 100, set the `tick0` to 2) except when `dtick`=*L<f>* (see `dtick` for more info). If the axis `ty...
def tick0(self): """ Sets the placement of the first tick on this axis. Use with `dtick`. If the axis `type` is "log", then you must take the log of your starting tick (e.g. to set the starting tick to 100, set the `tick0` to 2) except when `dtick`=*L<f>* (see `dtick` for...
[ "def", "tick0", "(", "self", ")", ":", "return", "self", "[", "\"tick0\"", "]" ]
[ 561, 4 ]
[ 579, 28 ]
python
en
['en', 'error', 'th']
False
ColorBar.tickangle
(self)
Sets the angle of the tick labels with respect to the horizontal. For example, a `tickangle` of -90 draws the tick labels vertically. The 'tickangle' property is a angle (in degrees) that may be specified as a number between -180 and 180. Numeric values outside this ...
Sets the angle of the tick labels with respect to the horizontal. For example, a `tickangle` of -90 draws the tick labels vertically. The 'tickangle' property is a angle (in degrees) that may be specified as a number between -180 and 180. Numeric values outside this ...
def tickangle(self): """ Sets the angle of the tick labels with respect to the horizontal. For example, a `tickangle` of -90 draws the tick labels vertically. The 'tickangle' property is a angle (in degrees) that may be specified as a number between -180 and 180. Num...
[ "def", "tickangle", "(", "self", ")", ":", "return", "self", "[", "\"tickangle\"", "]" ]
[ 588, 4 ]
[ 603, 32 ]
python
en
['en', 'error', 'th']
False
ColorBar.tickcolor
(self)
Sets the tick color. The 'tickcolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') ...
Sets the tick color. The 'tickcolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') ...
def tickcolor(self): """ Sets the tick color. The 'tickcolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e...
[ "def", "tickcolor", "(", "self", ")", ":", "return", "self", "[", "\"tickcolor\"", "]" ]
[ 612, 4 ]
[ 662, 32 ]
python
en
['en', 'error', 'th']
False
ColorBar.tickfont
(self)
Sets the color bar's tick label font The 'tickfont' property is an instance of Tickfont that may be specified as: - An instance of :class:`plotly.graph_objs.scatterpolargl.marker.colorbar.Tickfont` - A dict of string/value properties that will be passed to t...
Sets the color bar's tick label font The 'tickfont' property is an instance of Tickfont that may be specified as: - An instance of :class:`plotly.graph_objs.scatterpolargl.marker.colorbar.Tickfont` - A dict of string/value properties that will be passed to t...
def tickfont(self): """ Sets the color bar's tick label font The 'tickfont' property is an instance of Tickfont that may be specified as: - An instance of :class:`plotly.graph_objs.scatterpolargl.marker.colorbar.Tickfont` - A dict of string/value properties that ...
[ "def", "tickfont", "(", "self", ")", ":", "return", "self", "[", "\"tickfont\"", "]" ]
[ 671, 4 ]
[ 708, 31 ]
python
en
['en', 'error', 'th']
False
ColorBar.tickformat
(self)
Sets the tick label formatting rule using d3 formatting mini- languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-3.x-api- reference/blob/master/Formatting.md#d3_format And for dates see: https://github.com/d3/d3-3.x-api- refer...
Sets the tick label formatting rule using d3 formatting mini- languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-3.x-api- reference/blob/master/Formatting.md#d3_format And for dates see: https://github.com/d3/d3-3.x-api- refer...
def tickformat(self): """ Sets the tick label formatting rule using d3 formatting mini- languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-3.x-api- reference/blob/master/Formatting.md#d3_format And for dates see: https://github...
[ "def", "tickformat", "(", "self", ")", ":", "return", "self", "[", "\"tickformat\"", "]" ]
[ 717, 4 ]
[ 737, 33 ]
python
en
['en', 'error', 'th']
False
ColorBar.tickformatstops
(self)
The 'tickformatstops' property is a tuple of instances of Tickformatstop that may be specified as: - A list or tuple of instances of plotly.graph_objs.scatterpolargl.marker.colorbar.Tickformatstop - A list or tuple of dicts of string/value properties that will be passed ...
The 'tickformatstops' property is a tuple of instances of Tickformatstop that may be specified as: - A list or tuple of instances of plotly.graph_objs.scatterpolargl.marker.colorbar.Tickformatstop - A list or tuple of dicts of string/value properties that will be passed ...
def tickformatstops(self): """ The 'tickformatstops' property is a tuple of instances of Tickformatstop that may be specified as: - A list or tuple of instances of plotly.graph_objs.scatterpolargl.marker.colorbar.Tickformatstop - A list or tuple of dicts of string/value prope...
[ "def", "tickformatstops", "(", "self", ")", ":", "return", "self", "[", "\"tickformatstops\"", "]" ]
[ 746, 4 ]
[ 794, 38 ]
python
en
['en', 'error', 'th']
False
ColorBar.tickformatstopdefaults
(self)
When used in a template (as layout.template.data.scatterpolargl .marker.colorbar.tickformatstopdefaults), sets the default property values to use for elements of scatterpolargl.marker.colorbar.tickformatstops The 'tickformatstopdefaults' property is an instance of Tickforma...
When used in a template (as layout.template.data.scatterpolargl .marker.colorbar.tickformatstopdefaults), sets the default property values to use for elements of scatterpolargl.marker.colorbar.tickformatstops The 'tickformatstopdefaults' property is an instance of Tickforma...
def tickformatstopdefaults(self): """ When used in a template (as layout.template.data.scatterpolargl .marker.colorbar.tickformatstopdefaults), sets the default property values to use for elements of scatterpolargl.marker.colorbar.tickformatstops The 'tickformatstopd...
[ "def", "tickformatstopdefaults", "(", "self", ")", ":", "return", "self", "[", "\"tickformatstopdefaults\"", "]" ]
[ 803, 4 ]
[ 822, 45 ]
python
en
['en', 'error', 'th']
False
ColorBar.ticklen
(self)
Sets the tick length (in px). The 'ticklen' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float
Sets the tick length (in px). The 'ticklen' property is a number and may be specified as: - An int or float in the interval [0, inf]
def ticklen(self): """ Sets the tick length (in px). The 'ticklen' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float """ return self["ticklen"]
[ "def", "ticklen", "(", "self", ")", ":", "return", "self", "[", "\"ticklen\"", "]" ]
[ 831, 4 ]
[ 842, 30 ]
python
en
['en', 'error', 'th']
False
ColorBar.tickmode
(self)
Sets the tick mode for this axis. If "auto", the number of ticks is set via `nticks`. If "linear", the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` ("linear" is the default value if `tick0` and `dtick` are provided). If "array", the...
Sets the tick mode for this axis. If "auto", the number of ticks is set via `nticks`. If "linear", the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` ("linear" is the default value if `tick0` and `dtick` are provided). If "array", the...
def tickmode(self): """ Sets the tick mode for this axis. If "auto", the number of ticks is set via `nticks`. If "linear", the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` ("linear" is the default value if `tick0` and `dtick`...
[ "def", "tickmode", "(", "self", ")", ":", "return", "self", "[", "\"tickmode\"", "]" ]
[ 851, 4 ]
[ 869, 31 ]
python
en
['en', 'error', 'th']
False
ColorBar.tickprefix
(self)
Sets a tick label prefix. The 'tickprefix' property is a string and must be specified as: - A string - A number that will be converted to a string Returns ------- str
Sets a tick label prefix. The 'tickprefix' property is a string and must be specified as: - A string - A number that will be converted to a string
def tickprefix(self): """ Sets a tick label prefix. The 'tickprefix' property is a string and must be specified as: - A string - A number that will be converted to a string Returns ------- str """ return self["tickprefix"]
[ "def", "tickprefix", "(", "self", ")", ":", "return", "self", "[", "\"tickprefix\"", "]" ]
[ 878, 4 ]
[ 890, 33 ]
python
en
['en', 'error', 'th']
False
ColorBar.ticks
(self)
Determines whether ticks are drawn or not. If "", this axis' ticks are not drawn. If "outside" ("inside"), this axis' are drawn outside (inside) the axis lines. The 'ticks' property is an enumeration that may be specified as: - One of the following enumeration values: ...
Determines whether ticks are drawn or not. If "", this axis' ticks are not drawn. If "outside" ("inside"), this axis' are drawn outside (inside) the axis lines. The 'ticks' property is an enumeration that may be specified as: - One of the following enumeration values: ...
def ticks(self): """ Determines whether ticks are drawn or not. If "", this axis' ticks are not drawn. If "outside" ("inside"), this axis' are drawn outside (inside) the axis lines. The 'ticks' property is an enumeration that may be specified as: - One of the follo...
[ "def", "ticks", "(", "self", ")", ":", "return", "self", "[", "\"ticks\"", "]" ]
[ 899, 4 ]
[ 913, 28 ]
python
en
['en', 'error', 'th']
False
ColorBar.ticksuffix
(self)
Sets a tick label suffix. The 'ticksuffix' property is a string and must be specified as: - A string - A number that will be converted to a string Returns ------- str
Sets a tick label suffix. The 'ticksuffix' property is a string and must be specified as: - A string - A number that will be converted to a string
def ticksuffix(self): """ Sets a tick label suffix. The 'ticksuffix' property is a string and must be specified as: - A string - A number that will be converted to a string Returns ------- str """ return self["ticksuffix"]
[ "def", "ticksuffix", "(", "self", ")", ":", "return", "self", "[", "\"ticksuffix\"", "]" ]
[ 922, 4 ]
[ 934, 33 ]
python
en
['en', 'error', 'th']
False
ColorBar.ticktext
(self)
Sets the text displayed at the ticks position via `tickvals`. Only has an effect if `tickmode` is set to "array". Used with `tickvals`. The 'ticktext' property is an array that may be specified as a tuple, list, numpy array, or pandas Series Returns -------...
Sets the text displayed at the ticks position via `tickvals`. Only has an effect if `tickmode` is set to "array". Used with `tickvals`. The 'ticktext' property is an array that may be specified as a tuple, list, numpy array, or pandas Series
def ticktext(self): """ Sets the text displayed at the ticks position via `tickvals`. Only has an effect if `tickmode` is set to "array". Used with `tickvals`. The 'ticktext' property is an array that may be specified as a tuple, list, numpy array, or pandas Series ...
[ "def", "ticktext", "(", "self", ")", ":", "return", "self", "[", "\"ticktext\"", "]" ]
[ 943, 4 ]
[ 956, 31 ]
python
en
['en', 'error', 'th']
False
ColorBar.ticktextsrc
(self)
Sets the source reference on Chart Studio Cloud for ticktext . The 'ticktextsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str
Sets the source reference on Chart Studio Cloud for ticktext . The 'ticktextsrc' property must be specified as a string or as a plotly.grid_objs.Column object
def ticktextsrc(self): """ Sets the source reference on Chart Studio Cloud for ticktext . The 'ticktextsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["ticktextsrc"]
[ "def", "ticktextsrc", "(", "self", ")", ":", "return", "self", "[", "\"ticktextsrc\"", "]" ]
[ 965, 4 ]
[ 976, 34 ]
python
en
['en', 'error', 'th']
False
ColorBar.tickvals
(self)
Sets the values at which ticks on this axis appear. Only has an effect if `tickmode` is set to "array". Used with `ticktext`. The 'tickvals' property is an array that may be specified as a tuple, list, numpy array, or pandas Series Returns ------- numpy.nda...
Sets the values at which ticks on this axis appear. Only has an effect if `tickmode` is set to "array". Used with `ticktext`. The 'tickvals' property is an array that may be specified as a tuple, list, numpy array, or pandas Series
def tickvals(self): """ Sets the values at which ticks on this axis appear. Only has an effect if `tickmode` is set to "array". Used with `ticktext`. The 'tickvals' property is an array that may be specified as a tuple, list, numpy array, or pandas Series Returns ...
[ "def", "tickvals", "(", "self", ")", ":", "return", "self", "[", "\"tickvals\"", "]" ]
[ 985, 4 ]
[ 997, 31 ]
python
en
['en', 'error', 'th']
False
ColorBar.tickvalssrc
(self)
Sets the source reference on Chart Studio Cloud for tickvals . The 'tickvalssrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str
Sets the source reference on Chart Studio Cloud for tickvals . The 'tickvalssrc' property must be specified as a string or as a plotly.grid_objs.Column object
def tickvalssrc(self): """ Sets the source reference on Chart Studio Cloud for tickvals . The 'tickvalssrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["tickvalssrc"]
[ "def", "tickvalssrc", "(", "self", ")", ":", "return", "self", "[", "\"tickvalssrc\"", "]" ]
[ 1006, 4 ]
[ 1017, 34 ]
python
en
['en', 'error', 'th']
False
ColorBar.tickwidth
(self)
Sets the tick width (in px). The 'tickwidth' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float
Sets the tick width (in px). The 'tickwidth' property is a number and may be specified as: - An int or float in the interval [0, inf]
def tickwidth(self): """ Sets the tick width (in px). The 'tickwidth' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float """ return self["tickwidth"]
[ "def", "tickwidth", "(", "self", ")", ":", "return", "self", "[", "\"tickwidth\"", "]" ]
[ 1026, 4 ]
[ 1037, 32 ]
python
en
['en', 'error', 'th']
False
ColorBar.title
(self)
The 'title' property is an instance of Title that may be specified as: - An instance of :class:`plotly.graph_objs.scatterpolargl.marker.colorbar.Title` - A dict of string/value properties that will be passed to the Title constructor Supported dict proper...
The 'title' property is an instance of Title that may be specified as: - An instance of :class:`plotly.graph_objs.scatterpolargl.marker.colorbar.Title` - A dict of string/value properties that will be passed to the Title constructor Supported dict proper...
def title(self): """ The 'title' property is an instance of Title that may be specified as: - An instance of :class:`plotly.graph_objs.scatterpolargl.marker.colorbar.Title` - A dict of string/value properties that will be passed to the Title constructor ...
[ "def", "title", "(", "self", ")", ":", "return", "self", "[", "\"title\"", "]" ]
[ 1046, 4 ]
[ 1076, 28 ]
python
en
['en', 'error', 'th']
False
ColorBar.titlefont
(self)
Deprecated: Please use scatterpolargl.marker.colorbar.title.font instead. Sets this color bar's title font. Note that the title's font used to be set by the now deprecated `titlefont` attribute. The 'font' property is an instance of Font that may be specified as: ...
Deprecated: Please use scatterpolargl.marker.colorbar.title.font instead. Sets this color bar's title font. Note that the title's font used to be set by the now deprecated `titlefont` attribute. The 'font' property is an instance of Font that may be specified as: ...
def titlefont(self): """ Deprecated: Please use scatterpolargl.marker.colorbar.title.font instead. Sets this color bar's title font. Note that the title's font used to be set by the now deprecated `titlefont` attribute. The 'font' property is an instance of Font ...
[ "def", "titlefont", "(", "self", ")", ":", "return", "self", "[", "\"titlefont\"", "]" ]
[ 1085, 4 ]
[ 1125, 32 ]
python
en
['en', 'error', 'th']
False
ColorBar.titleside
(self)
Deprecated: Please use scatterpolargl.marker.colorbar.title.side instead. Determines the location of color bar's title with respect to the color bar. Note that the title's location used to be set by the now deprecated `titleside` attribute. The 'side' property is an...
Deprecated: Please use scatterpolargl.marker.colorbar.title.side instead. Determines the location of color bar's title with respect to the color bar. Note that the title's location used to be set by the now deprecated `titleside` attribute. The 'side' property is an...
def titleside(self): """ Deprecated: Please use scatterpolargl.marker.colorbar.title.side instead. Determines the location of color bar's title with respect to the color bar. Note that the title's location used to be set by the now deprecated `titleside` attribute. ...
[ "def", "titleside", "(", "self", ")", ":", "return", "self", "[", "\"titleside\"", "]" ]
[ 1134, 4 ]
[ 1150, 32 ]
python
en
['en', 'error', 'th']
False
ColorBar.x
(self)
Sets the x position of the color bar (in plot fraction). The 'x' property is a number and may be specified as: - An int or float in the interval [-2, 3] Returns ------- int|float
Sets the x position of the color bar (in plot fraction). The 'x' property is a number and may be specified as: - An int or float in the interval [-2, 3]
def x(self): """ Sets the x position of the color bar (in plot fraction). The 'x' property is a number and may be specified as: - An int or float in the interval [-2, 3] Returns ------- int|float """ return self["x"]
[ "def", "x", "(", "self", ")", ":", "return", "self", "[", "\"x\"", "]" ]
[ 1159, 4 ]
[ 1170, 24 ]
python
en
['en', 'error', 'th']
False
ColorBar.xanchor
(self)
Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the "left", "center" or "right" of the color bar. The 'xanchor' property is an enumeration that may be specified as: - One of the following enumeration values: ['left',...
Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the "left", "center" or "right" of the color bar. The 'xanchor' property is an enumeration that may be specified as: - One of the following enumeration values: ['left',...
def xanchor(self): """ Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the "left", "center" or "right" of the color bar. The 'xanchor' property is an enumeration that may be specified as: - One of the following enumeration va...
[ "def", "xanchor", "(", "self", ")", ":", "return", "self", "[", "\"xanchor\"", "]" ]
[ 1179, 4 ]
[ 1193, 30 ]
python
en
['en', 'error', 'th']
False
ColorBar.xpad
(self)
Sets the amount of padding (in px) along the x direction. The 'xpad' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float
Sets the amount of padding (in px) along the x direction. The 'xpad' property is a number and may be specified as: - An int or float in the interval [0, inf]
def xpad(self): """ Sets the amount of padding (in px) along the x direction. The 'xpad' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float """ return self["xpad"]
[ "def", "xpad", "(", "self", ")", ":", "return", "self", "[", "\"xpad\"", "]" ]
[ 1202, 4 ]
[ 1213, 27 ]
python
en
['en', 'error', 'th']
False
ColorBar.y
(self)
Sets the y position of the color bar (in plot fraction). The 'y' property is a number and may be specified as: - An int or float in the interval [-2, 3] Returns ------- int|float
Sets the y position of the color bar (in plot fraction). The 'y' property is a number and may be specified as: - An int or float in the interval [-2, 3]
def y(self): """ Sets the y position of the color bar (in plot fraction). The 'y' property is a number and may be specified as: - An int or float in the interval [-2, 3] Returns ------- int|float """ return self["y"]
[ "def", "y", "(", "self", ")", ":", "return", "self", "[", "\"y\"", "]" ]
[ 1222, 4 ]
[ 1233, 24 ]
python
en
['en', 'error', 'th']
False
ColorBar.yanchor
(self)
Sets this color bar's vertical position anchor This anchor binds the `y` position to the "top", "middle" or "bottom" of the color bar. The 'yanchor' property is an enumeration that may be specified as: - One of the following enumeration values: ['top', 'mi...
Sets this color bar's vertical position anchor This anchor binds the `y` position to the "top", "middle" or "bottom" of the color bar. The 'yanchor' property is an enumeration that may be specified as: - One of the following enumeration values: ['top', 'mi...
def yanchor(self): """ Sets this color bar's vertical position anchor This anchor binds the `y` position to the "top", "middle" or "bottom" of the color bar. The 'yanchor' property is an enumeration that may be specified as: - One of the following enumeration value...
[ "def", "yanchor", "(", "self", ")", ":", "return", "self", "[", "\"yanchor\"", "]" ]
[ 1242, 4 ]
[ 1256, 30 ]
python
en
['en', 'error', 'th']
False
ColorBar.ypad
(self)
Sets the amount of padding (in px) along the y direction. The 'ypad' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float
Sets the amount of padding (in px) along the y direction. The 'ypad' property is a number and may be specified as: - An int or float in the interval [0, inf]
def ypad(self): """ Sets the amount of padding (in px) along the y direction. The 'ypad' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float """ return self["ypad"]
[ "def", "ypad", "(", "self", ")", ":", "return", "self", "[", "\"ypad\"", "]" ]
[ 1265, 4 ]
[ 1276, 27 ]
python
en
['en', 'error', 'th']
False
ColorBar.__init__
( self, arg=None, bgcolor=None, bordercolor=None, borderwidth=None, dtick=None, exponentformat=None, len=None, lenmode=None, nticks=None, outlinecolor=None, outlinewidth=None, separatethousands=None, showexpo...
Construct a new ColorBar object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.scatterpolargl .marker.ColorBar` bgcolor Sets the color of padded ar...
Construct a new ColorBar object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.scatterpolargl .marker.ColorBar` bgcolor Sets the color of padded ar...
def __init__( self, arg=None, bgcolor=None, bordercolor=None, borderwidth=None, dtick=None, exponentformat=None, len=None, lenmode=None, nticks=None, outlinecolor=None, outlinewidth=None, separatethousands=None, ...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "bgcolor", "=", "None", ",", "bordercolor", "=", "None", ",", "borderwidth", "=", "None", ",", "dtick", "=", "None", ",", "exponentformat", "=", "None", ",", "len", "=", "None", ",", "lenm...
[ 1485, 4 ]
[ 1946, 34 ]
python
en
['en', 'error', 'th']
False
find_channel
(caller, channelname, silent=False, noaliases=False)
Helper function for searching for a single channel with some error handling.
Helper function for searching for a single channel with some error handling.
def find_channel(caller, channelname, silent=False, noaliases=False): """ Helper function for searching for a single channel with some error handling. """ channels = ChannelDB.objects.channel_search(channelname) if not channels: if not noaliases: channels = [chan for chan in ...
[ "def", "find_channel", "(", "caller", ",", "channelname", ",", "silent", "=", "False", ",", "noaliases", "=", "False", ")", ":", "channels", "=", "ChannelDB", ".", "objects", ".", "channel_search", "(", "channelname", ")", "if", "not", "channels", ":", "if...
[ 31, 0 ]
[ 51, 22 ]
python
en
['en', 'error', 'th']
False
_list_bots
()
Helper function to produce a list of all IRC bots. Returns: bots (str): A table of bots or an error message.
Helper function to produce a list of all IRC bots.
def _list_bots(): """ Helper function to produce a list of all IRC bots. Returns: bots (str): A table of bots or an error message. """ ircbots = [bot for bot in AccountDB.objects.filter(db_is_bot=True, username__startswith="ircbot-")] if ircbots: from evennia.utils.evtable impo...
[ "def", "_list_bots", "(", ")", ":", "ircbots", "=", "[", "bot", "for", "bot", "in", "AccountDB", ".", "objects", ".", "filter", "(", "db_is_bot", "=", "True", ",", "username__startswith", "=", "\"ircbot-\"", ")", "]", "if", "ircbots", ":", "from", "evenn...
[ 804, 0 ]
[ 822, 35 ]
python
en
['en', 'error', 'th']
False
CmdAddCom.func
(self)
Implement the command
Implement the command
def func(self): """Implement the command""" caller = self.caller args = self.args account = caller if not args: self.msg("Usage: addcom [alias =] channelname.") return if self.rhs: # rhs holds the channelname channelname ...
[ "def", "func", "(", "self", ")", ":", "caller", "=", "self", ".", "caller", "args", "=", "self", ".", "args", "account", "=", "caller", "if", "not", "args", ":", "self", ".", "msg", "(", "\"Usage: addcom [alias =] channelname.\"", ")", "return", "if", "s...
[ 75, 4 ]
[ 126, 28 ]
python
en
['en', 'en', 'en']
True
CmdDelCom.func
(self)
Implementing the command.
Implementing the command.
def func(self): """Implementing the command. """ caller = self.caller account = caller if not self.args: self.msg("Usage: delcom <alias or channel>") return ostring = self.args.lower() channel = find_channel(caller, ostring, silent=True, noalias...
[ "def", "func", "(", "self", ")", ":", "caller", "=", "self", ".", "caller", "account", "=", "caller", "if", "not", "self", ".", "args", ":", "self", ".", "msg", "(", "\"Usage: delcom <alias or channel>\"", ")", "return", "ostring", "=", "self", ".", "arg...
[ 151, 4 ]
[ 191, 79 ]
python
en
['en', 'en', 'en']
True
CmdAllCom.func
(self)
Runs the function
Runs the function
def func(self): """Runs the function""" caller = self.caller args = self.args if not args: self.execute_cmd("@channels") self.msg("(Usage: allcom on | off | who | destroy)") return if args == "on": # get names of all channels avai...
[ "def", "func", "(", "self", ")", ":", "caller", "=", "self", ".", "caller", "args", "=", "self", ".", "args", "if", "not", "args", ":", "self", ".", "execute_cmd", "(", "\"@channels\"", ")", "self", ".", "msg", "(", "\"(Usage: allcom on | off | who | destr...
[ 215, 4 ]
[ 255, 60 ]
python
en
['en', 'en', 'en']
True
CmdChannels.func
(self)
Implement function
Implement function
def func(self): """Implement function""" caller = self.caller # all channels we have available to listen to channels = [chan for chan in ChannelDB.objects.get_all_channels() if chan.access(caller, 'listen')] if not channels: self.msg("No channels...
[ "def", "func", "(", "self", ")", ":", "caller", "=", "self", ".", "caller", "# all channels we have available to listen to", "channels", "=", "[", "chan", "for", "chan", "in", "ChannelDB", ".", "objects", ".", "get_all_channels", "(", ")", "if", "chan", ".", ...
[ 279, 4 ]
[ 331, 65 ]
python
en
['en', 'en', 'en']
False
CmdCdestroy.func
(self)
Destroy objects cleanly.
Destroy objects cleanly.
def func(self): """Destroy objects cleanly.""" caller = self.caller if not self.args: self.msg("Usage: @cdestroy <channelname>") return channel = find_channel(caller, self.args) if not channel: self.msg("Could not find channel %s." % self.args...
[ "def", "func", "(", "self", ")", ":", "caller", "=", "self", ".", "caller", "if", "not", "self", ".", "args", ":", "self", ".", "msg", "(", "\"Usage: @cdestroy <channelname>\"", ")", "return", "channel", "=", "find_channel", "(", "caller", ",", "self", "...
[ 351, 4 ]
[ 371, 61 ]
python
en
['en', 'en', 'en']
True
CmdCBoot.func
(self)
implement the function
implement the function
def func(self): """implement the function""" if not self.args or not self.rhs: string = "Usage: @cboot[/quiet] <channel> = <account> [:reason]" self.msg(string) return channel = find_channel(self.caller, self.lhs) if not channel: return ...
[ "def", "func", "(", "self", ")", ":", "if", "not", "self", ".", "args", "or", "not", "self", ".", "rhs", ":", "string", "=", "\"Usage: @cboot[/quiet] <channel> = <account> [:reason]\"", "self", ".", "msg", "(", "string", ")", "return", "channel", "=", "find_...
[ 396, 4 ]
[ 436, 31 ]
python
en
['en', 'en', 'en']
True
CmdCemit.func
(self)
Implement function
Implement function
def func(self): """Implement function""" if not self.args or not self.rhs: string = "Usage: @cemit[/switches] <channel> = <message>" self.msg(string) return channel = find_channel(self.caller, self.lhs) if not channel: return if no...
[ "def", "func", "(", "self", ")", ":", "if", "not", "self", ".", "args", "or", "not", "self", ".", "rhs", ":", "string", "=", "\"Usage: @cemit[/switches] <channel> = <message>\"", "self", ".", "msg", "(", "string", ")", "return", "channel", "=", "find_channel...
[ 465, 4 ]
[ 485, 28 ]
python
en
['en', 'en', 'en']
False
CmdCWho.func
(self)
implement function
implement function
def func(self): """implement function""" if not self.args: string = "Usage: @cwho <channel>" self.msg(string) return channel = find_channel(self.caller, self.lhs) if not channel: return if not channel.access(self.caller, "listen")...
[ "def", "func", "(", "self", ")", ":", "if", "not", "self", ".", "args", ":", "string", "=", "\"Usage: @cwho <channel>\"", "self", ".", "msg", "(", "string", ")", "return", "channel", "=", "find_channel", "(", "self", ".", "caller", ",", "self", ".", "l...
[ 504, 4 ]
[ 521, 32 ]
python
en
['en', 'en', 'en']
False
CmdChannelCreate.func
(self)
Implement the command
Implement the command
def func(self): """Implement the command""" caller = self.caller if not self.args: self.msg("Usage @ccreate <channelname>[;alias;alias..] = description") return description = "" if self.rhs: description = self.rhs lhs = self.lhs ...
[ "def", "func", "(", "self", ")", ":", "caller", "=", "self", ".", "caller", "if", "not", "self", ".", "args", ":", "self", ".", "msg", "(", "\"Usage @ccreate <channelname>[;alias;alias..] = description\"", ")", "return", "description", "=", "\"\"", "if", "self...
[ 542, 4 ]
[ 573, 74 ]
python
en
['en', 'en', 'en']
True
CmdClock.func
(self)
run the function
run the function
def func(self): """run the function""" if not self.args: string = "Usage: @clock channel [= lockstring]" self.msg(string) return channel = find_channel(self.caller, self.lhs) if not channel: return if not self.rhs: # n...
[ "def", "func", "(", "self", ")", ":", "if", "not", "self", ".", "args", ":", "string", "=", "\"Usage: @clock channel [= lockstring]\"", "self", ".", "msg", "(", "string", ")", "return", "channel", "=", "find_channel", "(", "self", ".", "caller", ",", "self...
[ 595, 4 ]
[ 626, 24 ]
python
en
['en', 'en', 'en']
True
CmdCdesc.func
(self)
Implement command
Implement command
def func(self): """Implement command""" caller = self.caller if not self.rhs: self.msg("Usage: @cdesc <channel> = <description>") return channel = find_channel(caller, self.lhs) if not channel: self.msg("Channel '%s' not found." % self.lhs) ...
[ "def", "func", "(", "self", ")", ":", "caller", "=", "self", ".", "caller", "if", "not", "self", ".", "rhs", ":", "self", ".", "msg", "(", "\"Usage: @cdesc <channel> = <description>\"", ")", "return", "channel", "=", "find_channel", "(", "caller", ",", "se...
[ 647, 4 ]
[ 667, 73 ]
python
en
['en', 'en', 'en']
False
CmdPage.func
(self)
Implement function using the Msg methods
Implement function using the Msg methods
def func(self): """Implement function using the Msg methods""" # Since account_caller is set above, this will be an Account. caller = self.caller # get the messages we've sent (not to channels) pages_we_sent = Msg.objects.get_messages_by_sender(caller, exclude_channel_messages=...
[ "def", "func", "(", "self", ")", ":", "# Since account_caller is set above, this will be an Account.", "caller", "=", "self", ".", "caller", "# get the messages we've sent (not to channels)", "pages_we_sent", "=", "Msg", ".", "objects", ".", "get_messages_by_sender", "(", "...
[ 696, 4 ]
[ 801, 77 ]
python
en
['en', 'en', 'en']
True
CmdIRC2Chan.func
(self)
Setup the irc-channel mapping
Setup the irc-channel mapping
def func(self): """Setup the irc-channel mapping""" if not settings.IRC_ENABLED: string = """IRC is not enabled. You need to activate it in game/settings.py.""" self.msg(string) return if 'list' in self.switches: # show all connections ...
[ "def", "func", "(", "self", ")", ":", "if", "not", "settings", ".", "IRC_ENABLED", ":", "string", "=", "\"\"\"IRC is not enabled. You need to activate it in game/settings.py.\"\"\"", "self", ".", "msg", "(", "string", ")", "return", "if", "'list'", "in", "self", "...
[ 861, 4 ]
[ 930, 57 ]
python
en
['en', 'en', 'en']
True
CmdIRCStatus.func
(self)
Handles the functioning of the command.
Handles the functioning of the command.
def func(self): """Handles the functioning of the command.""" if not self.args: self.msg(_list_bots()) return # should always be on the form botname option args = self.args.split() if len(args) != 2: self.msg("Usage: @ircstatus [#dbref ping||n...
[ "def", "func", "(", "self", ")", ":", "if", "not", "self", ".", "args", ":", "self", ".", "msg", "(", "_list_bots", "(", ")", ")", "return", "# should always be on the form botname option", "args", "=", "self", ".", "args", ".", "split", "(", ")", "if", ...
[ 955, 4 ]
[ 995, 85 ]
python
en
['en', 'en', 'en']
True
CmdRSS2Chan.func
(self)
Setup the rss-channel mapping
Setup the rss-channel mapping
def func(self): """Setup the rss-channel mapping""" # checking we have all we need if not settings.RSS_ENABLED: string = """RSS is not enabled. You need to activate it in game/settings.py.""" self.msg(string) return try: import feedparser ...
[ "def", "func", "(", "self", ")", ":", "# checking we have all we need", "if", "not", "settings", ".", "RSS_ENABLED", ":", "string", "=", "\"\"\"RSS is not enabled. You need to activate it in game/settings.py.\"\"\"", "self", ".", "msg", "(", "string", ")", "return", "tr...
[ 1029, 4 ]
[ 1092, 55 ]
python
en
['en', 'en', 'en']
True
count_queries
(exec_string, setup_string)
Display queries done by exec_string. Use setup_string to setup the environment to test.
Display queries done by exec_string. Use setup_string to setup the environment to test.
def count_queries(exec_string, setup_string): """ Display queries done by exec_string. Use setup_string to setup the environment to test. """ exec(setup_string) num_queries_old = len(connection.queries) exec(exec_string) nqueries = len(connection.queries) - num_queries_old for que...
[ "def", "count_queries", "(", "exec_string", ",", "setup_string", ")", ":", "exec", "(", "setup_string", ")", "num_queries_old", "=", "len", "(", "connection", ".", "queries", ")", "exec", "(", "exec_string", ")", "nqueries", "=", "len", "(", "connection", "....
[ 13, 0 ]
[ 27, 45 ]
python
en
['en', 'error', 'th']
False
setup
(bot)
Mandatory function to add the Cog to the bot.
Mandatory function to add the Cog to the bot.
def setup(bot): """ Mandatory function to add the Cog to the bot. """ bot.add_cog(Updater(bot))
[ "def", "setup", "(", "bot", ")", ":", "bot", ".", "add_cog", "(", "Updater", "(", "bot", ")", ")" ]
[ 282, 0 ]
[ 286, 29 ]
python
en
['en', 'error', 'th']
False
LiDARInstance3DBoxes.gravity_center
(self)
torch.Tensor: A tensor with center of each box.
torch.Tensor: A tensor with center of each box.
def gravity_center(self): """torch.Tensor: A tensor with center of each box.""" bottom_center = self.bottom_center gravity_center = torch.zeros_like(bottom_center) gravity_center[:, :2] = bottom_center[:, :2] gravity_center[:, 2] = bottom_center[:, 2] + self.tensor[:, 5] * 0.5 ...
[ "def", "gravity_center", "(", "self", ")", ":", "bottom_center", "=", "self", ".", "bottom_center", "gravity_center", "=", "torch", ".", "zeros_like", "(", "bottom_center", ")", "gravity_center", "[", ":", ",", ":", "2", "]", "=", "bottom_center", "[", ":", ...
[ 36, 4 ]
[ 42, 29 ]
python
en
['en', 'en', 'en']
True
LiDARInstance3DBoxes.corners
(self)
torch.Tensor: Coordinates of corners of all the boxes in shape (N, 8, 3). Convert the boxes to corners in clockwise order, in form of ``(x0y0z0, x0y0z1, x0y1z1, x0y1z0, x1y0z0, x1y0z1, x1y1z1, x1y1z0)`` .. code-block:: none up z ...
torch.Tensor: Coordinates of corners of all the boxes in shape (N, 8, 3).
def corners(self): """torch.Tensor: Coordinates of corners of all the boxes in shape (N, 8, 3). Convert the boxes to corners in clockwise order, in form of ``(x0y0z0, x0y0z1, x0y1z1, x0y1z0, x1y0z0, x1y0z1, x1y1z1, x1y1z0)`` .. code-block:: none ...
[ "def", "corners", "(", "self", ")", ":", "# TODO: rotation_3d_in_axis function do not support", "# empty tensor currently.", "assert", "len", "(", "self", ".", "tensor", ")", "!=", "0", "dims", "=", "self", ".", "dims", "corners_norm", "=", "torch", ".", "from_nu...
[ 45, 4 ]
[ 83, 22 ]
python
en
['en', 'en', 'en']
True
LiDARInstance3DBoxes.bev
(self)
torch.Tensor: 2D BEV box of each box with rotation in XYWHR format.
torch.Tensor: 2D BEV box of each box with rotation in XYWHR format.
def bev(self): """torch.Tensor: 2D BEV box of each box with rotation in XYWHR format.""" return self.tensor[:, [0, 1, 3, 4, 6]]
[ "def", "bev", "(", "self", ")", ":", "return", "self", ".", "tensor", "[", ":", ",", "[", "0", ",", "1", ",", "3", ",", "4", ",", "6", "]", "]" ]
[ 86, 4 ]
[ 89, 46 ]
python
en
['en', 'en', 'en']
True
LiDARInstance3DBoxes.nearest_bev
(self)
torch.Tensor: A tensor of 2D BEV box of each box without rotation.
torch.Tensor: A tensor of 2D BEV box of each box without rotation.
def nearest_bev(self): """torch.Tensor: A tensor of 2D BEV box of each box without rotation.""" # Obtain BEV boxes with rotation in XYWHR format bev_rotated_boxes = self.bev # convert the rotation to a valid range rotations = bev_rotated_boxes[:, -1] normed_rotati...
[ "def", "nearest_bev", "(", "self", ")", ":", "# Obtain BEV boxes with rotation in XYWHR format", "bev_rotated_boxes", "=", "self", ".", "bev", "# convert the rotation to a valid range", "rotations", "=", "bev_rotated_boxes", "[", ":", ",", "-", "1", "]", "normed_rotations...
[ 92, 4 ]
[ 110, 24 ]
python
en
['en', 'vi', 'en']
True
LiDARInstance3DBoxes.rotate
(self, angle, points=None)
Rotate boxes with points (optional) with the given angle. Args: angle (float | torch.Tensor): Rotation angle. points (torch.Tensor, numpy.ndarray, :obj:`BasePoints`, optional): Points to rotate. Defaults to None. Returns: tuple or None: When ``points...
Rotate boxes with points (optional) with the given angle.
def rotate(self, angle, points=None): """Rotate boxes with points (optional) with the given angle. Args: angle (float | torch.Tensor): Rotation angle. points (torch.Tensor, numpy.ndarray, :obj:`BasePoints`, optional): Points to rotate. Defaults to None. ...
[ "def", "rotate", "(", "self", ",", "angle", ",", "points", "=", "None", ")", ":", "if", "not", "isinstance", "(", "angle", ",", "torch", ".", "Tensor", ")", ":", "angle", "=", "self", ".", "tensor", ".", "new_tensor", "(", "angle", ")", "rot_sin", ...
[ 112, 4 ]
[ 150, 36 ]
python
en
['en', 'en', 'en']
True
LiDARInstance3DBoxes.flip
(self, bev_direction='horizontal', points=None)
Flip the boxes in BEV along given BEV direction. In LIDAR coordinates, it flips the y (horizontal) or x (vertical) axis. Args: bev_direction (str): Flip direction (horizontal or vertical). points (torch.Tensor, numpy.ndarray, :obj:`BasePoints`, None): Points to ...
Flip the boxes in BEV along given BEV direction.
def flip(self, bev_direction='horizontal', points=None): """Flip the boxes in BEV along given BEV direction. In LIDAR coordinates, it flips the y (horizontal) or x (vertical) axis. Args: bev_direction (str): Flip direction (horizontal or vertical). points (torch.Tensor,...
[ "def", "flip", "(", "self", ",", "bev_direction", "=", "'horizontal'", ",", "points", "=", "None", ")", ":", "assert", "bev_direction", "in", "(", "'horizontal'", ",", "'vertical'", ")", "if", "bev_direction", "==", "'horizontal'", ":", "self", ".", "tensor"...
[ 152, 4 ]
[ 184, 25 ]
python
en
['en', 'da', 'en']
True
LiDARInstance3DBoxes.in_range_bev
(self, box_range)
Check whether the boxes are in the given range. Args: box_range (list | torch.Tensor): the range of box (x_min, y_min, x_max, y_max) Note: The original implementation of SECOND checks whether boxes in a range by checking whether the points are in a c...
Check whether the boxes are in the given range.
def in_range_bev(self, box_range): """Check whether the boxes are in the given range. Args: box_range (list | torch.Tensor): the range of box (x_min, y_min, x_max, y_max) Note: The original implementation of SECOND checks whether boxes in a r...
[ "def", "in_range_bev", "(", "self", ",", "box_range", ")", ":", "in_range_flags", "=", "(", "(", "self", ".", "tensor", "[", ":", ",", "0", "]", ">", "box_range", "[", "0", "]", ")", "&", "(", "self", ".", "tensor", "[", ":", ",", "1", "]", ">"...
[ 186, 4 ]
[ 205, 29 ]
python
en
['en', 'en', 'en']
True
LiDARInstance3DBoxes.convert_to
(self, dst, rt_mat=None)
Convert self to ``dst`` mode. Args: dst (:obj:`BoxMode`): the target Box mode rt_mat (np.ndarray | torch.Tensor): The rotation and translation matrix between different coordinates. Defaults to None. The conversion from ``src`` coordinates to ``dst`` coord...
Convert self to ``dst`` mode.
def convert_to(self, dst, rt_mat=None): """Convert self to ``dst`` mode. Args: dst (:obj:`BoxMode`): the target Box mode rt_mat (np.ndarray | torch.Tensor): The rotation and translation matrix between different coordinates. Defaults to None. The c...
[ "def", "convert_to", "(", "self", ",", "dst", ",", "rt_mat", "=", "None", ")", ":", "from", ".", "box_3d_mode", "import", "Box3DMode", "return", "Box3DMode", ".", "convert", "(", "box", "=", "self", ",", "src", "=", "Box3DMode", ".", "LIDAR", ",", "dst...
[ 207, 4 ]
[ 224, 66 ]
python
en
['en', 'en', 'en']
True
LiDARInstance3DBoxes.enlarged_box
(self, extra_width)
Enlarge the length, width and height boxes. Args: extra_width (float | torch.Tensor): Extra width to enlarge the box. Returns: :obj:`LiDARInstance3DBoxes`: Enlarged boxes.
Enlarge the length, width and height boxes.
def enlarged_box(self, extra_width): """Enlarge the length, width and height boxes. Args: extra_width (float | torch.Tensor): Extra width to enlarge the box. Returns: :obj:`LiDARInstance3DBoxes`: Enlarged boxes. """ enlarged_boxes = self.tensor.clone() ...
[ "def", "enlarged_box", "(", "self", ",", "extra_width", ")", ":", "enlarged_boxes", "=", "self", ".", "tensor", ".", "clone", "(", ")", "enlarged_boxes", "[", ":", ",", "3", ":", "6", "]", "+=", "extra_width", "*", "2", "# bottom center z minus extra_width",...
[ 226, 4 ]
[ 239, 43 ]
python
en
['en', 'en', 'en']
True