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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
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.choropleth.Hoverlabel`
align
Sets the horizontal alignment of the ... |
Construct a new Hoverlabel object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.choropleth.Hoverlabel`
align
Sets the horizontal alignment of the ... | 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 |
RunAndReturnOutput | (extra_env, args) | Runs the test program and returns its output. | Runs the test program and returns its output. | def RunAndReturnOutput(extra_env, args):
"""Runs the test program and returns its output."""
environ_copy = os.environ.copy()
environ_copy.update(extra_env)
return gtest_test_utils.Subprocess([COMMAND] + args, env=environ_copy).output | [
"def",
"RunAndReturnOutput",
"(",
"extra_env",
",",
"args",
")",
":",
"environ_copy",
"=",
"os",
".",
"environ",
".",
"copy",
"(",
")",
"environ_copy",
".",
"update",
"(",
"extra_env",
")",
"return",
"gtest_test_utils",
".",
"Subprocess",
"(",
"[",
"COMMAND"... | [
77,
0
] | [
83,
79
] | python | en | ['en', 'en', 'en'] | True |
GetTestsForAllIterations | (extra_env, args) | Runs the test program and returns a list of test lists.
Args:
extra_env: a map from environment variables to their values
args: command line flags to pass to gtest_shuffle_test_
Returns:
A list where the i-th element is the list of tests run in the i-th
test iteration.
| Runs the test program and returns a list of test lists. | def GetTestsForAllIterations(extra_env, args):
"""Runs the test program and returns a list of test lists.
Args:
extra_env: a map from environment variables to their values
args: command line flags to pass to gtest_shuffle_test_
Returns:
A list where the i-th element is the list of tests run in the i... | [
"def",
"GetTestsForAllIterations",
"(",
"extra_env",
",",
"args",
")",
":",
"test_iterations",
"=",
"[",
"]",
"for",
"line",
"in",
"RunAndReturnOutput",
"(",
"extra_env",
",",
"args",
")",
".",
"split",
"(",
"'\\n'",
")",
":",
"if",
"line",
".",
"startswit... | [
86,
0
] | [
106,
24
] | python | en | ['en', 'en', 'en'] | True |
GetTestCases | (tests) | Returns a list of test cases in the given full test names.
Args:
tests: a list of full test names
Returns:
A list of test cases from 'tests', in their original order.
Consecutive duplicates are removed.
| Returns a list of test cases in the given full test names. | def GetTestCases(tests):
"""Returns a list of test cases in the given full test names.
Args:
tests: a list of full test names
Returns:
A list of test cases from 'tests', in their original order.
Consecutive duplicates are removed.
"""
test_cases = []
for test in tests:
test_case = test.sp... | [
"def",
"GetTestCases",
"(",
"tests",
")",
":",
"test_cases",
"=",
"[",
"]",
"for",
"test",
"in",
"tests",
":",
"test_case",
"=",
"test",
".",
"split",
"(",
"'.'",
")",
"[",
"0",
"]",
"if",
"not",
"test_case",
"in",
"test_cases",
":",
"test_cases",
".... | [
109,
0
] | [
126,
19
] | python | en | ['en', 'en', 'en'] | True |
CalculateTestLists | () | Calculates the list of tests run under different flags. | Calculates the list of tests run under different flags. | def CalculateTestLists():
"""Calculates the list of tests run under different flags."""
if not ALL_TESTS:
ALL_TESTS.extend(
GetTestsForAllIterations({}, [AlsoRunDisabledTestsFlag()])[0])
if not ACTIVE_TESTS:
ACTIVE_TESTS.extend(GetTestsForAllIterations({}, [])[0])
if not FILTERED_TESTS:
F... | [
"def",
"CalculateTestLists",
"(",
")",
":",
"if",
"not",
"ALL_TESTS",
":",
"ALL_TESTS",
".",
"extend",
"(",
"GetTestsForAllIterations",
"(",
"{",
"}",
",",
"[",
"AlsoRunDisabledTestsFlag",
"(",
")",
"]",
")",
"[",
"0",
"]",
")",
"if",
"not",
"ACTIVE_TESTS"... | [
129,
0
] | [
165,
72
] | python | en | ['en', 'en', 'en'] | True |
setup | (bot) |
Mandatory function to add the Cog to the bot.
|
Mandatory function to add the Cog to the bot.
| def setup(bot):
"""
Mandatory function to add the Cog to the bot.
"""
bot.add_cog(VotingCog(bot)) | [
"def",
"setup",
"(",
"bot",
")",
":",
"bot",
".",
"add_cog",
"(",
"VotingCog",
"(",
"bot",
")",
")"
] | [
299,
0
] | [
303,
31
] | python | en | ['en', 'error', 'th'] | False |
VotingCog.new_vote | (self, ctx: commands.Context, minutes: int, name: str, *, options_line: str) |
Creates a generic new Vote.
This is the vote command has full control over the options for the vote.
Args:
minutes (int): How many minutes the vote should run.
name (str): The name of the vote, this is also the title of the vote embed. Needs to be in quotes if it conta... |
Creates a generic new Vote. | async def new_vote(self, ctx: commands.Context, minutes: int, name: str, *, options_line: str):
"""
Creates a generic new Vote.
This is the vote command has full control over the options for the vote.
Args:
minutes (int): How many minutes the vote should run.
na... | [
"async",
"def",
"new_vote",
"(",
"self",
",",
"ctx",
":",
"commands",
".",
"Context",
",",
"minutes",
":",
"int",
",",
"name",
":",
"str",
",",
"*",
",",
"options_line",
":",
"str",
")",
":",
"vote",
"=",
"VoteItem",
"(",
"name",
"=",
"name",
",",
... | [
210,
4
] | [
225,
42
] | python | en | ['en', 'error', 'th'] | False |
count_text | (ngram, hash_size, doc_id, text=None) |
Compute hashed ngram counts of text.
|
Compute hashed ngram counts of text.
| def count_text(ngram, hash_size, doc_id, text=None):
"""
Compute hashed ngram counts of text.
"""
row, col, data = [], [], []
# Tokenize
tokens = tokenize(utils.normalize(text))
# Get ngrams from tokens, with stopword/punctuation filtering.
ngrams = tokens.ngrams(n=ngram, uncased=True, ... | [
"def",
"count_text",
"(",
"ngram",
",",
"hash_size",
",",
"doc_id",
",",
"text",
"=",
"None",
")",
":",
"row",
",",
"col",
",",
"data",
"=",
"[",
"]",
",",
"[",
"]",
",",
"[",
"]",
"# Tokenize",
"tokens",
"=",
"tokenize",
"(",
"utils",
".",
"norm... | [
73,
0
] | [
91,
25
] | python | en | ['en', 'error', 'th'] | False |
count | (ngram, hash_size, doc_id) |
Fetch the text of a document and compute hashed ngrams counts.
|
Fetch the text of a document and compute hashed ngrams counts.
| def count(ngram, hash_size, doc_id):
"""
Fetch the text of a document and compute hashed ngrams counts.
"""
return count_text(ngram, hash_size, doc_id, text=fetch_text(doc_id)) | [
"def",
"count",
"(",
"ngram",
",",
"hash_size",
",",
"doc_id",
")",
":",
"return",
"count_text",
"(",
"ngram",
",",
"hash_size",
",",
"doc_id",
",",
"text",
"=",
"fetch_text",
"(",
"doc_id",
")",
")"
] | [
94,
0
] | [
98,
72
] | python | en | ['en', 'error', 'th'] | False |
get_count_matrix | (args, db_opts) |
Form a sparse word to document count matrix (inverted index).
M[i, j] = # times word i appears in document j.
|
Form a sparse word to document count matrix (inverted index). | def get_count_matrix(args, db_opts):
"""
Form a sparse word to document count matrix (inverted index).
M[i, j] = # times word i appears in document j.
"""
global MAX_SZ
with DocDB(**db_opts) as doc_db:
doc_ids = doc_db.get_doc_ids()
tok_class = tokenizers.get_class(args.tokenizer)
... | [
"def",
"get_count_matrix",
"(",
"args",
",",
"db_opts",
")",
":",
"global",
"MAX_SZ",
"with",
"DocDB",
"(",
"*",
"*",
"db_opts",
")",
"as",
"doc_db",
":",
"doc_ids",
"=",
"doc_db",
".",
"get_doc_ids",
"(",
")",
"tok_class",
"=",
"tokenizers",
".",
"get_c... | [
101,
0
] | [
149,
23
] | python | en | ['en', 'error', 'th'] | False |
get_tfidf_matrix | (cnts) |
Convert the word count matrix into tfidf one.
tfidf = log(tf + 1) * log((N - Nt + 0.5) / (Nt + 0.5))
* tf = term frequency in document
* N = number of documents
* Nt = number of occurences of term in all documents
|
Convert the word count matrix into tfidf one. | def get_tfidf_matrix(cnts):
"""
Convert the word count matrix into tfidf one.
tfidf = log(tf + 1) * log((N - Nt + 0.5) / (Nt + 0.5))
* tf = term frequency in document
* N = number of documents
* Nt = number of occurences of term in all documents
"""
Nt = get_doc_freqs(cnts)
idfs = n... | [
"def",
"get_tfidf_matrix",
"(",
"cnts",
")",
":",
"Nt",
"=",
"get_doc_freqs",
"(",
"cnts",
")",
"idfs",
"=",
"np",
".",
"log",
"(",
"(",
"cnts",
".",
"shape",
"[",
"1",
"]",
"-",
"Nt",
"+",
"0.5",
")",
"/",
"(",
"Nt",
"+",
"0.5",
")",
")",
"i... | [
157,
0
] | [
173,
17
] | python | en | ['en', 'error', 'th'] | False |
get_doc_freqs | (cnts) |
Return word --> # of docs it appears in.
|
Return word --> # of docs it appears in.
| def get_doc_freqs(cnts):
"""
Return word --> # of docs it appears in.
"""
binary = (cnts > 0).astype(int)
freqs = np.array(binary.sum(1)).squeeze()
return freqs | [
"def",
"get_doc_freqs",
"(",
"cnts",
")",
":",
"binary",
"=",
"(",
"cnts",
">",
"0",
")",
".",
"astype",
"(",
"int",
")",
"freqs",
"=",
"np",
".",
"array",
"(",
"binary",
".",
"sum",
"(",
"1",
")",
")",
".",
"squeeze",
"(",
")",
"return",
"freq... | [
176,
0
] | [
182,
16
] | python | en | ['en', 'error', 'th'] | False |
Title.font | (self) |
Sets this axis' title font. Note that the title's font used to
be set by the now deprecated `titlefont` attribute.
The 'font' property is an instance of Font
that may be specified as:
- An instance of :class:`plotly.graph_objs.carpet.baxis.title.Font`
- A dict o... |
Sets this axis' title font. Note that the title's font used to
be set by the now deprecated `titlefont` attribute.
The 'font' property is an instance of Font
that may be specified as:
- An instance of :class:`plotly.graph_objs.carpet.baxis.title.Font`
- A dict o... | def font(self):
"""
Sets this axis' title font. Note that the title's font used to
be set by the now deprecated `titlefont` attribute.
The 'font' property is an instance of Font
that may be specified as:
- An instance of :class:`plotly.graph_objs.carpet.baxis.title... | [
"def",
"font",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"font\"",
"]"
] | [
15,
4
] | [
53,
27
] | python | en | ['en', 'error', 'th'] | False |
Title.offset | (self) |
An additional amount by which to offset the title from the tick
labels, given in pixels. Note that this used to be set by the
now deprecated `titleoffset` attribute.
The 'offset' property is a number and may be specified as:
- An int or float
Returns
----... |
An additional amount by which to offset the title from the tick
labels, given in pixels. Note that this used to be set by the
now deprecated `titleoffset` attribute.
The 'offset' property is a number and may be specified as:
- An int or float | def offset(self):
"""
An additional amount by which to offset the title from the tick
labels, given in pixels. Note that this used to be set by the
now deprecated `titleoffset` attribute.
The 'offset' property is a number and may be specified as:
- An int or float
... | [
"def",
"offset",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"offset\"",
"]"
] | [
62,
4
] | [
75,
29
] | python | en | ['en', 'error', 'th'] | False |
Title.text | (self) |
Sets the title of this axis. Note that before the existence of
`title.text`, the title's contents used to be defined as the
`title` attribute itself. This behavior has been deprecated.
The 'text' property is a string and must be specified as:
- A string
- A numb... |
Sets the title of this axis. Note that before the existence of
`title.text`, the title's contents used to be defined as the
`title` attribute itself. This behavior has been deprecated.
The 'text' property is a string and must be specified as:
- A string
- A numb... | def text(self):
"""
Sets the title of this axis. Note that before the existence of
`title.text`, the title's contents used to be defined as the
`title` attribute itself. This behavior has been deprecated.
The 'text' property is a string and must be specified as:
- ... | [
"def",
"text",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"text\"",
"]"
] | [
84,
4
] | [
98,
27
] | python | en | ['en', 'error', 'th'] | False |
Title.__init__ | (self, arg=None, font=None, offset=None, text=None, **kwargs) |
Construct a new Title object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.carpet.baxis.Title`
font
Sets this axis' title font. Note that the titl... |
Construct a new Title object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.carpet.baxis.Title`
font
Sets this axis' title font. Note that the titl... | def __init__(self, arg=None, font=None, offset=None, text=None, **kwargs):
"""
Construct a new Title object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.carpe... | [
"def",
"__init__",
"(",
"self",
",",
"arg",
"=",
"None",
",",
"font",
"=",
"None",
",",
"offset",
"=",
"None",
",",
"text",
"=",
"None",
",",
"*",
"*",
"kwargs",
")",
":",
"super",
"(",
"Title",
",",
"self",
")",
".",
"__init__",
"(",
"\"title\""... | [
125,
4
] | [
202,
34
] | python | en | ['en', 'error', 'th'] | False |
PlotlyOfflineTestCase._read_html | (self, file_url) | Read and return the HTML contents from a file_url
in the form e.g. file:///Users/chriddyp/Repos/plotly.py/plotly-temp.html
| Read and return the HTML contents from a file_url
in the form e.g. file:///Users/chriddyp/Repos/plotly.py/plotly-temp.html
| def _read_html(self, file_url):
""" Read and return the HTML contents from a file_url
in the form e.g. file:///Users/chriddyp/Repos/plotly.py/plotly-temp.html
"""
with open(file_url.replace("file://", "").replace(" ", "")) as f:
return f.read() | [
"def",
"_read_html",
"(",
"self",
",",
"file_url",
")",
":",
"with",
"open",
"(",
"file_url",
".",
"replace",
"(",
"\"file://\"",
",",
"\"\"",
")",
".",
"replace",
"(",
"\" \"",
",",
"\"\"",
")",
")",
"as",
"f",
":",
"return",
"f",
".",
"read",
"("... | [
82,
4
] | [
87,
27
] | python | en | ['en', 'en', 'en'] | True |
CredentialManager.__init__ | (self, context: InjectionContext) |
Initialize a CredentialManager.
Args:
context: The context for this credential
|
Initialize a CredentialManager. | def __init__(self, context: InjectionContext):
"""
Initialize a CredentialManager.
Args:
context: The context for this credential
"""
self._context = context
self._logger = logging.getLogger(__name__) | [
"def",
"__init__",
"(",
"self",
",",
"context",
":",
"InjectionContext",
")",
":",
"self",
".",
"_context",
"=",
"context",
"self",
".",
"_logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",
")"
] | [
26,
4
] | [
34,
50
] | python | en | ['en', 'error', 'th'] | False |
CredentialManager.context | (self) |
Accessor for the current injection context.
Returns:
The injection context for this credential manager
|
Accessor for the current injection context. | def context(self) -> InjectionContext:
"""
Accessor for the current injection context.
Returns:
The injection context for this credential manager
"""
return self._context | [
"def",
"context",
"(",
"self",
")",
"->",
"InjectionContext",
":",
"return",
"self",
".",
"_context"
] | [
37,
4
] | [
45,
28
] | python | en | ['en', 'error', 'th'] | False |
CredentialManager.create_offer | (
self,
credential_definition_id: str,
connection_id: str,
auto_issue: bool = None,
credential_values: dict = None,
) |
Create a new credential exchange representing an offer.
Args:
credential_definition_id: Credential definition id for offer
connection_id: Connection to create offer for
Returns:
A new credential exchange record
|
Create a new credential exchange representing an offer. | async def create_offer(
self,
credential_definition_id: str,
connection_id: str,
auto_issue: bool = None,
credential_values: dict = None,
):
"""
Create a new credential exchange representing an offer.
Args:
credential_definition_id: Creden... | [
"async",
"def",
"create_offer",
"(",
"self",
",",
"credential_definition_id",
":",
"str",
",",
"connection_id",
":",
"str",
",",
"auto_issue",
":",
"bool",
"=",
"None",
",",
"credential_values",
":",
"dict",
"=",
"None",
",",
")",
":",
"cache_key",
"=",
"f... | [
47,
4
] | [
95,
60
] | python | en | ['en', 'error', 'th'] | False |
CredentialManager.receive_offer | (
self, credential_offer_message: CredentialOffer, connection_id: str
) |
Receive a credential offer.
Args:
credential_offer: Credential offer to receive
connection_id: Connection to receive offer on
Returns:
The credential_exchange_record
|
Receive a credential offer. | async def receive_offer(
self, credential_offer_message: CredentialOffer, connection_id: str
):
"""
Receive a credential offer.
Args:
credential_offer: Credential offer to receive
connection_id: Connection to receive offer on
Returns:
The... | [
"async",
"def",
"receive_offer",
"(",
"self",
",",
"credential_offer_message",
":",
"CredentialOffer",
",",
"connection_id",
":",
"str",
")",
":",
"credential_offer",
"=",
"json",
".",
"loads",
"(",
"credential_offer_message",
".",
"offer_json",
")",
"credential_exc... | [
97,
4
] | [
125,
34
] | python | en | ['en', 'error', 'th'] | False |
CredentialManager.create_request | (
self,
credential_exchange_record: CredentialExchange,
connection_record: ConnectionRecord,
) |
Create a credential request.
Args:
credential_exchange_record: Credential exchange to create request for
connection_record: Connection to create the request for
Return:
A tuple (credential_exchange_record, credential_request_message)
|
Create a credential request. | async def create_request(
self,
credential_exchange_record: CredentialExchange,
connection_record: ConnectionRecord,
):
"""
Create a credential request.
Args:
credential_exchange_record: Credential exchange to create request for
connection_rec... | [
"async",
"def",
"create_request",
"(",
"self",
",",
"credential_exchange_record",
":",
"CredentialExchange",
",",
"connection_record",
":",
"ConnectionRecord",
",",
")",
":",
"credential_definition_id",
"=",
"credential_exchange_record",
".",
"credential_definition_id",
"cr... | [
127,
4
] | [
204,
69
] | python | en | ['en', 'error', 'th'] | False |
CredentialManager.receive_request | (self, credential_request_message: CredentialRequest) |
Receive a credential request.
Args:
credential_request_message: Credential request to receive
|
Receive a credential request. | async def receive_request(self, credential_request_message: CredentialRequest):
"""
Receive a credential request.
Args:
credential_request_message: Credential request to receive
"""
credential_request = json.loads(credential_request_message.request)
(
... | [
"async",
"def",
"receive_request",
"(",
"self",
",",
"credential_request_message",
":",
"CredentialRequest",
")",
":",
"credential_request",
"=",
"json",
".",
"loads",
"(",
"credential_request_message",
".",
"request",
")",
"(",
"credential_exchange_record",
")",
"=",... | [
206,
4
] | [
228,
41
] | python | en | ['en', 'error', 'th'] | False |
CredentialManager.issue_credential | (self, credential_exchange_record: CredentialExchange) |
Issue a credential.
Args:
credential_exchange_record: The credential exchange we are issuing a
credential for
Returns:
Tuple: (Updated credential exchange record, credential message obj)
|
Issue a credential. | async def issue_credential(self, credential_exchange_record: CredentialExchange):
"""
Issue a credential.
Args:
credential_exchange_record: The credential exchange we are issuing a
credential for
Returns:
Tuple: (Updated credential exchange recor... | [
"async",
"def",
"issue_credential",
"(",
"self",
",",
"credential_exchange_record",
":",
"CredentialExchange",
")",
":",
"schema_id",
"=",
"credential_exchange_record",
".",
"schema_id",
"if",
"credential_exchange_record",
".",
"credential",
":",
"self",
".",
"_logger",... | [
230,
4
] | [
284,
61
] | python | en | ['en', 'error', 'th'] | False |
CredentialManager.receive_credential | (self, credential_message: CredentialIssue) |
Receive a credential a credential from an issuer.
Hold in storage to be potentially processed by controller before storing.
Args:
credential_message: credential to store
|
Receive a credential a credential from an issuer. | async def receive_credential(self, credential_message: CredentialIssue):
"""
Receive a credential a credential from an issuer.
Hold in storage to be potentially processed by controller before storing.
Args:
credential_message: credential to store
"""
raw_cr... | [
"async",
"def",
"receive_credential",
"(",
"self",
",",
"credential_message",
":",
"CredentialIssue",
")",
":",
"raw_credential",
"=",
"json",
".",
"loads",
"(",
"credential_message",
".",
"issue",
")",
"(",
"credential_exchange_record",
")",
"=",
"await",
"Creden... | [
286,
4
] | [
309,
41
] | python | en | ['en', 'error', 'th'] | False |
CredentialManager.store_credential | (
self, credential_exchange_record: CredentialExchange, credential_id: str = None
) |
Store a credential in the wallet.
Args:
credential_message: credential to store
credential_id: string to use as id for record in wallet
|
Store a credential in the wallet. | async def store_credential(
self, credential_exchange_record: CredentialExchange, credential_id: str = None
):
"""
Store a credential in the wallet.
Args:
credential_message: credential to store
credential_id: string to use as id for record in wallet
... | [
"async",
"def",
"store_credential",
"(",
"self",
",",
"credential_exchange_record",
":",
"CredentialExchange",
",",
"credential_id",
":",
"str",
"=",
"None",
")",
":",
"raw_credential",
"=",
"credential_exchange_record",
".",
"raw_credential",
"ledger",
":",
"BaseLedg... | [
311,
4
] | [
353,
68
] | python | en | ['en', 'error', 'th'] | False |
CredentialManager.credential_stored | (self, credential_stored_message: CredentialStored) |
Receive confirmation that holder stored credential.
Args:
credential_message: credential to store
|
Receive confirmation that holder stored credential. | async def credential_stored(self, credential_stored_message: CredentialStored):
"""
Receive confirmation that holder stored credential.
Args:
credential_message: credential to store
"""
# Get current exchange record by thread id
(
credential_exc... | [
"async",
"def",
"credential_stored",
"(",
"self",
",",
"credential_stored_message",
":",
"CredentialStored",
")",
":",
"# Get current exchange record by thread id",
"(",
"credential_exchange_record",
")",
"=",
"await",
"CredentialExchange",
".",
"retrieve_by_thread_and_initiato... | [
355,
4
] | [
375,
68
] | python | en | ['en', 'error', 'th'] | False |
AbstractResultsCompiler.compile_results | (self) |
Method for returning the final results dataframe.
Each row of the dataframe consists of one utterance of one conversation.
|
Method for returning the final results dataframe. | def compile_results(self) -> pd.DataFrame:
"""
Method for returning the final results dataframe.
Each row of the dataframe consists of one utterance of one conversation.
""" | [
"def",
"compile_results",
"(",
"self",
")",
"->",
"pd",
".",
"DataFrame",
":"
] | [
32,
4
] | [
37,
11
] | python | en | ['en', 'error', 'th'] | False |
Exporter.run | (self, fig) |
Run the exporter on the given figure
Parmeters
---------
fig : matplotlib.Figure instance
The figure to export
|
Run the exporter on the given figure | def run(self, fig):
"""
Run the exporter on the given figure
Parmeters
---------
fig : matplotlib.Figure instance
The figure to export
"""
# Calling savefig executes the draw() command, putting elements
# in the correct place.
if fig.c... | [
"def",
"run",
"(",
"self",
",",
"fig",
")",
":",
"# Calling savefig executes the draw() command, putting elements",
"# in the correct place.",
"if",
"fig",
".",
"canvas",
"is",
"None",
":",
"canvas",
"=",
"FigureCanvasAgg",
"(",
"fig",
")",
"fig",
".",
"savefig",
... | [
33,
4
] | [
50,
27
] | python | en | ['en', 'error', 'th'] | False |
Exporter.process_transform | (transform, ax=None, data=None, return_trans=False,
force_trans=None) | Process the transform and convert data to figure or data coordinates
Parameters
----------
transform : matplotlib Transform object
The transform applied to the data
ax : matplotlib Axes object (optional)
The axes the data is associated with
data : ndarray... | Process the transform and convert data to figure or data coordinates | def process_transform(transform, ax=None, data=None, return_trans=False,
force_trans=None):
"""Process the transform and convert data to figure or data coordinates
Parameters
----------
transform : matplotlib Transform object
The transform applied t... | [
"def",
"process_transform",
"(",
"transform",
",",
"ax",
"=",
"None",
",",
"data",
"=",
"None",
",",
"return_trans",
"=",
"False",
",",
"force_trans",
"=",
"None",
")",
":",
"if",
"isinstance",
"(",
"transform",
",",
"transforms",
".",
"BlendedGenericTransfo... | [
53,
4
] | [
110,
27
] | python | en | ['en', 'en', 'en'] | True |
Exporter.crawl_fig | (self, fig) | Crawl the figure and process all axes | Crawl the figure and process all axes | def crawl_fig(self, fig):
"""Crawl the figure and process all axes"""
with self.renderer.draw_figure(fig=fig,
props=utils.get_figure_properties(fig)):
for ax in fig.axes:
self.crawl_ax(ax) | [
"def",
"crawl_fig",
"(",
"self",
",",
"fig",
")",
":",
"with",
"self",
".",
"renderer",
".",
"draw_figure",
"(",
"fig",
"=",
"fig",
",",
"props",
"=",
"utils",
".",
"get_figure_properties",
"(",
"fig",
")",
")",
":",
"for",
"ax",
"in",
"fig",
".",
... | [
112,
4
] | [
117,
33
] | python | en | ['en', 'en', 'en'] | True |
Exporter.crawl_ax | (self, ax) | Crawl the axes and process all elements within | Crawl the axes and process all elements within | def crawl_ax(self, ax):
"""Crawl the axes and process all elements within"""
with self.renderer.draw_axes(ax=ax,
props=utils.get_axes_properties(ax)):
for line in ax.lines:
self.draw_line(ax, line)
for text in ax.texts:
... | [
"def",
"crawl_ax",
"(",
"self",
",",
"ax",
")",
":",
"with",
"self",
".",
"renderer",
".",
"draw_axes",
"(",
"ax",
"=",
"ax",
",",
"props",
"=",
"utils",
".",
"get_axes_properties",
"(",
"ax",
")",
")",
":",
"for",
"line",
"in",
"ax",
".",
"lines",... | [
119,
4
] | [
148,
53
] | python | en | ['en', 'en', 'en'] | True |
Exporter.crawl_legend | (self, ax, legend) |
Recursively look through objects in legend children
|
Recursively look through objects in legend children
| def crawl_legend(self, ax, legend):
"""
Recursively look through objects in legend children
"""
legendElements = list(utils.iter_all_children(legend._legend_box,
skipContainers=True))
legendElements.append(legend.legendPatch)
... | [
"def",
"crawl_legend",
"(",
"self",
",",
"ax",
",",
"legend",
")",
":",
"legendElements",
"=",
"list",
"(",
"utils",
".",
"iter_all_children",
"(",
"legend",
".",
"_legend_box",
",",
"skipContainers",
"=",
"True",
")",
")",
"legendElements",
".",
"append",
... | [
150,
4
] | [
180,
73
] | python | en | ['en', 'error', 'th'] | False |
Exporter.draw_line | (self, ax, line, force_trans=None) | Process a matplotlib line and call renderer.draw_line | Process a matplotlib line and call renderer.draw_line | def draw_line(self, ax, line, force_trans=None):
"""Process a matplotlib line and call renderer.draw_line"""
coordinates, data = self.process_transform(line.get_transform(),
ax, line.get_xydata(),
force... | [
"def",
"draw_line",
"(",
"self",
",",
"ax",
",",
"line",
",",
"force_trans",
"=",
"None",
")",
":",
"coordinates",
",",
"data",
"=",
"self",
".",
"process_transform",
"(",
"line",
".",
"get_transform",
"(",
")",
",",
"ax",
",",
"line",
".",
"get_xydata... | [
182,
4
] | [
201,
55
] | python | en | ['en', 'en', 'en'] | True |
Exporter.draw_text | (self, ax, text, force_trans=None, text_type=None) | Process a matplotlib text object and call renderer.draw_text | Process a matplotlib text object and call renderer.draw_text | def draw_text(self, ax, text, force_trans=None, text_type=None):
"""Process a matplotlib text object and call renderer.draw_text"""
content = text.get_text()
if content:
transform = text.get_transform()
position = text.get_position()
coords, position = self.pr... | [
"def",
"draw_text",
"(",
"self",
",",
"ax",
",",
"text",
",",
"force_trans",
"=",
"None",
",",
"text_type",
"=",
"None",
")",
":",
"content",
"=",
"text",
".",
"get_text",
"(",
")",
"if",
"content",
":",
"transform",
"=",
"text",
".",
"get_transform",
... | [
203,
4
] | [
216,
61
] | python | en | ['en', 'en', 'en'] | True |
Exporter.draw_patch | (self, ax, patch, force_trans=None) | Process a matplotlib patch object and call renderer.draw_path | Process a matplotlib patch object and call renderer.draw_path | def draw_patch(self, ax, patch, force_trans=None):
"""Process a matplotlib patch object and call renderer.draw_path"""
vertices, pathcodes = utils.SVG_path(patch.get_path())
transform = patch.get_transform()
coordinates, vertices = self.process_transform(transform,
... | [
"def",
"draw_patch",
"(",
"self",
",",
"ax",
",",
"patch",
",",
"force_trans",
"=",
"None",
")",
":",
"vertices",
",",
"pathcodes",
"=",
"utils",
".",
"SVG_path",
"(",
"patch",
".",
"get_path",
"(",
")",
")",
"transform",
"=",
"patch",
".",
"get_transf... | [
218,
4
] | [
230,
45
] | python | en | ['en', 'en', 'en'] | True |
Exporter.draw_collection | (self, ax, collection,
force_pathtrans=None,
force_offsettrans=None) | Process a matplotlib collection and call renderer.draw_collection | Process a matplotlib collection and call renderer.draw_collection | def draw_collection(self, ax, collection,
force_pathtrans=None,
force_offsettrans=None):
"""Process a matplotlib collection and call renderer.draw_collection"""
(transform, transOffset,
offsets, paths) = collection._prepare_points()
offse... | [
"def",
"draw_collection",
"(",
"self",
",",
"ax",
",",
"collection",
",",
"force_pathtrans",
"=",
"None",
",",
"force_offsettrans",
"=",
"None",
")",
":",
"(",
"transform",
",",
"transOffset",
",",
"offsets",
",",
"paths",
")",
"=",
"collection",
".",
"_pr... | [
232,
4
] | [
275,
61
] | python | en | ['en', 'en', 'en'] | True |
Exporter.draw_image | (self, ax, image) | Process a matplotlib image object and call renderer.draw_image | Process a matplotlib image object and call renderer.draw_image | def draw_image(self, ax, image):
"""Process a matplotlib image object and call renderer.draw_image"""
self.renderer.draw_image(imdata=utils.image_to_base64(image),
extent=image.get_extent(),
coordinates="data",
... | [
"def",
"draw_image",
"(",
"self",
",",
"ax",
",",
"image",
")",
":",
"self",
".",
"renderer",
".",
"draw_image",
"(",
"imdata",
"=",
"utils",
".",
"image_to_base64",
"(",
"image",
")",
",",
"extent",
"=",
"image",
".",
"get_extent",
"(",
")",
",",
"c... | [
277,
4
] | [
284,
46
] | python | en | ['en', 'en', 'en'] | True |
PluginRegistry.__init__ | (self) | Initialize a `PluginRegistry` instance. | Initialize a `PluginRegistry` instance. | def __init__(self):
"""Initialize a `PluginRegistry` instance."""
self._plugins = OrderedDict() | [
"def",
"__init__",
"(",
"self",
")",
":",
"self",
".",
"_plugins",
"=",
"OrderedDict",
"(",
")"
] | [
17,
4
] | [
19,
37
] | python | en | ['en', 'ro', 'it'] | False |
PluginRegistry.plugin_names | (self) | Accessor for a list of all plugin modules. | Accessor for a list of all plugin modules. | def plugin_names(self) -> Sequence[str]:
"""Accessor for a list of all plugin modules."""
return list(self._plugins.keys()) | [
"def",
"plugin_names",
"(",
"self",
")",
"->",
"Sequence",
"[",
"str",
"]",
":",
"return",
"list",
"(",
"self",
".",
"_plugins",
".",
"keys",
"(",
")",
")"
] | [
22,
4
] | [
24,
41
] | python | en | ['en', 'en', 'en'] | True |
PluginRegistry.plugins | (self) | Accessor for a list of all plugin modules. | Accessor for a list of all plugin modules. | def plugins(self) -> Sequence[ModuleType]:
"""Accessor for a list of all plugin modules."""
return list(self._plugins.values()) | [
"def",
"plugins",
"(",
"self",
")",
"->",
"Sequence",
"[",
"ModuleType",
"]",
":",
"return",
"list",
"(",
"self",
".",
"_plugins",
".",
"values",
"(",
")",
")"
] | [
27,
4
] | [
29,
43
] | python | en | ['en', 'en', 'en'] | True |
PluginRegistry.register_plugin | (self, module_name) | Register a plugin module. | Register a plugin module. | def register_plugin(self, module_name) -> ModuleType:
"""Register a plugin module."""
if module_name in self._plugins:
mod = self._plugins[module_name]
else:
try:
mod = ClassLoader.load_module(module_name)
except ModuleLoadError as e:
... | [
"def",
"register_plugin",
"(",
"self",
",",
"module_name",
")",
"->",
"ModuleType",
":",
"if",
"module_name",
"in",
"self",
".",
"_plugins",
":",
"mod",
"=",
"self",
".",
"_plugins",
"[",
"module_name",
"]",
"else",
":",
"try",
":",
"mod",
"=",
"ClassLoa... | [
31,
4
] | [
46,
18
] | python | co | ['vo', 'co', 'en'] | False |
PluginRegistry.register_package | (self, package_name: str) | Register all modules (sub-packages) under a given package name. | Register all modules (sub-packages) under a given package name. | def register_package(self, package_name: str) -> Sequence[ModuleType]:
"""Register all modules (sub-packages) under a given package name."""
try:
module_names = ClassLoader.scan_subpackages(package_name)
except ModuleLoadError:
LOGGER.error(f"Plugin module package not fou... | [
"def",
"register_package",
"(",
"self",
",",
"package_name",
":",
"str",
")",
"->",
"Sequence",
"[",
"ModuleType",
"]",
":",
"try",
":",
"module_names",
"=",
"ClassLoader",
".",
"scan_subpackages",
"(",
"package_name",
")",
"except",
"ModuleLoadError",
":",
"L... | [
48,
4
] | [
60,
9
] | python | en | ['en', 'en', 'en'] | True |
PluginRegistry.init_context | (self, context: InjectionContext) | Call plugin setup methods on the current context. | Call plugin setup methods on the current context. | async def init_context(self, context: InjectionContext):
"""Call plugin setup methods on the current context."""
for plugin in self._plugins.values():
if hasattr(plugin, "setup"):
await plugin.setup(context)
else:
await self.load_message_types(cont... | [
"async",
"def",
"init_context",
"(",
"self",
",",
"context",
":",
"InjectionContext",
")",
":",
"for",
"plugin",
"in",
"self",
".",
"_plugins",
".",
"values",
"(",
")",
":",
"if",
"hasattr",
"(",
"plugin",
",",
"\"setup\"",
")",
":",
"await",
"plugin",
... | [
62,
4
] | [
68,
62
] | python | en | ['en', 'en', 'en'] | True |
PluginRegistry.load_message_types | (self, context: InjectionContext, plugin: ModuleType) | For modules that don't implement setup, register protocols manually. | For modules that don't implement setup, register protocols manually. | async def load_message_types(self, context: InjectionContext, plugin: ModuleType):
"""For modules that don't implement setup, register protocols manually."""
registry = await context.inject(ProtocolRegistry)
try:
mod = ClassLoader.load_module(plugin.__name__ + ".message_types")
... | [
"async",
"def",
"load_message_types",
"(",
"self",
",",
"context",
":",
"InjectionContext",
",",
"plugin",
":",
"ModuleType",
")",
":",
"registry",
"=",
"await",
"context",
".",
"inject",
"(",
"ProtocolRegistry",
")",
"try",
":",
"mod",
"=",
"ClassLoader",
"... | [
70,
4
] | [
82,
62
] | python | en | ['en', 'en', 'en'] | True |
PluginRegistry.register_admin_routes | (self, app) | Call route registration methods on the current context. | Call route registration methods on the current context. | async def register_admin_routes(self, app):
"""Call route registration methods on the current context."""
for plugin in self._plugins.values():
try:
mod = ClassLoader.load_module(plugin.__name__ + ".routes")
except ModuleLoadError as e:
LOGGER.erro... | [
"async",
"def",
"register_admin_routes",
"(",
"self",
",",
"app",
")",
":",
"for",
"plugin",
"in",
"self",
".",
"_plugins",
".",
"values",
"(",
")",
":",
"try",
":",
"mod",
"=",
"ClassLoader",
".",
"load_module",
"(",
"plugin",
".",
"__name__",
"+",
"\... | [
84,
4
] | [
93,
39
] | python | en | ['en', 'en', 'en'] | True |
PluginRegistry.__repr__ | (self) | Return a string representation for this class. | Return a string representation for this class. | def __repr__(self) -> str:
"""Return a string representation for this class."""
return "<{}>".format(self.__class__.__name__) | [
"def",
"__repr__",
"(",
"self",
")",
"->",
"str",
":",
"return",
"\"<{}>\"",
".",
"format",
"(",
"self",
".",
"__class__",
".",
"__name__",
")"
] | [
95,
4
] | [
97,
53
] | python | en | ['en', 'en', 'en'] | True |
HourglassModule.forward | (self, x) | Forward function. | Forward function. | def forward(self, x):
"""Forward function."""
up1 = self.up1(x)
low1 = self.low1(x)
low2 = self.low2(low1)
low3 = self.low3(low2)
up2 = self.up2(low3)
return up1 + up2 | [
"def",
"forward",
"(",
"self",
",",
"x",
")",
":",
"up1",
"=",
"self",
".",
"up1",
"(",
"x",
")",
"low1",
"=",
"self",
".",
"low1",
"(",
"x",
")",
"low2",
"=",
"self",
".",
"low2",
"(",
"low1",
")",
"low3",
"=",
"self",
".",
"low3",
"(",
"l... | [
69,
4
] | [
76,
24
] | python | en | ['en', 'cy', 'en'] | False |
Textfont.color | (self) |
Sets the text font color of selected points.
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,1... |
Sets the text font color of selected points.
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,1... | def color(self):
"""
Sets the text font color of selected points.
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 hs... | [
"def",
"color",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"color\"",
"]"
] | [
15,
4
] | [
65,
28
] | python | en | ['en', 'error', 'th'] | False |
Textfont.__init__ | (self, arg=None, color=None, **kwargs) |
Construct a new Textfont object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.barpolar.selected.Textfont`
color
Sets the text font color of select... |
Construct a new Textfont object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.barpolar.selected.Textfont`
color
Sets the text font color of select... | def __init__(self, arg=None, color=None, **kwargs):
"""
Construct a new Textfont object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.barpolar.selected.Textfon... | [
"def",
"__init__",
"(",
"self",
",",
"arg",
"=",
"None",
",",
"color",
"=",
"None",
",",
"*",
"*",
"kwargs",
")",
":",
"super",
"(",
"Textfont",
",",
"self",
")",
".",
"__init__",
"(",
"\"textfont\"",
")",
"if",
"\"_parent\"",
"in",
"kwargs",
":",
... | [
80,
4
] | [
137,
34
] | python | en | ['en', 'error', 'th'] | False |
setTTL | (qstate, ttl) | Sets return_msg TTL and all the RRs TTL | Sets return_msg TTL and all the RRs TTL | def setTTL(qstate, ttl):
"""Sets return_msg TTL and all the RRs TTL"""
if qstate.return_msg:
qstate.return_msg.rep.ttl = ttl
if (qstate.return_msg.rep):
for i in range(0,qstate.return_msg.rep.rrset_count):
d = qstate.return_msg.rep.rrsets[i].entry.data
... | [
"def",
"setTTL",
"(",
"qstate",
",",
"ttl",
")",
":",
"if",
"qstate",
".",
"return_msg",
":",
"qstate",
".",
"return_msg",
".",
"rep",
".",
"ttl",
"=",
"ttl",
"if",
"(",
"qstate",
".",
"return_msg",
".",
"rep",
")",
":",
"for",
"i",
"in",
"range",
... | [
49,
0
] | [
57,
37
] | python | en | ['en', 'en', 'en'] | True |
Coloraxis.autocolorscale | (self) |
Determines whether the colorscale is a default palette
(`autocolorscale: true`) or the palette determined by
`colorscale`. In case `colorscale` is unspecified or
`autocolorscale` is true, the default palette will be chosen
according to whether numbers in the `color` array are a... |
Determines whether the colorscale is a default palette
(`autocolorscale: true`) or the palette determined by
`colorscale`. In case `colorscale` is unspecified or
`autocolorscale` is true, the default palette will be chosen
according to whether numbers in the `color` array are a... | def autocolorscale(self):
"""
Determines whether the colorscale is a default palette
(`autocolorscale: true`) or the palette determined by
`colorscale`. In case `colorscale` is unspecified or
`autocolorscale` is true, the default palette will be chosen
according to wheth... | [
"def",
"autocolorscale",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"autocolorscale\"",
"]"
] | [
25,
4
] | [
41,
37
] | python | en | ['en', 'error', 'th'] | False |
Coloraxis.cauto | (self) |
Determines whether or not the color domain is computed with
respect to the input data (here corresponding trace color
array(s)) or the bounds set in `cmin` and `cmax` Defaults to
`false` when `cmin` and `cmax` are set by the user.
The 'cauto' property must be specified as ... |
Determines whether or not the color domain is computed with
respect to the input data (here corresponding trace color
array(s)) or the bounds set in `cmin` and `cmax` Defaults to
`false` when `cmin` and `cmax` are set by the user.
The 'cauto' property must be specified as ... | def cauto(self):
"""
Determines whether or not the color domain is computed with
respect to the input data (here corresponding trace color
array(s)) or the bounds set in `cmin` and `cmax` Defaults to
`false` when `cmin` and `cmax` are set by the user.
The 'cauto' pr... | [
"def",
"cauto",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"cauto\"",
"]"
] | [
50,
4
] | [
64,
28
] | python | en | ['en', 'error', 'th'] | False |
Coloraxis.cmax | (self) |
Sets the upper bound of the color domain. Value should have the
same units as corresponding trace color array(s) and if set,
`cmin` must be set as well.
The 'cmax' property is a number and may be specified as:
- An int or float
Returns
-------
int... |
Sets the upper bound of the color domain. Value should have the
same units as corresponding trace color array(s) and if set,
`cmin` must be set as well.
The 'cmax' property is a number and may be specified as:
- An int or float | def cmax(self):
"""
Sets the upper bound of the color domain. Value should have the
same units as corresponding trace color array(s) and if set,
`cmin` must be set as well.
The 'cmax' property is a number and may be specified as:
- An int or float
Returns
... | [
"def",
"cmax",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"cmax\"",
"]"
] | [
73,
4
] | [
86,
27
] | python | en | ['en', 'error', 'th'] | False |
Coloraxis.cmid | (self) |
Sets the mid-point of the color domain by scaling `cmin` and/or
`cmax` to be equidistant to this point. Value should have the
same units as corresponding trace color array(s). Has no effect
when `cauto` is `false`.
The 'cmid' property is a number and may be specified as:
... |
Sets the mid-point of the color domain by scaling `cmin` and/or
`cmax` to be equidistant to this point. Value should have the
same units as corresponding trace color array(s). Has no effect
when `cauto` is `false`.
The 'cmid' property is a number and may be specified as:
... | def cmid(self):
"""
Sets the mid-point of the color domain by scaling `cmin` and/or
`cmax` to be equidistant to this point. Value should have the
same units as corresponding trace color array(s). Has no effect
when `cauto` is `false`.
The 'cmid' property is a number ... | [
"def",
"cmid",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"cmid\"",
"]"
] | [
95,
4
] | [
109,
27
] | python | en | ['en', 'error', 'th'] | False |
Coloraxis.cmin | (self) |
Sets the lower bound of the color domain. Value should have the
same units as corresponding trace color array(s) and if set,
`cmax` must be set as well.
The 'cmin' property is a number and may be specified as:
- An int or float
Returns
-------
int... |
Sets the lower bound of the color domain. Value should have the
same units as corresponding trace color array(s) and if set,
`cmax` must be set as well.
The 'cmin' property is a number and may be specified as:
- An int or float | def cmin(self):
"""
Sets the lower bound of the color domain. Value should have the
same units as corresponding trace color array(s) and if set,
`cmax` must be set as well.
The 'cmin' property is a number and may be specified as:
- An int or float
Returns
... | [
"def",
"cmin",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"cmin\"",
"]"
] | [
118,
4
] | [
131,
27
] | python | en | ['en', 'error', 'th'] | False |
Coloraxis.colorbar | (self) |
The 'colorbar' property is an instance of ColorBar
that may be specified as:
- An instance of :class:`plotly.graph_objs.layout.coloraxis.ColorBar`
- A dict of string/value properties that will be passed
to the ColorBar constructor
Supported dict properti... |
The 'colorbar' property is an instance of ColorBar
that may be specified as:
- An instance of :class:`plotly.graph_objs.layout.coloraxis.ColorBar`
- A dict of string/value properties that will be passed
to the ColorBar constructor
Supported dict properti... | def colorbar(self):
"""
The 'colorbar' property is an instance of ColorBar
that may be specified as:
- An instance of :class:`plotly.graph_objs.layout.coloraxis.ColorBar`
- A dict of string/value properties that will be passed
to the ColorBar constructor
... | [
"def",
"colorbar",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"colorbar\"",
"]"
] | [
140,
4
] | [
367,
31
] | python | en | ['en', 'error', 'th'] | False |
Coloraxis.colorscale | (self) |
Sets the colorscale. The colorscale must be an array containing
arrays mapping a normalized value to an rgb, rgba, hex, hsl,
hsv, or named color string. At minimum, a mapping for the
lowest (0) and highest (1) values are required. For example,
`[[0, 'rgb(0,0,255)'], [1, 'rgb(255... |
Sets the colorscale. The colorscale must be an array containing
arrays mapping a normalized value to an rgb, rgba, hex, hsl,
hsv, or named color string. At minimum, a mapping for the
lowest (0) and highest (1) values are required. For example,
`[[0, 'rgb(0,0,255)'], [1, 'rgb(255... | def colorscale(self):
"""
Sets the colorscale. The colorscale must be an array containing
arrays mapping a normalized value to an rgb, rgba, hex, hsl,
hsv, or named color string. At minimum, a mapping for the
lowest (0) and highest (1) values are required. For example,
`[... | [
"def",
"colorscale",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"colorscale\"",
"]"
] | [
376,
4
] | [
419,
33
] | python | en | ['en', 'error', 'th'] | False |
Coloraxis.reversescale | (self) |
Reverses the color mapping if true. If true, `cmin` will
correspond to the last color in the array and `cmax` will
correspond to the first color.
The 'reversescale' property must be specified as a bool
(either True, or False)
Returns
-------
bool
... |
Reverses the color mapping if true. If true, `cmin` will
correspond to the last color in the array and `cmax` will
correspond to the first color.
The 'reversescale' property must be specified as a bool
(either True, or False) | def reversescale(self):
"""
Reverses the color mapping if true. If true, `cmin` will
correspond to the last color in the array and `cmax` will
correspond to the first color.
The 'reversescale' property must be specified as a bool
(either True, or False)
Retu... | [
"def",
"reversescale",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"reversescale\"",
"]"
] | [
428,
4
] | [
441,
35
] | python | en | ['en', 'error', 'th'] | False |
Coloraxis.showscale | (self) |
Determines whether or not a colorbar is displayed for this
trace.
The 'showscale' property must be specified as a bool
(either True, or False)
Returns
-------
bool
|
Determines whether or not a colorbar is displayed for this
trace.
The 'showscale' property must be specified as a bool
(either True, or False) | def showscale(self):
"""
Determines whether or not a colorbar is displayed for this
trace.
The 'showscale' property must be specified as a bool
(either True, or False)
Returns
-------
bool
"""
return self["showscale"] | [
"def",
"showscale",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"showscale\"",
"]"
] | [
450,
4
] | [
462,
32
] | python | en | ['en', 'error', 'th'] | False |
Coloraxis.__init__ | (
self,
arg=None,
autocolorscale=None,
cauto=None,
cmax=None,
cmid=None,
cmin=None,
colorbar=None,
colorscale=None,
reversescale=None,
showscale=None,
**kwargs
) |
Construct a new Coloraxis object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.layout.Coloraxis`
autocolorscale
Determines whether the colorscale ... |
Construct a new Coloraxis object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.layout.Coloraxis`
autocolorscale
Determines whether the colorscale ... | def __init__(
self,
arg=None,
autocolorscale=None,
cauto=None,
cmax=None,
cmid=None,
cmin=None,
colorbar=None,
colorscale=None,
reversescale=None,
showscale=None,
**kwargs
):
"""
Construct a new Coloraxis... | [
"def",
"__init__",
"(",
"self",
",",
"arg",
"=",
"None",
",",
"autocolorscale",
"=",
"None",
",",
"cauto",
"=",
"None",
",",
"cmax",
"=",
"None",
",",
"cmid",
"=",
"None",
",",
"cmin",
"=",
"None",
",",
"colorbar",
"=",
"None",
",",
"colorscale",
"... | [
523,
4
] | [
671,
34
] | python | en | ['en', 'error', 'th'] | False |
Camera.center | (self) |
Sets the (x,y,z) components of the 'center' camera vector This
vector determines the translation (x,y,z) space about the
center of this scene. By default, there is no such translation.
The 'center' property is an instance of Center
that may be specified as:
- An i... |
Sets the (x,y,z) components of the 'center' camera vector This
vector determines the translation (x,y,z) space about the
center of this scene. By default, there is no such translation.
The 'center' property is an instance of Center
that may be specified as:
- An i... | def center(self):
"""
Sets the (x,y,z) components of the 'center' camera vector This
vector determines the translation (x,y,z) space about the
center of this scene. By default, there is no such translation.
The 'center' property is an instance of Center
that may be s... | [
"def",
"center",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"center\"",
"]"
] | [
15,
4
] | [
39,
29
] | python | en | ['en', 'error', 'th'] | False |
Camera.eye | (self) |
Sets the (x,y,z) components of the 'eye' camera vector. This
vector determines the view point about the origin of this
scene.
The 'eye' property is an instance of Eye
that may be specified as:
- An instance of :class:`plotly.graph_objs.layout.scene.camera.Eye`
... |
Sets the (x,y,z) components of the 'eye' camera vector. This
vector determines the view point about the origin of this
scene.
The 'eye' property is an instance of Eye
that may be specified as:
- An instance of :class:`plotly.graph_objs.layout.scene.camera.Eye`
... | def eye(self):
"""
Sets the (x,y,z) components of the 'eye' camera vector. This
vector determines the view point about the origin of this
scene.
The 'eye' property is an instance of Eye
that may be specified as:
- An instance of :class:`plotly.graph_objs.la... | [
"def",
"eye",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"eye\"",
"]"
] | [
48,
4
] | [
72,
26
] | python | en | ['en', 'error', 'th'] | False |
Camera.projection | (self) |
The 'projection' property is an instance of Projection
that may be specified as:
- An instance of :class:`plotly.graph_objs.layout.scene.camera.Projection`
- A dict of string/value properties that will be passed
to the Projection constructor
Supported di... |
The 'projection' property is an instance of Projection
that may be specified as:
- An instance of :class:`plotly.graph_objs.layout.scene.camera.Projection`
- A dict of string/value properties that will be passed
to the Projection constructor
Supported di... | def projection(self):
"""
The 'projection' property is an instance of Projection
that may be specified as:
- An instance of :class:`plotly.graph_objs.layout.scene.camera.Projection`
- A dict of string/value properties that will be passed
to the Projection construc... | [
"def",
"projection",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"projection\"",
"]"
] | [
81,
4
] | [
100,
33
] | python | en | ['en', 'error', 'th'] | False |
Camera.up | (self) |
Sets the (x,y,z) components of the 'up' camera vector. This
vector determines the up direction of this scene with respect
to the page. The default is *{x: 0, y: 0, z: 1}* which means
that the z axis points up.
The 'up' property is an instance of Up
that may be speci... |
Sets the (x,y,z) components of the 'up' camera vector. This
vector determines the up direction of this scene with respect
to the page. The default is *{x: 0, y: 0, z: 1}* which means
that the z axis points up.
The 'up' property is an instance of Up
that may be speci... | def up(self):
"""
Sets the (x,y,z) components of the 'up' camera vector. This
vector determines the up direction of this scene with respect
to the page. The default is *{x: 0, y: 0, z: 1}* which means
that the z axis points up.
The 'up' property is an instance of Up
... | [
"def",
"up",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"up\"",
"]"
] | [
109,
4
] | [
134,
25
] | python | en | ['en', 'error', 'th'] | False |
Camera.__init__ | (
self, arg=None, center=None, eye=None, projection=None, up=None, **kwargs
) |
Construct a new Camera object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.layout.scene.Camera`
center
Sets the (x,y,z) components of the 'center... |
Construct a new Camera object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.layout.scene.Camera`
center
Sets the (x,y,z) components of the 'center... | def __init__(
self, arg=None, center=None, eye=None, projection=None, up=None, **kwargs
):
"""
Construct a new Camera object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:c... | [
"def",
"__init__",
"(",
"self",
",",
"arg",
"=",
"None",
",",
"center",
"=",
"None",
",",
"eye",
"=",
"None",
",",
"projection",
"=",
"None",
",",
"up",
"=",
"None",
",",
"*",
"*",
"kwargs",
")",
":",
"super",
"(",
"Camera",
",",
"self",
")",
"... | [
164,
4
] | [
250,
34
] | python | en | ['en', 'error', 'th'] | False |
RouteQueryResponse.__init__ | (
self,
*,
routes: Sequence[RouteQueryResult] = None,
paginated: Paginated = None,
**kwargs,
) |
Initialize a RouteQueryResponse message instance.
Args:
filter: Filter results according to specific field values
|
Initialize a RouteQueryResponse message instance. | def __init__(
self,
*,
routes: Sequence[RouteQueryResult] = None,
paginated: Paginated = None,
**kwargs,
):
"""
Initialize a RouteQueryResponse message instance.
Args:
filter: Filter results according to specific field values
"""
... | [
"def",
"__init__",
"(",
"self",
",",
"*",
",",
"routes",
":",
"Sequence",
"[",
"RouteQueryResult",
"]",
"=",
"None",
",",
"paginated",
":",
"Paginated",
"=",
"None",
",",
"*",
"*",
"kwargs",
",",
")",
":",
"super",
"(",
"RouteQueryResponse",
",",
"self... | [
28,
4
] | [
44,
34
] | python | en | ['en', 'error', 'th'] | False |
ColorBar.bgcolor | (self) |
Sets the color of padded area.
The 'bgcolor' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
... |
Sets the color of padded area.
The 'bgcolor' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
... | def bgcolor(self):
"""
Sets the color of padded area.
The 'bgcolor' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva str... | [
"def",
"bgcolor",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"bgcolor\"",
"]"
] | [
59,
4
] | [
109,
30
] | python | en | ['en', 'error', 'th'] | False |
ColorBar.bordercolor | (self) |
Sets the axis line color.
The 'bordercolor' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
... |
Sets the axis line color.
The 'bordercolor' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
... | def bordercolor(self):
"""
Sets the axis line color.
The 'bordercolor' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva ... | [
"def",
"bordercolor",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"bordercolor\"",
"]"
] | [
118,
4
] | [
168,
34
] | python | en | ['en', 'error', 'th'] | False |
ColorBar.borderwidth | (self) |
Sets the width (in px) or the border enclosing this color bar.
The 'borderwidth' property is a number and may be specified as:
- An int or float in the interval [0, inf]
Returns
-------
int|float
|
Sets the width (in px) or the border enclosing this color bar.
The 'borderwidth' property is a number and may be specified as:
- An int or float in the interval [0, inf] | def borderwidth(self):
"""
Sets the width (in px) or the border enclosing this color bar.
The 'borderwidth' property is a number and may be specified as:
- An int or float in the interval [0, inf]
Returns
-------
int|float
"""
return self["... | [
"def",
"borderwidth",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"borderwidth\"",
"]"
] | [
177,
4
] | [
188,
34
] | python | en | ['en', 'error', 'th'] | False |
ColorBar.dtick | (self) |
Sets the step in-between ticks on this axis. Use with `tick0`.
Must be a positive number, or special strings available to
"log" and "date" axes. If the axis `type` is "log", then ticks
are set every 10^(n*dtick) where n is the tick number. For
example, to set a tick mark at 1, 1... |
Sets the step in-between ticks on this axis. Use with `tick0`.
Must be a positive number, or special strings available to
"log" and "date" axes. If the axis `type` is "log", then ticks
are set every 10^(n*dtick) where n is the tick number. For
example, to set a tick mark at 1, 1... | def dtick(self):
"""
Sets the step in-between ticks on this axis. Use with `tick0`.
Must be a positive number, or special strings available to
"log" and "date" axes. If the axis `type` is "log", then ticks
are set every 10^(n*dtick) where n is the tick number. For
example... | [
"def",
"dtick",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"dtick\"",
"]"
] | [
197,
4
] | [
226,
28
] | python | en | ['en', 'error', 'th'] | False |
ColorBar.exponentformat | (self) |
Determines a formatting rule for the tick exponents. For
example, consider the number 1,000,000,000. If "none", it
appears as 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If
"power", 1x10^9 (with 9 in a super script). If "SI", 1G. If
"B", 1B.
The 'exponentformat' prop... |
Determines a formatting rule for the tick exponents. For
example, consider the number 1,000,000,000. If "none", it
appears as 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If
"power", 1x10^9 (with 9 in a super script). If "SI", 1G. If
"B", 1B.
The 'exponentformat' prop... | def exponentformat(self):
"""
Determines a formatting rule for the tick exponents. For
example, consider the number 1,000,000,000. If "none", it
appears as 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If
"power", 1x10^9 (with 9 in a super script). If "SI", 1G. If
"B", 1B.
... | [
"def",
"exponentformat",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"exponentformat\"",
"]"
] | [
235,
4
] | [
251,
37
] | python | en | ['en', 'error', 'th'] | False |
ColorBar.len | (self) |
Sets the length of the color bar This measure excludes the
padding of both ends. That is, the color bar length is this
length minus the padding on both ends.
The 'len' property is a number and may be specified as:
- An int or float in the interval [0, inf]
Return... |
Sets the length of the color bar This measure excludes the
padding of both ends. That is, the color bar length is this
length minus the padding on both ends.
The 'len' property is a number and may be specified as:
- An int or float in the interval [0, inf] | def len(self):
"""
Sets the length of the color bar This measure excludes the
padding of both ends. That is, the color bar length is this
length minus the padding on both ends.
The 'len' property is a number and may be specified as:
- An int or float in the interva... | [
"def",
"len",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"len\"",
"]"
] | [
260,
4
] | [
273,
26
] | python | en | ['en', 'error', 'th'] | False |
ColorBar.lenmode | (self) |
Determines whether this color bar's length (i.e. the measure in
the color variation direction) is set in units of plot
"fraction" or in *pixels. Use `len` to set the value.
The 'lenmode' property is an enumeration that may be specified as:
- One of the following enumerati... |
Determines whether this color bar's length (i.e. the measure in
the color variation direction) is set in units of plot
"fraction" or in *pixels. Use `len` to set the value.
The 'lenmode' property is an enumeration that may be specified as:
- One of the following enumerati... | def lenmode(self):
"""
Determines whether this color bar's length (i.e. the measure in
the color variation direction) is set in units of plot
"fraction" or in *pixels. Use `len` to set the value.
The 'lenmode' property is an enumeration that may be specified as:
- ... | [
"def",
"lenmode",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"lenmode\"",
"]"
] | [
282,
4
] | [
296,
30
] | python | en | ['en', 'error', 'th'] | False |
ColorBar.nticks | (self) |
Specifies the maximum number of ticks for the particular axis.
The actual number of ticks will be chosen automatically to be
less than or equal to `nticks`. Has an effect only if
`tickmode` is set to "auto".
The 'nticks' property is a integer and may be specified as:
... |
Specifies the maximum number of ticks for the particular axis.
The actual number of ticks will be chosen automatically to be
less than or equal to `nticks`. Has an effect only if
`tickmode` is set to "auto".
The 'nticks' property is a integer and may be specified as:
... | def nticks(self):
"""
Specifies the maximum number of ticks for the particular axis.
The actual number of ticks will be chosen automatically to be
less than or equal to `nticks`. Has an effect only if
`tickmode` is set to "auto".
The 'nticks' property is a integer an... | [
"def",
"nticks",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"nticks\"",
"]"
] | [
305,
4
] | [
320,
29
] | python | en | ['en', 'error', 'th'] | False |
ColorBar.outlinecolor | (self) |
Sets the axis line color.
The 'outlinecolor' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
... |
Sets the axis line color.
The 'outlinecolor' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
... | def outlinecolor(self):
"""
Sets the axis line color.
The 'outlinecolor' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsv... | [
"def",
"outlinecolor",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"outlinecolor\"",
"]"
] | [
329,
4
] | [
379,
35
] | python | en | ['en', 'error', 'th'] | False |
ColorBar.outlinewidth | (self) |
Sets the width (in px) of the axis line.
The 'outlinewidth' property is a number and may be specified as:
- An int or float in the interval [0, inf]
Returns
-------
int|float
|
Sets the width (in px) of the axis line.
The 'outlinewidth' property is a number and may be specified as:
- An int or float in the interval [0, inf] | def outlinewidth(self):
"""
Sets the width (in px) of the axis line.
The 'outlinewidth' property is a number and may be specified as:
- An int or float in the interval [0, inf]
Returns
-------
int|float
"""
return self["outlinewidth"] | [
"def",
"outlinewidth",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"outlinewidth\"",
"]"
] | [
388,
4
] | [
399,
35
] | python | en | ['en', 'error', 'th'] | False |
ColorBar.separatethousands | (self) |
If "true", even 4-digit integers are separated
The 'separatethousands' property must be specified as a bool
(either True, or False)
Returns
-------
bool
|
If "true", even 4-digit integers are separated
The 'separatethousands' property must be specified as a bool
(either True, or False) | def separatethousands(self):
"""
If "true", even 4-digit integers are separated
The 'separatethousands' property must be specified as a bool
(either True, or False)
Returns
-------
bool
"""
return self["separatethousands"] | [
"def",
"separatethousands",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"separatethousands\"",
"]"
] | [
408,
4
] | [
419,
40
] | python | en | ['en', 'error', 'th'] | False |
ColorBar.showexponent | (self) |
If "all", all exponents are shown besides their significands.
If "first", only the exponent of the first tick is shown. If
"last", only the exponent of the last tick is shown. If "none",
no exponents appear.
The 'showexponent' property is an enumeration that may be specifie... |
If "all", all exponents are shown besides their significands.
If "first", only the exponent of the first tick is shown. If
"last", only the exponent of the last tick is shown. If "none",
no exponents appear.
The 'showexponent' property is an enumeration that may be specifie... | def showexponent(self):
"""
If "all", all exponents are shown besides their significands.
If "first", only the exponent of the first tick is shown. If
"last", only the exponent of the last tick is shown. If "none",
no exponents appear.
The 'showexponent' property is ... | [
"def",
"showexponent",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"showexponent\"",
"]"
] | [
428,
4
] | [
443,
35
] | python | en | ['en', 'error', 'th'] | False |
ColorBar.showticklabels | (self) |
Determines whether or not the tick labels are drawn.
The 'showticklabels' property must be specified as a bool
(either True, or False)
Returns
-------
bool
|
Determines whether or not the tick labels are drawn.
The 'showticklabels' property must be specified as a bool
(either True, or False) | def showticklabels(self):
"""
Determines whether or not the tick labels are drawn.
The 'showticklabels' property must be specified as a bool
(either True, or False)
Returns
-------
bool
"""
return self["showticklabels"] | [
"def",
"showticklabels",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"showticklabels\"",
"]"
] | [
452,
4
] | [
463,
37
] | python | en | ['en', 'error', 'th'] | False |
ColorBar.showtickprefix | (self) |
If "all", all tick labels are displayed with a prefix. If
"first", only the first tick is displayed with a prefix. If
"last", only the last tick is displayed with a suffix. If
"none", tick prefixes are hidden.
The 'showtickprefix' property is an enumeration that may be spec... |
If "all", all tick labels are displayed with a prefix. If
"first", only the first tick is displayed with a prefix. If
"last", only the last tick is displayed with a suffix. If
"none", tick prefixes are hidden.
The 'showtickprefix' property is an enumeration that may be spec... | def showtickprefix(self):
"""
If "all", all tick labels are displayed with a prefix. If
"first", only the first tick is displayed with a prefix. If
"last", only the last tick is displayed with a suffix. If
"none", tick prefixes are hidden.
The 'showtickprefix' proper... | [
"def",
"showtickprefix",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"showtickprefix\"",
"]"
] | [
472,
4
] | [
487,
37
] | python | en | ['en', 'error', 'th'] | False |
ColorBar.showticksuffix | (self) |
Same as `showtickprefix` but for tick suffixes.
The 'showticksuffix' property is an enumeration that may be specified as:
- One of the following enumeration values:
['all', 'first', 'last', 'none']
Returns
-------
Any
|
Same as `showtickprefix` but for tick suffixes.
The 'showticksuffix' property is an enumeration that may be specified as:
- One of the following enumeration values:
['all', 'first', 'last', 'none'] | def showticksuffix(self):
"""
Same as `showtickprefix` but for tick suffixes.
The 'showticksuffix' property is an enumeration that may be specified as:
- One of the following enumeration values:
['all', 'first', 'last', 'none']
Returns
-------
... | [
"def",
"showticksuffix",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"showticksuffix\"",
"]"
] | [
496,
4
] | [
508,
37
] | python | en | ['en', 'error', 'th'] | False |
ColorBar.thickness | (self) |
Sets the thickness of the color bar This measure excludes the
size of the padding, ticks and labels.
The 'thickness' property is a number and may be specified as:
- An int or float in the interval [0, inf]
Returns
-------
int|float
|
Sets the thickness of the color bar This measure excludes the
size of the padding, ticks and labels.
The 'thickness' property is a number and may be specified as:
- An int or float in the interval [0, inf] | def thickness(self):
"""
Sets the thickness of the color bar This measure excludes the
size of the padding, ticks and labels.
The 'thickness' property is a number and may be specified as:
- An int or float in the interval [0, inf]
Returns
-------
i... | [
"def",
"thickness",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"thickness\"",
"]"
] | [
517,
4
] | [
529,
32
] | python | en | ['en', 'error', 'th'] | False |
ColorBar.thicknessmode | (self) |
Determines whether this color bar's thickness (i.e. the measure
in the constant color direction) is set in units of plot
"fraction" or in "pixels". Use `thickness` to set the value.
The 'thicknessmode' property is an enumeration that may be specified as:
- One of the foll... |
Determines whether this color bar's thickness (i.e. the measure
in the constant color direction) is set in units of plot
"fraction" or in "pixels". Use `thickness` to set the value.
The 'thicknessmode' property is an enumeration that may be specified as:
- One of the foll... | def thicknessmode(self):
"""
Determines whether this color bar's thickness (i.e. the measure
in the constant color direction) is set in units of plot
"fraction" or in "pixels". Use `thickness` to set the value.
The 'thicknessmode' property is an enumeration that may be speci... | [
"def",
"thicknessmode",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"thicknessmode\"",
"]"
] | [
538,
4
] | [
552,
36
] | python | en | ['en', 'error', 'th'] | False |
ColorBar.tick0 | (self) |
Sets the placement of the first tick on this axis. Use with
`dtick`. If the axis `type` is "log", then you must take the
log of your starting tick (e.g. to set the starting tick to
100, set the `tick0` to 2) except when `dtick`=*L<f>* (see
`dtick` for more info). If the axis `ty... |
Sets the placement of the first tick on this axis. Use with
`dtick`. If the axis `type` is "log", then you must take the
log of your starting tick (e.g. to set the starting tick to
100, set the `tick0` to 2) except when `dtick`=*L<f>* (see
`dtick` for more info). If the axis `ty... | def tick0(self):
"""
Sets the placement of the first tick on this axis. Use with
`dtick`. If the axis `type` is "log", then you must take the
log of your starting tick (e.g. to set the starting tick to
100, set the `tick0` to 2) except when `dtick`=*L<f>* (see
`dtick` for... | [
"def",
"tick0",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"tick0\"",
"]"
] | [
561,
4
] | [
579,
28
] | python | en | ['en', 'error', 'th'] | False |
ColorBar.tickangle | (self) |
Sets the angle of the tick labels with respect to the
horizontal. For example, a `tickangle` of -90 draws the tick
labels vertically.
The 'tickangle' property is a angle (in degrees) that may be
specified as a number between -180 and 180. Numeric values outside this
... |
Sets the angle of the tick labels with respect to the
horizontal. For example, a `tickangle` of -90 draws the tick
labels vertically.
The 'tickangle' property is a angle (in degrees) that may be
specified as a number between -180 and 180. Numeric values outside this
... | def tickangle(self):
"""
Sets the angle of the tick labels with respect to the
horizontal. For example, a `tickangle` of -90 draws the tick
labels vertically.
The 'tickangle' property is a angle (in degrees) that may be
specified as a number between -180 and 180. Num... | [
"def",
"tickangle",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"tickangle\"",
"]"
] | [
588,
4
] | [
603,
32
] | python | en | ['en', 'error', 'th'] | False |
ColorBar.tickcolor | (self) |
Sets the tick color.
The 'tickcolor' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
... |
Sets the tick color.
The 'tickcolor' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
... | def tickcolor(self):
"""
Sets the tick color.
The 'tickcolor' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva string (e... | [
"def",
"tickcolor",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"tickcolor\"",
"]"
] | [
612,
4
] | [
662,
32
] | python | en | ['en', 'error', 'th'] | False |
ColorBar.tickfont | (self) |
Sets the color bar's tick label font
The 'tickfont' property is an instance of Tickfont
that may be specified as:
- An instance of :class:`plotly.graph_objs.surface.colorbar.Tickfont`
- A dict of string/value properties that will be passed
to the Tickfont co... |
Sets the color bar's tick label font
The 'tickfont' property is an instance of Tickfont
that may be specified as:
- An instance of :class:`plotly.graph_objs.surface.colorbar.Tickfont`
- A dict of string/value properties that will be passed
to the Tickfont co... | def tickfont(self):
"""
Sets the color bar's tick label font
The 'tickfont' property is an instance of Tickfont
that may be specified as:
- An instance of :class:`plotly.graph_objs.surface.colorbar.Tickfont`
- A dict of string/value properties that will be passed... | [
"def",
"tickfont",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"tickfont\"",
"]"
] | [
671,
4
] | [
708,
31
] | python | en | ['en', 'error', 'th'] | False |
ColorBar.tickformat | (self) |
Sets the tick label formatting rule using d3 formatting mini-
languages which are very similar to those in Python. For
numbers, see: https://github.com/d3/d3-3.x-api-
reference/blob/master/Formatting.md#d3_format And for dates
see: https://github.com/d3/d3-3.x-api-
refer... |
Sets the tick label formatting rule using d3 formatting mini-
languages which are very similar to those in Python. For
numbers, see: https://github.com/d3/d3-3.x-api-
reference/blob/master/Formatting.md#d3_format And for dates
see: https://github.com/d3/d3-3.x-api-
refer... | def tickformat(self):
"""
Sets the tick label formatting rule using d3 formatting mini-
languages which are very similar to those in Python. For
numbers, see: https://github.com/d3/d3-3.x-api-
reference/blob/master/Formatting.md#d3_format And for dates
see: https://github... | [
"def",
"tickformat",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"tickformat\"",
"]"
] | [
717,
4
] | [
737,
33
] | python | en | ['en', 'error', 'th'] | False |
ColorBar.tickformatstops | (self) |
The 'tickformatstops' property is a tuple of instances of
Tickformatstop that may be specified as:
- A list or tuple of instances of plotly.graph_objs.surface.colorbar.Tickformatstop
- A list or tuple of dicts of string/value properties that
will be passed to the Tickfor... |
The 'tickformatstops' property is a tuple of instances of
Tickformatstop that may be specified as:
- A list or tuple of instances of plotly.graph_objs.surface.colorbar.Tickformatstop
- A list or tuple of dicts of string/value properties that
will be passed to the Tickfor... | def tickformatstops(self):
"""
The 'tickformatstops' property is a tuple of instances of
Tickformatstop that may be specified as:
- A list or tuple of instances of plotly.graph_objs.surface.colorbar.Tickformatstop
- A list or tuple of dicts of string/value properties that
... | [
"def",
"tickformatstops",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"tickformatstops\"",
"]"
] | [
746,
4
] | [
794,
38
] | python | en | ['en', 'error', 'th'] | False |
ColorBar.tickformatstopdefaults | (self) |
When used in a template (as
layout.template.data.surface.colorbar.tickformatstopdefaults),
sets the default property values to use for elements of
surface.colorbar.tickformatstops
The 'tickformatstopdefaults' property is an instance of Tickformatstop
that may be spe... |
When used in a template (as
layout.template.data.surface.colorbar.tickformatstopdefaults),
sets the default property values to use for elements of
surface.colorbar.tickformatstops
The 'tickformatstopdefaults' property is an instance of Tickformatstop
that may be spe... | def tickformatstopdefaults(self):
"""
When used in a template (as
layout.template.data.surface.colorbar.tickformatstopdefaults),
sets the default property values to use for elements of
surface.colorbar.tickformatstops
The 'tickformatstopdefaults' property is an insta... | [
"def",
"tickformatstopdefaults",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"tickformatstopdefaults\"",
"]"
] | [
803,
4
] | [
822,
45
] | python | en | ['en', 'error', 'th'] | False |
ColorBar.ticklen | (self) |
Sets the tick length (in px).
The 'ticklen' property is a number and may be specified as:
- An int or float in the interval [0, inf]
Returns
-------
int|float
|
Sets the tick length (in px).
The 'ticklen' property is a number and may be specified as:
- An int or float in the interval [0, inf] | def ticklen(self):
"""
Sets the tick length (in px).
The 'ticklen' property is a number and may be specified as:
- An int or float in the interval [0, inf]
Returns
-------
int|float
"""
return self["ticklen"] | [
"def",
"ticklen",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"ticklen\"",
"]"
] | [
831,
4
] | [
842,
30
] | python | en | ['en', 'error', 'th'] | False |
ColorBar.tickmode | (self) |
Sets the tick mode for this axis. If "auto", the number of
ticks is set via `nticks`. If "linear", the placement of the
ticks is determined by a starting position `tick0` and a tick
step `dtick` ("linear" is the default value if `tick0` and
`dtick` are provided). If "array", the... |
Sets the tick mode for this axis. If "auto", the number of
ticks is set via `nticks`. If "linear", the placement of the
ticks is determined by a starting position `tick0` and a tick
step `dtick` ("linear" is the default value if `tick0` and
`dtick` are provided). If "array", the... | def tickmode(self):
"""
Sets the tick mode for this axis. If "auto", the number of
ticks is set via `nticks`. If "linear", the placement of the
ticks is determined by a starting position `tick0` and a tick
step `dtick` ("linear" is the default value if `tick0` and
`dtick`... | [
"def",
"tickmode",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"tickmode\"",
"]"
] | [
851,
4
] | [
869,
31
] | python | en | ['en', 'error', 'th'] | False |
ColorBar.tickprefix | (self) |
Sets a tick label prefix.
The 'tickprefix' property is a string and must be specified as:
- A string
- A number that will be converted to a string
Returns
-------
str
|
Sets a tick label prefix.
The 'tickprefix' property is a string and must be specified as:
- A string
- A number that will be converted to a string | def tickprefix(self):
"""
Sets a tick label prefix.
The 'tickprefix' property is a string and must be specified as:
- A string
- A number that will be converted to a string
Returns
-------
str
"""
return self["tickprefix"] | [
"def",
"tickprefix",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"tickprefix\"",
"]"
] | [
878,
4
] | [
890,
33
] | python | en | ['en', 'error', 'th'] | False |
ColorBar.ticks | (self) |
Determines whether ticks are drawn or not. If "", this axis'
ticks are not drawn. If "outside" ("inside"), this axis' are
drawn outside (inside) the axis lines.
The 'ticks' property is an enumeration that may be specified as:
- One of the following enumeration values:
... |
Determines whether ticks are drawn or not. If "", this axis'
ticks are not drawn. If "outside" ("inside"), this axis' are
drawn outside (inside) the axis lines.
The 'ticks' property is an enumeration that may be specified as:
- One of the following enumeration values:
... | def ticks(self):
"""
Determines whether ticks are drawn or not. If "", this axis'
ticks are not drawn. If "outside" ("inside"), this axis' are
drawn outside (inside) the axis lines.
The 'ticks' property is an enumeration that may be specified as:
- One of the follo... | [
"def",
"ticks",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"ticks\"",
"]"
] | [
899,
4
] | [
913,
28
] | python | en | ['en', 'error', 'th'] | False |
ColorBar.ticksuffix | (self) |
Sets a tick label suffix.
The 'ticksuffix' property is a string and must be specified as:
- A string
- A number that will be converted to a string
Returns
-------
str
|
Sets a tick label suffix.
The 'ticksuffix' property is a string and must be specified as:
- A string
- A number that will be converted to a string | def ticksuffix(self):
"""
Sets a tick label suffix.
The 'ticksuffix' property is a string and must be specified as:
- A string
- A number that will be converted to a string
Returns
-------
str
"""
return self["ticksuffix"] | [
"def",
"ticksuffix",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"ticksuffix\"",
"]"
] | [
922,
4
] | [
934,
33
] | python | en | ['en', 'error', 'th'] | False |
ColorBar.ticktext | (self) |
Sets the text displayed at the ticks position via `tickvals`.
Only has an effect if `tickmode` is set to "array". Used with
`tickvals`.
The 'ticktext' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series
Returns
-------... |
Sets the text displayed at the ticks position via `tickvals`.
Only has an effect if `tickmode` is set to "array". Used with
`tickvals`.
The 'ticktext' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series | def ticktext(self):
"""
Sets the text displayed at the ticks position via `tickvals`.
Only has an effect if `tickmode` is set to "array". Used with
`tickvals`.
The 'ticktext' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series
... | [
"def",
"ticktext",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"ticktext\"",
"]"
] | [
943,
4
] | [
956,
31
] | python | en | ['en', 'error', 'th'] | False |
ColorBar.ticktextsrc | (self) |
Sets the source reference on Chart Studio Cloud for ticktext .
The 'ticktextsrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
|
Sets the source reference on Chart Studio Cloud for ticktext .
The 'ticktextsrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def ticktextsrc(self):
"""
Sets the source reference on Chart Studio Cloud for ticktext .
The 'ticktextsrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["ticktextsrc"] | [
"def",
"ticktextsrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"ticktextsrc\"",
"]"
] | [
965,
4
] | [
976,
34
] | python | en | ['en', 'error', 'th'] | False |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.