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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
Box.marker | (self) |
The 'marker' property is an instance of Marker
that may be specified as:
- An instance of :class:`plotly.graph_objs.box.Marker`
- A dict of string/value properties that will be passed
to the Marker constructor
Supported dict properties:
... |
The 'marker' property is an instance of Marker
that may be specified as:
- An instance of :class:`plotly.graph_objs.box.Marker`
- A dict of string/value properties that will be passed
to the Marker constructor
Supported dict properties:
... | def marker(self):
"""
The 'marker' property is an instance of Marker
that may be specified as:
- An instance of :class:`plotly.graph_objs.box.Marker`
- A dict of string/value properties that will be passed
to the Marker constructor
Supported dict ... | [
"def",
"marker",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"marker\"",
"]"
] | [
706,
4
] | [
743,
29
] | python | en | ['en', 'error', 'th'] | False |
Box.mean | (self) |
Sets the mean values. There should be as many items as the
number of boxes desired. This attribute has effect only under
the q1/median/q3 signature. If `mean` is not provided but a
sample (in `y` or `x`) is set, we compute the mean for each box
using the sample values.
... |
Sets the mean values. There should be as many items as the
number of boxes desired. This attribute has effect only under
the q1/median/q3 signature. If `mean` is not provided but a
sample (in `y` or `x`) is set, we compute the mean for each box
using the sample values.
... | def mean(self):
"""
Sets the mean values. There should be as many items as the
number of boxes desired. This attribute has effect only under
the q1/median/q3 signature. If `mean` is not provided but a
sample (in `y` or `x`) is set, we compute the mean for each box
using t... | [
"def",
"mean",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"mean\"",
"]"
] | [
752,
4
] | [
767,
27
] | python | en | ['en', 'error', 'th'] | False |
Box.meansrc | (self) |
Sets the source reference on Chart Studio Cloud for mean .
The 'meansrc' 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 mean .
The 'meansrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def meansrc(self):
"""
Sets the source reference on Chart Studio Cloud for mean .
The 'meansrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["meansrc"] | [
"def",
"meansrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"meansrc\"",
"]"
] | [
776,
4
] | [
787,
30
] | python | en | ['en', 'error', 'th'] | False |
Box.median | (self) |
Sets the median values. There should be as many items as the
number of boxes desired.
The 'median' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series
Returns
-------
numpy.ndarray
|
Sets the median values. There should be as many items as the
number of boxes desired.
The 'median' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series | def median(self):
"""
Sets the median values. There should be as many items as the
number of boxes desired.
The 'median' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series
Returns
-------
numpy.ndarray
... | [
"def",
"median",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"median\"",
"]"
] | [
796,
4
] | [
808,
29
] | python | en | ['en', 'error', 'th'] | False |
Box.mediansrc | (self) |
Sets the source reference on Chart Studio Cloud for median .
The 'mediansrc' 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 median .
The 'mediansrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def mediansrc(self):
"""
Sets the source reference on Chart Studio Cloud for median .
The 'mediansrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["mediansrc"] | [
"def",
"mediansrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"mediansrc\"",
"]"
] | [
817,
4
] | [
828,
32
] | python | en | ['en', 'error', 'th'] | False |
Box.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\"",
"]"
] | [
837,
4
] | [
856,
27
] | python | en | ['en', 'error', 'th'] | False |
Box.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\"",
"]"
] | [
865,
4
] | [
876,
30
] | python | en | ['en', 'error', 'th'] | False |
Box.name | (self) |
Sets the trace name. The trace name appear as the legend item
and on hover. For box traces, the name will also be used for
the position coordinate, if `x` and `x0` (`y` and `y0` if
horizontal) are missing and the position axis is categorical
The 'name' property is a string ... |
Sets the trace name. The trace name appear as the legend item
and on hover. For box traces, the name will also be used for
the position coordinate, if `x` and `x0` (`y` and `y0` if
horizontal) are missing and the position axis is categorical
The 'name' property is a string ... | def name(self):
"""
Sets the trace name. The trace name appear as the legend item
and on hover. For box traces, the name will also be used for
the position coordinate, if `x` and `x0` (`y` and `y0` if
horizontal) are missing and the position axis is categorical
The '... | [
"def",
"name",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"name\"",
"]"
] | [
885,
4
] | [
900,
27
] | python | en | ['en', 'error', 'th'] | False |
Box.notched | (self) |
Determines whether or not notches are drawn. Notches displays a
confidence interval around the median. We compute the
confidence interval as median +/- 1.57 * IQR / sqrt(N), where
IQR is the interquartile range and N is the sample size. If two
boxes' notches do not overlap there... |
Determines whether or not notches are drawn. Notches displays a
confidence interval around the median. We compute the
confidence interval as median +/- 1.57 * IQR / sqrt(N), where
IQR is the interquartile range and N is the sample size. If two
boxes' notches do not overlap there... | def notched(self):
"""
Determines whether or not notches are drawn. Notches displays a
confidence interval around the median. We compute the
confidence interval as median +/- 1.57 * IQR / sqrt(N), where
IQR is the interquartile range and N is the sample size. If two
boxes... | [
"def",
"notched",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"notched\"",
"]"
] | [
909,
4
] | [
928,
30
] | python | en | ['en', 'error', 'th'] | False |
Box.notchspan | (self) |
Sets the notch span from the boxes' `median` values. There
should be as many items as the number of boxes desired. This
attribute has effect only under the q1/median/q3 signature. If
`notchspan` is not provided but a sample (in `y` or `x`) is
set, we compute it as 1.57 * IQR / s... |
Sets the notch span from the boxes' `median` values. There
should be as many items as the number of boxes desired. This
attribute has effect only under the q1/median/q3 signature. If
`notchspan` is not provided but a sample (in `y` or `x`) is
set, we compute it as 1.57 * IQR / s... | def notchspan(self):
"""
Sets the notch span from the boxes' `median` values. There
should be as many items as the number of boxes desired. This
attribute has effect only under the q1/median/q3 signature. If
`notchspan` is not provided but a sample (in `y` or `x`) is
set,... | [
"def",
"notchspan",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"notchspan\"",
"]"
] | [
937,
4
] | [
953,
32
] | python | en | ['en', 'error', 'th'] | False |
Box.notchspansrc | (self) |
Sets the source reference on Chart Studio Cloud for notchspan
.
The 'notchspansrc' 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 notchspan
.
The 'notchspansrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def notchspansrc(self):
"""
Sets the source reference on Chart Studio Cloud for notchspan
.
The 'notchspansrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["notchsp... | [
"def",
"notchspansrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"notchspansrc\"",
"]"
] | [
962,
4
] | [
974,
35
] | python | en | ['en', 'error', 'th'] | False |
Box.notchwidth | (self) |
Sets the width of the notches relative to the box' width. For
example, with 0, the notches are as wide as the box(es).
The 'notchwidth' property is a number and may be specified as:
- An int or float in the interval [0, 0.5]
Returns
-------
int|float
... |
Sets the width of the notches relative to the box' width. For
example, with 0, the notches are as wide as the box(es).
The 'notchwidth' property is a number and may be specified as:
- An int or float in the interval [0, 0.5] | def notchwidth(self):
"""
Sets the width of the notches relative to the box' width. For
example, with 0, the notches are as wide as the box(es).
The 'notchwidth' property is a number and may be specified as:
- An int or float in the interval [0, 0.5]
Returns
... | [
"def",
"notchwidth",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"notchwidth\"",
"]"
] | [
983,
4
] | [
995,
33
] | python | en | ['en', 'error', 'th'] | False |
Box.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\"",
"]"
] | [
1004,
4
] | [
1018,
34
] | python | en | ['en', 'error', 'th'] | False |
Box.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\"",
"]"
] | [
1027,
4
] | [
1038,
30
] | python | en | ['en', 'error', 'th'] | False |
Box.orientation | (self) |
Sets the orientation of the box(es). If "v" ("h"), the
distribution is visualized 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 box(es). If "v" ("h"), the
distribution is visualized 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 box(es). If "v" ("h"), the
distribution is visualized 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\"",
"]"
] | [
1047,
4
] | [
1060,
34
] | python | en | ['en', 'error', 'th'] | False |
Box.pointpos | (self) |
Sets the position of the sample points in relation to the
box(es). If 0, the sample points are places over the center of
the box(es). Positive (negative) values correspond to positions
to the right (left) for vertical boxes and above (below) for
horizontal boxes
The... |
Sets the position of the sample points in relation to the
box(es). If 0, the sample points are places over the center of
the box(es). Positive (negative) values correspond to positions
to the right (left) for vertical boxes and above (below) for
horizontal boxes
The... | def pointpos(self):
"""
Sets the position of the sample points in relation to the
box(es). If 0, the sample points are places over the center of
the box(es). Positive (negative) values correspond to positions
to the right (left) for vertical boxes and above (below) for
ho... | [
"def",
"pointpos",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"pointpos\"",
"]"
] | [
1069,
4
] | [
1084,
31
] | python | en | ['en', 'error', 'th'] | False |
Box.q1 | (self) |
Sets the Quartile 1 values. There should be as many items as
the number of boxes desired.
The 'q1' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series
Returns
-------
numpy.ndarray
|
Sets the Quartile 1 values. There should be as many items as
the number of boxes desired.
The 'q1' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series | def q1(self):
"""
Sets the Quartile 1 values. There should be as many items as
the number of boxes desired.
The 'q1' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series
Returns
-------
numpy.ndarray
"""
... | [
"def",
"q1",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"q1\"",
"]"
] | [
1093,
4
] | [
1105,
25
] | python | en | ['en', 'error', 'th'] | False |
Box.q1src | (self) |
Sets the source reference on Chart Studio Cloud for q1 .
The 'q1src' 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 q1 .
The 'q1src' property must be specified as a string or
as a plotly.grid_objs.Column object | def q1src(self):
"""
Sets the source reference on Chart Studio Cloud for q1 .
The 'q1src' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["q1src"] | [
"def",
"q1src",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"q1src\"",
"]"
] | [
1114,
4
] | [
1125,
28
] | python | en | ['en', 'error', 'th'] | False |
Box.q3 | (self) |
Sets the Quartile 3 values. There should be as many items as
the number of boxes desired.
The 'q3' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series
Returns
-------
numpy.ndarray
|
Sets the Quartile 3 values. There should be as many items as
the number of boxes desired.
The 'q3' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series | def q3(self):
"""
Sets the Quartile 3 values. There should be as many items as
the number of boxes desired.
The 'q3' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series
Returns
-------
numpy.ndarray
"""
... | [
"def",
"q3",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"q3\"",
"]"
] | [
1134,
4
] | [
1146,
25
] | python | en | ['en', 'error', 'th'] | False |
Box.q3src | (self) |
Sets the source reference on Chart Studio Cloud for q3 .
The 'q3src' 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 q3 .
The 'q3src' property must be specified as a string or
as a plotly.grid_objs.Column object | def q3src(self):
"""
Sets the source reference on Chart Studio Cloud for q3 .
The 'q3src' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["q3src"] | [
"def",
"q3src",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"q3src\"",
"]"
] | [
1155,
4
] | [
1166,
28
] | python | en | ['en', 'error', 'th'] | False |
Box.quartilemethod | (self) |
Sets the method used to compute the sample's Q1 and Q3
quartiles. The "linear" method uses the 25th percentile for Q1
and 75th percentile for Q3 as computed using method #10 (listed
on http://www.amstat.org/publications/jse/v14n3/langford.html).
The "exclusive" method uses the m... |
Sets the method used to compute the sample's Q1 and Q3
quartiles. The "linear" method uses the 25th percentile for Q1
and 75th percentile for Q3 as computed using method #10 (listed
on http://www.amstat.org/publications/jse/v14n3/langford.html).
The "exclusive" method uses the m... | def quartilemethod(self):
"""
Sets the method used to compute the sample's Q1 and Q3
quartiles. The "linear" method uses the 25th percentile for Q1
and 75th percentile for Q3 as computed using method #10 (listed
on http://www.amstat.org/publications/jse/v14n3/langford.html).
... | [
"def",
"quartilemethod",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"quartilemethod\"",
"]"
] | [
1175,
4
] | [
1198,
37
] | python | en | ['en', 'error', 'th'] | False |
Box.sd | (self) |
Sets the standard deviation values. There should be as many
items as the number of boxes desired. This attribute has effect
only under the q1/median/q3 signature. If `sd` is not provided
but a sample (in `y` or `x`) is set, we compute the standard
deviation for each box using th... |
Sets the standard deviation values. There should be as many
items as the number of boxes desired. This attribute has effect
only under the q1/median/q3 signature. If `sd` is not provided
but a sample (in `y` or `x`) is set, we compute the standard
deviation for each box using th... | def sd(self):
"""
Sets the standard deviation values. There should be as many
items as the number of boxes desired. This attribute has effect
only under the q1/median/q3 signature. If `sd` is not provided
but a sample (in `y` or `x`) is set, we compute the standard
deviat... | [
"def",
"sd",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"sd\"",
"]"
] | [
1207,
4
] | [
1222,
25
] | python | en | ['en', 'error', 'th'] | False |
Box.sdsrc | (self) |
Sets the source reference on Chart Studio Cloud for sd .
The 'sdsrc' 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 sd .
The 'sdsrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def sdsrc(self):
"""
Sets the source reference on Chart Studio Cloud for sd .
The 'sdsrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["sdsrc"] | [
"def",
"sdsrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"sdsrc\"",
"]"
] | [
1231,
4
] | [
1242,
28
] | python | en | ['en', 'error', 'th'] | False |
Box.selected | (self) |
The 'selected' property is an instance of Selected
that may be specified as:
- An instance of :class:`plotly.graph_objs.box.Selected`
- A dict of string/value properties that will be passed
to the Selected constructor
Supported dict properties:
... |
The 'selected' property is an instance of Selected
that may be specified as:
- An instance of :class:`plotly.graph_objs.box.Selected`
- A dict of string/value properties that will be passed
to the Selected constructor
Supported dict properties:
... | def selected(self):
"""
The 'selected' property is an instance of Selected
that may be specified as:
- An instance of :class:`plotly.graph_objs.box.Selected`
- A dict of string/value properties that will be passed
to the Selected constructor
Suppo... | [
"def",
"selected",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"selected\"",
"]"
] | [
1251,
4
] | [
1269,
31
] | python | en | ['en', 'error', 'th'] | False |
Box.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\"",
"]"
] | [
1278,
4
] | [
1293,
37
] | python | en | ['en', 'error', 'th'] | False |
Box.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\"",
"]"
] | [
1302,
4
] | [
1314,
33
] | python | en | ['en', 'error', 'th'] | False |
Box.stream | (self) |
The 'stream' property is an instance of Stream
that may be specified as:
- An instance of :class:`plotly.graph_objs.box.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.box.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.box.Stream`
- A dict of string/value properties that will be passed
to the Stream constructor
Supported dict ... | [
"def",
"stream",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"stream\"",
"]"
] | [
1323,
4
] | [
1347,
29
] | python | en | ['en', 'error', 'th'] | False |
Box.text | (self) |
Sets the text elements associated with each sample value. 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 the text elements associated with each sample value. 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 text(self):
"""
Sets the text elements associated with each sample value. 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` mu... | [
"def",
"text",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"text\"",
"]"
] | [
1356,
4
] | [
1373,
27
] | python | en | ['en', 'error', 'th'] | False |
Box.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\"",
"]"
] | [
1382,
4
] | [
1393,
30
] | python | en | ['en', 'error', 'th'] | False |
Box.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\"",
"]"
] | [
1402,
4
] | [
1415,
26
] | python | en | ['en', 'error', 'th'] | False |
Box.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\"",
"]"
] | [
1424,
4
] | [
1448,
33
] | python | en | ['en', 'error', 'th'] | False |
Box.unselected | (self) |
The 'unselected' property is an instance of Unselected
that may be specified as:
- An instance of :class:`plotly.graph_objs.box.Unselected`
- A dict of string/value properties that will be passed
to the Unselected constructor
Supported dict properties:
... |
The 'unselected' property is an instance of Unselected
that may be specified as:
- An instance of :class:`plotly.graph_objs.box.Unselected`
- A dict of string/value properties that will be passed
to the Unselected constructor
Supported dict properties:
... | def unselected(self):
"""
The 'unselected' property is an instance of Unselected
that may be specified as:
- An instance of :class:`plotly.graph_objs.box.Unselected`
- A dict of string/value properties that will be passed
to the Unselected constructor
... | [
"def",
"unselected",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"unselected\"",
"]"
] | [
1457,
4
] | [
1476,
33
] | python | en | ['en', 'error', 'th'] | False |
Box.upperfence | (self) |
Sets the upper fence values. There should be as many items as
the number of boxes desired. This attribute has effect only
under the q1/median/q3 signature. If `upperfence` is not
provided but a sample (in `y` or `x`) is set, we compute the
lower as the last sample point above 1.... |
Sets the upper fence values. There should be as many items as
the number of boxes desired. This attribute has effect only
under the q1/median/q3 signature. If `upperfence` is not
provided but a sample (in `y` or `x`) is set, we compute the
lower as the last sample point above 1.... | def upperfence(self):
"""
Sets the upper fence values. There should be as many items as
the number of boxes desired. This attribute has effect only
under the q1/median/q3 signature. If `upperfence` is not
provided but a sample (in `y` or `x`) is set, we compute the
lower ... | [
"def",
"upperfence",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"upperfence\"",
"]"
] | [
1485,
4
] | [
1500,
33
] | python | en | ['en', 'error', 'th'] | False |
Box.upperfencesrc | (self) |
Sets the source reference on Chart Studio Cloud for upperfence
.
The 'upperfencesrc' 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 upperfence
.
The 'upperfencesrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def upperfencesrc(self):
"""
Sets the source reference on Chart Studio Cloud for upperfence
.
The 'upperfencesrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["uppe... | [
"def",
"upperfencesrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"upperfencesrc\"",
"]"
] | [
1509,
4
] | [
1521,
36
] | python | en | ['en', 'error', 'th'] | False |
Box.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\"",
"]"
] | [
1530,
4
] | [
1544,
30
] | python | en | ['en', 'error', 'th'] | False |
Box.whiskerwidth | (self) |
Sets the width of the whiskers relative to the box' width. For
example, with 1, the whiskers are as wide as the box(es).
The 'whiskerwidth' property is a number and may be specified as:
- An int or float in the interval [0, 1]
Returns
-------
int|float
... |
Sets the width of the whiskers relative to the box' width. For
example, with 1, the whiskers are as wide as the box(es).
The 'whiskerwidth' property is a number and may be specified as:
- An int or float in the interval [0, 1] | def whiskerwidth(self):
"""
Sets the width of the whiskers relative to the box' width. For
example, with 1, the whiskers are as wide as the box(es).
The 'whiskerwidth' property is a number and may be specified as:
- An int or float in the interval [0, 1]
Returns
... | [
"def",
"whiskerwidth",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"whiskerwidth\"",
"]"
] | [
1553,
4
] | [
1565,
35
] | python | en | ['en', 'error', 'th'] | False |
Box.width | (self) |
Sets the width of the box in data coordinate If 0 (default
value) the width is automatically selected based on the
positions of other box traces in the same subplot.
The 'width' property is a number and may be specified as:
- An int or float in the interval [0, inf]
... |
Sets the width of the box in data coordinate If 0 (default
value) the width is automatically selected based on the
positions of other box traces in the same subplot.
The 'width' property is a number and may be specified as:
- An int or float in the interval [0, inf] | def width(self):
"""
Sets the width of the box in data coordinate If 0 (default
value) the width is automatically selected based on the
positions of other box traces in the same subplot.
The 'width' property is a number and may be specified as:
- An int or float in... | [
"def",
"width",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"width\"",
"]"
] | [
1574,
4
] | [
1587,
28
] | python | en | ['en', 'error', 'th'] | False |
Box.x | (self) |
Sets the x sample data or coordinates. See overview for more
info.
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 sample data or coordinates. See overview for more
info.
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 sample data or coordinates. See overview for more
info.
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\"",
"]"
] | [
1596,
4
] | [
1608,
24
] | python | en | ['en', 'error', 'th'] | False |
Box.x0 | (self) |
Sets the x coordinate for single-box traces or the starting
coordinate for multi-box traces set using q1/median/q3. See
overview for more info.
The 'x0' property accepts values of any type
Returns
-------
Any
|
Sets the x coordinate for single-box traces or the starting
coordinate for multi-box traces set using q1/median/q3. See
overview for more info.
The 'x0' property accepts values of any type | def x0(self):
"""
Sets the x coordinate for single-box traces or the starting
coordinate for multi-box traces set using q1/median/q3. See
overview for more info.
The 'x0' property accepts values of any type
Returns
-------
Any
"""
ret... | [
"def",
"x0",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"x0\"",
"]"
] | [
1617,
4
] | [
1629,
25
] | python | en | ['en', 'error', 'th'] | False |
Box.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\"",
"]"
] | [
1638,
4
] | [
1654,
28
] | python | en | ['en', 'error', 'th'] | False |
Box.xcalendar | (self) |
Sets the calendar system to use with `x` date data.
The 'xcalendar' property is an enumeration that may be specified as:
- One of the following enumeration values:
['gregorian', 'chinese', 'coptic', 'discworld',
'ethiopian', 'hebrew', 'islamic', 'julian', ... |
Sets the calendar system to use with `x` date data.
The 'xcalendar' property is an enumeration that may be specified as:
- One of the following enumeration values:
['gregorian', 'chinese', 'coptic', 'discworld',
'ethiopian', 'hebrew', 'islamic', 'julian', ... | def xcalendar(self):
"""
Sets the calendar system to use with `x` date data.
The 'xcalendar' property is an enumeration that may be specified as:
- One of the following enumeration values:
['gregorian', 'chinese', 'coptic', 'discworld',
'ethiopian',... | [
"def",
"xcalendar",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"xcalendar\"",
"]"
] | [
1663,
4
] | [
1678,
32
] | python | en | ['en', 'error', 'th'] | False |
Box.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\"",
"]"
] | [
1687,
4
] | [
1698,
27
] | python | en | ['en', 'error', 'th'] | False |
Box.y | (self) |
Sets the y sample data or coordinates. See overview for more
info.
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 sample data or coordinates. See overview for more
info.
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 sample data or coordinates. See overview for more
info.
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\"",
"]"
] | [
1707,
4
] | [
1719,
24
] | python | en | ['en', 'error', 'th'] | False |
Box.y0 | (self) |
Sets the y coordinate for single-box traces or the starting
coordinate for multi-box traces set using q1/median/q3. See
overview for more info.
The 'y0' property accepts values of any type
Returns
-------
Any
|
Sets the y coordinate for single-box traces or the starting
coordinate for multi-box traces set using q1/median/q3. See
overview for more info.
The 'y0' property accepts values of any type | def y0(self):
"""
Sets the y coordinate for single-box traces or the starting
coordinate for multi-box traces set using q1/median/q3. See
overview for more info.
The 'y0' property accepts values of any type
Returns
-------
Any
"""
ret... | [
"def",
"y0",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"y0\"",
"]"
] | [
1728,
4
] | [
1740,
25
] | python | en | ['en', 'error', 'th'] | False |
Box.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\"",
"]"
] | [
1749,
4
] | [
1765,
28
] | python | en | ['en', 'error', 'th'] | False |
Box.ycalendar | (self) |
Sets the calendar system to use with `y` date data.
The 'ycalendar' property is an enumeration that may be specified as:
- One of the following enumeration values:
['gregorian', 'chinese', 'coptic', 'discworld',
'ethiopian', 'hebrew', 'islamic', 'julian', ... |
Sets the calendar system to use with `y` date data.
The 'ycalendar' property is an enumeration that may be specified as:
- One of the following enumeration values:
['gregorian', 'chinese', 'coptic', 'discworld',
'ethiopian', 'hebrew', 'islamic', 'julian', ... | def ycalendar(self):
"""
Sets the calendar system to use with `y` date data.
The 'ycalendar' property is an enumeration that may be specified as:
- One of the following enumeration values:
['gregorian', 'chinese', 'coptic', 'discworld',
'ethiopian',... | [
"def",
"ycalendar",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"ycalendar\"",
"]"
] | [
1774,
4
] | [
1789,
32
] | python | en | ['en', 'error', 'th'] | False |
Box.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\"",
"]"
] | [
1798,
4
] | [
1809,
27
] | python | en | ['en', 'error', 'th'] | False |
Box.__init__ | (
self,
arg=None,
alignmentgroup=None,
boxmean=None,
boxpoints=None,
customdata=None,
customdatasrc=None,
dx=None,
dy=None,
fillcolor=None,
hoverinfo=None,
hoverinfosrc=None,
hoverlabel=None,
hoveron=None,
... |
Construct a new Box object
Each box spans from quartile 1 (Q1) to quartile 3 (Q3). The
second quartile (Q2, i.e. the median) is marked by a line
inside the box. The fences grow outward from the boxes' edges,
by default they span +/- 1.5 times the interquartile range
... |
Construct a new Box object
Each box spans from quartile 1 (Q1) to quartile 3 (Q3). The
second quartile (Q2, i.e. the median) is marked by a line
inside the box. The fences grow outward from the boxes' edges,
by default they span +/- 1.5 times the interquartile range
... | def __init__(
self,
arg=None,
alignmentgroup=None,
boxmean=None,
boxpoints=None,
customdata=None,
customdatasrc=None,
dx=None,
dy=None,
fillcolor=None,
hoverinfo=None,
hoverinfosrc=None,
hoverlabel=None,
hove... | [
"def",
"__init__",
"(",
"self",
",",
"arg",
"=",
"None",
",",
"alignmentgroup",
"=",
"None",
",",
"boxmean",
"=",
"None",
",",
"boxpoints",
"=",
"None",
",",
"customdata",
"=",
"None",
",",
"customdatasrc",
"=",
"None",
",",
"dx",
"=",
"None",
",",
"... | [
2168,
4
] | [
2943,
34
] | python | en | ['en', 'error', 'th'] | False |
when_mentioned_or_roles_or | () |
An alternative to the standard `when_mentioned_or`.
This makes the bot invocable via:
* mentioning his name
* mentioning any of his roles
* starting a message with any of the entered `prefixes`
As we need the Bots roles and these can only be gathered after he connected, this function can't b... |
An alternative to the standard `when_mentioned_or`. | def when_mentioned_or_roles_or():
"""
An alternative to the standard `when_mentioned_or`.
This makes the bot invocable via:
* mentioning his name
* mentioning any of his roles
* starting a message with any of the entered `prefixes`
As we need the Bots roles and these can only be gathered ... | [
"def",
"when_mentioned_or_roles_or",
"(",
")",
":",
"def",
"inner",
"(",
"bot",
",",
"msg",
")",
":",
"config_set_prefixes",
"=",
"bot",
".",
"special_prefixes",
"role_exceptions",
"=",
"bot",
".",
"prefix_role_exceptions",
"extra",
"=",
"config_set_prefixes",
"r"... | [
30,
0
] | [
67,
16
] | python | en | ['en', 'error', 'th'] | False |
findSocietyPages | () |
Returns:
A list of all the extensions to the url from the root
page to each of the pages about each society.
|
Returns:
A list of all the extensions to the url from the root
page to each of the pages about each society.
| def findSocietyPages():
"""
Returns:
A list of all the extensions to the url from the root
page to each of the pages about each society.
"""
# Get and parse page content.
page = requests.get(SOCIETY_LIST_URL)
pageSoup = Bs(page.content, 'html.parser')
# Get the div section ... | [
"def",
"findSocietyPages",
"(",
")",
":",
"# Get and parse page content.",
"page",
"=",
"requests",
".",
"get",
"(",
"SOCIETY_LIST_URL",
")",
"pageSoup",
"=",
"Bs",
"(",
"page",
".",
"content",
",",
"'html.parser'",
")",
"# Get the div section for each society.",
"s... | [
11,
0
] | [
32,
16
] | python | en | ['en', 'error', 'th'] | False |
extractSocietyInfo | (urlExtensionList) |
Args:
urlExtensionList: list of extensions from the root of
the page to get to each society's page.
Returns:
list of sets of information about each society.
|
Args:
urlExtensionList: list of extensions from the root of
the page to get to each society's page. | def extractSocietyInfo(urlExtensionList):
"""
Args:
urlExtensionList: list of extensions from the root of
the page to get to each society's page.
Returns:
list of sets of information about each society.
"""
# Get and parse page content.
url = ROOT_PAGE + urlExtensionLis... | [
"def",
"extractSocietyInfo",
"(",
"urlExtensionList",
")",
":",
"# Get and parse page content.",
"url",
"=",
"ROOT_PAGE",
"+",
"urlExtensionList",
"page",
"=",
"requests",
".",
"get",
"(",
"url",
")",
"pageSoup",
"=",
"Bs",
"(",
"page",
".",
"content",
",",
"'... | [
34,
0
] | [
60,
24
] | python | en | ['en', 'error', 'th'] | False |
TfidfDocRanker.__init__ | (self, tfidf_path=None, strict=True) |
Args:
tfidf_path: path to saved model file
strict: fail on empty queries or continue (and return empty result)
|
Args:
tfidf_path: path to saved model file
strict: fail on empty queries or continue (and return empty result)
| def __init__(self, tfidf_path=None, strict=True):
"""
Args:
tfidf_path: path to saved model file
strict: fail on empty queries or continue (and return empty result)
"""
# Load from disk
logger.info('Loading %s' % tfidf_path)
matrix, metadata = util... | [
"def",
"__init__",
"(",
"self",
",",
"tfidf_path",
"=",
"None",
",",
"strict",
"=",
"True",
")",
":",
"# Load from disk",
"logger",
".",
"info",
"(",
"'Loading %s'",
"%",
"tfidf_path",
")",
"matrix",
",",
"metadata",
"=",
"utils",
".",
"load_sparse_csr",
"... | [
26,
4
] | [
42,
28
] | python | en | ['en', 'error', 'th'] | False |
TfidfDocRanker.get_doc_id | (self, doc_index) |
Convert doc_index --> doc_id.
|
Convert doc_index --> doc_id.
| def get_doc_id(self, doc_index):
"""
Convert doc_index --> doc_id.
"""
return self.doc_dict[1][doc_index] if self.doc_dict else doc_index | [
"def",
"get_doc_id",
"(",
"self",
",",
"doc_index",
")",
":",
"return",
"self",
".",
"doc_dict",
"[",
"1",
"]",
"[",
"doc_index",
"]",
"if",
"self",
".",
"doc_dict",
"else",
"doc_index"
] | [
44,
4
] | [
48,
74
] | python | en | ['en', 'error', 'th'] | False |
TfidfDocRanker.closest_docs | (self, query, k=1, matrix=None) |
Closest docs by dot product between query and documents in tfidf weighted word
vector space.
matrix arg can be provided to be used instead of internal doc matrix.
|
Closest docs by dot product between query and documents in tfidf weighted word
vector space. | def closest_docs(self, query, k=1, matrix=None):
"""
Closest docs by dot product between query and documents in tfidf weighted word
vector space.
matrix arg can be provided to be used instead of internal doc matrix.
"""
spvec = self.text2spvec(query)
res = spvec ... | [
"def",
"closest_docs",
"(",
"self",
",",
"query",
",",
"k",
"=",
"1",
",",
"matrix",
"=",
"None",
")",
":",
"spvec",
"=",
"self",
".",
"text2spvec",
"(",
"query",
")",
"res",
"=",
"spvec",
"*",
"matrix",
"if",
"matrix",
"is",
"not",
"None",
"else",... | [
50,
4
] | [
68,
34
] | python | en | ['en', 'error', 'th'] | False |
TfidfDocRanker.parse | (self, query) |
Parse the query into tokens (either ngrams or tokens).
|
Parse the query into tokens (either ngrams or tokens).
| def parse(self, query):
"""
Parse the query into tokens (either ngrams or tokens).
"""
tokens = self.tokenizer.tokenize(query)
return tokens.ngrams(n=self.ngrams, uncased=True, filter_fn=utils.filter_ngram) | [
"def",
"parse",
"(",
"self",
",",
"query",
")",
":",
"tokens",
"=",
"self",
".",
"tokenizer",
".",
"tokenize",
"(",
"query",
")",
"return",
"tokens",
".",
"ngrams",
"(",
"n",
"=",
"self",
".",
"ngrams",
",",
"uncased",
"=",
"True",
",",
"filter_fn",
... | [
70,
4
] | [
75,
87
] | python | en | ['en', 'error', 'th'] | False |
TfidfDocRanker.text2spvec | (self, query) |
Create a sparse tfidf-weighted word vector from query.
tfidf = log(tf + 1) * log((N - Nt + 0.5) / (Nt + 0.5))
|
Create a sparse tfidf-weighted word vector from query. | def text2spvec(self, query):
"""
Create a sparse tfidf-weighted word vector from query.
tfidf = log(tf + 1) * log((N - Nt + 0.5) / (Nt + 0.5))
"""
# Get hashed ngrams
words = self.parse(utils.normalize(query))
wids = [utils.hash(w, self.hash_size) for w in words]... | [
"def",
"text2spvec",
"(",
"self",
",",
"query",
")",
":",
"# Get hashed ngrams",
"words",
"=",
"self",
".",
"parse",
"(",
"utils",
".",
"normalize",
"(",
"query",
")",
")",
"wids",
"=",
"[",
"utils",
".",
"hash",
"(",
"w",
",",
"self",
".",
"hash_siz... | [
77,
4
] | [
110,
20
] | python | en | ['en', 'error', 'th'] | False |
Font.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 |
Font.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 |
Font.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 |
Font.__init__ | (self, arg=None, color=None, family=None, size=None, **kwargs) |
Construct a new Font object
Sets this color bar's title font. Note that the title's font
used to be set by the now deprecated `titlefont` attribute.
Parameters
----------
arg
dict of properties compatible with this constructor or
an inst... |
Construct a new Font object
Sets this color bar's title font. Note that the title's font
used to be set by the now deprecated `titlefont` attribute. | def __init__(self, arg=None, color=None, family=None, size=None, **kwargs):
"""
Construct a new Font object
Sets this color bar's title font. Note that the title's font
used to be set by the now deprecated `titlefont` attribute.
Parameters
----------
arg... | [
"def",
"__init__",
"(",
"self",
",",
"arg",
"=",
"None",
",",
"color",
"=",
"None",
",",
"family",
"=",
"None",
",",
"size",
"=",
"None",
",",
"*",
"*",
"kwargs",
")",
":",
"super",
"(",
"Font",
",",
"self",
")",
".",
"__init__",
"(",
"\"font\"",... | [
143,
4
] | [
227,
34
] | python | en | ['en', 'error', 'th'] | False |
BaseWallet.__init__ | (self, config: dict) |
Initialize a `BaseWallet` instance.
Args:
config: {name, key, seed, did, auto-create, auto-remove}
|
Initialize a `BaseWallet` instance. | def __init__(self, config: dict):
"""
Initialize a `BaseWallet` instance.
Args:
config: {name, key, seed, did, auto-create, auto-remove}
""" | [
"def",
"__init__",
"(",
"self",
",",
"config",
":",
"dict",
")",
":"
] | [
18,
4
] | [
25,
11
] | python | en | ['en', 'error', 'th'] | False |
BaseWallet.name | (self) |
Accessor for the wallet name.
Returns:
Defaults to None
|
Accessor for the wallet name. | def name(self) -> str:
"""
Accessor for the wallet name.
Returns:
Defaults to None
"""
return None | [
"def",
"name",
"(",
"self",
")",
"->",
"str",
":",
"return",
"None"
] | [
28,
4
] | [
36,
19
] | python | en | ['en', 'error', 'th'] | False |
BaseWallet.type | (self) |
Accessor for the wallet type.
Returns:
Defaults to None
|
Accessor for the wallet type. | def type(self) -> str:
"""
Accessor for the wallet type.
Returns:
Defaults to None
"""
return self.WALLET_TYPE | [
"def",
"type",
"(",
"self",
")",
"->",
"str",
":",
"return",
"self",
".",
"WALLET_TYPE"
] | [
39,
4
] | [
47,
31
] | python | en | ['en', 'error', 'th'] | False |
BaseWallet.handle | (self) |
Get internal wallet reference.
Returns:
Defaults to None
|
Get internal wallet reference. | def handle(self):
"""
Get internal wallet reference.
Returns:
Defaults to None
"""
return None | [
"def",
"handle",
"(",
"self",
")",
":",
"return",
"None"
] | [
50,
4
] | [
58,
19
] | python | en | ['en', 'error', 'th'] | False |
BaseWallet.created | (self) | Check whether the wallet was created on the last open call. | Check whether the wallet was created on the last open call. | def created(self) -> bool:
"""Check whether the wallet was created on the last open call."""
return None | [
"def",
"created",
"(",
"self",
")",
"->",
"bool",
":",
"return",
"None"
] | [
61,
4
] | [
63,
19
] | python | en | ['en', 'en', 'en'] | True |
BaseWallet.opened | (self) |
Check whether wallet is currently open.
Returns:
Defaults to False
|
Check whether wallet is currently open. | def opened(self) -> bool:
"""
Check whether wallet is currently open.
Returns:
Defaults to False
"""
return False | [
"def",
"opened",
"(",
"self",
")",
"->",
"bool",
":",
"return",
"False"
] | [
66,
4
] | [
74,
20
] | python | en | ['en', 'error', 'th'] | False |
BaseWallet.open | (self) | Open wallet, removing and/or creating it if so configured. | Open wallet, removing and/or creating it if so configured. | async def open(self):
"""Open wallet, removing and/or creating it if so configured.""" | [
"async",
"def",
"open",
"(",
"self",
")",
":"
] | [
77,
4
] | [
78,
72
] | python | en | ['en', 'en', 'en'] | True |
BaseWallet.close | (self) | Close previously-opened wallet, removing it if so configured. | Close previously-opened wallet, removing it if so configured. | async def close(self):
"""Close previously-opened wallet, removing it if so configured.""" | [
"async",
"def",
"close",
"(",
"self",
")",
":"
] | [
81,
4
] | [
82,
75
] | python | en | ['en', 'en', 'en'] | True |
BaseWallet.create_signing_key | (
self, seed: str = None, metadata: dict = None
) |
Create a new public/private signing keypair.
Args:
seed: Optional seed allowing deterministic key creation
metadata: Optional metadata to store with the keypair
Returns:
A `KeyInfo` representing the new record
|
Create a new public/private signing keypair. | async def create_signing_key(
self, seed: str = None, metadata: dict = None
) -> KeyInfo:
"""
Create a new public/private signing keypair.
Args:
seed: Optional seed allowing deterministic key creation
metadata: Optional metadata to store with the keypair
... | [
"async",
"def",
"create_signing_key",
"(",
"self",
",",
"seed",
":",
"str",
"=",
"None",
",",
"metadata",
":",
"dict",
"=",
"None",
")",
"->",
"KeyInfo",
":"
] | [
85,
4
] | [
98,
11
] | python | en | ['en', 'error', 'th'] | False |
BaseWallet.get_signing_key | (self, verkey: str) |
Fetch info for a signing keypair.
Args:
verkey: The verification key of the keypair
Returns:
A `KeyInfo` representing the keypair
|
Fetch info for a signing keypair. | async def get_signing_key(self, verkey: str) -> KeyInfo:
"""
Fetch info for a signing keypair.
Args:
verkey: The verification key of the keypair
Returns:
A `KeyInfo` representing the keypair
""" | [
"async",
"def",
"get_signing_key",
"(",
"self",
",",
"verkey",
":",
"str",
")",
"->",
"KeyInfo",
":"
] | [
101,
4
] | [
111,
11
] | python | en | ['en', 'error', 'th'] | False |
BaseWallet.replace_signing_key_metadata | (self, verkey: str, metadata: dict) |
Replace the metadata associated with a signing keypair.
Args:
verkey: The verification key of the keypair
metadata: The new metadata to store
|
Replace the metadata associated with a signing keypair. | async def replace_signing_key_metadata(self, verkey: str, metadata: dict):
"""
Replace the metadata associated with a signing keypair.
Args:
verkey: The verification key of the keypair
metadata: The new metadata to store
""" | [
"async",
"def",
"replace_signing_key_metadata",
"(",
"self",
",",
"verkey",
":",
"str",
",",
"metadata",
":",
"dict",
")",
":"
] | [
114,
4
] | [
122,
11
] | python | en | ['en', 'error', 'th'] | False |
BaseWallet.create_local_did | (
self, seed: str = None, did: str = None, metadata: dict = None
) |
Create and store a new local DID.
Args:
seed: Optional seed to use for did
did: The DID to use
metadata: Metadata to store with DID
Returns:
The created `DIDInfo`
|
Create and store a new local DID. | async def create_local_did(
self, seed: str = None, did: str = None, metadata: dict = None
) -> DIDInfo:
"""
Create and store a new local DID.
Args:
seed: Optional seed to use for did
did: The DID to use
metadata: Metadata to store with DID
... | [
"async",
"def",
"create_local_did",
"(",
"self",
",",
"seed",
":",
"str",
"=",
"None",
",",
"did",
":",
"str",
"=",
"None",
",",
"metadata",
":",
"dict",
"=",
"None",
")",
"->",
"DIDInfo",
":"
] | [
125,
4
] | [
139,
11
] | python | en | ['en', 'error', 'th'] | False |
BaseWallet.create_public_did | (
self, seed: str = None, did: str = None, metadata: dict = {}
) |
Create and store a new public DID.
Implicitly flags all other dids as not public.
Args:
seed: Optional seed to use for did
did: The DID to use
metadata: Metadata to store with DID
Returns:
The created `DIDInfo`
|
Create and store a new public DID. | async def create_public_did(
self, seed: str = None, did: str = None, metadata: dict = {}
) -> DIDInfo:
"""
Create and store a new public DID.
Implicitly flags all other dids as not public.
Args:
seed: Optional seed to use for did
did: The DID to use... | [
"async",
"def",
"create_public_did",
"(",
"self",
",",
"seed",
":",
"str",
"=",
"None",
",",
"did",
":",
"str",
"=",
"None",
",",
"metadata",
":",
"dict",
"=",
"{",
"}",
")",
"->",
"DIDInfo",
":",
"metadata",
"[",
"\"public\"",
"]",
"=",
"True",
"d... | [
141,
4
] | [
165,
63
] | python | en | ['en', 'error', 'th'] | False |
BaseWallet.get_public_did | (self) |
Retrieve the public did.
Returns:
The created `DIDInfo`
|
Retrieve the public did. | async def get_public_did(self) -> DIDInfo:
"""
Retrieve the public did.
Returns:
The created `DIDInfo`
"""
dids = await self.get_local_dids()
for info in dids:
if "public" in info.metadata and info.metadata["public"] is True:
ret... | [
"async",
"def",
"get_public_did",
"(",
"self",
")",
"->",
"DIDInfo",
":",
"dids",
"=",
"await",
"self",
".",
"get_local_dids",
"(",
")",
"for",
"info",
"in",
"dids",
":",
"if",
"\"public\"",
"in",
"info",
".",
"metadata",
"and",
"info",
".",
"metadata",
... | [
167,
4
] | [
181,
19
] | python | en | ['en', 'error', 'th'] | False |
BaseWallet.set_public_did | (self, did: str) |
Assign the public did.
Returns:
The created `DIDInfo`
|
Assign the public did. | async def set_public_did(self, did: str) -> DIDInfo:
"""
Assign the public did.
Returns:
The created `DIDInfo`
"""
# will raise an exception if not found
info = None if did is None else await self.get_local_did(did)
public = await self.get_public_d... | [
"async",
"def",
"set_public_did",
"(",
"self",
",",
"did",
":",
"str",
")",
"->",
"DIDInfo",
":",
"# will raise an exception if not found",
"info",
"=",
"None",
"if",
"did",
"is",
"None",
"else",
"await",
"self",
".",
"get_local_did",
"(",
"did",
")",
"publi... | [
183,
4
] | [
210,
19
] | python | en | ['en', 'error', 'th'] | False |
BaseWallet.get_local_dids | (self) |
Get list of defined local DIDs.
Returns:
A list of `DIDInfo` instances
|
Get list of defined local DIDs. | async def get_local_dids(self) -> Sequence[DIDInfo]:
"""
Get list of defined local DIDs.
Returns:
A list of `DIDInfo` instances
""" | [
"async",
"def",
"get_local_dids",
"(",
"self",
")",
"->",
"Sequence",
"[",
"DIDInfo",
"]",
":"
] | [
213,
4
] | [
220,
11
] | python | en | ['en', 'error', 'th'] | False |
BaseWallet.get_local_did | (self, did: str) |
Find info for a local DID.
Args:
did: The DID to get info for
Returns:
A `DIDInfo` instance for the DID
|
Find info for a local DID. | async def get_local_did(self, did: str) -> DIDInfo:
"""
Find info for a local DID.
Args:
did: The DID to get info for
Returns:
A `DIDInfo` instance for the DID
""" | [
"async",
"def",
"get_local_did",
"(",
"self",
",",
"did",
":",
"str",
")",
"->",
"DIDInfo",
":"
] | [
223,
4
] | [
233,
11
] | python | en | ['en', 'error', 'th'] | False |
BaseWallet.get_local_did_for_verkey | (self, verkey: str) |
Resolve a local DID from a verkey.
Args:
verkey: Verkey to get DID info for
Returns:
A `DIDInfo` instance for the DID
|
Resolve a local DID from a verkey. | async def get_local_did_for_verkey(self, verkey: str) -> DIDInfo:
"""
Resolve a local DID from a verkey.
Args:
verkey: Verkey to get DID info for
Returns:
A `DIDInfo` instance for the DID
""" | [
"async",
"def",
"get_local_did_for_verkey",
"(",
"self",
",",
"verkey",
":",
"str",
")",
"->",
"DIDInfo",
":"
] | [
236,
4
] | [
246,
11
] | python | en | ['en', 'error', 'th'] | False |
BaseWallet.replace_local_did_metadata | (self, did: str, metadata: dict) |
Replace the metadata associated with a local DID.
Args:
did: DID to replace metadata for
metadata: The new metadata
|
Replace the metadata associated with a local DID. | async def replace_local_did_metadata(self, did: str, metadata: dict):
"""
Replace the metadata associated with a local DID.
Args:
did: DID to replace metadata for
metadata: The new metadata
""" | [
"async",
"def",
"replace_local_did_metadata",
"(",
"self",
",",
"did",
":",
"str",
",",
"metadata",
":",
"dict",
")",
":"
] | [
249,
4
] | [
257,
11
] | python | en | ['en', 'error', 'th'] | False |
BaseWallet.sign_message | (self, message: bytes, from_verkey: str) |
Sign a message using the private key associated with a given verkey.
Args:
message: The message to sign
from_verkey: Sign using the private key related to this verkey
Returns:
The signature
|
Sign a message using the private key associated with a given verkey. | async def sign_message(self, message: bytes, from_verkey: str) -> bytes:
"""
Sign a message using the private key associated with a given verkey.
Args:
message: The message to sign
from_verkey: Sign using the private key related to this verkey
Returns:
... | [
"async",
"def",
"sign_message",
"(",
"self",
",",
"message",
":",
"bytes",
",",
"from_verkey",
":",
"str",
")",
"->",
"bytes",
":"
] | [
260,
4
] | [
271,
11
] | python | en | ['en', 'error', 'th'] | False |
BaseWallet.verify_message | (
self, message: bytes, signature: bytes, from_verkey: str
) |
Verify a signature against the public key of the signer.
Args:
message: The message to verify
signature: The signature to verify
from_verkey: Verkey to use in verification
Returns:
True if verified, else False
|
Verify a signature against the public key of the signer. | async def verify_message(
self, message: bytes, signature: bytes, from_verkey: str
) -> bool:
"""
Verify a signature against the public key of the signer.
Args:
message: The message to verify
signature: The signature to verify
from_verkey: Verkey ... | [
"async",
"def",
"verify_message",
"(",
"self",
",",
"message",
":",
"bytes",
",",
"signature",
":",
"bytes",
",",
"from_verkey",
":",
"str",
")",
"->",
"bool",
":"
] | [
274,
4
] | [
288,
11
] | python | en | ['en', 'error', 'th'] | False |
BaseWallet.encrypt_message | (
self, message: bytes, to_verkey: str, from_verkey: str = None
) |
Apply auth_crypt or anon_crypt to a message.
Args:
message: The binary message content
to_verkey: The verkey of the recipient
from_verkey: The verkey of the sender. If provided then auth_crypt is used,
otherwise anon_crypt is used.
Returns:
... |
Apply auth_crypt or anon_crypt to a message. | async def encrypt_message(
self, message: bytes, to_verkey: str, from_verkey: str = None
) -> bytes:
"""
Apply auth_crypt or anon_crypt to a message.
Args:
message: The binary message content
to_verkey: The verkey of the recipient
from_verkey: The... | [
"async",
"def",
"encrypt_message",
"(",
"self",
",",
"message",
":",
"bytes",
",",
"to_verkey",
":",
"str",
",",
"from_verkey",
":",
"str",
"=",
"None",
")",
"->",
"bytes",
":"
] | [
291,
4
] | [
306,
11
] | python | en | ['en', 'error', 'th'] | False |
BaseWallet.decrypt_message | (
self, enc_message: bytes, to_verkey: str, use_auth: bool
) |
Decrypt a message assembled by auth_crypt or anon_crypt.
Args:
enc_message: The encrypted message content
to_verkey: The verkey of the recipient. If provided then auth_decrypt is
used, otherwise anon_decrypt is used.
Returns:
A tuple of the ... |
Decrypt a message assembled by auth_crypt or anon_crypt. | async def decrypt_message(
self, enc_message: bytes, to_verkey: str, use_auth: bool
) -> (bytes, str):
"""
Decrypt a message assembled by auth_crypt or anon_crypt.
Args:
enc_message: The encrypted message content
to_verkey: The verkey of the recipient. If pro... | [
"async",
"def",
"decrypt_message",
"(",
"self",
",",
"enc_message",
":",
"bytes",
",",
"to_verkey",
":",
"str",
",",
"use_auth",
":",
"bool",
")",
"->",
"(",
"bytes",
",",
"str",
")",
":"
] | [
309,
4
] | [
324,
11
] | python | en | ['en', 'error', 'th'] | False |
BaseWallet.pack_message | (
self, message: str, to_verkeys: Sequence[str], from_verkey: str = None
) |
Pack a message for one or more recipients.
Args:
message: The message to pack
to_verkeys: The verkeys to pack the message for
from_verkey: The sender verkey
Returns:
The packed message
|
Pack a message for one or more recipients. | async def pack_message(
self, message: str, to_verkeys: Sequence[str], from_verkey: str = None
) -> bytes:
"""
Pack a message for one or more recipients.
Args:
message: The message to pack
to_verkeys: The verkeys to pack the message for
from_verke... | [
"async",
"def",
"pack_message",
"(",
"self",
",",
"message",
":",
"str",
",",
"to_verkeys",
":",
"Sequence",
"[",
"str",
"]",
",",
"from_verkey",
":",
"str",
"=",
"None",
")",
"->",
"bytes",
":"
] | [
327,
4
] | [
341,
11
] | python | en | ['en', 'error', 'th'] | False |
BaseWallet.unpack_message | (self, enc_message: bytes) |
Unpack a message.
Args:
enc_message: The encrypted message
Returns:
A tuple: (message, from_verkey, to_verkey)
|
Unpack a message. | async def unpack_message(self, enc_message: bytes) -> (str, str, str):
"""
Unpack a message.
Args:
enc_message: The encrypted message
Returns:
A tuple: (message, from_verkey, to_verkey)
""" | [
"async",
"def",
"unpack_message",
"(",
"self",
",",
"enc_message",
":",
"bytes",
")",
"->",
"(",
"str",
",",
"str",
",",
"str",
")",
":"
] | [
344,
4
] | [
354,
11
] | python | en | ['en', 'error', 'th'] | False |
BaseWallet.__repr__ | (self) | Get a human readable string. | Get a human readable string. | def __repr__(self) -> str:
"""Get a human readable string."""
return "<{}(opened={})>".format(self.__class__.__name__, self.opened) | [
"def",
"__repr__",
"(",
"self",
")",
"->",
"str",
":",
"return",
"\"<{}(opened={})>\"",
".",
"format",
"(",
"self",
".",
"__class__",
".",
"__name__",
",",
"self",
".",
"opened",
")"
] | [
356,
4
] | [
358,
77
] | python | en | ['en', 'en', 'en'] | True |
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.violin.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.violin.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.violin.hoverlabel.Font`
- A dict of string/value properties that will be passed
to ... | [
"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.violin.Hoverlabel`
align
Sets the horizontal alignment of the text... |
Construct a new Hoverlabel object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.violin.Hoverlabel`
align
Sets the horizontal alignment of the text... | 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 |
Font.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 |
Font.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 |
Font.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 |
Font.__init__ | (self, arg=None, color=None, family=None, size=None, **kwargs) |
Construct a new Font object
Sets this color bar's title font. Note that the title's font
used to be set by the now deprecated `titlefont` attribute.
Parameters
----------
arg
dict of properties compatible with this constructor or
an inst... |
Construct a new Font object
Sets this color bar's title font. Note that the title's font
used to be set by the now deprecated `titlefont` attribute. | def __init__(self, arg=None, color=None, family=None, size=None, **kwargs):
"""
Construct a new Font object
Sets this color bar's title font. Note that the title's font
used to be set by the now deprecated `titlefont` attribute.
Parameters
----------
arg... | [
"def",
"__init__",
"(",
"self",
",",
"arg",
"=",
"None",
",",
"color",
"=",
"None",
",",
"family",
"=",
"None",
",",
"size",
"=",
"None",
",",
"*",
"*",
"kwargs",
")",
":",
"super",
"(",
"Font",
",",
"self",
")",
".",
"__init__",
"(",
"\"font\"",... | [
143,
4
] | [
227,
34
] | 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.