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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
indoor_eval | (gt_annos,
dt_annos,
metric,
label2cat,
logger=None,
box_type_3d=None,
box_mode_3d=None) | Indoor Evaluation.
Evaluate the result of the detection.
Args:
gt_annos (list[dict]): Ground truth annotations.
dt_annos (list[dict]): Detection annotations. the dict
includes the following keys
- labels_3d (torch.Tensor): Labels of boxes.
- boxes_3d (:obj:... | Indoor Evaluation. | def indoor_eval(gt_annos,
dt_annos,
metric,
label2cat,
logger=None,
box_type_3d=None,
box_mode_3d=None):
"""Indoor Evaluation.
Evaluate the result of the detection.
Args:
gt_annos (list[dict]): Ground t... | [
"def",
"indoor_eval",
"(",
"gt_annos",
",",
"dt_annos",
",",
"metric",
",",
"label2cat",
",",
"logger",
"=",
"None",
",",
"box_type_3d",
"=",
"None",
",",
"box_mode_3d",
"=",
"None",
")",
":",
"assert",
"len",
"(",
"dt_annos",
")",
"==",
"len",
"(",
"g... | [
202,
0
] | [
308,
19
] | python | nl | ['nl', 'nl', 'en'] | False |
on_message | (ws, message) |
Prints the incoming message from the server.
:param ws: a WebSocketApp
:param message: json with 'text' field to be printed
|
Prints the incoming message from the server. | def on_message(ws, message):
"""
Prints the incoming message from the server.
:param ws: a WebSocketApp
:param message: json with 'text' field to be printed
"""
incoming_message = json.loads(message)
global new_message
new_message = incoming_message['text']
message_available.set() | [
"def",
"on_message",
"(",
"ws",
",",
"message",
")",
":",
"incoming_message",
"=",
"json",
".",
"loads",
"(",
"message",
")",
"global",
"new_message",
"new_message",
"=",
"incoming_message",
"[",
"'text'",
"]",
"message_available",
".",
"set",
"(",
")"
] | [
101,
0
] | [
111,
27
] | python | en | ['en', 'error', 'th'] | False |
on_error | (ws, error) |
Prints an error, if occurs.
:param ws: WebSocketApp
:param error: An error
|
Prints an error, if occurs. | def on_error(ws, error):
"""
Prints an error, if occurs.
:param ws: WebSocketApp
:param error: An error
"""
print(error) | [
"def",
"on_error",
"(",
"ws",
",",
"error",
")",
":",
"print",
"(",
"error",
")"
] | [
114,
0
] | [
121,
16
] | python | en | ['en', 'error', 'th'] | False |
on_close | (ws) |
Cleanup before closing connection.
:param ws: WebSocketApp
|
Cleanup before closing connection. | def on_close(ws):
"""
Cleanup before closing connection.
:param ws: WebSocketApp
"""
# Reset color formatting if necessary
print("Connection closed") | [
"def",
"on_close",
"(",
"ws",
")",
":",
"# Reset color formatting if necessary",
"print",
"(",
"\"Connection closed\"",
")"
] | [
124,
0
] | [
131,
30
] | python | en | ['en', 'error', 'th'] | False |
on_open | (ws) |
Starts a new thread that loops, taking user input and sending it to the websocket.
:param ws: websocket.WebSocketApp that sends messages to a browser_manager
|
Starts a new thread that loops, taking user input and sending it to the websocket. | def on_open(ws):
"""
Starts a new thread that loops, taking user input and sending it to the websocket.
:param ws: websocket.WebSocketApp that sends messages to a browser_manager
"""
threading.Thread(target=_run_browser).start() | [
"def",
"on_open",
"(",
"ws",
")",
":",
"threading",
".",
"Thread",
"(",
"target",
"=",
"_run_browser",
")",
".",
"start",
"(",
")"
] | [
147,
0
] | [
153,
49
] | python | en | ['en', 'error', 'th'] | False |
setup_args | () |
Set up args, specifically for the port number.
:return: A parser that parses the port from commandline arguments.
|
Set up args, specifically for the port number. | def setup_args():
"""
Set up args, specifically for the port number.
:return: A parser that parses the port from commandline arguments.
"""
parser = ParlaiParser(False, False)
parser_grp = parser.add_argument_group('Browser Chat')
parser_grp.add_argument(
'--port', default=35496, ty... | [
"def",
"setup_args",
"(",
")",
":",
"parser",
"=",
"ParlaiParser",
"(",
"False",
",",
"False",
")",
"parser_grp",
"=",
"parser",
".",
"add_argument_group",
"(",
"'Browser Chat'",
")",
"parser_grp",
".",
"add_argument",
"(",
"'--port'",
",",
"default",
"=",
"... | [
156,
0
] | [
180,
30
] | python | en | ['en', 'error', 'th'] | False |
BrowserHandler.do_HEAD | (self) |
Handle HEAD requests.
|
Handle HEAD requests.
| def do_HEAD(self):
"""
Handle HEAD requests.
"""
self.send_response(200)
self.send_header('Content-type', 'text/html')
self.end_headers() | [
"def",
"do_HEAD",
"(",
"self",
")",
":",
"self",
".",
"send_response",
"(",
"200",
")",
"self",
".",
"send_header",
"(",
"'Content-type'",
",",
"'text/html'",
")",
"self",
".",
"end_headers",
"(",
")"
] | [
40,
4
] | [
46,
26
] | python | en | ['en', 'error', 'th'] | False |
BrowserHandler.do_POST | (self) |
Handle POST request, especially replying to a chat message.
|
Handle POST request, especially replying to a chat message.
| def do_POST(self):
"""
Handle POST request, especially replying to a chat message.
"""
if self.path == '/interact':
content_length = int(self.headers['Content-Length'])
body = self.rfile.read(content_length)
self._interactive_running(body)
... | [
"def",
"do_POST",
"(",
"self",
")",
":",
"if",
"self",
".",
"path",
"==",
"'/interact'",
":",
"content_length",
"=",
"int",
"(",
"self",
".",
"headers",
"[",
"'Content-Length'",
"]",
")",
"body",
"=",
"self",
".",
"rfile",
".",
"read",
"(",
"content_le... | [
48,
4
] | [
74,
49
] | python | en | ['en', 'error', 'th'] | False |
BrowserHandler.do_GET | (self) |
Respond to GET request, especially the initial load.
|
Respond to GET request, especially the initial load.
| def do_GET(self):
"""
Respond to GET request, especially the initial load.
"""
paths = {
'/': {'status': 200},
'/favicon.ico': {'status': 202}, # Need for chrome
}
if self.path in paths:
self._respond(paths[self.path])
else:
... | [
"def",
"do_GET",
"(",
"self",
")",
":",
"paths",
"=",
"{",
"'/'",
":",
"{",
"'status'",
":",
"200",
"}",
",",
"'/favicon.ico'",
":",
"{",
"'status'",
":",
"202",
"}",
",",
"# Need for chrome",
"}",
"if",
"self",
".",
"path",
"in",
"paths",
":",
"se... | [
76,
4
] | [
87,
42
] | python | en | ['en', 'error', 'th'] | False |
Waterfall.alignmentgroup | (self) |
Set several traces linked to the same position axis or matching
axes to the same alignmentgroup. This controls whether bars
compute their positional range dependently or independently.
The 'alignmentgroup' property is a string and must be specified as:
- A string
... |
Set several traces linked to the same position axis or matching
axes to the same alignmentgroup. This controls whether bars
compute their positional range dependently or independently.
The 'alignmentgroup' property is a string and must be specified as:
- A string
... | def alignmentgroup(self):
"""
Set several traces linked to the same position axis or matching
axes to the same alignmentgroup. This controls whether bars
compute their positional range dependently or independently.
The 'alignmentgroup' property is a string and must be specif... | [
"def",
"alignmentgroup",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"alignmentgroup\"",
"]"
] | [
77,
4
] | [
91,
37
] | python | en | ['en', 'error', 'th'] | False |
Waterfall.base | (self) |
Sets where the bar base is drawn (in position axis units).
The 'base' property is a number and may be specified as:
- An int or float
Returns
-------
int|float
|
Sets where the bar base is drawn (in position axis units).
The 'base' property is a number and may be specified as:
- An int or float | def base(self):
"""
Sets where the bar base is drawn (in position axis units).
The 'base' property is a number and may be specified as:
- An int or float
Returns
-------
int|float
"""
return self["base"] | [
"def",
"base",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"base\"",
"]"
] | [
100,
4
] | [
111,
27
] | python | en | ['en', 'error', 'th'] | False |
Waterfall.cliponaxis | (self) |
Determines whether the text nodes are clipped about the subplot
axes. To show the text nodes above axis lines and tick labels,
make sure to set `xaxis.layer` and `yaxis.layer` to *below
traces*.
The 'cliponaxis' property must be specified as a bool
(either True, or ... |
Determines whether the text nodes are clipped about the subplot
axes. To show the text nodes above axis lines and tick labels,
make sure to set `xaxis.layer` and `yaxis.layer` to *below
traces*.
The 'cliponaxis' property must be specified as a bool
(either True, or ... | def cliponaxis(self):
"""
Determines whether the text nodes are clipped about the subplot
axes. To show the text nodes above axis lines and tick labels,
make sure to set `xaxis.layer` and `yaxis.layer` to *below
traces*.
The 'cliponaxis' property must be specified as... | [
"def",
"cliponaxis",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"cliponaxis\"",
"]"
] | [
120,
4
] | [
134,
33
] | python | en | ['en', 'error', 'th'] | False |
Waterfall.connector | (self) |
The 'connector' property is an instance of Connector
that may be specified as:
- An instance of :class:`plotly.graph_objs.waterfall.Connector`
- A dict of string/value properties that will be passed
to the Connector constructor
Supported dict properties:... |
The 'connector' property is an instance of Connector
that may be specified as:
- An instance of :class:`plotly.graph_objs.waterfall.Connector`
- A dict of string/value properties that will be passed
to the Connector constructor
Supported dict properties:... | def connector(self):
"""
The 'connector' property is an instance of Connector
that may be specified as:
- An instance of :class:`plotly.graph_objs.waterfall.Connector`
- A dict of string/value properties that will be passed
to the Connector constructor
... | [
"def",
"connector",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"connector\"",
"]"
] | [
143,
4
] | [
166,
32
] | python | en | ['en', 'error', 'th'] | False |
Waterfall.constraintext | (self) |
Constrain the size of text inside or outside a bar to be no
larger than the bar itself.
The 'constraintext' property is an enumeration that may be specified as:
- One of the following enumeration values:
['inside', 'outside', 'both', 'none']
Returns
... |
Constrain the size of text inside or outside a bar to be no
larger than the bar itself.
The 'constraintext' property is an enumeration that may be specified as:
- One of the following enumeration values:
['inside', 'outside', 'both', 'none'] | def constraintext(self):
"""
Constrain the size of text inside or outside a bar to be no
larger than the bar itself.
The 'constraintext' property is an enumeration that may be specified as:
- One of the following enumeration values:
['inside', 'outside', 'b... | [
"def",
"constraintext",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"constraintext\"",
"]"
] | [
175,
4
] | [
188,
36
] | python | en | ['en', 'error', 'th'] | False |
Waterfall.customdata | (self) |
Assigns extra data each datum. This may be useful when
listening to hover, click and selection events. Note that,
"scatter" traces also appends customdata items in the markers
DOM elements
The 'customdata' property is an array that may be specified as a tuple,
list,... |
Assigns extra data each datum. This may be useful when
listening to hover, click and selection events. Note that,
"scatter" traces also appends customdata items in the markers
DOM elements
The 'customdata' property is an array that may be specified as a tuple,
list,... | def customdata(self):
"""
Assigns extra data each datum. This may be useful when
listening to hover, click and selection events. Note that,
"scatter" traces also appends customdata items in the markers
DOM elements
The 'customdata' property is an array that may be sp... | [
"def",
"customdata",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"customdata\"",
"]"
] | [
197,
4
] | [
211,
33
] | python | en | ['en', 'error', 'th'] | False |
Waterfall.customdatasrc | (self) |
Sets the source reference on Chart Studio Cloud for customdata
.
The 'customdatasrc' 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 customdata
.
The 'customdatasrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def customdatasrc(self):
"""
Sets the source reference on Chart Studio Cloud for customdata
.
The 'customdatasrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["cust... | [
"def",
"customdatasrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"customdatasrc\"",
"]"
] | [
220,
4
] | [
232,
36
] | python | en | ['en', 'error', 'th'] | False |
Waterfall.decreasing | (self) |
The 'decreasing' property is an instance of Decreasing
that may be specified as:
- An instance of :class:`plotly.graph_objs.waterfall.Decreasing`
- A dict of string/value properties that will be passed
to the Decreasing constructor
Supported dict propert... |
The 'decreasing' property is an instance of Decreasing
that may be specified as:
- An instance of :class:`plotly.graph_objs.waterfall.Decreasing`
- A dict of string/value properties that will be passed
to the Decreasing constructor
Supported dict propert... | def decreasing(self):
"""
The 'decreasing' property is an instance of Decreasing
that may be specified as:
- An instance of :class:`plotly.graph_objs.waterfall.Decreasing`
- A dict of string/value properties that will be passed
to the Decreasing constructor
... | [
"def",
"decreasing",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"decreasing\"",
"]"
] | [
241,
4
] | [
260,
33
] | python | en | ['en', 'error', 'th'] | False |
Waterfall.dx | (self) |
Sets the x coordinate step. See `x0` for more info.
The 'dx' property is a number and may be specified as:
- An int or float
Returns
-------
int|float
|
Sets the x coordinate step. See `x0` for more info.
The 'dx' property is a number and may be specified as:
- An int or float | def dx(self):
"""
Sets the x coordinate step. See `x0` for more info.
The 'dx' property is a number and may be specified as:
- An int or float
Returns
-------
int|float
"""
return self["dx"] | [
"def",
"dx",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"dx\"",
"]"
] | [
269,
4
] | [
280,
25
] | python | en | ['en', 'error', 'th'] | False |
Waterfall.dy | (self) |
Sets the y coordinate step. See `y0` for more info.
The 'dy' property is a number and may be specified as:
- An int or float
Returns
-------
int|float
|
Sets the y coordinate step. See `y0` for more info.
The 'dy' property is a number and may be specified as:
- An int or float | def dy(self):
"""
Sets the y coordinate step. See `y0` for more info.
The 'dy' property is a number and may be specified as:
- An int or float
Returns
-------
int|float
"""
return self["dy"] | [
"def",
"dy",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"dy\"",
"]"
] | [
289,
4
] | [
300,
25
] | python | en | ['en', 'error', 'th'] | False |
Waterfall.hoverinfo | (self) |
Determines which trace information appear on hover. If `none`
or `skip` are set, no information is displayed upon hovering.
But, if `none` is set, click and hover events are still fired.
The 'hoverinfo' property is a flaglist and may be specified
as a string containing:
... |
Determines which trace information appear on hover. If `none`
or `skip` are set, no information is displayed upon hovering.
But, if `none` is set, click and hover events are still fired.
The 'hoverinfo' property is a flaglist and may be specified
as a string containing:
... | def hoverinfo(self):
"""
Determines which trace information appear on hover. If `none`
or `skip` are set, no information is displayed upon hovering.
But, if `none` is set, click and hover events are still fired.
The 'hoverinfo' property is a flaglist and may be specified
... | [
"def",
"hoverinfo",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"hoverinfo\"",
"]"
] | [
309,
4
] | [
326,
32
] | python | en | ['en', 'error', 'th'] | False |
Waterfall.hoverinfosrc | (self) |
Sets the source reference on Chart Studio Cloud for hoverinfo
.
The 'hoverinfosrc' 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 hoverinfo
.
The 'hoverinfosrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def hoverinfosrc(self):
"""
Sets the source reference on Chart Studio Cloud for hoverinfo
.
The 'hoverinfosrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["hoverin... | [
"def",
"hoverinfosrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"hoverinfosrc\"",
"]"
] | [
335,
4
] | [
347,
35
] | python | en | ['en', 'error', 'th'] | False |
Waterfall.hoverlabel | (self) |
The 'hoverlabel' property is an instance of Hoverlabel
that may be specified as:
- An instance of :class:`plotly.graph_objs.waterfall.Hoverlabel`
- A dict of string/value properties that will be passed
to the Hoverlabel constructor
Supported dict propert... |
The 'hoverlabel' property is an instance of Hoverlabel
that may be specified as:
- An instance of :class:`plotly.graph_objs.waterfall.Hoverlabel`
- A dict of string/value properties that will be passed
to the Hoverlabel constructor
Supported dict propert... | def hoverlabel(self):
"""
The 'hoverlabel' property is an instance of Hoverlabel
that may be specified as:
- An instance of :class:`plotly.graph_objs.waterfall.Hoverlabel`
- A dict of string/value properties that will be passed
to the Hoverlabel constructor
... | [
"def",
"hoverlabel",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"hoverlabel\"",
"]"
] | [
356,
4
] | [
406,
33
] | python | en | ['en', 'error', 'th'] | False |
Waterfall.hovertemplate | (self) |
Template string used for rendering the information that appear
on hover box. Note that this will override `hoverinfo`.
Variables are inserted using %{variable}, for example "y:
%{y}". Numbers are formatted using d3-format's syntax
%{variable:d3-format}, for example "Price: %{y:$... |
Template string used for rendering the information that appear
on hover box. Note that this will override `hoverinfo`.
Variables are inserted using %{variable}, for example "y:
%{y}". Numbers are formatted using d3-format's syntax
%{variable:d3-format}, for example "Price: %{y:$... | def hovertemplate(self):
"""
Template string used for rendering the information that appear
on hover box. Note that this will override `hoverinfo`.
Variables are inserted using %{variable}, for example "y:
%{y}". Numbers are formatted using d3-format's syntax
%{variable:d... | [
"def",
"hovertemplate",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"hovertemplate\"",
"]"
] | [
415,
4
] | [
447,
36
] | python | en | ['en', 'error', 'th'] | False |
Waterfall.hovertemplatesrc | (self) |
Sets the source reference on Chart Studio Cloud for
hovertemplate .
The 'hovertemplatesrc' 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
hovertemplate .
The 'hovertemplatesrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def hovertemplatesrc(self):
"""
Sets the source reference on Chart Studio Cloud for
hovertemplate .
The 'hovertemplatesrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return se... | [
"def",
"hovertemplatesrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"hovertemplatesrc\"",
"]"
] | [
456,
4
] | [
468,
39
] | python | en | ['en', 'error', 'th'] | False |
Waterfall.hovertext | (self) |
Sets hover text elements associated with each (x,y) pair. If a
single string, the same string appears over all the data
points. If an array of string, the items are mapped in order to
the this trace's (x,y) coordinates. To be seen, trace
`hoverinfo` must contain a "text" flag.
... |
Sets hover text elements associated with each (x,y) pair. If a
single string, the same string appears over all the data
points. If an array of string, the items are mapped in order to
the this trace's (x,y) coordinates. To be seen, trace
`hoverinfo` must contain a "text" flag.
... | def hovertext(self):
"""
Sets hover text elements associated with each (x,y) pair. If a
single string, the same string appears over all the data
points. If an array of string, the items are mapped in order to
the this trace's (x,y) coordinates. To be seen, trace
`hoverinf... | [
"def",
"hovertext",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"hovertext\"",
"]"
] | [
477,
4
] | [
494,
32
] | python | en | ['en', 'error', 'th'] | False |
Waterfall.hovertextsrc | (self) |
Sets the source reference on Chart Studio Cloud for hovertext
.
The 'hovertextsrc' 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 hovertext
.
The 'hovertextsrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def hovertextsrc(self):
"""
Sets the source reference on Chart Studio Cloud for hovertext
.
The 'hovertextsrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["hoverte... | [
"def",
"hovertextsrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"hovertextsrc\"",
"]"
] | [
503,
4
] | [
515,
35
] | python | en | ['en', 'error', 'th'] | False |
Waterfall.ids | (self) |
Assigns id labels to each datum. These ids for object constancy
of data points during animation. Should be an array of strings,
not numbers or any other type.
The 'ids' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series
Retur... |
Assigns id labels to each datum. These ids for object constancy
of data points during animation. Should be an array of strings,
not numbers or any other type.
The 'ids' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series | def ids(self):
"""
Assigns id labels to each datum. These ids for object constancy
of data points during animation. Should be an array of strings,
not numbers or any other type.
The 'ids' property is an array that may be specified as a tuple,
list, numpy array, or pa... | [
"def",
"ids",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"ids\"",
"]"
] | [
524,
4
] | [
537,
26
] | python | en | ['en', 'error', 'th'] | False |
Waterfall.idssrc | (self) |
Sets the source reference on Chart Studio Cloud for ids .
The 'idssrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
|
Sets the source reference on Chart Studio Cloud for ids .
The 'idssrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def idssrc(self):
"""
Sets the source reference on Chart Studio Cloud for ids .
The 'idssrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["idssrc"] | [
"def",
"idssrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"idssrc\"",
"]"
] | [
546,
4
] | [
557,
29
] | python | en | ['en', 'error', 'th'] | False |
Waterfall.increasing | (self) |
The 'increasing' property is an instance of Increasing
that may be specified as:
- An instance of :class:`plotly.graph_objs.waterfall.Increasing`
- A dict of string/value properties that will be passed
to the Increasing constructor
Supported dict propert... |
The 'increasing' property is an instance of Increasing
that may be specified as:
- An instance of :class:`plotly.graph_objs.waterfall.Increasing`
- A dict of string/value properties that will be passed
to the Increasing constructor
Supported dict propert... | def increasing(self):
"""
The 'increasing' property is an instance of Increasing
that may be specified as:
- An instance of :class:`plotly.graph_objs.waterfall.Increasing`
- A dict of string/value properties that will be passed
to the Increasing constructor
... | [
"def",
"increasing",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"increasing\"",
"]"
] | [
566,
4
] | [
585,
33
] | python | en | ['en', 'error', 'th'] | False |
Waterfall.insidetextanchor | (self) |
Determines if texts are kept at center or start/end points in
`textposition` "inside" mode.
The 'insidetextanchor' property is an enumeration that may be specified as:
- One of the following enumeration values:
['end', 'middle', 'start']
Returns
-... |
Determines if texts are kept at center or start/end points in
`textposition` "inside" mode.
The 'insidetextanchor' property is an enumeration that may be specified as:
- One of the following enumeration values:
['end', 'middle', 'start'] | def insidetextanchor(self):
"""
Determines if texts are kept at center or start/end points in
`textposition` "inside" mode.
The 'insidetextanchor' property is an enumeration that may be specified as:
- One of the following enumeration values:
['end', 'middl... | [
"def",
"insidetextanchor",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"insidetextanchor\"",
"]"
] | [
594,
4
] | [
607,
39
] | python | en | ['en', 'error', 'th'] | False |
Waterfall.insidetextfont | (self) |
Sets the font used for `text` lying inside the bar.
The 'insidetextfont' property is an instance of Insidetextfont
that may be specified as:
- An instance of :class:`plotly.graph_objs.waterfall.Insidetextfont`
- A dict of string/value properties that will be passed
... |
Sets the font used for `text` lying inside the bar.
The 'insidetextfont' property is an instance of Insidetextfont
that may be specified as:
- An instance of :class:`plotly.graph_objs.waterfall.Insidetextfont`
- A dict of string/value properties that will be passed
... | def insidetextfont(self):
"""
Sets the font used for `text` lying inside the bar.
The 'insidetextfont' property is an instance of Insidetextfont
that may be specified as:
- An instance of :class:`plotly.graph_objs.waterfall.Insidetextfont`
- A dict of string/valu... | [
"def",
"insidetextfont",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"insidetextfont\"",
"]"
] | [
616,
4
] | [
663,
37
] | python | en | ['en', 'error', 'th'] | False |
Waterfall.legendgroup | (self) |
Sets the legend group for this trace. Traces part of the same
legend group hide/show at the same time when toggling legend
items.
The 'legendgroup' property is a string and must be specified as:
- A string
- A number that will be converted to a string
R... |
Sets the legend group for this trace. Traces part of the same
legend group hide/show at the same time when toggling legend
items.
The 'legendgroup' property is a string and must be specified as:
- A string
- A number that will be converted to a string | def legendgroup(self):
"""
Sets the legend group for this trace. Traces part of the same
legend group hide/show at the same time when toggling legend
items.
The 'legendgroup' property is a string and must be specified as:
- A string
- A number that will b... | [
"def",
"legendgroup",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"legendgroup\"",
"]"
] | [
672,
4
] | [
686,
34
] | python | en | ['en', 'error', 'th'] | False |
Waterfall.measure | (self) |
An array containing types of values. By default the values are
considered as 'relative'. However; it is possible to use
'total' to compute the sums. Also 'absolute' could be applied
to reset the computed total or to declare an initial value
where needed.
The 'measur... |
An array containing types of values. By default the values are
considered as 'relative'. However; it is possible to use
'total' to compute the sums. Also 'absolute' could be applied
to reset the computed total or to declare an initial value
where needed.
The 'measur... | def measure(self):
"""
An array containing types of values. By default the values are
considered as 'relative'. However; it is possible to use
'total' to compute the sums. Also 'absolute' could be applied
to reset the computed total or to declare an initial value
where ne... | [
"def",
"measure",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"measure\"",
"]"
] | [
695,
4
] | [
710,
30
] | python | en | ['en', 'error', 'th'] | False |
Waterfall.measuresrc | (self) |
Sets the source reference on Chart Studio Cloud for measure .
The 'measuresrc' 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 measure .
The 'measuresrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def measuresrc(self):
"""
Sets the source reference on Chart Studio Cloud for measure .
The 'measuresrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["measuresrc"] | [
"def",
"measuresrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"measuresrc\"",
"]"
] | [
719,
4
] | [
730,
33
] | python | en | ['en', 'error', 'th'] | False |
Waterfall.meta | (self) |
Assigns extra meta information associated with this trace that
can be used in various text attributes. Attributes such as
trace `name`, graph, axis and colorbar `title.text`, annotation
`text` `rangeselector`, `updatemenues` and `sliders` `label`
text all support `meta`. To acce... |
Assigns extra meta information associated with this trace that
can be used in various text attributes. Attributes such as
trace `name`, graph, axis and colorbar `title.text`, annotation
`text` `rangeselector`, `updatemenues` and `sliders` `label`
text all support `meta`. To acce... | def meta(self):
"""
Assigns extra meta information associated with this trace that
can be used in various text attributes. Attributes such as
trace `name`, graph, axis and colorbar `title.text`, annotation
`text` `rangeselector`, `updatemenues` and `sliders` `label`
text ... | [
"def",
"meta",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"meta\"",
"]"
] | [
739,
4
] | [
758,
27
] | python | en | ['en', 'error', 'th'] | False |
Waterfall.metasrc | (self) |
Sets the source reference on Chart Studio Cloud for meta .
The 'metasrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
|
Sets the source reference on Chart Studio Cloud for meta .
The 'metasrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def metasrc(self):
"""
Sets the source reference on Chart Studio Cloud for meta .
The 'metasrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["metasrc"] | [
"def",
"metasrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"metasrc\"",
"]"
] | [
767,
4
] | [
778,
30
] | python | en | ['en', 'error', 'th'] | False |
Waterfall.name | (self) |
Sets the trace name. The trace name appear as the legend item
and on hover.
The 'name' property is a string and must be specified as:
- A string
- A number that will be converted to a string
Returns
-------
str
|
Sets the trace name. The trace name appear as the legend item
and on hover.
The 'name' property is a string and must be specified as:
- A string
- A number that will be converted to a string | def name(self):
"""
Sets the trace name. The trace name appear as the legend item
and on hover.
The 'name' property is a string and must be specified as:
- A string
- A number that will be converted to a string
Returns
-------
str
... | [
"def",
"name",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"name\"",
"]"
] | [
787,
4
] | [
800,
27
] | python | en | ['en', 'error', 'th'] | False |
Waterfall.offset | (self) |
Shifts the position where the bar is drawn (in position axis
units). In "group" barmode, traces that set "offset" will be
excluded and drawn in "overlay" mode instead.
The 'offset' property is a number and may be specified as:
- An int or float
- A tuple, list, ... |
Shifts the position where the bar is drawn (in position axis
units). In "group" barmode, traces that set "offset" will be
excluded and drawn in "overlay" mode instead.
The 'offset' property is a number and may be specified as:
- An int or float
- A tuple, list, ... | def offset(self):
"""
Shifts the position where the bar is drawn (in position axis
units). In "group" barmode, traces that set "offset" will be
excluded and drawn in "overlay" mode instead.
The 'offset' property is a number and may be specified as:
- An int or floa... | [
"def",
"offset",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"offset\"",
"]"
] | [
809,
4
] | [
823,
29
] | python | en | ['en', 'error', 'th'] | False |
Waterfall.offsetgroup | (self) |
Set several traces linked to the same position axis or matching
axes to the same offsetgroup where bars of the same position
coordinate will line up.
The 'offsetgroup' property is a string and must be specified as:
- A string
- A number that will be converted to... |
Set several traces linked to the same position axis or matching
axes to the same offsetgroup where bars of the same position
coordinate will line up.
The 'offsetgroup' property is a string and must be specified as:
- A string
- A number that will be converted to... | def offsetgroup(self):
"""
Set several traces linked to the same position axis or matching
axes to the same offsetgroup where bars of the same position
coordinate will line up.
The 'offsetgroup' property is a string and must be specified as:
- A string
- ... | [
"def",
"offsetgroup",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"offsetgroup\"",
"]"
] | [
832,
4
] | [
846,
34
] | python | en | ['en', 'error', 'th'] | False |
Waterfall.offsetsrc | (self) |
Sets the source reference on Chart Studio Cloud for offset .
The 'offsetsrc' 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 offset .
The 'offsetsrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def offsetsrc(self):
"""
Sets the source reference on Chart Studio Cloud for offset .
The 'offsetsrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["offsetsrc"] | [
"def",
"offsetsrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"offsetsrc\"",
"]"
] | [
855,
4
] | [
866,
32
] | python | en | ['en', 'error', 'th'] | False |
Waterfall.opacity | (self) |
Sets the opacity of the trace.
The 'opacity' property is a number and may be specified as:
- An int or float in the interval [0, 1]
Returns
-------
int|float
|
Sets the opacity of the trace.
The 'opacity' property is a number and may be specified as:
- An int or float in the interval [0, 1] | def opacity(self):
"""
Sets the opacity of the trace.
The 'opacity' property is a number and may be specified as:
- An int or float in the interval [0, 1]
Returns
-------
int|float
"""
return self["opacity"] | [
"def",
"opacity",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"opacity\"",
"]"
] | [
875,
4
] | [
886,
30
] | python | en | ['en', 'error', 'th'] | False |
Waterfall.orientation | (self) |
Sets the orientation of the bars. With "v" ("h"), the value of
the each bar spans along the vertical (horizontal).
The 'orientation' property is an enumeration that may be specified as:
- One of the following enumeration values:
['v', 'h']
Returns
... |
Sets the orientation of the bars. With "v" ("h"), the value of
the each bar spans along the vertical (horizontal).
The 'orientation' property is an enumeration that may be specified as:
- One of the following enumeration values:
['v', 'h'] | def orientation(self):
"""
Sets the orientation of the bars. With "v" ("h"), the value of
the each bar spans along the vertical (horizontal).
The 'orientation' property is an enumeration that may be specified as:
- One of the following enumeration values:
[... | [
"def",
"orientation",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"orientation\"",
"]"
] | [
895,
4
] | [
908,
34
] | python | en | ['en', 'error', 'th'] | False |
Waterfall.outsidetextfont | (self) |
Sets the font used for `text` lying outside the bar.
The 'outsidetextfont' property is an instance of Outsidetextfont
that may be specified as:
- An instance of :class:`plotly.graph_objs.waterfall.Outsidetextfont`
- A dict of string/value properties that will be passed
... |
Sets the font used for `text` lying outside the bar.
The 'outsidetextfont' property is an instance of Outsidetextfont
that may be specified as:
- An instance of :class:`plotly.graph_objs.waterfall.Outsidetextfont`
- A dict of string/value properties that will be passed
... | def outsidetextfont(self):
"""
Sets the font used for `text` lying outside the bar.
The 'outsidetextfont' property is an instance of Outsidetextfont
that may be specified as:
- An instance of :class:`plotly.graph_objs.waterfall.Outsidetextfont`
- A dict of string... | [
"def",
"outsidetextfont",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"outsidetextfont\"",
"]"
] | [
917,
4
] | [
964,
38
] | python | en | ['en', 'error', 'th'] | False |
Waterfall.selectedpoints | (self) |
Array containing integer indices of selected points. Has an
effect only for traces that support selections. Note that an
empty array means an empty selection where the `unselected` are
turned on for all points, whereas, any other non-array values
means no selection all where the... |
Array containing integer indices of selected points. Has an
effect only for traces that support selections. Note that an
empty array means an empty selection where the `unselected` are
turned on for all points, whereas, any other non-array values
means no selection all where the... | def selectedpoints(self):
"""
Array containing integer indices of selected points. Has an
effect only for traces that support selections. Note that an
empty array means an empty selection where the `unselected` are
turned on for all points, whereas, any other non-array values
... | [
"def",
"selectedpoints",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"selectedpoints\"",
"]"
] | [
973,
4
] | [
988,
37
] | python | en | ['en', 'error', 'th'] | False |
Waterfall.showlegend | (self) |
Determines whether or not an item corresponding to this trace
is shown in the legend.
The 'showlegend' property must be specified as a bool
(either True, or False)
Returns
-------
bool
|
Determines whether or not an item corresponding to this trace
is shown in the legend.
The 'showlegend' property must be specified as a bool
(either True, or False) | def showlegend(self):
"""
Determines whether or not an item corresponding to this trace
is shown in the legend.
The 'showlegend' property must be specified as a bool
(either True, or False)
Returns
-------
bool
"""
return self["showle... | [
"def",
"showlegend",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"showlegend\"",
"]"
] | [
997,
4
] | [
1009,
33
] | python | en | ['en', 'error', 'th'] | False |
Waterfall.stream | (self) |
The 'stream' property is an instance of Stream
that may be specified as:
- An instance of :class:`plotly.graph_objs.waterfall.Stream`
- A dict of string/value properties that will be passed
to the Stream constructor
Supported dict properties:
... |
The 'stream' property is an instance of Stream
that may be specified as:
- An instance of :class:`plotly.graph_objs.waterfall.Stream`
- A dict of string/value properties that will be passed
to the Stream constructor
Supported dict properties:
... | def stream(self):
"""
The 'stream' property is an instance of Stream
that may be specified as:
- An instance of :class:`plotly.graph_objs.waterfall.Stream`
- A dict of string/value properties that will be passed
to the Stream constructor
Supported... | [
"def",
"stream",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"stream\"",
"]"
] | [
1018,
4
] | [
1042,
29
] | python | en | ['en', 'error', 'th'] | False |
Waterfall.text | (self) |
Sets text elements associated with each (x,y) pair. If a single
string, the same string appears over all the data points. If an
array of string, the items are mapped in order to the this
trace's (x,y) coordinates. If trace `hoverinfo` contains a
"text" flag and "hovertext" is no... |
Sets text elements associated with each (x,y) pair. If a single
string, the same string appears over all the data points. If an
array of string, the items are mapped in order to the this
trace's (x,y) coordinates. If trace `hoverinfo` contains a
"text" flag and "hovertext" is no... | def text(self):
"""
Sets text elements associated with each (x,y) pair. If a single
string, the same string appears over all the data points. If an
array of string, the items are mapped in order to the this
trace's (x,y) coordinates. If trace `hoverinfo` contains a
"text"... | [
"def",
"text",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"text\"",
"]"
] | [
1051,
4
] | [
1069,
27
] | python | en | ['en', 'error', 'th'] | False |
Waterfall.textangle | (self) |
Sets the angle of the tick labels with respect to the bar. For
example, a `tickangle` of -90 draws the tick labels vertically.
With "auto" the texts may automatically be rotated to fit with
the maximum size in bars.
The 'textangle' property is a angle (in degrees) that may ... |
Sets the angle of the tick labels with respect to the bar. For
example, a `tickangle` of -90 draws the tick labels vertically.
With "auto" the texts may automatically be rotated to fit with
the maximum size in bars.
The 'textangle' property is a angle (in degrees) that may ... | def textangle(self):
"""
Sets the angle of the tick labels with respect to the bar. For
example, a `tickangle` of -90 draws the tick labels vertically.
With "auto" the texts may automatically be rotated to fit with
the maximum size in bars.
The 'textangle' property i... | [
"def",
"textangle",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"textangle\"",
"]"
] | [
1078,
4
] | [
1094,
32
] | python | en | ['en', 'error', 'th'] | False |
Waterfall.textfont | (self) |
Sets the font used for `text`.
The 'textfont' property is an instance of Textfont
that may be specified as:
- An instance of :class:`plotly.graph_objs.waterfall.Textfont`
- A dict of string/value properties that will be passed
to the Textfont constructor
... |
Sets the font used for `text`.
The 'textfont' property is an instance of Textfont
that may be specified as:
- An instance of :class:`plotly.graph_objs.waterfall.Textfont`
- A dict of string/value properties that will be passed
to the Textfont constructor
... | def textfont(self):
"""
Sets the font used for `text`.
The 'textfont' property is an instance of Textfont
that may be specified as:
- An instance of :class:`plotly.graph_objs.waterfall.Textfont`
- A dict of string/value properties that will be passed
... | [
"def",
"textfont",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"textfont\"",
"]"
] | [
1103,
4
] | [
1150,
31
] | python | en | ['en', 'error', 'th'] | False |
Waterfall.textinfo | (self) |
Determines which trace information appear on the graph. In the
case of having multiple waterfalls, totals are computed
separately (per trace).
The 'textinfo' property is a flaglist and may be specified
as a string containing:
- Any combination of ['label', 'text',... |
Determines which trace information appear on the graph. In the
case of having multiple waterfalls, totals are computed
separately (per trace).
The 'textinfo' property is a flaglist and may be specified
as a string containing:
- Any combination of ['label', 'text',... | def textinfo(self):
"""
Determines which trace information appear on the graph. In the
case of having multiple waterfalls, totals are computed
separately (per trace).
The 'textinfo' property is a flaglist and may be specified
as a string containing:
- Any c... | [
"def",
"textinfo",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"textinfo\"",
"]"
] | [
1159,
4
] | [
1175,
31
] | python | en | ['en', 'error', 'th'] | False |
Waterfall.textposition | (self) |
Specifies the location of the `text`. "inside" positions `text`
inside, next to the bar end (rotated and scaled if needed).
"outside" positions `text` outside, next to the bar end (scaled
if needed), unless there is another bar stacked on this one,
then the text gets pushed insi... |
Specifies the location of the `text`. "inside" positions `text`
inside, next to the bar end (rotated and scaled if needed).
"outside" positions `text` outside, next to the bar end (scaled
if needed), unless there is another bar stacked on this one,
then the text gets pushed insi... | def textposition(self):
"""
Specifies the location of the `text`. "inside" positions `text`
inside, next to the bar end (rotated and scaled if needed).
"outside" positions `text` outside, next to the bar end (scaled
if needed), unless there is another bar stacked on this one,
... | [
"def",
"textposition",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"textposition\"",
"]"
] | [
1184,
4
] | [
1203,
35
] | python | en | ['en', 'error', 'th'] | False |
Waterfall.textpositionsrc | (self) |
Sets the source reference on Chart Studio Cloud for
textposition .
The 'textpositionsrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
|
Sets the source reference on Chart Studio Cloud for
textposition .
The 'textpositionsrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def textpositionsrc(self):
"""
Sets the source reference on Chart Studio Cloud for
textposition .
The 'textpositionsrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self[... | [
"def",
"textpositionsrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"textpositionsrc\"",
"]"
] | [
1212,
4
] | [
1224,
38
] | python | en | ['en', 'error', 'th'] | False |
Waterfall.textsrc | (self) |
Sets the source reference on Chart Studio Cloud for text .
The 'textsrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
|
Sets the source reference on Chart Studio Cloud for text .
The 'textsrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def textsrc(self):
"""
Sets the source reference on Chart Studio Cloud for text .
The 'textsrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["textsrc"] | [
"def",
"textsrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"textsrc\"",
"]"
] | [
1233,
4
] | [
1244,
30
] | python | en | ['en', 'error', 'th'] | False |
Waterfall.texttemplate | (self) |
Template string used for rendering the information text that
appear on points. Note that this will override `textinfo`.
Variables are inserted using %{variable}, for example "y:
%{y}". Numbers are formatted using d3-format's syntax
%{variable:d3-format}, for example "Price: %{y:... |
Template string used for rendering the information text that
appear on points. Note that this will override `textinfo`.
Variables are inserted using %{variable}, for example "y:
%{y}". Numbers are formatted using d3-format's syntax
%{variable:d3-format}, for example "Price: %{y:... | def texttemplate(self):
"""
Template string used for rendering the information text that
appear on points. Note that this will override `textinfo`.
Variables are inserted using %{variable}, for example "y:
%{y}". Numbers are formatted using d3-format's syntax
%{variable:d... | [
"def",
"texttemplate",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"texttemplate\"",
"]"
] | [
1253,
4
] | [
1279,
35
] | python | en | ['en', 'error', 'th'] | False |
Waterfall.texttemplatesrc | (self) |
Sets the source reference on Chart Studio Cloud for
texttemplate .
The 'texttemplatesrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
|
Sets the source reference on Chart Studio Cloud for
texttemplate .
The 'texttemplatesrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def texttemplatesrc(self):
"""
Sets the source reference on Chart Studio Cloud for
texttemplate .
The 'texttemplatesrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self[... | [
"def",
"texttemplatesrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"texttemplatesrc\"",
"]"
] | [
1288,
4
] | [
1300,
38
] | python | en | ['en', 'error', 'th'] | False |
Waterfall.totals | (self) |
The 'totals' property is an instance of Totals
that may be specified as:
- An instance of :class:`plotly.graph_objs.waterfall.Totals`
- A dict of string/value properties that will be passed
to the Totals constructor
Supported dict properties:
... |
The 'totals' property is an instance of Totals
that may be specified as:
- An instance of :class:`plotly.graph_objs.waterfall.Totals`
- A dict of string/value properties that will be passed
to the Totals constructor
Supported dict properties:
... | def totals(self):
"""
The 'totals' property is an instance of Totals
that may be specified as:
- An instance of :class:`plotly.graph_objs.waterfall.Totals`
- A dict of string/value properties that will be passed
to the Totals constructor
Supported... | [
"def",
"totals",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"totals\"",
"]"
] | [
1309,
4
] | [
1328,
29
] | python | en | ['en', 'error', 'th'] | False |
Waterfall.uid | (self) |
Assign an id to this trace, Use this to provide object
constancy between traces during animations and transitions.
The 'uid' property is a string and must be specified as:
- A string
- A number that will be converted to a string
Returns
-------
... |
Assign an id to this trace, Use this to provide object
constancy between traces during animations and transitions.
The 'uid' property is a string and must be specified as:
- A string
- A number that will be converted to a string | def uid(self):
"""
Assign an id to this trace, Use this to provide object
constancy between traces during animations and transitions.
The 'uid' property is a string and must be specified as:
- A string
- A number that will be converted to a string
Return... | [
"def",
"uid",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"uid\"",
"]"
] | [
1337,
4
] | [
1350,
26
] | python | en | ['en', 'error', 'th'] | False |
Waterfall.uirevision | (self) |
Controls persistence of some user-driven changes to the trace:
`constraintrange` in `parcoords` traces, as well as some
`editable: true` modifications such as `name` and
`colorbar.title`. Defaults to `layout.uirevision`. Note that
other user-driven trace attribute changes are co... |
Controls persistence of some user-driven changes to the trace:
`constraintrange` in `parcoords` traces, as well as some
`editable: true` modifications such as `name` and
`colorbar.title`. Defaults to `layout.uirevision`. Note that
other user-driven trace attribute changes are co... | def uirevision(self):
"""
Controls persistence of some user-driven changes to the trace:
`constraintrange` in `parcoords` traces, as well as some
`editable: true` modifications such as `name` and
`colorbar.title`. Defaults to `layout.uirevision`. Note that
other user-driv... | [
"def",
"uirevision",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"uirevision\"",
"]"
] | [
1359,
4
] | [
1383,
33
] | python | en | ['en', 'error', 'th'] | False |
Waterfall.visible | (self) |
Determines whether or not this trace is visible. If
"legendonly", the trace is not drawn, but can appear as a
legend item (provided that the legend itself is visible).
The 'visible' property is an enumeration that may be specified as:
- One of the following enumeration va... |
Determines whether or not this trace is visible. If
"legendonly", the trace is not drawn, but can appear as a
legend item (provided that the legend itself is visible).
The 'visible' property is an enumeration that may be specified as:
- One of the following enumeration va... | def visible(self):
"""
Determines whether or not this trace is visible. If
"legendonly", the trace is not drawn, but can appear as a
legend item (provided that the legend itself is visible).
The 'visible' property is an enumeration that may be specified as:
- One o... | [
"def",
"visible",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"visible\"",
"]"
] | [
1392,
4
] | [
1406,
30
] | python | en | ['en', 'error', 'th'] | False |
Waterfall.width | (self) |
Sets the bar width (in position axis units).
The 'width' property is a number and may be specified as:
- An int or float in the interval [0, inf]
- A tuple, list, or one-dimensional numpy array of the above
Returns
-------
int|float|numpy.ndarray
... |
Sets the bar width (in position axis units).
The 'width' property is a number and may be specified as:
- An int or float in the interval [0, inf]
- A tuple, list, or one-dimensional numpy array of the above | def width(self):
"""
Sets the bar width (in position axis units).
The 'width' property is a number and may be specified as:
- An int or float in the interval [0, inf]
- A tuple, list, or one-dimensional numpy array of the above
Returns
-------
in... | [
"def",
"width",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"width\"",
"]"
] | [
1415,
4
] | [
1427,
28
] | python | en | ['en', 'error', 'th'] | False |
Waterfall.widthsrc | (self) |
Sets the source reference on Chart Studio Cloud for width .
The 'widthsrc' 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 width .
The 'widthsrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def widthsrc(self):
"""
Sets the source reference on Chart Studio Cloud for width .
The 'widthsrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["widthsrc"] | [
"def",
"widthsrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"widthsrc\"",
"]"
] | [
1436,
4
] | [
1447,
31
] | python | en | ['en', 'error', 'th'] | False |
Waterfall.x | (self) |
Sets the x coordinates.
The 'x' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series
Returns
-------
numpy.ndarray
|
Sets the x coordinates.
The 'x' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series | def x(self):
"""
Sets the x coordinates.
The 'x' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series
Returns
-------
numpy.ndarray
"""
return self["x"] | [
"def",
"x",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"x\"",
"]"
] | [
1456,
4
] | [
1467,
24
] | python | en | ['en', 'error', 'th'] | False |
Waterfall.x0 | (self) |
Alternate to `x`. Builds a linear space of x coordinates. Use
with `dx` where `x0` is the starting coordinate and `dx` the
step.
The 'x0' property accepts values of any type
Returns
-------
Any
|
Alternate to `x`. Builds a linear space of x coordinates. Use
with `dx` where `x0` is the starting coordinate and `dx` the
step.
The 'x0' property accepts values of any type | def x0(self):
"""
Alternate to `x`. Builds a linear space of x coordinates. Use
with `dx` where `x0` is the starting coordinate and `dx` the
step.
The 'x0' property accepts values of any type
Returns
-------
Any
"""
return self["x0"] | [
"def",
"x0",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"x0\"",
"]"
] | [
1476,
4
] | [
1488,
25
] | python | en | ['en', 'error', 'th'] | False |
Waterfall.xaxis | (self) |
Sets a reference between this trace's x coordinates and a 2D
cartesian x axis. If "x" (the default value), the x coordinates
refer to `layout.xaxis`. If "x2", the x coordinates refer to
`layout.xaxis2`, and so on.
The 'xaxis' property is an identifier of a particular
... |
Sets a reference between this trace's x coordinates and a 2D
cartesian x axis. If "x" (the default value), the x coordinates
refer to `layout.xaxis`. If "x2", the x coordinates refer to
`layout.xaxis2`, and so on.
The 'xaxis' property is an identifier of a particular
... | def xaxis(self):
"""
Sets a reference between this trace's x coordinates and a 2D
cartesian x axis. If "x" (the default value), the x coordinates
refer to `layout.xaxis`. If "x2", the x coordinates refer to
`layout.xaxis2`, and so on.
The 'xaxis' property is an ident... | [
"def",
"xaxis",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"xaxis\"",
"]"
] | [
1497,
4
] | [
1513,
28
] | python | en | ['en', 'error', 'th'] | False |
Waterfall.xsrc | (self) |
Sets the source reference on Chart Studio Cloud for x .
The 'xsrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
|
Sets the source reference on Chart Studio Cloud for x .
The 'xsrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def xsrc(self):
"""
Sets the source reference on Chart Studio Cloud for x .
The 'xsrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["xsrc"] | [
"def",
"xsrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"xsrc\"",
"]"
] | [
1522,
4
] | [
1533,
27
] | python | en | ['en', 'error', 'th'] | False |
Waterfall.y | (self) |
Sets the y coordinates.
The 'y' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series
Returns
-------
numpy.ndarray
|
Sets the y coordinates.
The 'y' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series | def y(self):
"""
Sets the y coordinates.
The 'y' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series
Returns
-------
numpy.ndarray
"""
return self["y"] | [
"def",
"y",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"y\"",
"]"
] | [
1542,
4
] | [
1553,
24
] | python | en | ['en', 'error', 'th'] | False |
Waterfall.y0 | (self) |
Alternate to `y`. Builds a linear space of y coordinates. Use
with `dy` where `y0` is the starting coordinate and `dy` the
step.
The 'y0' property accepts values of any type
Returns
-------
Any
|
Alternate to `y`. Builds a linear space of y coordinates. Use
with `dy` where `y0` is the starting coordinate and `dy` the
step.
The 'y0' property accepts values of any type | def y0(self):
"""
Alternate to `y`. Builds a linear space of y coordinates. Use
with `dy` where `y0` is the starting coordinate and `dy` the
step.
The 'y0' property accepts values of any type
Returns
-------
Any
"""
return self["y0"] | [
"def",
"y0",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"y0\"",
"]"
] | [
1562,
4
] | [
1574,
25
] | python | en | ['en', 'error', 'th'] | False |
Waterfall.yaxis | (self) |
Sets a reference between this trace's y coordinates and a 2D
cartesian y axis. If "y" (the default value), the y coordinates
refer to `layout.yaxis`. If "y2", the y coordinates refer to
`layout.yaxis2`, and so on.
The 'yaxis' property is an identifier of a particular
... |
Sets a reference between this trace's y coordinates and a 2D
cartesian y axis. If "y" (the default value), the y coordinates
refer to `layout.yaxis`. If "y2", the y coordinates refer to
`layout.yaxis2`, and so on.
The 'yaxis' property is an identifier of a particular
... | def yaxis(self):
"""
Sets a reference between this trace's y coordinates and a 2D
cartesian y axis. If "y" (the default value), the y coordinates
refer to `layout.yaxis`. If "y2", the y coordinates refer to
`layout.yaxis2`, and so on.
The 'yaxis' property is an ident... | [
"def",
"yaxis",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"yaxis\"",
"]"
] | [
1583,
4
] | [
1599,
28
] | python | en | ['en', 'error', 'th'] | False |
Waterfall.ysrc | (self) |
Sets the source reference on Chart Studio Cloud for y .
The 'ysrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
|
Sets the source reference on Chart Studio Cloud for y .
The 'ysrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def ysrc(self):
"""
Sets the source reference on Chart Studio Cloud for y .
The 'ysrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["ysrc"] | [
"def",
"ysrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"ysrc\"",
"]"
] | [
1608,
4
] | [
1619,
27
] | python | en | ['en', 'error', 'th'] | False |
Waterfall.__init__ | (
self,
arg=None,
alignmentgroup=None,
base=None,
cliponaxis=None,
connector=None,
constraintext=None,
customdata=None,
customdatasrc=None,
decreasing=None,
dx=None,
dy=None,
hoverinfo=None,
hoverinfosrc=None... |
Construct a new Waterfall object
Draws waterfall trace which is useful graph to displays the
contribution of various elements (either positive or negative)
in a bar chart. The data visualized by the span of the bars is
set in `y` if `orientation` is set th "v" (the defa... |
Construct a new Waterfall object
Draws waterfall trace which is useful graph to displays the
contribution of various elements (either positive or negative)
in a bar chart. The data visualized by the span of the bars is
set in `y` if `orientation` is set th "v" (the defa... | def __init__(
self,
arg=None,
alignmentgroup=None,
base=None,
cliponaxis=None,
connector=None,
constraintext=None,
customdata=None,
customdatasrc=None,
decreasing=None,
dx=None,
dy=None,
hoverinfo=None,
hover... | [
"def",
"__init__",
"(",
"self",
",",
"arg",
"=",
"None",
",",
"alignmentgroup",
"=",
"None",
",",
"base",
"=",
"None",
",",
"cliponaxis",
"=",
"None",
",",
"connector",
"=",
"None",
",",
"constraintext",
"=",
"None",
",",
"customdata",
"=",
"None",
","... | [
1918,
4
] | [
2565,
34
] | python | en | ['en', 'error', 'th'] | False |
setup_interactive | () |
Set up the interactive script.
|
Set up the interactive script.
| def setup_interactive():
"""
Set up the interactive script.
"""
parser = setup_args()
opt = parser.parse_args()
if not opt.get("model_file"):
raise RuntimeError("Please specify a model file")
if opt.get("fixed_cands_path") is None:
fcp = os.path.join(
"/".join(opt... | [
"def",
"setup_interactive",
"(",
")",
":",
"parser",
"=",
"setup_args",
"(",
")",
"opt",
"=",
"parser",
".",
"parse_args",
"(",
")",
"if",
"not",
"opt",
".",
"get",
"(",
"\"model_file\"",
")",
":",
"raise",
"RuntimeError",
"(",
"\"Please specify a model file... | [
305,
0
] | [
331,
33
] | python | en | ['en', 'error', 'th'] | False |
MyHandler.interactive_running | (self, data) |
Generate a model response.
:param data:
data to send to model
:return:
model act dictionary
|
Generate a model response. | def interactive_running(self, data):
"""
Generate a model response.
:param data:
data to send to model
:return:
model act dictionary
"""
reply = {}
reply["text"] = data["personality"][0].decode()
text = data["text"][0].decode()
... | [
"def",
"interactive_running",
"(",
"self",
",",
"data",
")",
":",
"reply",
"=",
"{",
"}",
"reply",
"[",
"\"text\"",
"]",
"=",
"data",
"[",
"\"personality\"",
"]",
"[",
"0",
"]",
".",
"decode",
"(",
")",
"text",
"=",
"data",
"[",
"\"text\"",
"]",
"[... | [
218,
4
] | [
244,
24
] | python | en | ['en', 'error', 'th'] | False |
MyHandler.do_HEAD | (self) |
Handle headers.
|
Handle headers.
| def do_HEAD(self):
"""
Handle headers.
"""
self.send_response(200)
self.send_header("Content-type", "text/html")
self.end_headers() | [
"def",
"do_HEAD",
"(",
"self",
")",
":",
"self",
".",
"send_response",
"(",
"200",
")",
"self",
".",
"send_header",
"(",
"\"Content-type\"",
",",
"\"text/html\"",
")",
"self",
".",
"end_headers",
"(",
")"
] | [
246,
4
] | [
252,
26
] | python | en | ['en', 'error', 'th'] | False |
MyHandler.do_POST | (self) |
Handle POST.
|
Handle POST.
| def do_POST(self):
"""
Handle POST.
"""
if self.path != "/interact":
return self.respond({"status": 500})
ctype, pdict = cgi.parse_header(self.headers["content-type"])
pdict["boundary"] = bytes(pdict["boundary"], "utf-8")
postvars = cgi.parse_multipart... | [
"def",
"do_POST",
"(",
"self",
")",
":",
"if",
"self",
".",
"path",
"!=",
"\"/interact\"",
":",
"return",
"self",
".",
"respond",
"(",
"{",
"\"status\"",
":",
"500",
"}",
")",
"ctype",
",",
"pdict",
"=",
"cgi",
".",
"parse_header",
"(",
"self",
".",
... | [
254,
4
] | [
272,
50
] | python | en | ['en', 'error', 'th'] | False |
MyHandler.do_GET | (self) |
Handle GET.
|
Handle GET.
| def do_GET(self):
"""
Handle GET.
"""
paths = {
"/": {"status": 200},
"/favicon.ico": {"status": 202}, # Need for chrome
}
if self.path in paths:
self.respond(paths[self.path])
else:
self.respond({"status": 500}) | [
"def",
"do_GET",
"(",
"self",
")",
":",
"paths",
"=",
"{",
"\"/\"",
":",
"{",
"\"status\"",
":",
"200",
"}",
",",
"\"/favicon.ico\"",
":",
"{",
"\"status\"",
":",
"202",
"}",
",",
"# Need for chrome",
"}",
"if",
"self",
".",
"path",
"in",
"paths",
":... | [
274,
4
] | [
285,
41
] | python | en | ['en', 'error', 'th'] | False |
MyHandler.handle_http | (self, status_code, path, text=None) |
Generate HTTP.
|
Generate HTTP.
| def handle_http(self, status_code, path, text=None):
"""
Generate HTTP.
"""
self.send_response(status_code)
self.send_header("Content-type", "text/html")
self.end_headers()
content = WEB_HTML.format(STYLE_SHEET, FONT_AWESOME)
return bytes(content, "UTF-8") | [
"def",
"handle_http",
"(",
"self",
",",
"status_code",
",",
"path",
",",
"text",
"=",
"None",
")",
":",
"self",
".",
"send_response",
"(",
"status_code",
")",
"self",
".",
"send_header",
"(",
"\"Content-type\"",
",",
"\"text/html\"",
")",
"self",
".",
"end... | [
287,
4
] | [
295,
38
] | python | en | ['en', 'error', 'th'] | False |
MyHandler.respond | (self, opts) |
Respond.
|
Respond.
| def respond(self, opts):
"""
Respond.
"""
response = self.handle_http(opts["status"], self.path)
self.wfile.write(response) | [
"def",
"respond",
"(",
"self",
",",
"opts",
")",
":",
"response",
"=",
"self",
".",
"handle_http",
"(",
"opts",
"[",
"\"status\"",
"]",
",",
"self",
".",
"path",
")",
"self",
".",
"wfile",
".",
"write",
"(",
"response",
")"
] | [
297,
4
] | [
302,
34
] | python | en | ['en', 'error', 'th'] | False |
ConnectionResponse.__init__ | (self, *, connection: ConnectionDetail = None, **kwargs) |
Initialize connection response object.
Args:
connection: Connection details object
|
Initialize connection response object. | def __init__(self, *, connection: ConnectionDetail = None, **kwargs):
"""
Initialize connection response object.
Args:
connection: Connection details object
"""
super(ConnectionResponse, self).__init__(**kwargs)
self.connection = connection | [
"def",
"__init__",
"(",
"self",
",",
"*",
",",
"connection",
":",
"ConnectionDetail",
"=",
"None",
",",
"*",
"*",
"kwargs",
")",
":",
"super",
"(",
"ConnectionResponse",
",",
"self",
")",
".",
"__init__",
"(",
"*",
"*",
"kwargs",
")",
"self",
".",
"c... | [
24,
4
] | [
33,
36
] | 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.carpet.baxis.Tickfont`
color
family
... |
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
... | [
"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 |
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.sankey.Stream`
maxpoints
Sets the maximum number of points to keep on the plots
... |
Construct a new Stream object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of :class:`plotly.graph_objs.sankey.Stream`
maxpoints
Sets the maximum number of points to keep on the plots
... | 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.sankey.Stream`
... | [
"def",
"__init__",
"(",
"self",
",",
"arg",
"=",
"None",
",",
"maxpoints",
"=",
"None",
",",
"token",
"=",
"None",
",",
"*",
"*",
"kwargs",
")",
":",
"super",
"(",
"Stream",
",",
"self",
")",
".",
"__init__",
"(",
"\"stream\"",
")",
"if",
"\"_paren... | [
72,
4
] | [
139,
34
] | python | en | ['en', 'error', 'th'] | False |
test_pisa_retinanet_head_loss | () | Tests pisa retinanet head loss when truth is empty and non-empty. | Tests pisa retinanet head loss when truth is empty and non-empty. | def test_pisa_retinanet_head_loss():
"""Tests pisa retinanet head loss when truth is empty and non-empty."""
s = 256
img_metas = [{
'img_shape': (s, s, 3),
'scale_factor': 1,
'pad_shape': (s, s, 3)
}]
cfg = mmcv.Config(
dict(
assigner=dict(
... | [
"def",
"test_pisa_retinanet_head_loss",
"(",
")",
":",
"s",
"=",
"256",
"img_metas",
"=",
"[",
"{",
"'img_shape'",
":",
"(",
"s",
",",
"s",
",",
"3",
")",
",",
"'scale_factor'",
":",
"1",
",",
"'pad_shape'",
":",
"(",
"s",
",",
"s",
",",
"3",
")",
... | [
7,
0
] | [
71,
67
] | python | en | ['en', 'en', 'en'] | True |
test_pisa_ssd_head_loss | () | Tests pisa ssd head loss when truth is empty and non-empty. | Tests pisa ssd head loss when truth is empty and non-empty. | def test_pisa_ssd_head_loss():
"""Tests pisa ssd head loss when truth is empty and non-empty."""
s = 256
img_metas = [{
'img_shape': (s, s, 3),
'scale_factor': 1,
'pad_shape': (s, s, 3)
}]
cfg = mmcv.Config(
dict(
assigner=dict(
type='MaxI... | [
"def",
"test_pisa_ssd_head_loss",
"(",
")",
":",
"s",
"=",
"256",
"img_metas",
"=",
"[",
"{",
"'img_shape'",
":",
"(",
"s",
",",
"s",
",",
"3",
")",
",",
"'scale_factor'",
":",
"1",
",",
"'pad_shape'",
":",
"(",
"s",
",",
"s",
",",
"3",
")",
"}",... | [
74,
0
] | [
146,
67
] | python | en | ['en', 'en', 'en'] | True |
test_pisa_roi_head_loss | () | Tests pisa roi head loss when truth is empty and non-empty. | Tests pisa roi head loss when truth is empty and non-empty. | def test_pisa_roi_head_loss():
"""Tests pisa roi head loss when truth is empty and non-empty."""
train_cfg = mmcv.Config(
dict(
assigner=dict(
type='MaxIoUAssigner',
pos_iou_thr=0.7,
neg_iou_thr=0.3,
min_pos_iou=0.3,
... | [
"def",
"test_pisa_roi_head_loss",
"(",
")",
":",
"train_cfg",
"=",
"mmcv",
".",
"Config",
"(",
"dict",
"(",
"assigner",
"=",
"dict",
"(",
"type",
"=",
"'MaxIoUAssigner'",
",",
"pos_iou_thr",
"=",
"0.7",
",",
"neg_iou_thr",
"=",
"0.3",
",",
"min_pos_iou",
"... | [
149,
0
] | [
243,
67
] | python | en | ['en', 'en', 'en'] | True |
Contour.color | (self) |
Sets the color of the contour lines.
The 'color' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva string (e.g. 'hsv(0,100%,100%... |
Sets the color of the contour lines.
The 'color' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva string (e.g. 'hsv(0,100%,100%... | def color(self):
"""
Sets the color of the contour lines.
The 'color' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva s... | [
"def",
"color",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"color\"",
"]"
] | [
15,
4
] | [
65,
28
] | python | en | ['en', 'error', 'th'] | False |
Contour.show | (self) |
Sets whether or not dynamic contours are shown on hover
The 'show' property must be specified as a bool
(either True, or False)
Returns
-------
bool
|
Sets whether or not dynamic contours are shown on hover
The 'show' property must be specified as a bool
(either True, or False) | def show(self):
"""
Sets whether or not dynamic contours are shown on hover
The 'show' property must be specified as a bool
(either True, or False)
Returns
-------
bool
"""
return self["show"] | [
"def",
"show",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"show\"",
"]"
] | [
74,
4
] | [
85,
27
] | python | en | ['en', 'error', 'th'] | False |
Contour.width | (self) |
Sets the width of the contour lines.
The 'width' property is a number and may be specified as:
- An int or float in the interval [1, 16]
Returns
-------
int|float
|
Sets the width of the contour lines.
The 'width' property is a number and may be specified as:
- An int or float in the interval [1, 16] | def width(self):
"""
Sets the width of the contour lines.
The 'width' property is a number and may be specified as:
- An int or float in the interval [1, 16]
Returns
-------
int|float
"""
return self["width"] | [
"def",
"width",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"width\"",
"]"
] | [
94,
4
] | [
105,
28
] | python | en | ['en', 'error', 'th'] | False |
Contour.__init__ | (self, arg=None, color=None, show=None, width=None, **kwargs) |
Construct a new Contour object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.isosurface.Contour`
color
Sets the color of the contour lines.
... |
Construct a new Contour object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.isosurface.Contour`
color
Sets the color of the contour lines.
... | def __init__(self, arg=None, color=None, show=None, width=None, **kwargs):
"""
Construct a new Contour object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.iso... | [
"def",
"__init__",
"(",
"self",
",",
"arg",
"=",
"None",
",",
"color",
"=",
"None",
",",
"show",
"=",
"None",
",",
"width",
"=",
"None",
",",
"*",
"*",
"kwargs",
")",
":",
"super",
"(",
"Contour",
",",
"self",
")",
".",
"__init__",
"(",
"\"contou... | [
124,
4
] | [
193,
34
] | python | en | ['en', 'error', 'th'] | False |
Textfont.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
] | [
64,
28
] | python | en | ['en', 'error', 'th'] | False |
Textfont.colorsrc | (self) |
Sets the source reference on Chart Studio Cloud for color .
The 'colorsrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
|
Sets the source reference on Chart Studio Cloud for color .
The 'colorsrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def colorsrc(self):
"""
Sets the source reference on Chart Studio Cloud for color .
The 'colorsrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["colorsrc"] | [
"def",
"colorsrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"colorsrc\"",
"]"
] | [
73,
4
] | [
84,
31
] | python | en | ['en', 'error', 'th'] | False |
Textfont.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\"",
"]"
] | [
93,
4
] | [
116,
29
] | python | en | ['en', 'error', 'th'] | False |
Textfont.familysrc | (self) |
Sets the source reference on Chart Studio Cloud for family .
The 'familysrc' 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 family .
The 'familysrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def familysrc(self):
"""
Sets the source reference on Chart Studio Cloud for family .
The 'familysrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["familysrc"] | [
"def",
"familysrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"familysrc\"",
"]"
] | [
125,
4
] | [
136,
32
] | python | en | ['en', 'error', 'th'] | False |
Textfont.size | (self) |
The 'size' property is a number and may be specified as:
- An int or float in the interval [1, inf]
- A tuple, list, or one-dimensional numpy array of the above
Returns
-------
int|float|numpy.ndarray
|
The 'size' property is a number and may be specified as:
- An int or float in the interval [1, inf]
- A tuple, list, or one-dimensional numpy array of the above | def size(self):
"""
The 'size' property is a number and may be specified as:
- An int or float in the interval [1, inf]
- A tuple, list, or one-dimensional numpy array of the above
Returns
-------
int|float|numpy.ndarray
"""
return self["size"... | [
"def",
"size",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"size\"",
"]"
] | [
145,
4
] | [
155,
27
] | python | en | ['en', 'error', 'th'] | False |
Textfont.sizesrc | (self) |
Sets the source reference on Chart Studio Cloud for size .
The 'sizesrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
|
Sets the source reference on Chart Studio Cloud for size .
The 'sizesrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def sizesrc(self):
"""
Sets the source reference on Chart Studio Cloud for size .
The 'sizesrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["sizesrc"] | [
"def",
"sizesrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"sizesrc\"",
"]"
] | [
164,
4
] | [
175,
30
] | python | en | ['en', 'error', 'th'] | False |
Textfont.__init__ | (
self,
arg=None,
color=None,
colorsrc=None,
family=None,
familysrc=None,
size=None,
sizesrc=None,
**kwargs
) |
Construct a new Textfont object
Sets the font used for `text`.
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.funnel.Textfont`
color
colorsrc... |
Construct a new Textfont object
Sets the font used for `text`. | def __init__(
self,
arg=None,
color=None,
colorsrc=None,
family=None,
familysrc=None,
size=None,
sizesrc=None,
**kwargs
):
"""
Construct a new Textfont object
Sets the font used for `text`.
Parameters
... | [
"def",
"__init__",
"(",
"self",
",",
"arg",
"=",
"None",
",",
"color",
"=",
"None",
",",
"colorsrc",
"=",
"None",
",",
"family",
"=",
"None",
",",
"familysrc",
"=",
"None",
",",
"size",
"=",
"None",
",",
"sizesrc",
"=",
"None",
",",
"*",
"*",
"kw... | [
215,
4
] | [
329,
34
] | python | en | ['en', 'error', 'th'] | False |
EvenniaGameIndexClient.__init__ | (self, on_bad_request=None) |
:param on_bad_request: Optional callable to trigger when a bad request
was sent. This is almost always going to be due to bad config.
|
:param on_bad_request: Optional callable to trigger when a bad request
was sent. This is almost always going to be due to bad config.
| def __init__(self, on_bad_request=None):
"""
:param on_bad_request: Optional callable to trigger when a bad request
was sent. This is almost always going to be due to bad config.
"""
self.report_host = 'http://evennia-game-index.appspot.com'
self.report_path = '/api/v... | [
"def",
"__init__",
"(",
"self",
",",
"on_bad_request",
"=",
"None",
")",
":",
"self",
".",
"report_host",
"=",
"'http://evennia-game-index.appspot.com'",
"self",
".",
"report_path",
"=",
"'/api/v1/game/check_in'",
"self",
".",
"report_url",
"=",
"self",
".",
"repo... | [
27,
4
] | [
40,
59
] | python | en | ['en', 'error', 'th'] | False |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.