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
points_in_convex_polygon_jit
(points, polygon, clockwise=True)
Check points is in 2d convex polygons. True when point in polygon. Args: points (np.ndarray): Input points with the shape of [num_points, 2]. polygon (np.ndarray): Input polygon with the shape of [num_polygon, num_points_of_polygon, 2]. clockwise (bool): Indicate polygon is cloc...
Check points is in 2d convex polygons. True when point in polygon.
def points_in_convex_polygon_jit(points, polygon, clockwise=True): """Check points is in 2d convex polygons. True when point in polygon. Args: points (np.ndarray): Input points with the shape of [num_points, 2]. polygon (np.ndarray): Input polygon with the shape of [num_polygon, num...
[ "def", "points_in_convex_polygon_jit", "(", "points", ",", "polygon", ",", "clockwise", "=", "True", ")", ":", "# first convert polygon to directed lines", "num_points_of_polygon", "=", "polygon", ".", "shape", "[", "1", "]", "num_points", "=", "points", ".", "shape...
[ 748, 0 ]
[ 789, 14 ]
python
en
['en', 'en', 'en']
True
boxes3d_to_corners3d_lidar
(boxes3d, bottom_center=True)
Convert kitti center boxes to corners. 7 -------- 4 /| /| 6 -------- 5 . | | | | . 3 -------- 0 |/ |/ 2 -------- 1 Args: boxes3d (np.ndarray): Boxes with shape of (N, 7) \ [x, y, z, w, l, h, ry] in LiDAR coords, see the defini...
Convert kitti center boxes to corners.
def boxes3d_to_corners3d_lidar(boxes3d, bottom_center=True): """Convert kitti center boxes to corners. 7 -------- 4 /| /| 6 -------- 5 . | | | | . 3 -------- 0 |/ |/ 2 -------- 1 Args: boxes3d (np.ndarray): Boxes with shape of (N, 7) ...
[ "def", "boxes3d_to_corners3d_lidar", "(", "boxes3d", ",", "bottom_center", "=", "True", ")", ":", "boxes_num", "=", "boxes3d", ".", "shape", "[", "0", "]", "w", ",", "l", ",", "h", "=", "boxes3d", "[", ":", ",", "3", "]", ",", "boxes3d", "[", ":", ...
[ 792, 0 ]
[ 856, 37 ]
python
en
['en', 'en', 'en']
True
parse_html
(string, strip_ansi=False, parser=HTML_PARSER)
Parses a string, replace ANSI markup with html
Parses a string, replace ANSI markup with html
def parse_html(string, strip_ansi=False, parser=HTML_PARSER): """ Parses a string, replace ANSI markup with html """ return parser.parse(string, strip_ansi=strip_ansi)
[ "def", "parse_html", "(", "string", ",", "strip_ansi", "=", "False", ",", "parser", "=", "HTML_PARSER", ")", ":", "return", "parser", ".", "parse", "(", "string", ",", "strip_ansi", "=", "strip_ansi", ")" ]
[ 316, 0 ]
[ 320, 54 ]
python
en
['en', 'error', 'th']
False
TextToHTMLparser.re_color
(self, text)
Replace ansi colors with html color class names. Let the client choose how it will display colors, if it wishes to. Args: text (str): the string with color to replace. Returns: text (str): Re-colored text.
Replace ansi colors with html color class names. Let the client choose how it will display colors, if it wishes to.
def re_color(self, text): """ Replace ansi colors with html color class names. Let the client choose how it will display colors, if it wishes to. Args: text (str): the string with color to replace. Returns: text (str): Re-colored text. """ ...
[ "def", "re_color", "(", "self", ",", "text", ")", ":", "text", "=", "self", ".", "re_fgs", ".", "sub", "(", "self", ".", "_sub_fg", ",", "text", ")", "text", "=", "self", ".", "re_bgs", ".", "sub", "(", "self", ".", "_sub_bg", ",", "text", ")", ...
[ 107, 4 ]
[ 122, 19 ]
python
en
['en', 'error', 'th']
False
TextToHTMLparser.re_bold
(self, text)
Clean out superfluous hilights rather than set <strong>to make it match the look of telnet. Args: text (str): Text to process. Returns: text (str): Processed text.
Clean out superfluous hilights rather than set <strong>to make it match the look of telnet.
def re_bold(self, text): """ Clean out superfluous hilights rather than set <strong>to make it match the look of telnet. Args: text (str): Text to process. Returns: text (str): Processed text. """ text = self.re_hilite.sub(r'<strong>\1</...
[ "def", "re_bold", "(", "self", ",", "text", ")", ":", "text", "=", "self", ".", "re_hilite", ".", "sub", "(", "r'<strong>\\1</strong>'", ",", "text", ")", "return", "self", ".", "re_unhilite", ".", "sub", "(", "r'\\1'", ",", "text", ")" ]
[ 124, 4 ]
[ 137, 48 ]
python
en
['en', 'error', 'th']
False
TextToHTMLparser.re_underline
(self, text)
Replace ansi underline with html underline class name. Args: text (str): Text to process. Returns: text (str): Processed text.
Replace ansi underline with html underline class name.
def re_underline(self, text): """ Replace ansi underline with html underline class name. Args: text (str): Text to process. Returns: text (str): Processed text. """ return self.re_uline.sub(r'<span class="underline">\1</span>', text)
[ "def", "re_underline", "(", "self", ",", "text", ")", ":", "return", "self", ".", "re_uline", ".", "sub", "(", "r'<span class=\"underline\">\\1</span>'", ",", "text", ")" ]
[ 139, 4 ]
[ 150, 76 ]
python
en
['en', 'error', 'th']
False
TextToHTMLparser.re_blinking
(self, text)
Replace ansi blink with custom blink css class Args: text (str): Text to process. Returns: text (str): Processed text.
Replace ansi blink with custom blink css class
def re_blinking(self, text): """ Replace ansi blink with custom blink css class Args: text (str): Text to process. Returns: text (str): Processed text. """ return self.re_blink.sub(r'<span class="blink">\1</span>', text)
[ "def", "re_blinking", "(", "self", ",", "text", ")", ":", "return", "self", ".", "re_blink", ".", "sub", "(", "r'<span class=\"blink\">\\1</span>'", ",", "text", ")" ]
[ 152, 4 ]
[ 162, 72 ]
python
en
['en', 'error', 'th']
False
TextToHTMLparser.re_inversing
(self, text)
Replace ansi inverse with custom inverse css class Args: text (str): Text to process. Returns: text (str): Processed text.
Replace ansi inverse with custom inverse css class
def re_inversing(self, text): """ Replace ansi inverse with custom inverse css class Args: text (str): Text to process. Returns: text (str): Processed text. """ return self.re_inverse.sub(r'<span class="inverse">\1</span>', text)
[ "def", "re_inversing", "(", "self", ",", "text", ")", ":", "return", "self", ".", "re_inverse", ".", "sub", "(", "r'<span class=\"inverse\">\\1</span>'", ",", "text", ")" ]
[ 164, 4 ]
[ 174, 76 ]
python
en
['en', 'error', 'th']
False
TextToHTMLparser.remove_bells
(self, text)
Remove ansi specials Args: text (str): Text to process. Returns: text (str): Processed text.
Remove ansi specials
def remove_bells(self, text): """ Remove ansi specials Args: text (str): Text to process. Returns: text (str): Processed text. """ return text.replace('\07', '')
[ "def", "remove_bells", "(", "self", ",", "text", ")", ":", "return", "text", ".", "replace", "(", "'\\07'", ",", "''", ")" ]
[ 176, 4 ]
[ 187, 38 ]
python
en
['en', 'error', 'th']
False
TextToHTMLparser.remove_backspaces
(self, text)
Removes special escape sequences Args: text (str): Text to process. Returns: text (str): Processed text.
Removes special escape sequences
def remove_backspaces(self, text): """ Removes special escape sequences Args: text (str): Text to process. Returns: text (str): Processed text. """ backspace_or_eol = r'(.\010)|(\033\[K)' n = 1 while n > 0: text, n = ...
[ "def", "remove_backspaces", "(", "self", ",", "text", ")", ":", "backspace_or_eol", "=", "r'(.\\010)|(\\033\\[K)'", "n", "=", "1", "while", "n", ">", "0", ":", "text", ",", "n", "=", "re", ".", "subn", "(", "backspace_or_eol", ",", "''", ",", "text", "...
[ 189, 4 ]
[ 204, 19 ]
python
en
['en', 'error', 'th']
False
TextToHTMLparser.convert_linebreaks
(self, text)
Extra method for cleaning linebreaks Args: text (str): Text to process. Returns: text (str): Processed text.
Extra method for cleaning linebreaks
def convert_linebreaks(self, text): """ Extra method for cleaning linebreaks Args: text (str): Text to process. Returns: text (str): Processed text. """ return text.replace(r'\n', r'<br>')
[ "def", "convert_linebreaks", "(", "self", ",", "text", ")", ":", "return", "text", ".", "replace", "(", "r'\\n'", ",", "r'<br>'", ")" ]
[ 206, 4 ]
[ 217, 43 ]
python
en
['en', 'error', 'th']
False
TextToHTMLparser.convert_urls
(self, text)
Replace urls (http://...) by valid HTML. Args: text (str): Text to process. Returns: text (str): Processed text.
Replace urls (http://...) by valid HTML.
def convert_urls(self, text): """ Replace urls (http://...) by valid HTML. Args: text (str): Text to process. Returns: text (str): Processed text. """ # -> added target to output prevent the web browser from attempting to # change pages ...
[ "def", "convert_urls", "(", "self", ",", "text", ")", ":", "# -> added target to output prevent the web browser from attempting to", "# change pages (and losing our webclient session).", "return", "self", ".", "re_url", ".", "sub", "(", "r'<a href=\"\\1\" target=\"_blank\">\\1</a>\...
[ 219, 4 ]
[ 232, 78 ]
python
en
['en', 'error', 'th']
False
TextToHTMLparser.sub_mxp_links
(self, match)
Helper method to be passed to re.sub, replaces MXP links with HTML code. Args: text (str): Text to process. Returns: text (str): Processed text.
Helper method to be passed to re.sub, replaces MXP links with HTML code.
def sub_mxp_links(self, match): """ Helper method to be passed to re.sub, replaces MXP links with HTML code. Args: text (str): Text to process. Returns: text (str): Processed text. """ cmd, text = [grp.replace('\"', "\\&quot;") for grp i...
[ "def", "sub_mxp_links", "(", "self", ",", "match", ")", ":", "cmd", ",", "text", "=", "[", "grp", ".", "replace", "(", "'\\\"'", ",", "\"\\\\&quot;\"", ")", "for", "grp", "in", "match", ".", "groups", "(", ")", "]", "val", "=", "r'''<a id=\"mxplink\" h...
[ 234, 4 ]
[ 250, 18 ]
python
en
['en', 'error', 'th']
False
TextToHTMLparser.sub_text
(self, match)
Helper method to be passed to re.sub, for handling all substitutions. Args: match (re.Matchobject): Match for substitution. Returns: text (str): Processed text.
Helper method to be passed to re.sub, for handling all substitutions.
def sub_text(self, match): """ Helper method to be passed to re.sub, for handling all substitutions. Args: match (re.Matchobject): Match for substitution. Returns: text (str): Processed text. """ cdict = match.groupdict() if cdic...
[ "def", "sub_text", "(", "self", ",", "match", ")", ":", "cdict", "=", "match", ".", "groupdict", "(", ")", "if", "cdict", "[", "'htmlchars'", "]", ":", "return", "cgi", ".", "escape", "(", "cdict", "[", "'htmlchars'", "]", ")", "if", "cdict", "[", ...
[ 252, 4 ]
[ 275, 19 ]
python
en
['en', 'error', 'th']
False
TextToHTMLparser.parse
(self, text, strip_ansi=False)
Main access function, converts a text containing ANSI codes into html statements. Args: text (str): Text to process. strip_ansi (bool, optional): Returns: text (str): Parsed text.
Main access function, converts a text containing ANSI codes into html statements.
def parse(self, text, strip_ansi=False): """ Main access function, converts a text containing ANSI codes into html statements. Args: text (str): Text to process. strip_ansi (bool, optional): Returns: text (str): Parsed text. """ ...
[ "def", "parse", "(", "self", ",", "text", ",", "strip_ansi", "=", "False", ")", ":", "# parse everything to ansi first", "text", "=", "parse_ansi", "(", "text", ",", "strip_ansi", "=", "strip_ansi", ",", "xterm256", "=", "True", ",", "mxp", "=", "True", ")...
[ 277, 4 ]
[ 306, 21 ]
python
en
['en', 'error', 'th']
False
Connector.line
(self)
The 'line' property is an instance of Line that may be specified as: - An instance of :class:`plotly.graph_objs.waterfall.connector.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.waterfall.connector.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.waterfall.connector.Line` - A dict of string/value properties that will be passed to the Line constructor Supported...
[ "def", "line", "(", "self", ")", ":", "return", "self", "[", "\"line\"", "]" ]
[ 15, 4 ]
[ 39, 27 ]
python
en
['en', 'error', 'th']
False
Connector.mode
(self)
Sets the shape of connector lines. The 'mode' property is an enumeration that may be specified as: - One of the following enumeration values: ['spanning', 'between'] Returns ------- Any
Sets the shape of connector lines. The 'mode' property is an enumeration that may be specified as: - One of the following enumeration values: ['spanning', 'between']
def mode(self): """ Sets the shape of connector lines. The 'mode' property is an enumeration that may be specified as: - One of the following enumeration values: ['spanning', 'between'] Returns ------- Any """ return self["m...
[ "def", "mode", "(", "self", ")", ":", "return", "self", "[", "\"mode\"", "]" ]
[ 48, 4 ]
[ 60, 27 ]
python
en
['en', 'error', 'th']
False
Connector.visible
(self)
Determines if connector lines are drawn. The 'visible' property must be specified as a bool (either True, or False) Returns ------- bool
Determines if connector lines are drawn. The 'visible' property must be specified as a bool (either True, or False)
def visible(self): """ Determines if connector lines are drawn. The 'visible' property must be specified as a bool (either True, or False) Returns ------- bool """ return self["visible"]
[ "def", "visible", "(", "self", ")", ":", "return", "self", "[", "\"visible\"", "]" ]
[ 69, 4 ]
[ 80, 30 ]
python
en
['en', 'error', 'th']
False
Connector.__init__
(self, arg=None, line=None, mode=None, visible=None, **kwargs)
Construct a new Connector object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.waterfall.Connector` line :class:`plotly.graph_objects.waterfall.co...
Construct a new Connector object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.waterfall.Connector` line :class:`plotly.graph_objects.waterfall.co...
def __init__(self, arg=None, line=None, mode=None, visible=None, **kwargs): """ Construct a new Connector object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs....
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "line", "=", "None", ",", "mode", "=", "None", ",", "visible", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", "Connector", ",", "self", ")", ".", "__init__", "(", "\"con...
[ 100, 4 ]
[ 170, 34 ]
python
en
['en', 'error', 'th']
False
Unselected.marker
(self)
The 'marker' property is an instance of Marker that may be specified as: - An instance of :class:`plotly.graph_objs.barpolar.unselected.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.barpolar.unselected.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.barpolar.unselected.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
Unselected.textfont
(self)
The 'textfont' property is an instance of Textfont that may be specified as: - An instance of :class:`plotly.graph_objs.barpolar.unselected.Textfont` - A dict of string/value properties that will be passed to the Textfont constructor Supported dict prope...
The 'textfont' property is an instance of Textfont that may be specified as: - An instance of :class:`plotly.graph_objs.barpolar.unselected.Textfont` - A dict of string/value properties that will be passed to the Textfont constructor Supported dict prope...
def textfont(self): """ The 'textfont' property is an instance of Textfont that may be specified as: - An instance of :class:`plotly.graph_objs.barpolar.unselected.Textfont` - A dict of string/value properties that will be passed to the Textfont constructor ...
[ "def", "textfont", "(", "self", ")", ":", "return", "self", "[", "\"textfont\"", "]" ]
[ 45, 4 ]
[ 63, 31 ]
python
en
['en', 'error', 'th']
False
Unselected.__init__
(self, arg=None, marker=None, textfont=None, **kwargs)
Construct a new Unselected object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.barpolar.Unselected` marker :class:`plotly.graph_objects.barpolar....
Construct a new Unselected object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.barpolar.Unselected` marker :class:`plotly.graph_objects.barpolar....
def __init__(self, arg=None, marker=None, textfont=None, **kwargs): """ Construct a new Unselected object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.barpola...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "marker", "=", "None", ",", "textfont", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", "Unselected", ",", "self", ")", ".", "__init__", "(", "\"unselected\"", ")", "if", "...
[ 82, 4 ]
[ 147, 34 ]
python
en
['en', 'error', 'th']
False
Circle.radius
(self)
Sets the circle radius (mapbox.layer.paint.circle-radius). Has an effect only when `type` is set to "circle". The 'radius' property is a number and may be specified as: - An int or float Returns ------- int|float
Sets the circle radius (mapbox.layer.paint.circle-radius). Has an effect only when `type` is set to "circle". The 'radius' property is a number and may be specified as: - An int or float
def radius(self): """ Sets the circle radius (mapbox.layer.paint.circle-radius). Has an effect only when `type` is set to "circle". The 'radius' property is a number and may be specified as: - An int or float Returns ------- int|float """ ...
[ "def", "radius", "(", "self", ")", ":", "return", "self", "[", "\"radius\"", "]" ]
[ 15, 4 ]
[ 27, 29 ]
python
en
['en', 'error', 'th']
False
Circle.__init__
(self, arg=None, radius=None, **kwargs)
Construct a new Circle object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.layout.mapbox.layer.Circle` radius Sets the circle radius (mapbox.laye...
Construct a new Circle object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.layout.mapbox.layer.Circle` radius Sets the circle radius (mapbox.laye...
def __init__(self, arg=None, radius=None, **kwargs): """ Construct a new Circle object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.layout.mapbox.layer.Circle...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "radius", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", "Circle", ",", "self", ")", ".", "__init__", "(", "\"circle\"", ")", "if", "\"_parent\"", "in", "kwargs", ":", "se...
[ 44, 4 ]
[ 103, 34 ]
python
en
['en', 'error', 'th']
False
CredentialRequestHandler.handle
(self, context: RequestContext, responder: BaseResponder)
Message handler logic for credential requests. Args: context: request context responder: responder callback
Message handler logic for credential requests.
async def handle(self, context: RequestContext, responder: BaseResponder): """ Message handler logic for credential requests. Args: context: request context responder: responder callback """ self._logger.debug(f"CredentialRequestHandler called with contex...
[ "async", "def", "handle", "(", "self", ",", "context", ":", "RequestContext", ",", "responder", ":", "BaseResponder", ")", ":", "self", ".", "_logger", ".", "debug", "(", "f\"CredentialRequestHandler called with context {context}\"", ")", "assert", "isinstance", "("...
[ 16, 4 ]
[ 47, 64 ]
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 .baxis.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 .baxis.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
fullmatch
(regex, string, flags=0)
Emulate python-3.4 re.fullmatch().
Emulate python-3.4 re.fullmatch().
def fullmatch(regex, string, flags=0): """Emulate python-3.4 re.fullmatch().""" if "pattern" in dir(regex): regex_string = regex.pattern else: regex_string = regex return re.match("(?:" + regex_string + r")\Z", string, flags=flags)
[ "def", "fullmatch", "(", "regex", ",", "string", ",", "flags", "=", "0", ")", ":", "if", "\"pattern\"", "in", "dir", "(", "regex", ")", ":", "regex_string", "=", "regex", ".", "pattern", "else", ":", "regex_string", "=", "regex", "return", "re", ".", ...
[ 18, 0 ]
[ 24, 71 ]
python
en
['en', 'zh', 'sw']
False
copy_to_readonly_numpy_array
(v, kind=None, force_numeric=False)
Convert an array-like value into a read-only numpy array Parameters ---------- v : array like Array like value (list, tuple, numpy array, pandas series, etc.) kind : str or tuple of str If specified, the numpy dtype kind (or kinds) that the array should have, or be converte...
Convert an array-like value into a read-only numpy array
def copy_to_readonly_numpy_array(v, kind=None, force_numeric=False): """ Convert an array-like value into a read-only numpy array Parameters ---------- v : array like Array like value (list, tuple, numpy array, pandas series, etc.) kind : str or tuple of str If specified, the nu...
[ "def", "copy_to_readonly_numpy_array", "(", "v", ",", "kind", "=", "None", ",", "force_numeric", "=", "False", ")", ":", "np", "=", "get_module", "(", "\"numpy\"", ")", "# Don't force pandas to be loaded, we only want to know if it's already loaded", "pd", "=", "get_mod...
[ 55, 0 ]
[ 155, 16 ]
python
en
['en', 'error', 'th']
False
is_numpy_convertable
(v)
Return whether a value is meaningfully convertable to a numpy array via 'numpy.array'
Return whether a value is meaningfully convertable to a numpy array via 'numpy.array'
def is_numpy_convertable(v): """ Return whether a value is meaningfully convertable to a numpy array via 'numpy.array' """ return hasattr(v, "__array__") or hasattr(v, "__array_interface__")
[ "def", "is_numpy_convertable", "(", "v", ")", ":", "return", "hasattr", "(", "v", ",", "\"__array__\"", ")", "or", "hasattr", "(", "v", ",", "\"__array_interface__\"", ")" ]
[ 158, 0 ]
[ 163, 71 ]
python
en
['en', 'error', 'th']
False
is_homogeneous_array
(v)
Return whether a value is considered to be a homogeneous array
Return whether a value is considered to be a homogeneous array
def is_homogeneous_array(v): """ Return whether a value is considered to be a homogeneous array """ np = get_module("numpy", should_load=False) pd = get_module("pandas", should_load=False) if ( np and isinstance(v, np.ndarray) or (pd and isinstance(v, (pd.Series, pd.Index...
[ "def", "is_homogeneous_array", "(", "v", ")", ":", "np", "=", "get_module", "(", "\"numpy\"", ",", "should_load", "=", "False", ")", "pd", "=", "get_module", "(", "\"pandas\"", ",", "should_load", "=", "False", ")", "if", "(", "np", "and", "isinstance", ...
[ 166, 0 ]
[ 185, 16 ]
python
en
['en', 'error', 'th']
False
is_simple_array
(v)
Return whether a value is considered to be an simple array
Return whether a value is considered to be an simple array
def is_simple_array(v): """ Return whether a value is considered to be an simple array """ return isinstance(v, (list, tuple))
[ "def", "is_simple_array", "(", "v", ")", ":", "return", "isinstance", "(", "v", ",", "(", "list", ",", "tuple", ")", ")" ]
[ 188, 0 ]
[ 192, 39 ]
python
en
['en', 'error', 'th']
False
is_array
(v)
Return whether a value is considered to be an array
Return whether a value is considered to be an array
def is_array(v): """ Return whether a value is considered to be an array """ return is_simple_array(v) or is_homogeneous_array(v)
[ "def", "is_array", "(", "v", ")", ":", "return", "is_simple_array", "(", "v", ")", "or", "is_homogeneous_array", "(", "v", ")" ]
[ 195, 0 ]
[ 199, 56 ]
python
en
['en', 'error', 'th']
False
type_str
(v)
Return a type string of the form module.name for the input value v
Return a type string of the form module.name for the input value v
def type_str(v): """ Return a type string of the form module.name for the input value v """ if not isinstance(v, type): v = type(v) return "'{module}.{name}'".format(module=v.__module__, name=v.__name__)
[ "def", "type_str", "(", "v", ")", ":", "if", "not", "isinstance", "(", "v", ",", "type", ")", ":", "v", "=", "type", "(", "v", ")", "return", "\"'{module}.{name}'\"", ".", "format", "(", "module", "=", "v", ".", "__module__", ",", "name", "=", "v",...
[ 202, 0 ]
[ 209, 75 ]
python
en
['en', 'error', 'th']
False
BaseValidator.__init__
(self, plotly_name, parent_name, role=None, **_)
Construct a validator instance Parameters ---------- plotly_name : str Name of the property being validated parent_name : str Names of all of the ancestors of this property joined on '.' characters. e.g. plotly_name == 'range' and...
Construct a validator instance
def __init__(self, plotly_name, parent_name, role=None, **_): """ Construct a validator instance Parameters ---------- plotly_name : str Name of the property being validated parent_name : str Names of all of the ancestors of this property joined o...
[ "def", "__init__", "(", "self", ",", "plotly_name", ",", "parent_name", ",", "role", "=", "None", ",", "*", "*", "_", ")", ":", "self", ".", "parent_name", "=", "parent_name", "self", ".", "plotly_name", "=", "plotly_name", "self", ".", "role", "=", "r...
[ 219, 4 ]
[ 238, 29 ]
python
en
['en', 'error', 'th']
False
BaseValidator.description
(self)
Returns a string that describes the values that are acceptable to the validator Should start with: The '{plotly_name}' property is a... For consistancy, string should have leading 4-space indent
Returns a string that describes the values that are acceptable to the validator
def description(self): """ Returns a string that describes the values that are acceptable to the validator Should start with: The '{plotly_name}' property is a... For consistancy, string should have leading 4-space indent """ raise NotImplementedErro...
[ "def", "description", "(", "self", ")", ":", "raise", "NotImplementedError", "(", ")" ]
[ 240, 4 ]
[ 250, 35 ]
python
en
['en', 'error', 'th']
False
BaseValidator.raise_invalid_val
(self, v, inds=None)
Helper method to raise an informative exception when an invalid value is passed to the validate_coerce method. Parameters ---------- v : Value that was input to validate_coerce and could not be coerced inds: list of int or None (default) Indexes ...
Helper method to raise an informative exception when an invalid value is passed to the validate_coerce method.
def raise_invalid_val(self, v, inds=None): """ Helper method to raise an informative exception when an invalid value is passed to the validate_coerce method. Parameters ---------- v : Value that was input to validate_coerce and could not be coerced in...
[ "def", "raise_invalid_val", "(", "self", ",", "v", ",", "inds", "=", "None", ")", ":", "name", "=", "self", ".", "plotly_name", "if", "inds", ":", "for", "i", "in", "inds", ":", "name", "+=", "\"[\"", "+", "str", "(", "i", ")", "+", "\"]\"", "rai...
[ 252, 4 ]
[ 286, 9 ]
python
en
['en', 'error', 'th']
False
BaseValidator.validate_coerce
(self, v)
Validate whether an input value is compatible with this property, and coerce the value to be compatible of possible. Parameters ---------- v The input value to be validated Raises ------ ValueError if `v` cannot be coerced into a...
Validate whether an input value is compatible with this property, and coerce the value to be compatible of possible.
def validate_coerce(self, v): """ Validate whether an input value is compatible with this property, and coerce the value to be compatible of possible. Parameters ---------- v The input value to be validated Raises ------ ValueError ...
[ "def", "validate_coerce", "(", "self", ",", "v", ")", ":", "raise", "NotImplementedError", "(", ")" ]
[ 303, 4 ]
[ 322, 35 ]
python
en
['en', 'error', 'th']
False
BaseValidator.present
(self, v)
Convert output value of a previous call to `validate_coerce` into a form suitable to be returned to the user on upon property access. Note: The value returned by present must be either immutable or an instance of BasePlotlyType, otherwise the value could be mutated by t...
Convert output value of a previous call to `validate_coerce` into a form suitable to be returned to the user on upon property access.
def present(self, v): """ Convert output value of a previous call to `validate_coerce` into a form suitable to be returned to the user on upon property access. Note: The value returned by present must be either immutable or an instance of BasePlotlyType, otherwise the va...
[ "def", "present", "(", "self", ",", "v", ")", ":", "if", "is_homogeneous_array", "(", "v", ")", ":", "# Note: numpy array was already coerced into read-only form so", "# we don't need to copy it here.", "return", "v", "elif", "is_simple_array", "(", "v", ")", ":", "re...
[ 324, 4 ]
[ 351, 20 ]
python
en
['en', 'error', 'th']
False
EnumeratedValidator.__deepcopy__
(self, memodict={})
A custom deepcopy method is needed here because compiled regex objects don't support deepcopy
A custom deepcopy method is needed here because compiled regex objects don't support deepcopy
def __deepcopy__(self, memodict={}): """ A custom deepcopy method is needed here because compiled regex objects don't support deepcopy """ cls = self.__class__ return cls(self.plotly_name, self.parent_name, values=self.values)
[ "def", "__deepcopy__", "(", "self", ",", "memodict", "=", "{", "}", ")", ":", "cls", "=", "self", ".", "__class__", "return", "cls", "(", "self", ".", "plotly_name", ",", "self", ".", "parent_name", ",", "values", "=", "self", ".", "values", ")" ]
[ 456, 4 ]
[ 462, 74 ]
python
en
['en', 'error', 'th']
False
EnumeratedValidator.perform_replacemenet
(self, v)
Return v with any applicable regex replacements applied
Return v with any applicable regex replacements applied
def perform_replacemenet(self, v): """ Return v with any applicable regex replacements applied """ if isinstance(v, string_types): for repl_args in self.regex_replacements: if repl_args: v = re.sub(repl_args[0], repl_args[1], v) re...
[ "def", "perform_replacemenet", "(", "self", ",", "v", ")", ":", "if", "isinstance", "(", "v", ",", "string_types", ")", ":", "for", "repl_args", "in", "self", ".", "regex_replacements", ":", "if", "repl_args", ":", "v", "=", "re", ".", "sub", "(", "rep...
[ 487, 4 ]
[ 496, 16 ]
python
en
['en', 'error', 'th']
False
EnumeratedValidator.in_values
(self, e)
Return whether a value matches one of the enumeration options
Return whether a value matches one of the enumeration options
def in_values(self, e): """ Return whether a value matches one of the enumeration options """ is_str = isinstance(e, string_types) for v, regex in zip(self.values, self.val_regexs): if is_str and regex: in_values = fullmatch(regex, e) is not None ...
[ "def", "in_values", "(", "self", ",", "e", ")", ":", "is_str", "=", "isinstance", "(", "e", ",", "string_types", ")", "for", "v", ",", "regex", "in", "zip", "(", "self", ".", "values", ",", "self", ".", "val_regexs", ")", ":", "if", "is_str", "and"...
[ 560, 4 ]
[ 575, 20 ]
python
en
['en', 'error', 'th']
False
StringValidator.to_str_or_unicode_or_none
(v)
Convert a value to a string if it's not None, a string, or a unicode (on Python 2).
Convert a value to a string if it's not None, a string, or a unicode (on Python 2).
def to_str_or_unicode_or_none(v): """ Convert a value to a string if it's not None, a string, or a unicode (on Python 2). """ if v is None or isinstance(v, string_types): return v else: return str(v)
[ "def", "to_str_or_unicode_or_none", "(", "v", ")", ":", "if", "v", "is", "None", "or", "isinstance", "(", "v", ",", "string_types", ")", ":", "return", "v", "else", ":", "return", "str", "(", "v", ")" ]
[ 958, 4 ]
[ 966, 25 ]
python
en
['en', 'error', 'th']
False
ColorValidator.find_invalid_els
(self, orig, validated, invalid_els=None)
Helper method to find invalid elements in orig array. Elements are invalid if their corresponding element in the validated array is None. This method handles deeply nested list structures
Helper method to find invalid elements in orig array. Elements are invalid if their corresponding element in the validated array is None.
def find_invalid_els(self, orig, validated, invalid_els=None): """ Helper method to find invalid elements in orig array. Elements are invalid if their corresponding element in the validated array is None. This method handles deeply nested list structures """ if i...
[ "def", "find_invalid_els", "(", "self", ",", "orig", ",", "validated", ",", "invalid_els", "=", "None", ")", ":", "if", "invalid_els", "is", "None", ":", "invalid_els", "=", "[", "]", "for", "orig_el", ",", "validated_el", "in", "zip", "(", "orig", ",", ...
[ 1366, 4 ]
[ 1384, 26 ]
python
en
['en', 'error', 'th']
False
ColorValidator.vc_scalar
(self, v)
Helper to validate/coerce a scalar color
Helper to validate/coerce a scalar color
def vc_scalar(self, v): """ Helper to validate/coerce a scalar color """ return ColorValidator.perform_validate_coerce( v, allow_number=self.numbers_allowed() )
[ "def", "vc_scalar", "(", "self", ",", "v", ")", ":", "return", "ColorValidator", ".", "perform_validate_coerce", "(", "v", ",", "allow_number", "=", "self", ".", "numbers_allowed", "(", ")", ")" ]
[ 1386, 4 ]
[ 1390, 9 ]
python
en
['en', 'en', 'pt']
True
ColorValidator.perform_validate_coerce
(v, allow_number=None)
Validate, coerce, and return a single color value. If input cannot be coerced to a valid color then return None. Parameters ---------- v : number or str Candidate color value allow_number : bool True if numbers are allowed as colors Ret...
Validate, coerce, and return a single color value. If input cannot be coerced to a valid color then return None.
def perform_validate_coerce(v, allow_number=None): """ Validate, coerce, and return a single color value. If input cannot be coerced to a valid color then return None. Parameters ---------- v : number or str Candidate color value allow_number : bool ...
[ "def", "perform_validate_coerce", "(", "v", ",", "allow_number", "=", "None", ")", ":", "if", "isinstance", "(", "v", ",", "numbers", ".", "Number", ")", "and", "allow_number", ":", "# If allow_numbers then any number is ok", "return", "v", "elif", "not", "isins...
[ 1393, 4 ]
[ 1440, 27 ]
python
en
['en', 'error', 'th']
False
InfoArrayValidator.validate_element_with_indexed_name
(self, val, validator, inds)
Helper to add indexes to a validator's name, call validate_coerce on a value, then restore the original validator name. This makes sure that if a validation error message is raised, the property name the user sees includes the index(es) of the offending element. Parame...
Helper to add indexes to a validator's name, call validate_coerce on a value, then restore the original validator name.
def validate_element_with_indexed_name(self, val, validator, inds): """ Helper to add indexes to a validator's name, call validate_coerce on a value, then restore the original validator name. This makes sure that if a validation error message is raised, the property name the use...
[ "def", "validate_element_with_indexed_name", "(", "self", ",", "val", ",", "validator", ",", "inds", ")", ":", "orig_name", "=", "validator", ".", "plotly_name", "new_name", "=", "self", ".", "plotly_name", "for", "i", "in", "inds", ":", "new_name", "+=", "\...
[ 2073, 4 ]
[ 2111, 18 ]
python
en
['en', 'error', 'th']
False
Line.color
(self)
Sets the line color of all intermediate sums and total values. 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 str...
Sets the line color of all intermediate sums and total values. 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 str...
def color(self): """ Sets the line color of all intermediate sums and total values. 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%)')...
[ "def", "color", "(", "self", ")", ":", "return", "self", "[", "\"color\"", "]" ]
[ 15, 4 ]
[ 65, 28 ]
python
en
['en', 'error', 'th']
False
Line.width
(self)
Sets the line width of all intermediate sums and total values. The 'width' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float
Sets the line width of all intermediate sums and total values. The 'width' property is a number and may be specified as: - An int or float in the interval [0, inf]
def width(self): """ Sets the line width of all intermediate sums and total values. The 'width' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float """ return self["width"]
[ "def", "width", "(", "self", ")", ":", "return", "self", "[", "\"width\"", "]" ]
[ 74, 4 ]
[ 85, 28 ]
python
en
['en', 'error', 'th']
False
Line.__init__
(self, arg=None, color=None, width=None, **kwargs)
Construct a new Line object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.waterfall.totals.marker.Line` color Sets the line color of all intermedi...
Construct a new Line object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.waterfall.totals.marker.Line` color Sets the line color of all intermedi...
def __init__(self, arg=None, color=None, width=None, **kwargs): """ Construct a new Line object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.waterfall.totals....
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "color", "=", "None", ",", "width", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", "Line", ",", "self", ")", ".", "__init__", "(", "\"line\"", ")", "if", "\"_parent\"", ...
[ 104, 4 ]
[ 169, 34 ]
python
en
['en', 'error', 'th']
False
should_not_have_any_errors
(filepath: str)
Simple function that acts as a tolerance validator for the term "error" in a given file.
Simple function that acts as a tolerance validator for the term "error" in a given file.
def should_not_have_any_errors(filepath: str) -> bool: """ Simple function that acts as a tolerance validator for the term "error" in a given file. """ if not os.path.isfile(filepath): return True with open(filepath) as f: for l in f: record = json.loads(b64decode(js...
[ "def", "should_not_have_any_errors", "(", "filepath", ":", "str", ")", "->", "bool", ":", "if", "not", "os", ".", "path", ".", "isfile", "(", "filepath", ")", ":", "return", "True", "with", "open", "(", "filepath", ")", "as", "f", ":", "for", "l", "i...
[ 11, 0 ]
[ 26, 15 ]
python
en
['en', 'error', 'th']
False
error_count_should_not_grow
(value: Dict[str, Any] = None)
Go through all the error counts and raise an error when we notice an increase.
Go through all the error counts and raise an error when we notice an increase.
def error_count_should_not_grow(value: Dict[str, Any] = None) -> bool: """ Go through all the error counts and raise an error when we notice an increase. """ if not value["data"]["result"]: return True values = value["data"]["result"][0]["values"] if not values: return True ...
[ "def", "error_count_should_not_grow", "(", "value", ":", "Dict", "[", "str", ",", "Any", "]", "=", "None", ")", "->", "bool", ":", "if", "not", "value", "[", "\"data\"", "]", "[", "\"result\"", "]", ":", "return", "True", "values", "=", "value", "[", ...
[ 29, 0 ]
[ 45, 15 ]
python
en
['en', 'error', 'th']
False
Unselected.marker
(self)
The 'marker' property is an instance of Marker that may be specified as: - An instance of :class:`plotly.graph_objs.choroplethmapbox.unselected.Marker` - A dict of string/value properties that will be passed to the Marker constructor Supported dict prope...
The 'marker' property is an instance of Marker that may be specified as: - An instance of :class:`plotly.graph_objs.choroplethmapbox.unselected.Marker` - A dict of string/value properties that will be passed to the Marker constructor Supported dict prope...
def marker(self): """ The 'marker' property is an instance of Marker that may be specified as: - An instance of :class:`plotly.graph_objs.choroplethmapbox.unselected.Marker` - A dict of string/value properties that will be passed to the Marker constructor ...
[ "def", "marker", "(", "self", ")", ":", "return", "self", "[", "\"marker\"", "]" ]
[ 15, 4 ]
[ 33, 29 ]
python
en
['en', 'error', 'th']
False
Unselected.__init__
(self, arg=None, marker=None, **kwargs)
Construct a new Unselected object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.choroplethmapbox.Unselected` marker :class:`plotly.graph_objects.c...
Construct a new Unselected object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.choroplethmapbox.Unselected` marker :class:`plotly.graph_objects.c...
def __init__(self, arg=None, marker=None, **kwargs): """ Construct a new Unselected object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.choroplethmapbox.Unsel...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "marker", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", "Unselected", ",", "self", ")", ".", "__init__", "(", "\"unselected\"", ")", "if", "\"_parent\"", "in", "kwargs", ":...
[ 49, 4 ]
[ 107, 34 ]
python
en
['en', 'error', 'th']
False
Stream.maxpoints
(self)
Sets the maximum number of points to keep on the plots from an incoming stream. If `maxpoints` is set to 50, only the newest 50 points will be displayed on the plot. The 'maxpoints' property is a number and may be specified as: - An int or float in the interval [0, 10000]...
Sets the maximum number of points to keep on the plots from an incoming stream. If `maxpoints` is set to 50, only the newest 50 points will be displayed on the plot. The 'maxpoints' property is a number and may be specified as: - An int or float in the interval [0, 10000]
def maxpoints(self): """ Sets the maximum number of points to keep on the plots from an incoming stream. If `maxpoints` is set to 50, only the newest 50 points will be displayed on the plot. The 'maxpoints' property is a number and may be specified as: - An int or ...
[ "def", "maxpoints", "(", "self", ")", ":", "return", "self", "[", "\"maxpoints\"", "]" ]
[ 15, 4 ]
[ 28, 32 ]
python
en
['en', 'error', 'th']
False
Stream.token
(self)
The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. The 'token' property is a string and must be specified as: - A non-empty string Returns ------- str
The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. The 'token' property is a string and must be specified as: - A non-empty string
def token(self): """ The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. The 'token' property is a string and must be specified as: - A non-empty string Returns ------- ...
[ "def", "token", "(", "self", ")", ":", "return", "self", "[", "\"token\"", "]" ]
[ 37, 4 ]
[ 50, 28 ]
python
en
['en', 'error', 'th']
False
Stream.__init__
(self, arg=None, maxpoints=None, token=None, **kwargs)
Construct a new Stream object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.barpolar.Stream` maxpoints Sets the maximum number of points to keep o...
Construct a new Stream object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.barpolar.Stream` maxpoints Sets the maximum number of points to keep o...
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.barpolar.St...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "maxpoints", "=", "None", ",", "token", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", "Stream", ",", "self", ")", ".", "__init__", "(", "\"stream\"", ")", "if", "\"_paren...
[ 72, 4 ]
[ 140, 34 ]
python
en
['en', 'error', 'th']
False
Stream.maxpoints
(self)
Sets the maximum number of points to keep on the plots from an incoming stream. If `maxpoints` is set to 50, only the newest 50 points will be displayed on the plot. The 'maxpoints' property is a number and may be specified as: - An int or float in the interval [0, 10000]...
Sets the maximum number of points to keep on the plots from an incoming stream. If `maxpoints` is set to 50, only the newest 50 points will be displayed on the plot. The 'maxpoints' property is a number and may be specified as: - An int or float in the interval [0, 10000]
def maxpoints(self): """ Sets the maximum number of points to keep on the plots from an incoming stream. If `maxpoints` is set to 50, only the newest 50 points will be displayed on the plot. The 'maxpoints' property is a number and may be specified as: - An int or ...
[ "def", "maxpoints", "(", "self", ")", ":", "return", "self", "[", "\"maxpoints\"", "]" ]
[ 15, 4 ]
[ 28, 32 ]
python
en
['en', 'error', 'th']
False
Stream.token
(self)
The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. The 'token' property is a string and must be specified as: - A non-empty string Returns ------- str
The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. The 'token' property is a string and must be specified as: - A non-empty string
def token(self): """ The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. The 'token' property is a string and must be specified as: - A non-empty string Returns ------- ...
[ "def", "token", "(", "self", ")", ":", "return", "self", "[", "\"token\"", "]" ]
[ 37, 4 ]
[ 50, 28 ]
python
en
['en', 'error', 'th']
False
Stream.__init__
(self, arg=None, maxpoints=None, token=None, **kwargs)
Construct a new Stream object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.scattercarpet.Stream` maxpoints Sets the maximum number of points to k...
Construct a new Stream object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.scattercarpet.Stream` maxpoints Sets the maximum number of points to k...
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.scattercarp...
[ "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
convert
(src, dst, depth)
Convert keys in detectron pretrained ResNet models to pytorch style.
Convert keys in detectron pretrained ResNet models to pytorch style.
def convert(src, dst, depth): """Convert keys in detectron pretrained ResNet models to pytorch style.""" # load arch_settings if depth not in arch_settings: raise ValueError('Only support ResNet-50 and ResNet-101 currently') block_nums = arch_settings[depth] # load caffe model caffe_mode...
[ "def", "convert", "(", "src", ",", "dst", ",", "depth", ")", ":", "# load arch_settings", "if", "depth", "not", "in", "arch_settings", ":", "raise", "ValueError", "(", "'Only support ResNet-50 and ResNet-101 currently'", ")", "block_nums", "=", "arch_settings", "[",...
[ 33, 0 ]
[ 68, 31 ]
python
en
['en', 'en', 'en']
True
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.scattergeo.marker.colorbar.Tickfont` - A dict of string/value properties that will be passed to the 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.scattergeo.marker.colorbar.Tickfont` - A dict of string/value properties that will be passed to the 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.scattergeo.marker.colorbar.Tickfont` - A dict of string/value properties that will...
[ "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.scattergeo.marker.colorbar.Tickformatstop - A list or tuple of dicts of string/value properties that will be passed to t...
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.scattergeo.marker.colorbar.Tickformatstop - A list or tuple of dicts of string/value properties that will be passed to t...
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.scattergeo.marker.colorbar.Tickformatstop - A list or tuple of dicts of string/value propertie...
[ "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.scattergeo.mar ker.colorbar.tickformatstopdefaults), sets the default property values to use for elements of scattergeo.marker.colorbar.tickformatstops The 'tickformatstopdefaults' property is an instance of Tickformatstop ...
When used in a template (as layout.template.data.scattergeo.mar ker.colorbar.tickformatstopdefaults), sets the default property values to use for elements of scattergeo.marker.colorbar.tickformatstops The 'tickformatstopdefaults' property is an instance of Tickformatstop ...
def tickformatstopdefaults(self): """ When used in a template (as layout.template.data.scattergeo.mar ker.colorbar.tickformatstopdefaults), sets the default property values to use for elements of scattergeo.marker.colorbar.tickformatstops The 'tickformatstopdefaults'...
[ "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.scattergeo.marker.colorbar.Title` - A dict of string/value properties that will be passed to the Title constructor Supported dict properties...
The 'title' property is an instance of Title that may be specified as: - An instance of :class:`plotly.graph_objs.scattergeo.marker.colorbar.Title` - A dict of string/value properties that will be passed to the Title constructor Supported dict properties...
def title(self): """ The 'title' property is an instance of Title that may be specified as: - An instance of :class:`plotly.graph_objs.scattergeo.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