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
make_accept
(key)
Create an "accept" response for a given key. This dance is expected to somehow magically make WebSockets secure.
Create an "accept" response for a given key.
def make_accept(key): """ Create an "accept" response for a given key. This dance is expected to somehow magically make WebSockets secure. """ guid = "258EAFA5-E914-47DA-95CA-C5AB0DC85B11" return sha1("%s%s" % (key, guid)).digest().encode("base64").strip()
[ "def", "make_accept", "(", "key", ")", ":", "guid", "=", "\"258EAFA5-E914-47DA-95CA-C5AB0DC85B11\"", "return", "sha1", "(", "\"%s%s\"", "%", "(", "key", ",", "guid", ")", ")", ".", "digest", "(", ")", ".", "encode", "(", "\"base64\"", ")", ".", "strip", ...
[ 148, 0 ]
[ 157, 71 ]
python
en
['en', 'error', 'th']
False
make_hybi00_frame
(buf)
Make a HyBi-00 frame from some data. This function does exactly zero checks to make sure that the data is safe and valid text without any 0xff bytes.
Make a HyBi-00 frame from some data.
def make_hybi00_frame(buf): """ Make a HyBi-00 frame from some data. This function does exactly zero checks to make sure that the data is safe and valid text without any 0xff bytes. """ return "\x00%s\xff" % buf
[ "def", "make_hybi00_frame", "(", "buf", ")", ":", "return", "\"\\x00%s\\xff\"", "%", "buf" ]
[ 164, 0 ]
[ 172, 29 ]
python
en
['en', 'error', 'th']
False
parse_hybi00_frames
(buf)
Parse HyBi-00 frames, returning unwrapped frames and any unmatched data. This function does not care about garbage data on the wire between frames, and will actively ignore it.
Parse HyBi-00 frames, returning unwrapped frames and any unmatched data.
def parse_hybi00_frames(buf): """ Parse HyBi-00 frames, returning unwrapped frames and any unmatched data. This function does not care about garbage data on the wire between frames, and will actively ignore it. """ start = buf.find("\x00") tail = 0 frames = [] while start != -1: ...
[ "def", "parse_hybi00_frames", "(", "buf", ")", ":", "start", "=", "buf", ".", "find", "(", "\"\\x00\"", ")", "tail", "=", "0", "frames", "=", "[", "]", "while", "start", "!=", "-", "1", ":", "end", "=", "buf", ".", "find", "(", "\"\\xff\"", ",", ...
[ 175, 0 ]
[ 201, 22 ]
python
en
['en', 'error', 'th']
False
mask
(buf, key)
Mask or unmask a buffer of bytes with a masking key. The key must be exactly four bytes long.
Mask or unmask a buffer of bytes with a masking key.
def mask(buf, key): """ Mask or unmask a buffer of bytes with a masking key. The key must be exactly four bytes long. """ # This is super-secure, I promise~ key = [ord(i) for i in key] buf = list(buf) for i, char in enumerate(buf): buf[i] = chr(ord(char) ^ key[i % 4]) retur...
[ "def", "mask", "(", "buf", ",", "key", ")", ":", "# This is super-secure, I promise~", "key", "=", "[", "ord", "(", "i", ")", "for", "i", "in", "key", "]", "buf", "=", "list", "(", "buf", ")", "for", "i", ",", "char", "in", "enumerate", "(", "buf",...
[ 204, 0 ]
[ 216, 23 ]
python
en
['en', 'error', 'th']
False
make_hybi07_frame
(buf, opcode=0x1)
Make a HyBi-07 frame. This function always creates unmasked frames, and attempts to use the smallest possible lengths.
Make a HyBi-07 frame.
def make_hybi07_frame(buf, opcode=0x1): """ Make a HyBi-07 frame. This function always creates unmasked frames, and attempts to use the smallest possible lengths. """ if len(buf) > 0xffff: length = "\x7f%s" % pack(">Q", len(buf)) elif len(buf) > 0x7d: length = "\x7e%s" % pa...
[ "def", "make_hybi07_frame", "(", "buf", ",", "opcode", "=", "0x1", ")", ":", "if", "len", "(", "buf", ")", ">", "0xffff", ":", "length", "=", "\"\\x7f%s\"", "%", "pack", "(", "\">Q\"", ",", "len", "(", "buf", ")", ")", "elif", "len", "(", "buf", ...
[ 219, 0 ]
[ 237, 16 ]
python
en
['en', 'error', 'th']
False
make_hybi07_frame_dwim
(buf)
Make a HyBi-07 frame with binary or text data according to the type of buf.
Make a HyBi-07 frame with binary or text data according to the type of buf.
def make_hybi07_frame_dwim(buf): """ Make a HyBi-07 frame with binary or text data according to the type of buf. """ # TODO: eliminate magic numbers. if isinstance(buf, str): return make_hybi07_frame(buf, opcode=0x2) elif isinstance(buf, unicode): return make_hybi07_frame(buf.en...
[ "def", "make_hybi07_frame_dwim", "(", "buf", ")", ":", "# TODO: eliminate magic numbers.", "if", "isinstance", "(", "buf", ",", "str", ")", ":", "return", "make_hybi07_frame", "(", "buf", ",", "opcode", "=", "0x2", ")", "elif", "isinstance", "(", "buf", ",", ...
[ 240, 0 ]
[ 251, 91 ]
python
en
['en', 'error', 'th']
False
parse_hybi07_frames
(buf)
Parse HyBi-07 frames in a highly compliant manner.
Parse HyBi-07 frames in a highly compliant manner.
def parse_hybi07_frames(buf): """ Parse HyBi-07 frames in a highly compliant manner. """ start = 0 frames = [] while True: # If there's not at least two bytes in the buffer, bail. if len(buf) - start < 2: break # Grab the header. This single byte holds some...
[ "def", "parse_hybi07_frames", "(", "buf", ")", ":", "start", "=", "0", "frames", "=", "[", "]", "while", "True", ":", "# If there's not at least two bytes in the buffer, bail.", "if", "len", "(", "buf", ")", "-", "start", "<", "2", ":", "break", "# Grab the he...
[ 254, 0 ]
[ 342, 30 ]
python
en
['en', 'error', 'th']
False
WebSocketProtocol.setBinaryMode
(self, mode)
If True, send str as binary and unicode as text. Defaults to false for backwards compatibility.
If True, send str as binary and unicode as text.
def setBinaryMode(self, mode): """ If True, send str as binary and unicode as text. Defaults to false for backwards compatibility. """ self.do_binary_frames = bool(mode)
[ "def", "setBinaryMode", "(", "self", ",", "mode", ")", ":", "self", ".", "do_binary_frames", "=", "bool", "(", "mode", ")" ]
[ 364, 4 ]
[ 370, 42 ]
python
en
['en', 'error', 'th']
False
WebSocketProtocol.isSecure
(self)
Borrowed technique for determining whether this connection is over SSL/TLS.
Borrowed technique for determining whether this connection is over SSL/TLS.
def isSecure(self): """ Borrowed technique for determining whether this connection is over SSL/TLS. """ return ISSLTransport(self.transport, None) is not None
[ "def", "isSecure", "(", "self", ")", ":", "return", "ISSLTransport", "(", "self", ".", "transport", ",", "None", ")", "is", "not", "None" ]
[ 372, 4 ]
[ 378, 62 ]
python
en
['en', 'error', 'th']
False
WebSocketProtocol.sendCommonPreamble
(self)
Send the preamble common to all WebSockets connections. This might go away in the future if WebSockets continue to diverge.
Send the preamble common to all WebSockets connections.
def sendCommonPreamble(self): """ Send the preamble common to all WebSockets connections. This might go away in the future if WebSockets continue to diverge. """ self.transport.writeSequence([ "HTTP/1.1 101 FYI I am not a webserver\r\n", "Server: Twisted...
[ "def", "sendCommonPreamble", "(", "self", ")", ":", "self", ".", "transport", ".", "writeSequence", "(", "[", "\"HTTP/1.1 101 FYI I am not a webserver\\r\\n\"", ",", "\"Server: TwistedWebSocketWrapper/1.0\\r\\n\"", ",", "\"Date: %s\\r\\n\"", "%", "datetimeToString", "(", ")...
[ 380, 4 ]
[ 393, 10 ]
python
en
['en', 'error', 'th']
False
WebSocketProtocol.sendHyBi00Preamble
(self)
Send a HyBi-00 preamble.
Send a HyBi-00 preamble.
def sendHyBi00Preamble(self): """ Send a HyBi-00 preamble. """ protocol = "wss" if self.isSecure() else "ws" self.sendCommonPreamble() self.transport.writeSequence([ "Sec-WebSocket-Origin: %s\r\n" % self.origin, "Sec-WebSocket-Location: %s://%s%...
[ "def", "sendHyBi00Preamble", "(", "self", ")", ":", "protocol", "=", "\"wss\"", "if", "self", ".", "isSecure", "(", ")", "else", "\"ws\"", "self", ".", "sendCommonPreamble", "(", ")", "self", ".", "transport", ".", "writeSequence", "(", "[", "\"Sec-WebSocket...
[ 395, 4 ]
[ 411, 10 ]
python
en
['en', 'error', 'th']
False
WebSocketProtocol.sendHyBi07Preamble
(self)
Send a HyBi-07 preamble.
Send a HyBi-07 preamble.
def sendHyBi07Preamble(self): """ Send a HyBi-07 preamble. """ self.sendCommonPreamble() challenge = self.headers["Sec-WebSocket-Key"] response = make_accept(challenge) self.transport.write("Sec-WebSocket-Accept: %s\r\n\r\n" % response)
[ "def", "sendHyBi07Preamble", "(", "self", ")", ":", "self", ".", "sendCommonPreamble", "(", ")", "challenge", "=", "self", ".", "headers", "[", "\"Sec-WebSocket-Key\"", "]", "response", "=", "make_accept", "(", "challenge", ")", "self", ".", "transport", ".", ...
[ 413, 4 ]
[ 422, 75 ]
python
en
['en', 'error', 'th']
False
WebSocketProtocol.parseFrames
(self)
Find frames in incoming data and pass them to the underlying protocol.
Find frames in incoming data and pass them to the underlying protocol.
def parseFrames(self): """ Find frames in incoming data and pass them to the underlying protocol. """ if self.flavor == HYBI00: parser = parse_hybi00_frames elif self.flavor in (HYBI07, HYBI10, RFC6455): parser = parse_hybi07_frames else: ...
[ "def", "parseFrames", "(", "self", ")", ":", "if", "self", ".", "flavor", "==", "HYBI00", ":", "parser", "=", "parse_hybi00_frames", "elif", "self", ".", "flavor", "in", "(", "HYBI07", ",", "HYBI10", ",", "RFC6455", ")", ":", "parser", "=", "parse_hybi07...
[ 424, 4 ]
[ 457, 28 ]
python
en
['en', 'error', 'th']
False
WebSocketProtocol.sendFrames
(self)
Send all pending frames.
Send all pending frames.
def sendFrames(self): """ Send all pending frames. """ if self.state != FRAMES: return if self.flavor == HYBI00: maker = make_hybi00_frame elif self.flavor in (HYBI07, HYBI10, RFC6455): if self.do_binary_frames: maker ...
[ "def", "sendFrames", "(", "self", ")", ":", "if", "self", ".", "state", "!=", "FRAMES", ":", "return", "if", "self", ".", "flavor", "==", "HYBI00", ":", "maker", "=", "make_hybi00_frame", "elif", "self", ".", "flavor", "in", "(", "HYBI07", ",", "HYBI10...
[ 459, 4 ]
[ 483, 32 ]
python
en
['en', 'error', 'th']
False
WebSocketProtocol.validateHeaders
(self)
Check received headers for sanity and correctness, and stash any data from them which will be required later.
Check received headers for sanity and correctness, and stash any data from them which will be required later.
def validateHeaders(self): """ Check received headers for sanity and correctness, and stash any data from them which will be required later. """ # Obvious but necessary. if not is_websocket(self.headers): log.msg("Not handling non-WS request") ret...
[ "def", "validateHeaders", "(", "self", ")", ":", "# Obvious but necessary.", "if", "not", "is_websocket", "(", "self", ".", "headers", ")", ":", "log", ".", "msg", "(", "\"Not handling non-WS request\"", ")", "return", "False", "# Stash host and origin for those brows...
[ 485, 4 ]
[ 555, 19 ]
python
en
['en', 'error', 'th']
False
WebSocketProtocol.write
(self, data)
Write to the transport. This method will only be called by the underlying protocol.
Write to the transport.
def write(self, data): """ Write to the transport. This method will only be called by the underlying protocol. """ self.pending_frames.append(data) self.sendFrames()
[ "def", "write", "(", "self", ",", "data", ")", ":", "self", ".", "pending_frames", ".", "append", "(", "data", ")", "self", ".", "sendFrames", "(", ")" ]
[ 615, 4 ]
[ 623, 25 ]
python
en
['en', 'error', 'th']
False
WebSocketProtocol.writeSequence
(self, data)
Write a sequence of data to the transport. This method will only be called by the underlying protocol.
Write a sequence of data to the transport.
def writeSequence(self, data): """ Write a sequence of data to the transport. This method will only be called by the underlying protocol. """ self.pending_frames.extend(data) self.sendFrames()
[ "def", "writeSequence", "(", "self", ",", "data", ")", ":", "self", ".", "pending_frames", ".", "extend", "(", "data", ")", "self", ".", "sendFrames", "(", ")" ]
[ 625, 4 ]
[ 633, 25 ]
python
en
['en', 'error', 'th']
False
WebSocketProtocol.close
(self, reason="")
Close the connection. This includes telling the other side we're closing the connection. If the other side didn't signal that the connection is being closed, then we might not see their last message, but since their last message should, according to the spec, be a simple ackno...
Close the connection.
def close(self, reason=""): """ Close the connection. This includes telling the other side we're closing the connection. If the other side didn't signal that the connection is being closed, then we might not see their last message, but since their last message should, a...
[ "def", "close", "(", "self", ",", "reason", "=", "\"\"", ")", ":", "# Send a closing frame. It's only polite. (And might keep the browser", "# from hanging.)", "if", "self", ".", "flavor", "in", "(", "HYBI07", ",", "HYBI10", ",", "RFC6455", ")", ":", "frame", "=",...
[ 635, 4 ]
[ 653, 29 ]
python
en
['en', 'error', 'th']
False
Hoverlabel.align
(self)
Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines The 'align' property is an enumeration that may be specified as: - One of the following enumeration values: ['...
Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines The 'align' property is an enumeration that may be specified as: - One of the following enumeration values: ['...
def align(self): """ Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines The 'align' property is an enumeration that may be specified as: - One of the following enumeratio...
[ "def", "align", "(", "self", ")", ":", "return", "self", "[", "\"align\"", "]" ]
[ 25, 4 ]
[ 40, 28 ]
python
en
['en', 'error', 'th']
False
Hoverlabel.alignsrc
(self)
Sets the source reference on Chart Studio Cloud for align . The 'alignsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str
Sets the source reference on Chart Studio Cloud for align . The 'alignsrc' property must be specified as a string or as a plotly.grid_objs.Column object
def alignsrc(self): """ Sets the source reference on Chart Studio Cloud for align . The 'alignsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["alignsrc"]
[ "def", "alignsrc", "(", "self", ")", ":", "return", "self", "[", "\"alignsrc\"", "]" ]
[ 49, 4 ]
[ 60, 31 ]
python
en
['en', 'error', 'th']
False
Hoverlabel.bgcolor
(self)
Sets the background color of the hover labels for this trace The 'bgcolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva str...
Sets the background color of the hover labels for this trace The 'bgcolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva str...
def bgcolor(self): """ Sets the background color of the hover labels for this trace The 'bgcolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)...
[ "def", "bgcolor", "(", "self", ")", ":", "return", "self", "[", "\"bgcolor\"", "]" ]
[ 69, 4 ]
[ 120, 30 ]
python
en
['en', 'error', 'th']
False
Hoverlabel.bgcolorsrc
(self)
Sets the source reference on Chart Studio Cloud for bgcolor . The 'bgcolorsrc' 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 bgcolor . The 'bgcolorsrc' property must be specified as a string or as a plotly.grid_objs.Column object
def bgcolorsrc(self): """ Sets the source reference on Chart Studio Cloud for bgcolor . The 'bgcolorsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["bgcolorsrc"]
[ "def", "bgcolorsrc", "(", "self", ")", ":", "return", "self", "[", "\"bgcolorsrc\"", "]" ]
[ 129, 4 ]
[ 140, 33 ]
python
en
['en', 'error', 'th']
False
Hoverlabel.bordercolor
(self)
Sets the border color of the hover labels for this trace. 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 st...
Sets the border color of the hover labels for this trace. 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 st...
def bordercolor(self): """ Sets the border color of the hover labels for this trace. 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%...
[ "def", "bordercolor", "(", "self", ")", ":", "return", "self", "[", "\"bordercolor\"", "]" ]
[ 149, 4 ]
[ 200, 34 ]
python
en
['en', 'error', 'th']
False
Hoverlabel.bordercolorsrc
(self)
Sets the source reference on Chart Studio Cloud for bordercolor . The 'bordercolorsrc' 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 bordercolor . The 'bordercolorsrc' property must be specified as a string or as a plotly.grid_objs.Column object
def bordercolorsrc(self): """ Sets the source reference on Chart Studio Cloud for bordercolor . The 'bordercolorsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["bo...
[ "def", "bordercolorsrc", "(", "self", ")", ":", "return", "self", "[", "\"bordercolorsrc\"", "]" ]
[ 209, 4 ]
[ 221, 37 ]
python
en
['en', 'error', 'th']
False
Hoverlabel.font
(self)
Sets the font used in hover labels. The 'font' property is an instance of Font that may be specified as: - An instance of :class:`plotly.graph_objs.scatter3d.hoverlabel.Font` - A dict of string/value properties that will be passed to the Font constructor ...
Sets the font used in hover labels. The 'font' property is an instance of Font that may be specified as: - An instance of :class:`plotly.graph_objs.scatter3d.hoverlabel.Font` - A dict of string/value properties that will be passed to the Font constructor ...
def font(self): """ Sets the font used in hover labels. The 'font' property is an instance of Font that may be specified as: - An instance of :class:`plotly.graph_objs.scatter3d.hoverlabel.Font` - A dict of string/value properties that will be passed ...
[ "def", "font", "(", "self", ")", ":", "return", "self", "[", "\"font\"", "]" ]
[ 230, 4 ]
[ 277, 27 ]
python
en
['en', 'error', 'th']
False
Hoverlabel.namelength
(self)
Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it...
Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it...
def namelength(self): """ Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than ...
[ "def", "namelength", "(", "self", ")", ":", "return", "self", "[", "\"namelength\"", "]" ]
[ 286, 4 ]
[ 304, 33 ]
python
en
['en', 'error', 'th']
False
Hoverlabel.namelengthsrc
(self)
Sets the source reference on Chart Studio Cloud for namelength . The 'namelengthsrc' 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 namelength . The 'namelengthsrc' property must be specified as a string or as a plotly.grid_objs.Column object
def namelengthsrc(self): """ Sets the source reference on Chart Studio Cloud for namelength . The 'namelengthsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["name...
[ "def", "namelengthsrc", "(", "self", ")", ":", "return", "self", "[", "\"namelengthsrc\"", "]" ]
[ 313, 4 ]
[ 325, 36 ]
python
en
['en', 'error', 'th']
False
Hoverlabel.__init__
( self, arg=None, align=None, alignsrc=None, bgcolor=None, bgcolorsrc=None, bordercolor=None, bordercolorsrc=None, font=None, namelength=None, namelengthsrc=None, **kwargs )
Construct a new Hoverlabel object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.scatter3d.Hoverlabel` align Sets the horizontal alignment of the t...
Construct a new Hoverlabel object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.scatter3d.Hoverlabel` align Sets the horizontal alignment of the t...
def __init__( self, arg=None, align=None, alignsrc=None, bgcolor=None, bgcolorsrc=None, bordercolor=None, bordercolorsrc=None, font=None, namelength=None, namelengthsrc=None, **kwargs ): """ Construct a n...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "align", "=", "None", ",", "alignsrc", "=", "None", ",", "bgcolor", "=", "None", ",", "bgcolorsrc", "=", "None", ",", "bordercolor", "=", "None", ",", "bordercolorsrc", "=", "None", ",", "...
[ 370, 4 ]
[ 502, 34 ]
python
en
['en', 'error', 'th']
False
Tickformatstop.dtickrange
(self)
range [*min*, *max*], where "min", "max" - dtick values which describe some zoom level, it is possible to omit "min" or "max" value by passing "null" The 'dtickrange' property is an info array that may be specified as: * a list or tuple of 2 elements where: (0) The...
range [*min*, *max*], where "min", "max" - dtick values which describe some zoom level, it is possible to omit "min" or "max" value by passing "null" The 'dtickrange' property is an info array that may be specified as: * a list or tuple of 2 elements where: (0) The...
def dtickrange(self): """ range [*min*, *max*], where "min", "max" - dtick values which describe some zoom level, it is possible to omit "min" or "max" value by passing "null" The 'dtickrange' property is an info array that may be specified as: * a list or tuple...
[ "def", "dtickrange", "(", "self", ")", ":", "return", "self", "[", "\"dtickrange\"", "]" ]
[ 15, 4 ]
[ 31, 33 ]
python
en
['en', 'error', 'th']
False
Tickformatstop.enabled
(self)
Determines whether or not this stop is used. If `false`, this stop is ignored even within its `dtickrange`. The 'enabled' property must be specified as a bool (either True, or False) Returns ------- bool
Determines whether or not this stop is used. If `false`, this stop is ignored even within its `dtickrange`. The 'enabled' property must be specified as a bool (either True, or False)
def enabled(self): """ Determines whether or not this stop is used. If `false`, this stop is ignored even within its `dtickrange`. The 'enabled' property must be specified as a bool (either True, or False) Returns ------- bool """ ret...
[ "def", "enabled", "(", "self", ")", ":", "return", "self", "[", "\"enabled\"", "]" ]
[ 40, 4 ]
[ 52, 30 ]
python
en
['en', 'error', 'th']
False
Tickformatstop.name
(self)
When used in a template, named items are created in the output figure in addition to any items the figure already has in this array. You can modify these items in the output figure by making your own item with `templateitemname` matching this `name` alongside your modifications ...
When used in a template, named items are created in the output figure in addition to any items the figure already has in this array. You can modify these items in the output figure by making your own item with `templateitemname` matching this `name` alongside your modifications ...
def name(self): """ When used in a template, named items are created in the output figure in addition to any items the figure already has in this array. You can modify these items in the output figure by making your own item with `templateitemname` matching this `name` al...
[ "def", "name", "(", "self", ")", ":", "return", "self", "[", "\"name\"", "]" ]
[ 61, 4 ]
[ 79, 27 ]
python
en
['en', 'error', 'th']
False
Tickformatstop.templateitemname
(self)
Used to refer to a named item in this array in the template. Named items from the template will be created even without a matching item in the input figure, but you can modify one by making an item with `templateitemname` matching its `name`, alongside your modifications (includ...
Used to refer to a named item in this array in the template. Named items from the template will be created even without a matching item in the input figure, but you can modify one by making an item with `templateitemname` matching its `name`, alongside your modifications (includ...
def templateitemname(self): """ Used to refer to a named item in this array in the template. Named items from the template will be created even without a matching item in the input figure, but you can modify one by making an item with `templateitemname` matching its `name`, ...
[ "def", "templateitemname", "(", "self", ")", ":", "return", "self", "[", "\"templateitemname\"", "]" ]
[ 88, 4 ]
[ 107, 39 ]
python
en
['en', 'error', 'th']
False
Tickformatstop.value
(self)
string - dtickformat for described zoom level, the same as "tickformat" The 'value' property is a string and must be specified as: - A string - A number that will be converted to a string Returns ------- str
string - dtickformat for described zoom level, the same as "tickformat" The 'value' property is a string and must be specified as: - A string - A number that will be converted to a string
def value(self): """ string - dtickformat for described zoom level, the same as "tickformat" The 'value' property is a string and must be specified as: - A string - A number that will be converted to a string Returns ------- str "...
[ "def", "value", "(", "self", ")", ":", "return", "self", "[", "\"value\"", "]" ]
[ 116, 4 ]
[ 129, 28 ]
python
en
['en', 'error', 'th']
False
Tickformatstop.__init__
( self, arg=None, dtickrange=None, enabled=None, name=None, templateitemname=None, value=None, **kwargs )
Construct a new Tickformatstop object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.sunburst.marke r.colorbar.Tickformatstop` dtickrange range [*m...
Construct a new Tickformatstop object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.sunburst.marke r.colorbar.Tickformatstop` dtickrange range [*m...
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
Tickfont.color
(self)
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%)') - A named CSS color: ...
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%)') - A named CSS color: ...
def color(self): """ 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%)') - A name...
[ "def", "color", "(", "self", ")", ":", "return", "self", "[", "\"color\"", "]" ]
[ 15, 4 ]
[ 63, 28 ]
python
en
['en', 'error', 'th']
False
Tickfont.family
(self)
HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts ...
HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts ...
def family(self): """ HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the prefer...
[ "def", "family", "(", "self", ")", ":", "return", "self", "[", "\"family\"", "]" ]
[ 72, 4 ]
[ 94, 29 ]
python
en
['en', 'error', 'th']
False
Tickfont.size
(self)
The 'size' property is a number and may be specified as: - An int or float in the interval [1, inf] Returns ------- int|float
The 'size' property is a number and may be specified as: - An int or float in the interval [1, inf]
def size(self): """ The 'size' property is a number and may be specified as: - An int or float in the interval [1, inf] Returns ------- int|float """ return self["size"]
[ "def", "size", "(", "self", ")", ":", "return", "self", "[", "\"size\"", "]" ]
[ 103, 4 ]
[ 112, 27 ]
python
en
['en', 'error', 'th']
False
Tickfont.__init__
(self, arg=None, color=None, family=None, size=None, **kwargs)
Construct a new Tickfont object Sets the tick font. Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.layout.polar.a ngularaxis.Tickfont` color ...
Construct a new Tickfont object Sets the tick font.
def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): """ Construct a new Tickfont object Sets the tick font. Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`pl...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "color", "=", "None", ",", "family", "=", "None", ",", "size", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", "Tickfont", ",", "self", ")", ".", "__init__", "(", "\"tick...
[ 143, 4 ]
[ 226, 34 ]
python
en
['en', 'error', 'th']
False
write_source_py
(py_source, filepath, leading_newlines=0)
Format Python source code and write to a file, creating parent directories as needed. Parameters ---------- py_source : str String containing valid Python source code. If string is empty, no file will be written. filepath : str Full path to the file to be written Re...
Format Python source code and write to a file, creating parent directories as needed.
def write_source_py(py_source, filepath, leading_newlines=0): """ Format Python source code and write to a file, creating parent directories as needed. Parameters ---------- py_source : str String containing valid Python source code. If string is empty, no file will be written. ...
[ "def", "write_source_py", "(", "py_source", ",", "filepath", ",", "leading_newlines", "=", "0", ")", ":", "if", "py_source", ":", "# Make dir if needed", "# ------------------", "filedir", "=", "opath", ".", "dirname", "(", "filepath", ")", "# The exist_ok kwarg is ...
[ 13, 0 ]
[ 41, 30 ]
python
en
['en', 'error', 'th']
False
build_from_imports_py
(rel_modules=(), rel_classes=(), init_extra="")
Build a string containing a series of `from X import Y` lines Parameters ---------- rel_modules: list of str list of submodules to import, of the form .submodule rel_classes: list of str list of submodule classes/variables to import, of the form ._submodule.Foo init_extra: str ...
Build a string containing a series of `from X import Y` lines
def build_from_imports_py(rel_modules=(), rel_classes=(), init_extra=""): """ Build a string containing a series of `from X import Y` lines Parameters ---------- rel_modules: list of str list of submodules to import, of the form .submodule rel_classes: list of str list of submod...
[ "def", "build_from_imports_py", "(", "rel_modules", "=", "(", ")", ",", "rel_classes", "=", "(", ")", ",", "init_extra", "=", "\"\"", ")", ":", "rel_modules", "=", "list", "(", "rel_modules", ")", "rel_classes", "=", "list", "(", "rel_classes", ")", "impor...
[ 44, 0 ]
[ 89, 17 ]
python
en
['en', 'error', 'th']
False
write_init_py
(pkg_root, path_parts, rel_modules=(), rel_classes=(), init_extra="")
Build __init__.py source code and write to a file Parameters ---------- pkg_root : str Root package in which the top-level an __init__.py file with empty path_parts should reside path_parts : tuple of str Tuple of sub-packages under pkg_root where the __init__.py fi...
Build __init__.py source code and write to a file
def write_init_py(pkg_root, path_parts, rel_modules=(), rel_classes=(), init_extra=""): """ Build __init__.py source code and write to a file Parameters ---------- pkg_root : str Root package in which the top-level an __init__.py file with empty path_parts should reside path_par...
[ "def", "write_init_py", "(", "pkg_root", ",", "path_parts", ",", "rel_modules", "=", "(", ")", ",", "rel_classes", "=", "(", ")", ",", "init_extra", "=", "\"\"", ")", ":", "# Generate source code", "# --------------------", "init_source", "=", "build_from_imports_...
[ 92, 0 ]
[ 121, 42 ]
python
en
['en', 'error', 'th']
False
PlotlyNode.__init__
(self, plotly_schema, node_path=(), parent=None)
Superclass constructor for all node types Parameters ---------- plotly_schema : dict JSON-parsed version of the default-schema.xml file node_path : str or tuple Path of from the 'root' node for the current trace type to the particular node th...
Superclass constructor for all node types
def __init__(self, plotly_schema, node_path=(), parent=None): """ Superclass constructor for all node types Parameters ---------- plotly_schema : dict JSON-parsed version of the default-schema.xml file node_path : str or tuple Path of from the 'ro...
[ "def", "__init__", "(", "self", ",", "plotly_schema", ",", "node_path", "=", "(", ")", ",", "parent", "=", "None", ")", ":", "# Save params", "# -----------", "self", ".", "plotly_schema", "=", "plotly_schema", "self", ".", "_parent", "=", "parent", "# ### P...
[ 235, 4 ]
[ 281, 31 ]
python
en
['en', 'error', 'th']
False
PlotlyNode.node_data
(self)
Dictionary of the subtree of the plotly_schema that this node represents Returns ------- dict
Dictionary of the subtree of the plotly_schema that this node represents
def node_data(self): """ Dictionary of the subtree of the plotly_schema that this node represents Returns ------- dict """ raise NotImplementedError()
[ "def", "node_data", "(", "self", ")", ":", "raise", "NotImplementedError", "(", ")" ]
[ 291, 4 ]
[ 300, 35 ]
python
en
['en', 'error', 'th']
False
PlotlyNode.description
(self)
Description of the node Returns ------- str or None
Description of the node
def description(self): """ Description of the node Returns ------- str or None """ raise NotImplementedError()
[ "def", "description", "(", "self", ")", ":", "raise", "NotImplementedError", "(", ")" ]
[ 303, 4 ]
[ 311, 35 ]
python
en
['en', 'error', 'th']
False
PlotlyNode.name_base_datatype
(self)
Superclass to use when generating a datatype class for this node Returns ------- str
Superclass to use when generating a datatype class for this node
def name_base_datatype(self): """ Superclass to use when generating a datatype class for this node Returns ------- str """ raise NotImplementedError
[ "def", "name_base_datatype", "(", "self", ")", ":", "raise", "NotImplementedError" ]
[ 314, 4 ]
[ 322, 33 ]
python
en
['en', 'error', 'th']
False
PlotlyNode.root_name
(self)
Name of the node with empty node_path Returns ------- str
Name of the node with empty node_path
def root_name(self): """ Name of the node with empty node_path Returns ------- str """ raise NotImplementedError()
[ "def", "root_name", "(", "self", ")", ":", "raise", "NotImplementedError", "(", ")" ]
[ 327, 4 ]
[ 335, 35 ]
python
en
['en', 'error', 'th']
False
PlotlyNode.plotly_name
(self)
Name of the node. Either the base_name or the name directly out of the plotly_schema Returns ------- str
Name of the node. Either the base_name or the name directly out of the plotly_schema
def plotly_name(self): """ Name of the node. Either the base_name or the name directly out of the plotly_schema Returns ------- str """ if len(self.node_path) == 0: return self.root_name else: return self.node_path[-1]
[ "def", "plotly_name", "(", "self", ")", ":", "if", "len", "(", "self", ".", "node_path", ")", "==", "0", ":", "return", "self", ".", "root_name", "else", ":", "return", "self", ".", "node_path", "[", "-", "1", "]" ]
[ 338, 4 ]
[ 350, 37 ]
python
en
['en', 'error', 'th']
False
PlotlyNode.name_datatype_class
(self)
Name of the Python datatype class representing this node Returns ------- str
Name of the Python datatype class representing this node
def name_datatype_class(self): """ Name of the Python datatype class representing this node Returns ------- str """ if self.plotly_name in OBJECT_NAME_TO_CLASS_NAME: return OBJECT_NAME_TO_CLASS_NAME[self.plotly_name] else: return s...
[ "def", "name_datatype_class", "(", "self", ")", ":", "if", "self", ".", "plotly_name", "in", "OBJECT_NAME_TO_CLASS_NAME", ":", "return", "OBJECT_NAME_TO_CLASS_NAME", "[", "self", ".", "plotly_name", "]", "else", ":", "return", "self", ".", "plotly_name", ".", "t...
[ 353, 4 ]
[ 364, 60 ]
python
en
['en', 'error', 'th']
False
PlotlyNode.name_undercase
(self)
Name of node converted to undercase (all lowercase with underscores separating words) Returns ------- str
Name of node converted to undercase (all lowercase with underscores separating words)
def name_undercase(self): """ Name of node converted to undercase (all lowercase with underscores separating words) Returns ------- str """ if not self.plotly_name: # Empty plotly_name return self.plotly_name # Lowercase l...
[ "def", "name_undercase", "(", "self", ")", ":", "if", "not", "self", ".", "plotly_name", ":", "# Empty plotly_name", "return", "self", ".", "plotly_name", "# Lowercase leading char", "# ----------------------", "name1", "=", "self", ".", "plotly_name", "[", "0", "...
[ 367, 4 ]
[ 388, 20 ]
python
en
['en', 'error', 'th']
False
PlotlyNode.name_property
(self)
Name of the Python property corresponding to this node. This is the same as `name_undercase` for compound nodes, but an 's' is appended to the name for array nodes Returns ------- str
Name of the Python property corresponding to this node. This is the same as `name_undercase` for compound nodes, but an 's' is appended to the name for array nodes
def name_property(self): """ Name of the Python property corresponding to this node. This is the same as `name_undercase` for compound nodes, but an 's' is appended to the name for array nodes Returns ------- str """ return self.plotly_name + ( ...
[ "def", "name_property", "(", "self", ")", ":", "return", "self", ".", "plotly_name", "+", "(", "\"s\"", "if", "self", ".", "is_array_element", "and", "# Don't add 's' to layout.template.data.scatter etc.", "not", "(", "self", ".", "parent", "and", "self", ".", "...
[ 391, 4 ]
[ 413, 9 ]
python
en
['en', 'error', 'th']
False
PlotlyNode.name_validator_class
(self)
Name of the Python validator class representing this node Returns ------- str
Name of the Python validator class representing this node
def name_validator_class(self) -> str: """ Name of the Python validator class representing this node Returns ------- str """ return self.name_property.title() + "Validator"
[ "def", "name_validator_class", "(", "self", ")", "->", "str", ":", "return", "self", ".", "name_property", ".", "title", "(", ")", "+", "\"Validator\"" ]
[ 416, 4 ]
[ 424, 55 ]
python
en
['en', 'error', 'th']
False
PlotlyNode.name_base_validator
(self)
Superclass to use when generating a validator class for this node Returns ------- str
Superclass to use when generating a validator class for this node
def name_base_validator(self) -> str: """ Superclass to use when generating a validator class for this node Returns ------- str """ if self.path_str in CUSTOM_VALIDATOR_DATATYPES: validator_base = f"{CUSTOM_VALIDATOR_DATATYPES[self.path_str]}" ...
[ "def", "name_base_validator", "(", "self", ")", "->", "str", ":", "if", "self", ".", "path_str", "in", "CUSTOM_VALIDATOR_DATATYPES", ":", "validator_base", "=", "f\"{CUSTOM_VALIDATOR_DATATYPES[self.path_str]}\"", "elif", "self", ".", "plotly_name", ".", "endswith", "(...
[ 427, 4 ]
[ 447, 29 ]
python
en
['en', 'error', 'th']
False
PlotlyNode.get_validator_params
(self)
Get kwargs to pass to the constructor of this node's validator superclass. Returns ------- dict The keys are strings matching the names of the constructor params of this node's validator superclass. The values are repr-strings of the values t...
Get kwargs to pass to the constructor of this node's validator superclass.
def get_validator_params(self): """ Get kwargs to pass to the constructor of this node's validator superclass. Returns ------- dict The keys are strings matching the names of the constructor params of this node's validator superclass. The values a...
[ "def", "get_validator_params", "(", "self", ")", ":", "params", "=", "{", "\"plotly_name\"", ":", "repr", "(", "self", ".", "name_property", ")", ",", "\"parent_name\"", ":", "repr", "(", "self", ".", "parent_path_str", ")", ",", "}", "if", "self", ".", ...
[ 451, 4 ]
[ 509, 21 ]
python
en
['en', 'error', 'th']
False
PlotlyNode.get_validator_instance
(self)
Return a constructed validator for this node Returns ------- BaseValidator
Return a constructed validator for this node
def get_validator_instance(self): """ Return a constructed validator for this node Returns ------- BaseValidator """ # Evaluate validator params to convert repr strings into values # e.g. '2' -> 2 params = { prop: eval(repr_val) ...
[ "def", "get_validator_instance", "(", "self", ")", ":", "# Evaluate validator params to convert repr strings into values", "# e.g. '2' -> 2", "params", "=", "{", "prop", ":", "eval", "(", "repr_val", ")", "for", "prop", ",", "repr_val", "in", "self", ".", "get_validat...
[ 511, 4 ]
[ 538, 44 ]
python
en
['en', 'error', 'th']
False
PlotlyNode.datatype
(self)
Datatype string for this node. One of 'compound_array', 'compound', 'literal', or the value of the 'valType' attribute Returns ------- str
Datatype string for this node. One of 'compound_array', 'compound', 'literal', or the value of the 'valType' attribute
def datatype(self) -> str: """ Datatype string for this node. One of 'compound_array', 'compound', 'literal', or the value of the 'valType' attribute Returns ------- str """ if self.is_array_element: return "compound_array" elif self.i...
[ "def", "datatype", "(", "self", ")", "->", "str", ":", "if", "self", ".", "is_array_element", ":", "return", "\"compound_array\"", "elif", "self", ".", "is_compound", ":", "return", "\"compound\"", "elif", "self", ".", "is_simple", ":", "return", "self", "."...
[ 543, 4 ]
[ 559, 28 ]
python
en
['en', 'error', 'th']
False
PlotlyNode.is_array_ok
(self)
Return true if arrays of datatype are acceptable Returns ------- bool
Return true if arrays of datatype are acceptable
def is_array_ok(self) -> bool: """ Return true if arrays of datatype are acceptable Returns ------- bool """ return self.node_data.get("arrayOk", False)
[ "def", "is_array_ok", "(", "self", ")", "->", "bool", ":", "return", "self", ".", "node_data", ".", "get", "(", "\"arrayOk\"", ",", "False", ")" ]
[ 562, 4 ]
[ 570, 51 ]
python
en
['en', 'error', 'th']
False
PlotlyNode.is_compound
(self)
Node has a compound (in contrast to simple) datatype. Note: All array and array_element types are also considered compound Returns ------- bool
Node has a compound (in contrast to simple) datatype. Note: All array and array_element types are also considered compound
def is_compound(self) -> bool: """ Node has a compound (in contrast to simple) datatype. Note: All array and array_element types are also considered compound Returns ------- bool """ return ( isinstance(self.node_data, dict_like) a...
[ "def", "is_compound", "(", "self", ")", "->", "bool", ":", "return", "(", "isinstance", "(", "self", ".", "node_data", ",", "dict_like", ")", "and", "not", "self", ".", "is_simple", "and", "not", "self", ".", "is_mapped", "and", "self", ".", "plotly_name...
[ 573, 4 ]
[ 587, 9 ]
python
en
['en', 'error', 'th']
False
PlotlyNode.is_literal
(self)
Node has a particular literal value (e.g. 'foo', or 23) Returns ------- bool
Node has a particular literal value (e.g. 'foo', or 23)
def is_literal(self) -> bool: """ Node has a particular literal value (e.g. 'foo', or 23) Returns ------- bool """ return isinstance(self.node_data, (str, int, float))
[ "def", "is_literal", "(", "self", ")", "->", "bool", ":", "return", "isinstance", "(", "self", ".", "node_data", ",", "(", "str", ",", "int", ",", "float", ")", ")" ]
[ 590, 4 ]
[ 598, 60 ]
python
en
['en', 'error', 'th']
False
PlotlyNode.is_simple
(self)
Node has a simple datatype (e.g. boolean, color, colorscale, etc.) Returns ------- bool
Node has a simple datatype (e.g. boolean, color, colorscale, etc.)
def is_simple(self) -> bool: """ Node has a simple datatype (e.g. boolean, color, colorscale, etc.) Returns ------- bool """ return ( isinstance(self.node_data, dict_like) and "valType" in self.node_data and self.plotly_name !=...
[ "def", "is_simple", "(", "self", ")", "->", "bool", ":", "return", "(", "isinstance", "(", "self", ".", "node_data", ",", "dict_like", ")", "and", "\"valType\"", "in", "self", ".", "node_data", "and", "self", ".", "plotly_name", "!=", "\"items\"", ")" ]
[ 601, 4 ]
[ 613, 9 ]
python
en
['en', 'error', 'th']
False
PlotlyNode.is_array
(self)
Node has an array datatype Returns ------- bool
Node has an array datatype
def is_array(self) -> bool: """ Node has an array datatype Returns ------- bool """ return ( isinstance(self.node_data, dict_like) and self.node_data.get("role", "") == "object" and "items" in self.node_data and sel...
[ "def", "is_array", "(", "self", ")", "->", "bool", ":", "return", "(", "isinstance", "(", "self", ".", "node_data", ",", "dict_like", ")", "and", "self", ".", "node_data", ".", "get", "(", "\"role\"", ",", "\"\"", ")", "==", "\"object\"", "and", "\"ite...
[ 616, 4 ]
[ 629, 9 ]
python
en
['en', 'error', 'th']
False
PlotlyNode.is_array_element
(self)
Node has an array-element datatype Returns ------- bool
Node has an array-element datatype
def is_array_element(self): """ Node has an array-element datatype Returns ------- bool """ if self.parent: return self.parent.is_array else: return False
[ "def", "is_array_element", "(", "self", ")", ":", "if", "self", ".", "parent", ":", "return", "self", ".", "parent", ".", "is_array", "else", ":", "return", "False" ]
[ 632, 4 ]
[ 643, 24 ]
python
en
['en', 'error', 'th']
False
PlotlyNode.is_datatype
(self)
Node represents any kind of datatype Returns ------- bool
Node represents any kind of datatype
def is_datatype(self) -> bool: """ Node represents any kind of datatype Returns ------- bool """ return self.is_simple or self.is_compound or self.is_array or self.is_mapped
[ "def", "is_datatype", "(", "self", ")", "->", "bool", ":", "return", "self", ".", "is_simple", "or", "self", ".", "is_compound", "or", "self", ".", "is_array", "or", "self", ".", "is_mapped" ]
[ 646, 4 ]
[ 654, 84 ]
python
en
['en', 'error', 'th']
False
PlotlyNode.is_mapped
(self)
Node represents a mapping from a deprecated property to a normal property Returns ------- bool
Node represents a mapping from a deprecated property to a normal property
def is_mapped(self) -> bool: """ Node represents a mapping from a deprecated property to a normal property Returns ------- bool """ return False
[ "def", "is_mapped", "(", "self", ")", "->", "bool", ":", "return", "False" ]
[ 657, 4 ]
[ 666, 20 ]
python
en
['en', 'error', 'th']
False
PlotlyNode.tidy_path_part
(self, p)
Return a tidy version of raw path entry. This allows subclasses to adjust the raw property names in the plotly_schema Parameters ---------- p : str Path element string Returns ------- str
Return a tidy version of raw path entry. This allows subclasses to adjust the raw property names in the plotly_schema
def tidy_path_part(self, p): """ Return a tidy version of raw path entry. This allows subclasses to adjust the raw property names in the plotly_schema Parameters ---------- p : str Path element string Returns ------- str """ ...
[ "def", "tidy_path_part", "(", "self", ",", "p", ")", ":", "return", "p" ]
[ 670, 4 ]
[ 684, 16 ]
python
en
['en', 'error', 'th']
False
PlotlyNode.path_parts
(self)
Tuple of strings locating this node in the plotly_schema e.g. ('layout', 'images', 'opacity') Returns ------- tuple of str
Tuple of strings locating this node in the plotly_schema e.g. ('layout', 'images', 'opacity')
def path_parts(self): """ Tuple of strings locating this node in the plotly_schema e.g. ('layout', 'images', 'opacity') Returns ------- tuple of str """ res = [self.root_name] if self.root_name else [] for i, p in enumerate(self.node_path): ...
[ "def", "path_parts", "(", "self", ")", ":", "res", "=", "[", "self", ".", "root_name", "]", "if", "self", ".", "root_name", "else", "[", "]", "for", "i", ",", "p", "in", "enumerate", "(", "self", ".", "node_path", ")", ":", "# Handle array datatypes", ...
[ 687, 4 ]
[ 707, 25 ]
python
en
['en', 'error', 'th']
False
PlotlyNode.path_str
(self)
String containing path_parts joined on periods e.g. 'layout.images.opacity' Returns ------- str
String containing path_parts joined on periods e.g. 'layout.images.opacity'
def path_str(self): """ String containing path_parts joined on periods e.g. 'layout.images.opacity' Returns ------- str """ return ".".join(self.path_parts)
[ "def", "path_str", "(", "self", ")", ":", "return", "\".\"", ".", "join", "(", "self", ".", "path_parts", ")" ]
[ 712, 4 ]
[ 721, 40 ]
python
en
['en', 'error', 'th']
False
PlotlyNode.dotpath_str
(self)
path_str prefixed by a period if path_str is not empty, otherwise empty Returns ------- str
path_str prefixed by a period if path_str is not empty, otherwise empty
def dotpath_str(self): """ path_str prefixed by a period if path_str is not empty, otherwise empty Returns ------- str """ path_str = "" for p in self.path_parts: path_str += "." + p return path_str
[ "def", "dotpath_str", "(", "self", ")", ":", "path_str", "=", "\"\"", "for", "p", "in", "self", ".", "path_parts", ":", "path_str", "+=", "\".\"", "+", "p", "return", "path_str" ]
[ 724, 4 ]
[ 735, 23 ]
python
en
['en', 'error', 'th']
False
PlotlyNode.parent_path_parts
(self)
Tuple of strings locating this node's parent in the plotly_schema Returns ------- tuple of str
Tuple of strings locating this node's parent in the plotly_schema
def parent_path_parts(self): """ Tuple of strings locating this node's parent in the plotly_schema Returns ------- tuple of str """ return self.path_parts[:-1]
[ "def", "parent_path_parts", "(", "self", ")", ":", "return", "self", ".", "path_parts", "[", ":", "-", "1", "]" ]
[ 738, 4 ]
[ 746, 35 ]
python
en
['en', 'error', 'th']
False
PlotlyNode.parent_path_str
(self)
String containing parent_path_parts joined on periods Returns ------- str
String containing parent_path_parts joined on periods
def parent_path_str(self): """ String containing parent_path_parts joined on periods Returns ------- str """ return ".".join(self.path_parts[:-1])
[ "def", "parent_path_str", "(", "self", ")", ":", "return", "\".\"", ".", "join", "(", "self", ".", "path_parts", "[", ":", "-", "1", "]", ")" ]
[ 749, 4 ]
[ 757, 45 ]
python
en
['en', 'error', 'th']
False
PlotlyNode.parent_dotpath_str
(self)
parent_path_str prefixed by a period if parent_path_str is not empty, otherwise empty Returns ------- str
parent_path_str prefixed by a period if parent_path_str is not empty, otherwise empty
def parent_dotpath_str(self): """ parent_path_str prefixed by a period if parent_path_str is not empty, otherwise empty Returns ------- str """ path_str = "" for p in self.parent_path_parts: path_str += "." + p return path_str
[ "def", "parent_dotpath_str", "(", "self", ")", ":", "path_str", "=", "\"\"", "for", "p", "in", "self", ".", "parent_path_parts", ":", "path_str", "+=", "\".\"", "+", "p", "return", "path_str" ]
[ 760, 4 ]
[ 772, 23 ]
python
en
['en', 'error', 'th']
False
PlotlyNode.parent
(self)
Parent node Returns ------- PlotlyNode
Parent node
def parent(self): """ Parent node Returns ------- PlotlyNode """ return self._parent
[ "def", "parent", "(", "self", ")", ":", "return", "self", ".", "_parent" ]
[ 777, 4 ]
[ 785, 27 ]
python
en
['en', 'error', 'th']
False
PlotlyNode.children
(self)
List of all child nodes Returns ------- list of PlotlyNode
List of all child nodes
def children(self): """ List of all child nodes Returns ------- list of PlotlyNode """ return self._children
[ "def", "children", "(", "self", ")", ":", "return", "self", ".", "_children" ]
[ 788, 4 ]
[ 796, 29 ]
python
en
['en', 'error', 'th']
False
PlotlyNode.simple_attrs
(self)
List of simple attribute child nodes (only valid when is_simple == True) Returns ------- list of PlotlyNode
List of simple attribute child nodes (only valid when is_simple == True)
def simple_attrs(self): """ List of simple attribute child nodes (only valid when is_simple == True) Returns ------- list of PlotlyNode """ if not self.is_simple: raise ValueError( f"Cannot get simple attributes of the simple o...
[ "def", "simple_attrs", "(", "self", ")", ":", "if", "not", "self", ".", "is_simple", ":", "raise", "ValueError", "(", "f\"Cannot get simple attributes of the simple object '{self.path_str}'\"", ")", "return", "[", "n", "for", "n", "in", "self", ".", "children", "i...
[ 799, 4 ]
[ 815, 9 ]
python
en
['en', 'error', 'th']
False
PlotlyNode.child_datatypes
(self)
List of all datatype child nodes Returns ------- list of PlotlyNode
List of all datatype child nodes
def child_datatypes(self): """ List of all datatype child nodes Returns ------- list of PlotlyNode """ nodes = [] for n in self.children: if n.is_array: # Add array element node nodes.append(n.children[0].childr...
[ "def", "child_datatypes", "(", "self", ")", ":", "nodes", "=", "[", "]", "for", "n", "in", "self", ".", "children", ":", "if", "n", ".", "is_array", ":", "# Add array element node", "nodes", ".", "append", "(", "n", ".", "children", "[", "0", "]", "....
[ 818, 4 ]
[ 870, 20 ]
python
en
['en', 'error', 'th']
False
PlotlyNode.child_compound_datatypes
(self)
List of all compound datatype child nodes Returns ------- list of PlotlyNode
List of all compound datatype child nodes
def child_compound_datatypes(self): """ List of all compound datatype child nodes Returns ------- list of PlotlyNode """ return [n for n in self.child_datatypes if n.is_compound]
[ "def", "child_compound_datatypes", "(", "self", ")", ":", "return", "[", "n", "for", "n", "in", "self", ".", "child_datatypes", "if", "n", ".", "is_compound", "]" ]
[ 873, 4 ]
[ 881, 65 ]
python
en
['en', 'error', 'th']
False
PlotlyNode.child_simple_datatypes
(self)
List of all simple datatype child nodes Returns ------- list of PlotlyNode
List of all simple datatype child nodes
def child_simple_datatypes(self) -> List["PlotlyNode"]: """ List of all simple datatype child nodes Returns ------- list of PlotlyNode """ return [n for n in self.child_datatypes if n.is_simple]
[ "def", "child_simple_datatypes", "(", "self", ")", "->", "List", "[", "\"PlotlyNode\"", "]", ":", "return", "[", "n", "for", "n", "in", "self", ".", "child_datatypes", "if", "n", ".", "is_simple", "]" ]
[ 884, 4 ]
[ 892, 63 ]
python
en
['en', 'error', 'th']
False
PlotlyNode.child_literals
(self)
List of all literal child nodes Returns ------- list of PlotlyNode
List of all literal child nodes
def child_literals(self) -> List["PlotlyNode"]: """ List of all literal child nodes Returns ------- list of PlotlyNode """ return [n for n in self.children if n.is_literal]
[ "def", "child_literals", "(", "self", ")", "->", "List", "[", "\"PlotlyNode\"", "]", ":", "return", "[", "n", "for", "n", "in", "self", ".", "children", "if", "n", ".", "is_literal", "]" ]
[ 895, 4 ]
[ 903, 57 ]
python
en
['en', 'error', 'th']
False
PlotlyNode.has_child
(self, name)
Check whether node has child of the specified name
Check whether node has child of the specified name
def has_child(self, name) -> bool: """ Check whether node has child of the specified name """ return bool([n for n in self.children if n.plotly_name == name])
[ "def", "has_child", "(", "self", ",", "name", ")", "->", "bool", ":", "return", "bool", "(", "[", "n", "for", "n", "in", "self", ".", "children", "if", "n", ".", "plotly_name", "==", "name", "]", ")" ]
[ 905, 4 ]
[ 909, 72 ]
python
en
['en', 'error', 'th']
False
PlotlyNode.get_constructor_params_docstring
(self, indent=12)
Return a docstring-style string containing the names and descriptions of all of the node's child datatypes Parameters ---------- indent : int Leading indent of the string Returns ------- str
Return a docstring-style string containing the names and descriptions of all of the node's child datatypes
def get_constructor_params_docstring(self, indent=12): """ Return a docstring-style string containing the names and descriptions of all of the node's child datatypes Parameters ---------- indent : int Leading indent of the string Returns ----...
[ "def", "get_constructor_params_docstring", "(", "self", ",", "indent", "=", "12", ")", ":", "assert", "self", ".", "is_compound", "buffer", "=", "StringIO", "(", ")", "subtype_nodes", "=", "self", ".", "child_datatypes", "for", "subtype_node", "in", "subtype_nod...
[ 911, 4 ]
[ 984, 32 ]
python
en
['en', 'error', 'th']
False
PlotlyNode.get_all_compound_datatype_nodes
(plotly_schema, node_class)
Build a list of the entire hierarchy of compound datatype nodes for a given PlotlyNode subclass Parameters ---------- plotly_schema : dict JSON-parsed version of the default-schema.xml file node_class PlotlyNode subclass Returns ...
Build a list of the entire hierarchy of compound datatype nodes for a given PlotlyNode subclass
def get_all_compound_datatype_nodes(plotly_schema, node_class): """ Build a list of the entire hierarchy of compound datatype nodes for a given PlotlyNode subclass Parameters ---------- plotly_schema : dict JSON-parsed version of the default-schema.xml file ...
[ "def", "get_all_compound_datatype_nodes", "(", "plotly_schema", ",", "node_class", ")", ":", "nodes", "=", "[", "]", "nodes_to_process", "=", "[", "node_class", "(", "plotly_schema", ")", "]", "while", "nodes_to_process", ":", "node", "=", "nodes_to_process", ".",...
[ 989, 4 ]
[ 1022, 20 ]
python
en
['en', 'error', 'th']
False
PlotlyNode.get_all_datatype_nodes
(plotly_schema, node_class)
Build a list of the entire hierarchy of datatype nodes for a given PlotlyNode subclass Parameters ---------- plotly_schema : dict JSON-parsed version of the default-schema.xml file node_class PlotlyNode subclass Returns ------- ...
Build a list of the entire hierarchy of datatype nodes for a given PlotlyNode subclass
def get_all_datatype_nodes(plotly_schema, node_class): """ Build a list of the entire hierarchy of datatype nodes for a given PlotlyNode subclass Parameters ---------- plotly_schema : dict JSON-parsed version of the default-schema.xml file node_class ...
[ "def", "get_all_datatype_nodes", "(", "plotly_schema", ",", "node_class", ")", ":", "nodes", "=", "[", "]", "nodes_to_process", "=", "[", "node_class", "(", "plotly_schema", ")", "]", "while", "nodes_to_process", ":", "node", "=", "nodes_to_process", ".", "pop",...
[ 1025, 4 ]
[ 1052, 20 ]
python
en
['en', 'error', 'th']
False
ElementDefaultsNode.__init__
(self, array_node, plotly_schema)
Create node that represents element defaults properties (e.g. layout.annotationdefaults). Construct as a wrapper around the corresponding array property node (e.g. layout.annotations) Parameters ---------- array_node: PlotlyNode
Create node that represents element defaults properties (e.g. layout.annotationdefaults). Construct as a wrapper around the corresponding array property node (e.g. layout.annotations)
def __init__(self, array_node, plotly_schema): """ Create node that represents element defaults properties (e.g. layout.annotationdefaults). Construct as a wrapper around the corresponding array property node (e.g. layout.annotations) Parameters ---------- array...
[ "def", "__init__", "(", "self", ",", "array_node", ",", "plotly_schema", ")", ":", "super", "(", ")", ".", "__init__", "(", "plotly_schema", ",", "node_path", "=", "array_node", ".", "node_path", ",", "parent", "=", "array_node", ".", "parent", ")", "asser...
[ 1230, 4 ]
[ 1246, 62 ]
python
en
['en', 'error', 'th']
False
MappedPropNode.__init__
(self, mapped_prop_node, parent, prop_name, plotly_schema)
Create node that represents a legacy title property. e.g. layout.titlefont. These properties are now subproperties under the sibling `title` property. e.g. layout.title.font. Parameters ---------- title_node: PlotlyNode prop_name: str The name of th...
Create node that represents a legacy title property. e.g. layout.titlefont. These properties are now subproperties under the sibling `title` property. e.g. layout.title.font.
def __init__(self, mapped_prop_node, parent, prop_name, plotly_schema): """ Create node that represents a legacy title property. e.g. layout.titlefont. These properties are now subproperties under the sibling `title` property. e.g. layout.title.font. Parameters --------...
[ "def", "__init__", "(", "self", ",", "mapped_prop_node", ",", "parent", ",", "prop_name", ",", "plotly_schema", ")", ":", "node_path", "=", "parent", ".", "node_path", "+", "(", "prop_name", ",", ")", "super", "(", ")", ".", "__init__", "(", "plotly_schema...
[ 1292, 4 ]
[ 1309, 34 ]
python
en
['en', 'error', 'th']
False
build_assigner
(cfg, **default_args)
Builder of box assigner.
Builder of box assigner.
def build_assigner(cfg, **default_args): """Builder of box assigner.""" return build_from_cfg(cfg, BBOX_ASSIGNERS, default_args)
[ "def", "build_assigner", "(", "cfg", ",", "*", "*", "default_args", ")", ":", "return", "build_from_cfg", "(", "cfg", ",", "BBOX_ASSIGNERS", ",", "default_args", ")" ]
[ 7, 0 ]
[ 9, 60 ]
python
en
['en', 'da', 'en']
True
build_sampler
(cfg, **default_args)
Builder of box sampler.
Builder of box sampler.
def build_sampler(cfg, **default_args): """Builder of box sampler.""" return build_from_cfg(cfg, BBOX_SAMPLERS, default_args)
[ "def", "build_sampler", "(", "cfg", ",", "*", "*", "default_args", ")", ":", "return", "build_from_cfg", "(", "cfg", ",", "BBOX_SAMPLERS", ",", "default_args", ")" ]
[ 12, 0 ]
[ 14, 59 ]
python
en
['en', 'no', 'en']
True
build_bbox_coder
(cfg, **default_args)
Builder of box coder.
Builder of box coder.
def build_bbox_coder(cfg, **default_args): """Builder of box coder.""" return build_from_cfg(cfg, BBOX_CODERS, default_args)
[ "def", "build_bbox_coder", "(", "cfg", ",", "*", "*", "default_args", ")", ":", "return", "build_from_cfg", "(", "cfg", ",", "BBOX_CODERS", ",", "default_args", ")" ]
[ 17, 0 ]
[ 19, 57 ]
python
en
['en', 'de', 'en']
True
Invitation.__init__
( self, *, invitation: ConnectionInvitation = None, message: str = None, **kwargs )
Initialize invitation object. Args: invitation: The connection invitation message: Comments on the introduction
Initialize invitation object.
def __init__( self, *, invitation: ConnectionInvitation = None, message: str = None, **kwargs ): """ Initialize invitation object. Args: invitation: The connection invitation message: Comments on the introduction """ super(Invitation, self).__...
[ "def", "__init__", "(", "self", ",", "*", ",", "invitation", ":", "ConnectionInvitation", "=", "None", ",", "message", ":", "str", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", "Invitation", ",", "self", ")", ".", "__init__", "(", "*"...
[ 27, 4 ]
[ 39, 30 ]
python
en
['en', 'error', 'th']
False
load_lyft_gts
(lyft, data_root, eval_split, logger=None)
Loads ground truth boxes from database. Args: lyft (:obj:`LyftDataset`): Lyft class in the sdk. data_root (str): Root of data for reading splits. eval_split (str): Name of the split for evaluation. logger (logging.Logger | str | None): Logger used for printing related inform...
Loads ground truth boxes from database.
def load_lyft_gts(lyft, data_root, eval_split, logger=None): """Loads ground truth boxes from database. Args: lyft (:obj:`LyftDataset`): Lyft class in the sdk. data_root (str): Root of data for reading splits. eval_split (str): Name of the split for evaluation. logger (logging.L...
[ "def", "load_lyft_gts", "(", "lyft", ",", "data_root", ",", "eval_split", ",", "logger", "=", "None", ")", ":", "split_scenes", "=", "mmcv", ".", "list_from_file", "(", "osp", ".", "join", "(", "data_root", ",", "f'{eval_split}.txt'", ")", ")", "# Read out a...
[ 12, 0 ]
[ 68, 26 ]
python
en
['en', 'en', 'en']
True
load_lyft_predictions
(res_path)
Load Lyft predictions from json file. Args: res_path (str): Path of result json file recording detections. Returns: list[dict]: List of prediction dictionaries.
Load Lyft predictions from json file.
def load_lyft_predictions(res_path): """Load Lyft predictions from json file. Args: res_path (str): Path of result json file recording detections. Returns: list[dict]: List of prediction dictionaries. """ predictions = mmcv.load(res_path) predictions = predictions['results'] ...
[ "def", "load_lyft_predictions", "(", "res_path", ")", ":", "predictions", "=", "mmcv", ".", "load", "(", "res_path", ")", "predictions", "=", "predictions", "[", "'results'", "]", "all_preds", "=", "[", "]", "for", "sample_token", "in", "predictions", ".", "...
[ 71, 0 ]
[ 85, 20 ]
python
en
['en', 'en', 'en']
True
lyft_eval
(lyft, data_root, res_path, eval_set, output_dir, logger=None)
Evaluation API for Lyft dataset. Args: lyft (:obj:`LyftDataset`): Lyft class in the sdk. data_root (str): Root of data for reading splits. res_path (str): Path of result json file recording detections. eval_set (str): Name of the split for evaluation. output_dir (str): Outpu...
Evaluation API for Lyft dataset.
def lyft_eval(lyft, data_root, res_path, eval_set, output_dir, logger=None): """Evaluation API for Lyft dataset. Args: lyft (:obj:`LyftDataset`): Lyft class in the sdk. data_root (str): Root of data for reading splits. res_path (str): Path of result json file recording detections. ...
[ "def", "lyft_eval", "(", "lyft", ",", "data_root", ",", "res_path", ",", "eval_set", ",", "output_dir", ",", "logger", "=", "None", ")", ":", "# evaluate by lyft metrics", "gts", "=", "load_lyft_gts", "(", "lyft", ",", "data_root", ",", "eval_set", ",", "log...
[ 88, 0 ]
[ 137, 18 ]
python
en
['en', 'da', 'en']
True
get_classwise_aps
(gt, predictions, class_names, iou_thresholds)
Returns an array with an average precision per class. Note: Ground truth and predictions should have the following format. .. code-block:: gt = [{ 'sample_token': '0f0e3ce89d2324d8b45aa55a7b4f8207 fbb039a550991a5149214f98cec136ac', 'translation': [974.281188129989...
Returns an array with an average precision per class.
def get_classwise_aps(gt, predictions, class_names, iou_thresholds): """Returns an array with an average precision per class. Note: Ground truth and predictions should have the following format. .. code-block:: gt = [{ 'sample_token': '0f0e3ce89d2324d8b45aa55a7b4f8207 ...
[ "def", "get_classwise_aps", "(", "gt", ",", "predictions", ",", "class_names", ",", "iou_thresholds", ")", ":", "assert", "all", "(", "[", "0", "<=", "iou_th", "<=", "1", "for", "iou_th", "in", "iou_thresholds", "]", ")", "gt_by_class_name", "=", "group_by_k...
[ 140, 0 ]
[ 194, 29 ]
python
en
['en', 'en', 'en']
True
get_single_class_aps
(gt, predictions, iou_thresholds)
Compute recall and precision for all iou thresholds. Adapted from LyftDatasetDevkit. Args: gt (list[dict]): list of dictionaries in the format described above. predictions (list[dict]): list of dictionaries in the format \ described below. iou_thresholds (list[float]): IOU t...
Compute recall and precision for all iou thresholds. Adapted from LyftDatasetDevkit.
def get_single_class_aps(gt, predictions, iou_thresholds): """Compute recall and precision for all iou thresholds. Adapted from LyftDatasetDevkit. Args: gt (list[dict]): list of dictionaries in the format described above. predictions (list[dict]): list of dictionaries in the format \ ...
[ "def", "get_single_class_aps", "(", "gt", ",", "predictions", ",", "iou_thresholds", ")", ":", "num_gts", "=", "len", "(", "gt", ")", "image_gts", "=", "group_by_key", "(", "gt", ",", "'sample_token'", ")", "image_gts", "=", "wrap_in_box", "(", "image_gts", ...
[ 197, 0 ]
[ 282, 35 ]
python
en
['en', 'en', 'en']
True
Marker.autocolorscale
(self)
Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `marker.colorscale`. Has an effect only if in `marker.color`is set to a numerical array. In case `colorscale` is unspecified or `autocolorscale` is true, the default pal...
Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `marker.colorscale`. Has an effect only if in `marker.color`is set to a numerical array. In case `colorscale` is unspecified or `autocolorscale` is true, the default pal...
def autocolorscale(self): """ Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `marker.colorscale`. Has an effect only if in `marker.color`is set to a numerical array. In case `colorscale` is unspecified or `auto...
[ "def", "autocolorscale", "(", "self", ")", ":", "return", "self", "[", "\"autocolorscale\"", "]" ]
[ 40, 4 ]
[ 57, 37 ]
python
en
['en', 'error', 'th']
False
Marker.cauto
(self)
Determines whether or not the color domain is computed with respect to the input data (here in `marker.color`) or the bounds set in `marker.cmin` and `marker.cmax` Has an effect only if in `marker.color`is set to a numerical array. Defaults to `false` when `marker.cmin` and `ma...
Determines whether or not the color domain is computed with respect to the input data (here in `marker.color`) or the bounds set in `marker.cmin` and `marker.cmax` Has an effect only if in `marker.color`is set to a numerical array. Defaults to `false` when `marker.cmin` and `ma...
def cauto(self): """ Determines whether or not the color domain is computed with respect to the input data (here in `marker.color`) or the bounds set in `marker.cmin` and `marker.cmax` Has an effect only if in `marker.color`is set to a numerical array. Defaults to `false...
[ "def", "cauto", "(", "self", ")", ":", "return", "self", "[", "\"cauto\"", "]" ]
[ 66, 4 ]
[ 82, 28 ]
python
en
['en', 'error', 'th']
False
Marker.cmax
(self)
Sets the upper bound of the color domain. Has an effect only if in `marker.color`is set to a numerical array. Value should have the same units as in `marker.color` and if set, `marker.cmin` must be set as well. The 'cmax' property is a number and may be specified as: ...
Sets the upper bound of the color domain. Has an effect only if in `marker.color`is set to a numerical array. Value should have the same units as in `marker.color` and if set, `marker.cmin` must be set as well. The 'cmax' property is a number and may be specified as: ...
def cmax(self): """ Sets the upper bound of the color domain. Has an effect only if in `marker.color`is set to a numerical array. Value should have the same units as in `marker.color` and if set, `marker.cmin` must be set as well. The 'cmax' property is a number and ...
[ "def", "cmax", "(", "self", ")", ":", "return", "self", "[", "\"cmax\"", "]" ]
[ 91, 4 ]
[ 105, 27 ]
python
en
['en', 'error', 'th']
False
Marker.cmid
(self)
Sets the mid-point of the color domain by scaling `marker.cmin` and/or `marker.cmax` to be equidistant to this point. Has an effect only if in `marker.color`is set to a numerical array. Value should have the same units as in `marker.color`. Has no effect when `marker.cauto` is `...
Sets the mid-point of the color domain by scaling `marker.cmin` and/or `marker.cmax` to be equidistant to this point. Has an effect only if in `marker.color`is set to a numerical array. Value should have the same units as in `marker.color`. Has no effect when `marker.cauto` is `...
def cmid(self): """ Sets the mid-point of the color domain by scaling `marker.cmin` and/or `marker.cmax` to be equidistant to this point. Has an effect only if in `marker.color`is set to a numerical array. Value should have the same units as in `marker.color`. Has no effe...
[ "def", "cmid", "(", "self", ")", ":", "return", "self", "[", "\"cmid\"", "]" ]
[ 114, 4 ]
[ 129, 27 ]
python
en
['en', 'error', 'th']
False
Marker.cmin
(self)
Sets the lower bound of the color domain. Has an effect only if in `marker.color`is set to a numerical array. Value should have the same units as in `marker.color` and if set, `marker.cmax` must be set as well. The 'cmin' property is a number and may be specified as: ...
Sets the lower bound of the color domain. Has an effect only if in `marker.color`is set to a numerical array. Value should have the same units as in `marker.color` and if set, `marker.cmax` must be set as well. The 'cmin' property is a number and may be specified as: ...
def cmin(self): """ Sets the lower bound of the color domain. Has an effect only if in `marker.color`is set to a numerical array. Value should have the same units as in `marker.color` and if set, `marker.cmax` must be set as well. The 'cmin' property is a number and ...
[ "def", "cmin", "(", "self", ")", ":", "return", "self", "[", "\"cmin\"", "]" ]
[ 138, 4 ]
[ 152, 27 ]
python
en
['en', 'error', 'th']
False
Marker.color
(self)
Sets themarkercolor. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. The 'color' property is a color and may be specified as: ...
Sets themarkercolor. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. The 'color' property is a color and may be specified as: ...
def color(self): """ Sets themarkercolor. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. The 'color' property is a colo...
[ "def", "color", "(", "self", ")", ":", "return", "self", "[", "\"color\"", "]" ]
[ 161, 4 ]
[ 217, 28 ]
python
en
['en', 'error', 'th']
False
Marker.coloraxis
(self)
Sets a reference to a shared color axis. References to these shared color axes are "coloraxis", "coloraxis2", "coloraxis3", etc. Settings for these shared color axes are set in the layout, under `layout.coloraxis`, `layout.coloraxis2`, etc. Note that multiple color scales can be...
Sets a reference to a shared color axis. References to these shared color axes are "coloraxis", "coloraxis2", "coloraxis3", etc. Settings for these shared color axes are set in the layout, under `layout.coloraxis`, `layout.coloraxis2`, etc. Note that multiple color scales can be...
def coloraxis(self): """ Sets a reference to a shared color axis. References to these shared color axes are "coloraxis", "coloraxis2", "coloraxis3", etc. Settings for these shared color axes are set in the layout, under `layout.coloraxis`, `layout.coloraxis2`, etc. Note t...
[ "def", "coloraxis", "(", "self", ")", ":", "return", "self", "[", "\"coloraxis\"", "]" ]
[ 226, 4 ]
[ 244, 32 ]
python
en
['en', 'error', 'th']
False
Marker.colorbar
(self)
The 'colorbar' property is an instance of ColorBar that may be specified as: - An instance of :class:`plotly.graph_objs.scatter.marker.ColorBar` - A dict of string/value properties that will be passed to the ColorBar constructor Supported dict properties...
The 'colorbar' property is an instance of ColorBar that may be specified as: - An instance of :class:`plotly.graph_objs.scatter.marker.ColorBar` - A dict of string/value properties that will be passed to the ColorBar constructor Supported dict properties...
def colorbar(self): """ The 'colorbar' property is an instance of ColorBar that may be specified as: - An instance of :class:`plotly.graph_objs.scatter.marker.ColorBar` - A dict of string/value properties that will be passed to the ColorBar constructor ...
[ "def", "colorbar", "(", "self", ")", ":", "return", "self", "[", "\"colorbar\"", "]" ]
[ 253, 4 ]
[ 480, 31 ]
python
en
['en', 'error', 'th']
False