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
Pad.b
(self)
Sets the padding form the bottom (in px). The 'b' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float
Sets the padding form the bottom (in px). The 'b' property is a number and may be specified as: - An int or float in the interval [0, inf]
def b(self): """ Sets the padding form the bottom (in px). The 'b' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float """ return self["b"]
[ "def", "b", "(", "self", ")", ":", "return", "self", "[", "\"b\"", "]" ]
[ 15, 4 ]
[ 26, 24 ]
python
en
['en', 'error', 'th']
False
Pad.l
(self)
Sets the padding form the left (in px). The 'l' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float
Sets the padding form the left (in px). The 'l' property is a number and may be specified as: - An int or float in the interval [0, inf]
def l(self): """ Sets the padding form the left (in px). The 'l' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float """ return self["l"]
[ "def", "l", "(", "self", ")", ":", "return", "self", "[", "\"l\"", "]" ]
[ 35, 4 ]
[ 46, 24 ]
python
en
['en', 'error', 'th']
False
Pad.r
(self)
Sets the padding form the right (in px). The 'r' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float
Sets the padding form the right (in px). The 'r' property is a number and may be specified as: - An int or float in the interval [0, inf]
def r(self): """ Sets the padding form the right (in px). The 'r' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float """ return self["r"]
[ "def", "r", "(", "self", ")", ":", "return", "self", "[", "\"r\"", "]" ]
[ 55, 4 ]
[ 66, 24 ]
python
en
['en', 'error', 'th']
False
Pad.t
(self)
Sets the padding form the top (in px). The 't' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float
Sets the padding form the top (in px). The 't' property is a number and may be specified as: - An int or float in the interval [0, inf]
def t(self): """ Sets the padding form the top (in px). The 't' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float """ return self["t"]
[ "def", "t", "(", "self", ")", ":", "return", "self", "[", "\"t\"", "]" ]
[ 75, 4 ]
[ 86, 24 ]
python
en
['en', 'error', 'th']
False
Pad.__init__
(self, arg=None, b=None, l=None, r=None, t=None, **kwargs)
Construct a new Pad object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.treemap.marker.Pad` b Sets the padding form the bottom (in px). l...
Construct a new Pad object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.treemap.marker.Pad` b Sets the padding form the bottom (in px). l...
def __init__(self, arg=None, b=None, l=None, r=None, t=None, **kwargs): """ Construct a new Pad object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.treemap.ma...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "b", "=", "None", ",", "l", "=", "None", ",", "r", "=", "None", ",", "t", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", "Pad", ",", "self", ")", ".", "__init__", ...
[ 107, 4 ]
[ 182, 34 ]
python
en
['en', 'error', 'th']
False
Timers.timers
(self, ctx)
List all timers.
List all timers.
async def timers(self, ctx): """List all timers.""" query = 'SELECT * FROM timers ORDER BY expires LIMIT 10;' records = await self.bot.pool.fetch(query) if len(records) == 0: return await ctx.send('No timers.') else: embed = discord.Embed(title='Timers',...
[ "async", "def", "timers", "(", "self", ",", "ctx", ")", ":", "query", "=", "'SELECT * FROM timers ORDER BY expires LIMIT 10;'", "records", "=", "await", "self", ".", "bot", ".", "pool", ".", "fetch", "(", "query", ")", "if", "len", "(", "records", ")", "==...
[ 61, 4 ]
[ 78, 39 ]
python
en
['en', 'en', 'en']
True
balanced_l1_loss
(pred, target, beta=1.0, alpha=0.5, gamma=1.5, reduction='mean')
Calculate balanced L1 loss. Please see the `Libra R-CNN <https://arxiv.org/pdf/1904.02701.pdf>`_ Args: pred (torch.Tensor): The prediction with shape (N, 4). target (torch.Tensor): The learning target of the prediction with shape (N, 4). beta (float): The loss is a piecewis...
Calculate balanced L1 loss.
def balanced_l1_loss(pred, target, beta=1.0, alpha=0.5, gamma=1.5, reduction='mean'): """Calculate balanced L1 loss. Please see the `Libra R-CNN <https://arxiv.org/pdf/1904.02701.pdf>`_ Args: p...
[ "def", "balanced_l1_loss", "(", "pred", ",", "target", ",", "beta", "=", "1.0", ",", "alpha", "=", "0.5", ",", "gamma", "=", "1.5", ",", "reduction", "=", "'mean'", ")", ":", "assert", "beta", ">", "0", "assert", "pred", ".", "size", "(", ")", "=="...
[ 9, 0 ]
[ 46, 15 ]
python
en
['en', 'it', 'en']
True
make_sparse_convmodule
(in_channels, out_channels, kernel_size, indice_key, stride=1, padding=0, conv_type='SubMConv3d', norm_cfg=None, ...
Make sparse convolution module. Args: in_channels (int): the number of input channels out_channels (int): the number of out channels kernel_size (int|tuple(int)): kernel size of convolution indice_key (str): the indice key used for sparse tensor stride (int|tuple(int)): the ...
Make sparse convolution module.
def make_sparse_convmodule(in_channels, out_channels, kernel_size, indice_key, stride=1, padding=0, conv_type='SubMConv3d', norm_cf...
[ "def", "make_sparse_convmodule", "(", "in_channels", ",", "out_channels", ",", "kernel_size", ",", "indice_key", ",", "stride", "=", "1", ",", "padding", "=", "0", ",", "conv_type", "=", "'SubMConv3d'", ",", "norm_cfg", "=", "None", ",", "order", "=", "(", ...
[ 122, 0 ]
[ 184, 17 ]
python
en
['en', 'it', 'en']
True
init_standard
(id, env)
New version of the init function. The function's signature is the same as the C counterpart and allows for extra functionality during init. ..note:: This function is preferred by unbound over the old init function. ..note:: The previously accessible configuration options can now be found in ...
New version of the init function. The function's signature is the same as the C counterpart and allows for extra functionality during init. ..note:: This function is preferred by unbound over the old init function. ..note:: The previously accessible configuration options can now be found in ...
def init_standard(id, env): """New version of the init function. The function's signature is the same as the C counterpart and allows for extra functionality during init. ..note:: This function is preferred by unbound over the old init function. ..note:: The previously accessible configuration optio...
[ "def", "init_standard", "(", "id", ",", "env", ")", ":", "log_info", "(", "\"python: inited script {}\"", ".", "format", "(", "env", ".", "cfg", ".", "python_script", ")", ")", "# Register EDNS option 65001 as a known EDNS option.", "if", "not", "register_edns_option"...
[ 74, 0 ]
[ 89, 15 ]
python
en
['en', 'en', 'en']
True
init
(id, cfg)
Previous version init function. ..note:: This function is still supported for backwards compatibility when the init_standard function is missing. When init_standard is present this function SHOULD be omitted to avoid confusion to the reader.
Previous version init function. ..note:: This function is still supported for backwards compatibility when the init_standard function is missing. When init_standard is present this function SHOULD be omitted to avoid confusion to the reader.
def init(id, cfg): """Previous version init function. ..note:: This function is still supported for backwards compatibility when the init_standard function is missing. When init_standard is present this function SHOULD be omitted to avoid confusion to the reader. """ ...
[ "def", "init", "(", "id", ",", "cfg", ")", ":", "return", "True" ]
[ 92, 0 ]
[ 99, 15 ]
python
en
['en', 'en', 'en']
True
load_embeddings
(opt, word_dict)
Initialize embeddings from file of pretrained vectors.
Initialize embeddings from file of pretrained vectors.
def load_embeddings(opt, word_dict): """ Initialize embeddings from file of pretrained vectors. """ embeddings = torch.Tensor(len(word_dict), opt['embedding_dim']) embeddings.normal_(0, 1) opt['embedding_file'] = modelzoo_path(opt.get('datapath'), opt['embedding_file']) # Fill in embeddings ...
[ "def", "load_embeddings", "(", "opt", ",", "word_dict", ")", ":", "embeddings", "=", "torch", ".", "Tensor", "(", "len", "(", "word_dict", ")", ",", "opt", "[", "'embedding_dim'", "]", ")", "embeddings", ".", "normal_", "(", "0", ",", "1", ")", "opt", ...
[ 22, 0 ]
[ 45, 21 ]
python
en
['en', 'error', 'th']
False
build_feature_dict
(opt)
Make mapping of feature option to feature index.
Make mapping of feature option to feature index.
def build_feature_dict(opt): """ Make mapping of feature option to feature index. """ feature_dict = {} if opt['use_in_question']: feature_dict['in_question'] = len(feature_dict) feature_dict['in_question_uncased'] = len(feature_dict) if opt['use_tf']: feature_dict['tf'] ...
[ "def", "build_feature_dict", "(", "opt", ")", ":", "feature_dict", "=", "{", "}", "if", "opt", "[", "'use_in_question'", "]", ":", "feature_dict", "[", "'in_question'", "]", "=", "len", "(", "feature_dict", ")", "feature_dict", "[", "'in_question_uncased'", "]...
[ 48, 0 ]
[ 62, 23 ]
python
en
['en', 'error', 'th']
False
vectorize
(opt, ex, word_dict, feature_dict)
Turn tokenized text inputs into feature vectors.
Turn tokenized text inputs into feature vectors.
def vectorize(opt, ex, word_dict, feature_dict): """ Turn tokenized text inputs into feature vectors. """ # Index words document = torch.LongTensor([word_dict[w] for w in ex['document']]) question = torch.LongTensor([word_dict[w] for w in ex['question']]) # Create extra features vector ...
[ "def", "vectorize", "(", "opt", ",", "ex", ",", "word_dict", ",", "feature_dict", ")", ":", "# Index words", "document", "=", "torch", ".", "LongTensor", "(", "[", "word_dict", "[", "w", "]", "for", "w", "in", "ex", "[", "'document'", "]", "]", ")", ...
[ 70, 0 ]
[ 121, 51 ]
python
en
['en', 'error', 'th']
False
batchify
(batch, null=0, cuda=False)
Collate inputs into batches.
Collate inputs into batches.
def batchify(batch, null=0, cuda=False): """ Collate inputs into batches. """ NUM_INPUTS = 3 NUM_TARGETS = 2 NUM_EXTRA = 2 # Get elements docs = [ex[0] for ex in batch] features = [ex[1] for ex in batch] questions = [ex[2] for ex in batch] text = [ex[-2] for ex in batch] ...
[ "def", "batchify", "(", "batch", ",", "null", "=", "0", ",", "cuda", "=", "False", ")", ":", "NUM_INPUTS", "=", "3", "NUM_TARGETS", "=", "2", "NUM_EXTRA", "=", "2", "# Get elements", "docs", "=", "[", "ex", "[", "0", "]", "for", "ex", "in", "batch"...
[ 124, 0 ]
[ 176, 58 ]
python
en
['en', 'error', 'th']
False
CredentialRequest.__init__
(self, *, request: str = None, comment: str = None, **kwargs)
Initialize credential request object. Args: offer_json: Credential offer json string credential_request_json: Credential request json string
Initialize credential request object.
def __init__(self, *, request: str = None, comment: str = None, **kwargs): """ Initialize credential request object. Args: offer_json: Credential offer json string credential_request_json: Credential request json string """ super(CredentialRequest, self)...
[ "def", "__init__", "(", "self", ",", "*", ",", "request", ":", "str", "=", "None", ",", "comment", ":", "str", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", "CredentialRequest", ",", "self", ")", ".", "__init__", "(", "*", "*", "k...
[ 24, 4 ]
[ 35, 30 ]
python
en
['en', 'error', 'th']
False
Center.x
(self)
The 'x' property is a number and may be specified as: - An int or float Returns ------- int|float
The 'x' property is a number and may be specified as: - An int or float
def x(self): """ The 'x' property is a number and may be specified as: - An int or float Returns ------- int|float """ return self["x"]
[ "def", "x", "(", "self", ")", ":", "return", "self", "[", "\"x\"", "]" ]
[ 15, 4 ]
[ 24, 24 ]
python
en
['en', 'error', 'th']
False
Center.y
(self)
The 'y' property is a number and may be specified as: - An int or float Returns ------- int|float
The 'y' property is a number and may be specified as: - An int or float
def y(self): """ The 'y' property is a number and may be specified as: - An int or float Returns ------- int|float """ return self["y"]
[ "def", "y", "(", "self", ")", ":", "return", "self", "[", "\"y\"", "]" ]
[ 33, 4 ]
[ 42, 24 ]
python
en
['en', 'error', 'th']
False
Center.z
(self)
The 'z' property is a number and may be specified as: - An int or float Returns ------- int|float
The 'z' property is a number and may be specified as: - An int or float
def z(self): """ The 'z' property is a number and may be specified as: - An int or float Returns ------- int|float """ return self["z"]
[ "def", "z", "(", "self", ")", ":", "return", "self", "[", "\"z\"", "]" ]
[ 51, 4 ]
[ 60, 24 ]
python
en
['en', 'error', 'th']
False
Center.__init__
(self, arg=None, x=None, y=None, z=None, **kwargs)
Construct a new Center object 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. Parameters ---------- arg ...
Construct a new Center object 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.
def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): """ Construct a new Center object 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 t...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "x", "=", "None", ",", "y", "=", "None", ",", "z", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", "Center", ",", "self", ")", ".", "__init__", "(", "\"center\"", ")", ...
[ 79, 4 ]
[ 152, 34 ]
python
en
['en', 'error', 'th']
False
Query.__init__
(self, *, query: str = None, comment: str = None, **kwargs)
Initialize query message object. Args: query: The query string to match against supported message types comment: An optional comment
Initialize query message object.
def __init__(self, *, query: str = None, comment: str = None, **kwargs): """ Initialize query message object. Args: query: The query string to match against supported message types comment: An optional comment """ super(Query, self).__init__(**kwargs) ...
[ "def", "__init__", "(", "self", ",", "*", ",", "query", ":", "str", "=", "None", ",", "comment", ":", "str", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", "Query", ",", "self", ")", ".", "__init__", "(", "*", "*", "kwargs", ")",...
[ 24, 4 ]
[ 34, 30 ]
python
en
['en', 'error', 'th']
False
Unselected.marker
(self)
The 'marker' property is an instance of Marker that may be specified as: - An instance of :class:`plotly.graph_objs.scattergeo.unselected.Marker` - A dict of string/value properties that will be passed to the Marker constructor Supported dict properties:...
The 'marker' property is an instance of Marker that may be specified as: - An instance of :class:`plotly.graph_objs.scattergeo.unselected.Marker` - A dict of string/value properties that will be passed to the Marker constructor Supported dict properties:...
def marker(self): """ The 'marker' property is an instance of Marker that may be specified as: - An instance of :class:`plotly.graph_objs.scattergeo.unselected.Marker` - A dict of string/value properties that will be passed to the Marker constructor ...
[ "def", "marker", "(", "self", ")", ":", "return", "self", "[", "\"marker\"", "]" ]
[ 15, 4 ]
[ 39, 29 ]
python
en
['en', 'error', 'th']
False
Unselected.textfont
(self)
The 'textfont' property is an instance of Textfont that may be specified as: - An instance of :class:`plotly.graph_objs.scattergeo.unselected.Textfont` - A dict of string/value properties that will be passed to the Textfont constructor Supported dict pro...
The 'textfont' property is an instance of Textfont that may be specified as: - An instance of :class:`plotly.graph_objs.scattergeo.unselected.Textfont` - A dict of string/value properties that will be passed to the Textfont constructor Supported dict pro...
def textfont(self): """ The 'textfont' property is an instance of Textfont that may be specified as: - An instance of :class:`plotly.graph_objs.scattergeo.unselected.Textfont` - A dict of string/value properties that will be passed to the Textfont constructor ...
[ "def", "textfont", "(", "self", ")", ":", "return", "self", "[", "\"textfont\"", "]" ]
[ 48, 4 ]
[ 66, 31 ]
python
en
['en', 'error', 'th']
False
Unselected.__init__
(self, arg=None, marker=None, textfont=None, **kwargs)
Construct a new Unselected object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.scattergeo.Unselected` marker :class:`plotly.graph_objects.scatter...
Construct a new Unselected object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.scattergeo.Unselected` marker :class:`plotly.graph_objects.scatter...
def __init__(self, arg=None, marker=None, textfont=None, **kwargs): """ Construct a new Unselected object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.scatter...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "marker", "=", "None", ",", "textfont", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", "Unselected", ",", "self", ")", ".", "__init__", "(", "\"unselected\"", ")", "if", "...
[ 85, 4 ]
[ 150, 34 ]
python
en
['en', 'error', 'th']
False
testRescheduleUpgradeToLowerVersionThanPreviouslyScheduled
( looper, tconf, nodeSet, validUpgrade, sdk_pool_handle, sdk_wallet_trustee)
A node starts at version 1.2 running has scheduled upgrade for version 1.5 but get a txn for upgrade 1.4, it will schedule it and cancel upgrade to 1.5.
A node starts at version 1.2 running has scheduled upgrade for version 1.5 but get a txn for upgrade 1.4, it will schedule it and cancel upgrade to 1.5.
def testRescheduleUpgradeToLowerVersionThanPreviouslyScheduled( looper, tconf, nodeSet, validUpgrade, sdk_pool_handle, sdk_wallet_trustee): """ A node starts at version 1.2 running has scheduled upgrade for version 1.5 but get a txn for upgrade 1.4, it will schedule it and cancel upgrade to 1.5. ...
[ "def", "testRescheduleUpgradeToLowerVersionThanPreviouslyScheduled", "(", "looper", ",", "tconf", ",", "nodeSet", ",", "validUpgrade", ",", "sdk_pool_handle", ",", "sdk_wallet_trustee", ")", ":", "upgr1", "=", "deepcopy", "(", "validUpgrade", ")", "upgr2", "=", "deepc...
[ 11, 0 ]
[ 46, 54 ]
python
en
['en', 'error', 'th']
False
save_image_contexts
(task_opt: Opt)
Save a JSON of images and associated contexts for the model image chat task. Note that each image will have BST-style context information saved with it, such as persona strings and a pair of lines of dialogue from another dataset. TODO: perhaps have the image chat task make use of this context informa...
Save a JSON of images and associated contexts for the model image chat task.
def save_image_contexts(task_opt: Opt): """ Save a JSON of images and associated contexts for the model image chat task. Note that each image will have BST-style context information saved with it, such as persona strings and a pair of lines of dialogue from another dataset. TODO: perhaps have the i...
[ "def", "save_image_contexts", "(", "task_opt", ":", "Opt", ")", ":", "print", "(", "'Creating teacher to loop over images.'", ")", "agent", "=", "RepeatLabelAgent", "(", "task_opt", ")", "world", "=", "create_task", "(", "task_opt", ",", "agent", ")", "num_example...
[ 37, 0 ]
[ 81, 38 ]
python
en
['en', 'error', 'th']
False
completed
(trace_name='', name='', sleep_interval=0.05, streams: List[torch.cuda.Stream] = None)
Async context manager that waits for work to complete on given CUDA streams.
Async context manager that waits for work to complete on given CUDA streams.
async def completed(trace_name='', name='', sleep_interval=0.05, streams: List[torch.cuda.Stream] = None): """Async context manager that waits for work to complete on given CUDA streams.""" if not torch.cuda.is_available(): yield re...
[ "async", "def", "completed", "(", "trace_name", "=", "''", ",", "name", "=", "''", ",", "sleep_interval", "=", "0.05", ",", "streams", ":", "List", "[", "torch", ".", "cuda", ".", "Stream", "]", "=", "None", ")", ":", "if", "not", "torch", ".", "cu...
[ 15, 0 ]
[ 86, 40 ]
python
en
['en', 'en', 'en']
True
concurrent
(streamqueue: asyncio.Queue, trace_name='concurrent', name='stream')
Run code concurrently in different streams. :param streamqueue: asyncio.Queue instance. Queue tasks define the pool of streams used for concurrent execution.
Run code concurrently in different streams.
async def concurrent(streamqueue: asyncio.Queue, trace_name='concurrent', name='stream'): """Run code concurrently in different streams. :param streamqueue: asyncio.Queue instance. Queue tasks define the pool of streams used for concurrent execution. """ i...
[ "async", "def", "concurrent", "(", "streamqueue", ":", "asyncio", ".", "Queue", ",", "trace_name", "=", "'concurrent'", ",", "name", "=", "'stream'", ")", ":", "if", "not", "torch", ".", "cuda", ".", "is_available", "(", ")", ":", "yield", "return", "ini...
[ 90, 0 ]
[ 120, 42 ]
python
en
['en', 'en', 'en']
True
QueryAndGroup.forward
(self, points_xyz, center_xyz, features=None)
forward. Args: points_xyz (Tensor): (B, N, 3) xyz coordinates of the features. center_xyz (Tensor): (B, npoint, 3) Centriods. features (Tensor): (B, C, N) Descriptors of the features. Return: Tensor: (B, 3 + C, npoint, sample_num) Grouped feature. ...
forward.
def forward(self, points_xyz, center_xyz, features=None): """forward. Args: points_xyz (Tensor): (B, N, 3) xyz coordinates of the features. center_xyz (Tensor): (B, npoint, 3) Centriods. features (Tensor): (B, C, N) Descriptors of the features. Return: ...
[ "def", "forward", "(", "self", ",", "points_xyz", ",", "center_xyz", ",", "features", "=", "None", ")", ":", "idx", "=", "ball_query", "(", "self", ".", "min_radius", ",", "self", ".", "max_radius", ",", "self", ".", "sample_num", ",", "points_xyz", ",",...
[ 52, 4 ]
[ 108, 29 ]
python
en
['en', 'cy', 'en']
False
GroupAll.forward
(self, xyz: torch.Tensor, new_xyz: torch.Tensor, features: torch.Tensor = None)
forward. Args: xyz (Tensor): (B, N, 3) xyz coordinates of the features. new_xyz (Tensor): Ignored. features (Tensor): (B, C, N) features to group. Return: Tensor: (B, C + 3, 1, N) Grouped feature.
forward.
def forward(self, xyz: torch.Tensor, new_xyz: torch.Tensor, features: torch.Tensor = None): """forward. Args: xyz (Tensor): (B, N, 3) xyz coordinates of the features. new_xyz (Tensor): Ignored. features (Tensor): (B, C,...
[ "def", "forward", "(", "self", ",", "xyz", ":", "torch", ".", "Tensor", ",", "new_xyz", ":", "torch", ".", "Tensor", ",", "features", ":", "torch", ".", "Tensor", "=", "None", ")", ":", "grouped_xyz", "=", "xyz", ".", "transpose", "(", "1", ",", "2...
[ 124, 4 ]
[ 149, 27 ]
python
en
['en', 'cy', 'en']
False
GroupingOperation.forward
(ctx, features: torch.Tensor, indices: torch.Tensor)
forward. Args: features (Tensor): (B, C, N) tensor of features to group. indices (Tensor): (B, npoint, nsample) the indicies of features to group with. Returns: Tensor: (B, C, npoint, nsample) Grouped features.
forward.
def forward(ctx, features: torch.Tensor, indices: torch.Tensor) -> torch.Tensor: """forward. Args: features (Tensor): (B, C, N) tensor of features to group. indices (Tensor): (B, npoint, nsample) the indicies of features to group with. Re...
[ "def", "forward", "(", "ctx", ",", "features", ":", "torch", ".", "Tensor", ",", "indices", ":", "torch", ".", "Tensor", ")", "->", "torch", ".", "Tensor", ":", "assert", "features", ".", "is_contiguous", "(", ")", "assert", "indices", ".", "is_contiguou...
[ 159, 4 ]
[ 182, 21 ]
python
en
['en', 'cy', 'en']
False
GroupingOperation.backward
(ctx, grad_out: torch.Tensor)
backward. Args: grad_out (Tensor): (B, C, npoint, nsample) tensor of the gradients of the output from forward. Returns: Tensor: (B, C, N) gradient of the features.
backward.
def backward(ctx, grad_out: torch.Tensor) -> Tuple[torch.Tensor, torch.Tensor]: """backward. Args: grad_out (Tensor): (B, C, npoint, nsample) tensor of the gradients of the output from forward. Returns: Tensor: (B, C, N) gradient of the ...
[ "def", "backward", "(", "ctx", ",", "grad_out", ":", "torch", ".", "Tensor", ")", "->", "Tuple", "[", "torch", ".", "Tensor", ",", "torch", ".", "Tensor", "]", ":", "idx", ",", "N", "=", "ctx", ".", "for_backwards", "B", ",", "C", ",", "npoint", ...
[ 185, 4 ]
[ 204, 34 ]
python
en
['en', 'so', 'en']
False
Tickformatstop.dtickrange
(self)
range [*min*, *max*], where "min", "max" - dtick values which describe some zoom level, it is possible to omit "min" or "max" value by passing "null" The 'dtickrange' property is an info array that may be specified as: * a list or tuple of 2 elements where: (0) The...
range [*min*, *max*], where "min", "max" - dtick values which describe some zoom level, it is possible to omit "min" or "max" value by passing "null" The 'dtickrange' property is an info array that may be specified as: * a list or tuple of 2 elements where: (0) The...
def dtickrange(self): """ range [*min*, *max*], where "min", "max" - dtick values which describe some zoom level, it is possible to omit "min" or "max" value by passing "null" The 'dtickrange' property is an info array that may be specified as: * a list or tuple...
[ "def", "dtickrange", "(", "self", ")", ":", "return", "self", "[", "\"dtickrange\"", "]" ]
[ 15, 4 ]
[ 31, 33 ]
python
en
['en', 'error', 'th']
False
Tickformatstop.enabled
(self)
Determines whether or not this stop is used. If `false`, this stop is ignored even within its `dtickrange`. The 'enabled' property must be specified as a bool (either True, or False) Returns ------- bool
Determines whether or not this stop is used. If `false`, this stop is ignored even within its `dtickrange`. The 'enabled' property must be specified as a bool (either True, or False)
def enabled(self): """ Determines whether or not this stop is used. If `false`, this stop is ignored even within its `dtickrange`. The 'enabled' property must be specified as a bool (either True, or False) Returns ------- bool """ ret...
[ "def", "enabled", "(", "self", ")", ":", "return", "self", "[", "\"enabled\"", "]" ]
[ 40, 4 ]
[ 52, 30 ]
python
en
['en', 'error', 'th']
False
Tickformatstop.name
(self)
When used in a template, named items are created in the output figure in addition to any items the figure already has in this array. You can modify these items in the output figure by making your own item with `templateitemname` matching this `name` alongside your modifications ...
When used in a template, named items are created in the output figure in addition to any items the figure already has in this array. You can modify these items in the output figure by making your own item with `templateitemname` matching this `name` alongside your modifications ...
def name(self): """ When used in a template, named items are created in the output figure in addition to any items the figure already has in this array. You can modify these items in the output figure by making your own item with `templateitemname` matching this `name` al...
[ "def", "name", "(", "self", ")", ":", "return", "self", "[", "\"name\"", "]" ]
[ 61, 4 ]
[ 79, 27 ]
python
en
['en', 'error', 'th']
False
Tickformatstop.templateitemname
(self)
Used to refer to a named item in this array in the template. Named items from the template will be created even without a matching item in the input figure, but you can modify one by making an item with `templateitemname` matching its `name`, alongside your modifications (includ...
Used to refer to a named item in this array in the template. Named items from the template will be created even without a matching item in the input figure, but you can modify one by making an item with `templateitemname` matching its `name`, alongside your modifications (includ...
def templateitemname(self): """ Used to refer to a named item in this array in the template. Named items from the template will be created even without a matching item in the input figure, but you can modify one by making an item with `templateitemname` matching its `name`, ...
[ "def", "templateitemname", "(", "self", ")", ":", "return", "self", "[", "\"templateitemname\"", "]" ]
[ 88, 4 ]
[ 107, 39 ]
python
en
['en', 'error', 'th']
False
Tickformatstop.value
(self)
string - dtickformat for described zoom level, the same as "tickformat" The 'value' property is a string and must be specified as: - A string - A number that will be converted to a string Returns ------- str
string - dtickformat for described zoom level, the same as "tickformat" The 'value' property is a string and must be specified as: - A string - A number that will be converted to a string
def value(self): """ string - dtickformat for described zoom level, the same as "tickformat" The 'value' property is a string and must be specified as: - A string - A number that will be converted to a string Returns ------- str "...
[ "def", "value", "(", "self", ")", ":", "return", "self", "[", "\"value\"", "]" ]
[ 116, 4 ]
[ 129, 28 ]
python
en
['en', 'error', 'th']
False
Tickformatstop.__init__
( self, arg=None, dtickrange=None, enabled=None, name=None, templateitemname=None, value=None, **kwargs )
Construct a new Tickformatstop object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.scatter3d.mark er.colorbar.Tickformatstop` dtickrange range [*...
Construct a new Tickformatstop object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.scatter3d.mark er.colorbar.Tickformatstop` dtickrange range [*...
def __init__( self, arg=None, dtickrange=None, enabled=None, name=None, templateitemname=None, value=None, **kwargs ): """ Construct a new Tickformatstop object Parameters ---------- arg dict...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "dtickrange", "=", "None", ",", "enabled", "=", "None", ",", "name", "=", "None", ",", "templateitemname", "=", "None", ",", "value", "=", "None", ",", "*", "*", "kwargs", ")", ":", "sup...
[ 172, 4 ]
[ 282, 34 ]
python
en
['en', 'error', 'th']
False
CredentialAckHandler.handle
(self, context: RequestContext, responder: BaseResponder)
Message handler logic for credential acks. Args: context: request context responder: responder callback
Message handler logic for credential acks.
async def handle(self, context: RequestContext, responder: BaseResponder): """ Message handler logic for credential acks. Args: context: request context responder: responder callback """ self._logger.debug("CredentialAckHandler called with context %s", co...
[ "async", "def", "handle", "(", "self", ",", "context", ":", "RequestContext", ",", "responder", ":", "BaseResponder", ")", ":", "self", ".", "_logger", ".", "debug", "(", "\"CredentialAckHandler called with context %s\"", ",", "context", ")", "assert", "isinstance...
[ 16, 4 ]
[ 36, 57 ]
python
en
['en', 'error', 'th']
False
test_max_iou_assigner_with_empty_gt
()
Test corner case where an image might have no true detections.
Test corner case where an image might have no true detections.
def test_max_iou_assigner_with_empty_gt(): """Test corner case where an image might have no true detections.""" self = MaxIoUAssigner( pos_iou_thr=0.5, neg_iou_thr=0.5, ) bboxes = torch.FloatTensor([ [0, 0, 10, 10], [10, 10, 20, 20], [5, 5, 15, 15], [32, 3...
[ "def", "test_max_iou_assigner_with_empty_gt", "(", ")", ":", "self", "=", "MaxIoUAssigner", "(", "pos_iou_thr", "=", "0.5", ",", "neg_iou_thr", "=", "0.5", ",", ")", "bboxes", "=", "torch", ".", "FloatTensor", "(", "[", "[", "0", ",", "0", ",", "10", ","...
[ 62, 0 ]
[ 78, 63 ]
python
en
['en', 'en', 'en']
True
test_max_iou_assigner_with_empty_boxes
()
Test corner case where an network might predict no boxes.
Test corner case where an network might predict no boxes.
def test_max_iou_assigner_with_empty_boxes(): """Test corner case where an network might predict no boxes.""" self = MaxIoUAssigner( pos_iou_thr=0.5, neg_iou_thr=0.5, ) bboxes = torch.empty((0, 4)) gt_bboxes = torch.FloatTensor([ [0, 0, 10, 9], [0, 10, 10, 19], ])...
[ "def", "test_max_iou_assigner_with_empty_boxes", "(", ")", ":", "self", "=", "MaxIoUAssigner", "(", "pos_iou_thr", "=", "0.5", ",", "neg_iou_thr", "=", "0.5", ",", ")", "bboxes", "=", "torch", ".", "empty", "(", "(", "0", ",", "4", ")", ")", "gt_bboxes", ...
[ 81, 0 ]
[ 102, 39 ]
python
en
['en', 'en', 'en']
True
test_max_iou_assigner_with_empty_boxes_and_ignore
()
Test corner case where an network might predict no boxes and ignore_iof_thr is on.
Test corner case where an network might predict no boxes and ignore_iof_thr is on.
def test_max_iou_assigner_with_empty_boxes_and_ignore(): """Test corner case where an network might predict no boxes and ignore_iof_thr is on.""" self = MaxIoUAssigner( pos_iou_thr=0.5, neg_iou_thr=0.5, ignore_iof_thr=0.5, ) bboxes = torch.empty((0, 4)) gt_bboxes = torch....
[ "def", "test_max_iou_assigner_with_empty_boxes_and_ignore", "(", ")", ":", "self", "=", "MaxIoUAssigner", "(", "pos_iou_thr", "=", "0.5", ",", "neg_iou_thr", "=", "0.5", ",", "ignore_iof_thr", "=", "0.5", ",", ")", "bboxes", "=", "torch", ".", "empty", "(", "(...
[ 105, 0 ]
[ 136, 39 ]
python
en
['en', 'en', 'en']
True
test_max_iou_assigner_with_empty_boxes_and_gt
()
Test corner case where an network might predict no boxes and no gt.
Test corner case where an network might predict no boxes and no gt.
def test_max_iou_assigner_with_empty_boxes_and_gt(): """Test corner case where an network might predict no boxes and no gt.""" self = MaxIoUAssigner( pos_iou_thr=0.5, neg_iou_thr=0.5, ) bboxes = torch.empty((0, 4)) gt_bboxes = torch.empty((0, 4)) assign_result = self.assign(bboxe...
[ "def", "test_max_iou_assigner_with_empty_boxes_and_gt", "(", ")", ":", "self", "=", "MaxIoUAssigner", "(", "pos_iou_thr", "=", "0.5", ",", "neg_iou_thr", "=", "0.5", ",", ")", "bboxes", "=", "torch", ".", "empty", "(", "(", "0", ",", "4", ")", ")", "gt_bbo...
[ 139, 0 ]
[ 148, 42 ]
python
en
['en', 'en', 'en']
True
Tickfont.color
(self)
The 'color' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - A named CSS color: ...
The 'color' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - A named CSS color: ...
def color(self): """ The 'color' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - A name...
[ "def", "color", "(", "self", ")", ":", "return", "self", "[", "\"color\"", "]" ]
[ 15, 4 ]
[ 63, 28 ]
python
en
['en', 'error', 'th']
False
Tickfont.family
(self)
HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts ...
HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts ...
def family(self): """ HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the prefer...
[ "def", "family", "(", "self", ")", ":", "return", "self", "[", "\"family\"", "]" ]
[ 72, 4 ]
[ 94, 29 ]
python
en
['en', 'error', 'th']
False
Tickfont.size
(self)
The 'size' property is a number and may be specified as: - An int or float in the interval [1, inf] Returns ------- int|float
The 'size' property is a number and may be specified as: - An int or float in the interval [1, inf]
def size(self): """ The 'size' property is a number and may be specified as: - An int or float in the interval [1, inf] Returns ------- int|float """ return self["size"]
[ "def", "size", "(", "self", ")", ":", "return", "self", "[", "\"size\"", "]" ]
[ 103, 4 ]
[ 112, 27 ]
python
en
['en', 'error', 'th']
False
Tickfont.__init__
(self, arg=None, color=None, family=None, size=None, **kwargs)
Construct a new Tickfont object Sets the color bar's tick label font Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.heatmap.colorbar.Tickfont` color ...
Construct a new Tickfont object Sets the color bar's tick label font
def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): """ Construct a new Tickfont object Sets the color bar's tick label font Parameters ---------- arg dict of properties compatible with this constructor or an insta...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "color", "=", "None", ",", "family", "=", "None", ",", "size", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", "Tickfont", ",", "self", ")", ".", "__init__", "(", "\"tick...
[ 143, 4 ]
[ 226, 34 ]
python
en
['en', 'error', 'th']
False
pathmaker
(first_segment, *in_path_segments, rev=False)
Normalizes input path or path fragments, replaces '\\\\' with '/' and combines fragments. Parameters ---------- first_segment : str first path segment, if it is 'cwd' gets replaced by 'os.getcwd()' rev : bool, optional If 'True' reverts path back to Windows default, by default None...
Normalizes input path or path fragments, replaces '\\\\' with '/' and combines fragments.
def pathmaker(first_segment, *in_path_segments, rev=False): """ Normalizes input path or path fragments, replaces '\\\\' with '/' and combines fragments. Parameters ---------- first_segment : str first path segment, if it is 'cwd' gets replaced by 'os.getcwd()' rev : bool, optional ...
[ "def", "pathmaker", "(", "first_segment", ",", "*", "in_path_segments", ",", "rev", "=", "False", ")", ":", "_path", "=", "first_segment", "_path", "=", "os", ".", "path", ".", "join", "(", "_path", ",", "*", "in_path_segments", ")", "if", "rev", "is", ...
[ 59, 0 ]
[ 81, 60 ]
python
en
['en', 'error', 'th']
False
check_if_person
(text)
Using spacy, check if the title of the Wikipedia passage is a person.
Using spacy, check if the title of the Wikipedia passage is a person.
def check_if_person(text): """ Using spacy, check if the title of the Wikipedia passage is a person. """ doc = NLP(text) is_person = False ents = [ent for ent in doc.ents] for ent in ents: if ent.label_ == 'PERSON': is_person = True return is_person
[ "def", "check_if_person", "(", "text", ")", ":", "doc", "=", "NLP", "(", "text", ")", "is_person", "=", "False", "ents", "=", "[", "ent", "for", "ent", "in", "doc", ".", "ents", "]", "for", "ent", "in", "ents", ":", "if", "ent", ".", "label_", "=...
[ 29, 0 ]
[ 39, 20 ]
python
en
['en', 'error', 'th']
False
get_gender
(text)
Determine gender by the count of referring pronouns in the biography (he, she, they).
Determine gender by the count of referring pronouns in the biography (he, she, they).
def get_gender(text): """ Determine gender by the count of referring pronouns in the biography (he, she, they). """ he_count = len(re.findall(' he ', text.lower())) she_count = len(re.findall(' she ', text.lower())) they_count = len(re.findall(' they ', text.lower())) if he_count == max...
[ "def", "get_gender", "(", "text", ")", ":", "he_count", "=", "len", "(", "re", ".", "findall", "(", "' he '", ",", "text", ".", "lower", "(", ")", ")", ")", "she_count", "=", "len", "(", "re", ".", "findall", "(", "' she '", ",", "text", ".", "lo...
[ 42, 0 ]
[ 59, 33 ]
python
en
['en', 'error', 'th']
False
WikipediaTeacher.get_num_samples
(self, opt)
Return the number of samples given the datatype.
Return the number of samples given the datatype.
def get_num_samples(self, opt) -> int: """ Return the number of samples given the datatype. """ datatype = opt['datatype'] if 'train' in datatype: return 12774693, 12774693 elif 'valid' in datatype: return 7410, 7410 else: retur...
[ "def", "get_num_samples", "(", "self", ",", "opt", ")", "->", "int", ":", "datatype", "=", "opt", "[", "'datatype'", "]", "if", "'train'", "in", "datatype", ":", "return", "12774693", ",", "12774693", "elif", "'valid'", "in", "datatype", ":", "return", "...
[ 147, 4 ]
[ 157, 29 ]
python
en
['en', 'error', 'th']
False
WikipediaTeacher.get_fold_chunks
(self, opt)
Return a list of chunk IDs (integer). Given the datatype (train/test/valid), return the list of chunk IDs that correspond to that split.
Return a list of chunk IDs (integer).
def get_fold_chunks(self, opt) -> List[int]: # type: ignore """ Return a list of chunk IDs (integer). Given the datatype (train/test/valid), return the list of chunk IDs that correspond to that split. """ datatype = opt['datatype'] all_chunk_idxs = list(self.chu...
[ "def", "get_fold_chunks", "(", "self", ",", "opt", ")", "->", "List", "[", "int", "]", ":", "# type: ignore", "datatype", "=", "opt", "[", "'datatype'", "]", "all_chunk_idxs", "=", "list", "(", "self", ".", "chunk_idx_to_file", ".", "keys", "(", ")", ")"...
[ 159, 4 ]
[ 175, 38 ]
python
en
['en', 'error', 'th']
False
WikipediaTeacher.load_from_chunk
(self, chunk_idx: int)
[Abstract] Given the chunk index, load examples from that chunk. Return a list of tuples. The function `_create_message` will take these tuples to form the Message object that is returned by the teacher.
[Abstract] Given the chunk index, load examples from that chunk.
def load_from_chunk(self, chunk_idx: int): """ [Abstract] Given the chunk index, load examples from that chunk. Return a list of tuples. The function `_create_message` will take these tuples to form the Message object that is returned by the teacher. """ output = [] ...
[ "def", "load_from_chunk", "(", "self", ",", "chunk_idx", ":", "int", ")", ":", "output", "=", "[", "]", "chunk_path", "=", "self", ".", "chunk_idx_to_file", "[", "chunk_idx", "]", "extra_data", "=", "[", "]", "with", "open", "(", "chunk_path", ")", "as",...
[ 177, 4 ]
[ 255, 21 ]
python
en
['en', 'error', 'th']
False
WikipediaTeacher.create_message
(self, queue_output, entry_idx=0)
[Abstract] Given the tuple output of the queue, return an act.
[Abstract] Given the tuple output of the queue, return an act.
def create_message(self, queue_output, entry_idx=0) -> 'Message': """ [Abstract] Given the tuple output of the queue, return an act. """ par, title, lbl, gender, class_type = queue_output if self.class_task == 'all': if class_type == 'self': labels = g...
[ "def", "create_message", "(", "self", ",", "queue_output", ",", "entry_idx", "=", "0", ")", "->", "'Message'", ":", "par", ",", "title", ",", "lbl", ",", "gender", ",", "class_type", "=", "queue_output", "if", "self", ".", "class_task", "==", "'all'", ":...
[ 260, 4 ]
[ 285, 9 ]
python
en
['en', 'error', 'th']
False
Aaxis.color
(self)
Sets default for all colors associated with this axis all at once: line, font, tick, and grid colors. Grid color is lightened by blending this with the plot background Individual pieces can override this. The 'color' property is a color and may be specified as: - ...
Sets default for all colors associated with this axis all at once: line, font, tick, and grid colors. Grid color is lightened by blending this with the plot background Individual pieces can override this. The 'color' property is a color and may be specified as: - ...
def color(self): """ Sets default for all colors associated with this axis all at once: line, font, tick, and grid colors. Grid color is lightened by blending this with the plot background Individual pieces can override this. The 'color' property is a color and may b...
[ "def", "color", "(", "self", ")", ":", "return", "self", "[", "\"color\"", "]" ]
[ 54, 4 ]
[ 107, 28 ]
python
en
['en', 'error', 'th']
False
Aaxis.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\"", "]" ]
[ 116, 4 ]
[ 145, 28 ]
python
en
['en', 'error', 'th']
False
Aaxis.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\"", "]" ]
[ 154, 4 ]
[ 170, 37 ]
python
en
['en', 'error', 'th']
False
Aaxis.gridcolor
(self)
Sets the color of the grid lines. The 'gridcolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100...
Sets the color of the grid lines. The 'gridcolor' 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 gridcolor(self): """ Sets the color of the grid lines. The 'gridcolor' 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/h...
[ "def", "gridcolor", "(", "self", ")", ":", "return", "self", "[", "\"gridcolor\"", "]" ]
[ 179, 4 ]
[ 229, 32 ]
python
en
['en', 'error', 'th']
False
Aaxis.gridwidth
(self)
Sets the width (in px) of the grid lines. The 'gridwidth' 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 grid lines. The 'gridwidth' property is a number and may be specified as: - An int or float in the interval [0, inf]
def gridwidth(self): """ Sets the width (in px) of the grid lines. The 'gridwidth' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float """ return self["gridwidth"]
[ "def", "gridwidth", "(", "self", ")", ":", "return", "self", "[", "\"gridwidth\"", "]" ]
[ 238, 4 ]
[ 249, 32 ]
python
en
['en', 'error', 'th']
False
Aaxis.hoverformat
(self)
Sets the hover text 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 hover text 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 hoverformat(self): """ Sets the hover text 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://githu...
[ "def", "hoverformat", "(", "self", ")", ":", "return", "self", "[", "\"hoverformat\"", "]" ]
[ 258, 4 ]
[ 278, 34 ]
python
en
['en', 'error', 'th']
False
Aaxis.layer
(self)
Sets the layer on which this axis is displayed. If *above traces*, this axis is displayed above all the subplot's traces If *below traces*, this axis is displayed below all the subplot's traces, but above the grid lines. Useful when used together with scatter-like traces with `c...
Sets the layer on which this axis is displayed. If *above traces*, this axis is displayed above all the subplot's traces If *below traces*, this axis is displayed below all the subplot's traces, but above the grid lines. Useful when used together with scatter-like traces with `c...
def layer(self): """ Sets the layer on which this axis is displayed. If *above traces*, this axis is displayed above all the subplot's traces If *below traces*, this axis is displayed below all the subplot's traces, but above the grid lines. Useful when used together with...
[ "def", "layer", "(", "self", ")", ":", "return", "self", "[", "\"layer\"", "]" ]
[ 287, 4 ]
[ 304, 28 ]
python
en
['en', 'error', 'th']
False
Aaxis.linecolor
(self)
Sets the axis line color. The 'linecolor' 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 'linecolor' 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 linecolor(self): """ Sets the axis line color. The 'linecolor' 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 stri...
[ "def", "linecolor", "(", "self", ")", ":", "return", "self", "[", "\"linecolor\"", "]" ]
[ 313, 4 ]
[ 363, 32 ]
python
en
['en', 'error', 'th']
False
Aaxis.linewidth
(self)
Sets the width (in px) of the axis line. The 'linewidth' 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 'linewidth' property is a number and may be specified as: - An int or float in the interval [0, inf]
def linewidth(self): """ Sets the width (in px) of the axis line. The 'linewidth' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float """ return self["linewidth"]
[ "def", "linewidth", "(", "self", ")", ":", "return", "self", "[", "\"linewidth\"", "]" ]
[ 372, 4 ]
[ 383, 32 ]
python
en
['en', 'error', 'th']
False
Aaxis.min
(self)
The minimum value visible on this axis. The maximum is determined by the sum minus the minimum values of the other two axes. The full view corresponds to all the minima set to zero. The 'min' property is a number and may be specified as: - An int or float in the interval ...
The minimum value visible on this axis. The maximum is determined by the sum minus the minimum values of the other two axes. The full view corresponds to all the minima set to zero. The 'min' property is a number and may be specified as: - An int or float in the interval ...
def min(self): """ The minimum value visible on this axis. The maximum is determined by the sum minus the minimum values of the other two axes. The full view corresponds to all the minima set to zero. The 'min' property is a number and may be specified as: - An int...
[ "def", "min", "(", "self", ")", ":", "return", "self", "[", "\"min\"", "]" ]
[ 392, 4 ]
[ 405, 26 ]
python
en
['en', 'error', 'th']
False
Aaxis.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\"", "]" ]
[ 414, 4 ]
[ 429, 29 ]
python
en
['en', 'error', 'th']
False
Aaxis.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\"", "]" ]
[ 438, 4 ]
[ 449, 40 ]
python
en
['en', 'error', 'th']
False
Aaxis.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\"", "]" ]
[ 458, 4 ]
[ 473, 35 ]
python
en
['en', 'error', 'th']
False
Aaxis.showgrid
(self)
Determines whether or not grid lines are drawn. If True, the grid lines are drawn at every tick mark. The 'showgrid' property must be specified as a bool (either True, or False) Returns ------- bool
Determines whether or not grid lines are drawn. If True, the grid lines are drawn at every tick mark. The 'showgrid' property must be specified as a bool (either True, or False)
def showgrid(self): """ Determines whether or not grid lines are drawn. If True, the grid lines are drawn at every tick mark. The 'showgrid' property must be specified as a bool (either True, or False) Returns ------- bool """ return ...
[ "def", "showgrid", "(", "self", ")", ":", "return", "self", "[", "\"showgrid\"", "]" ]
[ 482, 4 ]
[ 494, 31 ]
python
en
['en', 'error', 'th']
False
Aaxis.showline
(self)
Determines whether or not a line bounding this axis is drawn. The 'showline' property must be specified as a bool (either True, or False) Returns ------- bool
Determines whether or not a line bounding this axis is drawn. The 'showline' property must be specified as a bool (either True, or False)
def showline(self): """ Determines whether or not a line bounding this axis is drawn. The 'showline' property must be specified as a bool (either True, or False) Returns ------- bool """ return self["showline"]
[ "def", "showline", "(", "self", ")", ":", "return", "self", "[", "\"showline\"", "]" ]
[ 503, 4 ]
[ 514, 31 ]
python
en
['en', 'error', 'th']
False
Aaxis.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\"", "]" ]
[ 523, 4 ]
[ 534, 37 ]
python
en
['en', 'error', 'th']
False
Aaxis.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\"", "]" ]
[ 543, 4 ]
[ 558, 37 ]
python
en
['en', 'error', 'th']
False
Aaxis.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\"", "]" ]
[ 567, 4 ]
[ 579, 37 ]
python
en
['en', 'error', 'th']
False
Aaxis.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\"", "]" ]
[ 588, 4 ]
[ 606, 28 ]
python
en
['en', 'error', 'th']
False
Aaxis.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\"", "]" ]
[ 615, 4 ]
[ 630, 32 ]
python
en
['en', 'error', 'th']
False
Aaxis.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\"", "]" ]
[ 639, 4 ]
[ 689, 32 ]
python
en
['en', 'error', 'th']
False
Aaxis.tickfont
(self)
Sets the tick font. The 'tickfont' property is an instance of Tickfont that may be specified as: - An instance of :class:`plotly.graph_objs.layout.ternary.aaxis.Tickfont` - A dict of string/value properties that will be passed to the Tickfont constructor ...
Sets the tick font. The 'tickfont' property is an instance of Tickfont that may be specified as: - An instance of :class:`plotly.graph_objs.layout.ternary.aaxis.Tickfont` - A dict of string/value properties that will be passed to the Tickfont constructor ...
def tickfont(self): """ Sets the tick font. The 'tickfont' property is an instance of Tickfont that may be specified as: - An instance of :class:`plotly.graph_objs.layout.ternary.aaxis.Tickfont` - A dict of string/value properties that will be passed ...
[ "def", "tickfont", "(", "self", ")", ":", "return", "self", "[", "\"tickfont\"", "]" ]
[ 698, 4 ]
[ 735, 31 ]
python
en
['en', 'error', 'th']
False
Aaxis.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\"", "]" ]
[ 744, 4 ]
[ 764, 33 ]
python
en
['en', 'error', 'th']
False
Aaxis.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.layout.ternary.aaxis.Tickformatstop - A list or tuple of dicts of string/value properties that will be passed to the Tic...
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.layout.ternary.aaxis.Tickformatstop - A list or tuple of dicts of string/value properties that will be passed to the Tic...
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.layout.ternary.aaxis.Tickformatstop - A list or tuple of dicts of string/value properties that...
[ "def", "tickformatstops", "(", "self", ")", ":", "return", "self", "[", "\"tickformatstops\"", "]" ]
[ 773, 4 ]
[ 821, 38 ]
python
en
['en', 'error', 'th']
False
Aaxis.tickformatstopdefaults
(self)
When used in a template (as layout.template.layout.ternary.aaxis.tickformatstopdefaults), sets the default property values to use for elements of layout.ternary.aaxis.tickformatstops The 'tickformatstopdefaults' property is an instance of Tickformatstop that may be ...
When used in a template (as layout.template.layout.ternary.aaxis.tickformatstopdefaults), sets the default property values to use for elements of layout.ternary.aaxis.tickformatstops The 'tickformatstopdefaults' property is an instance of Tickformatstop that may be ...
def tickformatstopdefaults(self): """ When used in a template (as layout.template.layout.ternary.aaxis.tickformatstopdefaults), sets the default property values to use for elements of layout.ternary.aaxis.tickformatstops The 'tickformatstopdefaults' property is an in...
[ "def", "tickformatstopdefaults", "(", "self", ")", ":", "return", "self", "[", "\"tickformatstopdefaults\"", "]" ]
[ 830, 4 ]
[ 849, 45 ]
python
en
['en', 'error', 'th']
False
Aaxis.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\"", "]" ]
[ 858, 4 ]
[ 869, 30 ]
python
en
['en', 'error', 'th']
False
Aaxis.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\"", "]" ]
[ 878, 4 ]
[ 896, 31 ]
python
en
['en', 'error', 'th']
False
Aaxis.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\"", "]" ]
[ 905, 4 ]
[ 917, 33 ]
python
en
['en', 'error', 'th']
False
Aaxis.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\"", "]" ]
[ 926, 4 ]
[ 940, 28 ]
python
en
['en', 'error', 'th']
False
Aaxis.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\"", "]" ]
[ 949, 4 ]
[ 961, 33 ]
python
en
['en', 'error', 'th']
False
Aaxis.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\"", "]" ]
[ 970, 4 ]
[ 983, 31 ]
python
en
['en', 'error', 'th']
False
Aaxis.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\"", "]" ]
[ 992, 4 ]
[ 1003, 34 ]
python
en
['en', 'error', 'th']
False
Aaxis.tickvals
(self)
Sets the values at which ticks on this axis appear. Only has an effect if `tickmode` is set to "array". Used with `ticktext`. The 'tickvals' property is an array that may be specified as a tuple, list, numpy array, or pandas Series Returns ------- numpy.nda...
Sets the values at which ticks on this axis appear. Only has an effect if `tickmode` is set to "array". Used with `ticktext`. The 'tickvals' property is an array that may be specified as a tuple, list, numpy array, or pandas Series
def tickvals(self): """ Sets the values at which ticks on this axis appear. Only has an effect if `tickmode` is set to "array". Used with `ticktext`. The 'tickvals' property is an array that may be specified as a tuple, list, numpy array, or pandas Series Returns ...
[ "def", "tickvals", "(", "self", ")", ":", "return", "self", "[", "\"tickvals\"", "]" ]
[ 1012, 4 ]
[ 1024, 31 ]
python
en
['en', 'error', 'th']
False
Aaxis.tickvalssrc
(self)
Sets the source reference on Chart Studio Cloud for tickvals . The 'tickvalssrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str
Sets the source reference on Chart Studio Cloud for tickvals . The 'tickvalssrc' property must be specified as a string or as a plotly.grid_objs.Column object
def tickvalssrc(self): """ Sets the source reference on Chart Studio Cloud for tickvals . The 'tickvalssrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["tickvalssrc"]
[ "def", "tickvalssrc", "(", "self", ")", ":", "return", "self", "[", "\"tickvalssrc\"", "]" ]
[ 1033, 4 ]
[ 1044, 34 ]
python
en
['en', 'error', 'th']
False
Aaxis.tickwidth
(self)
Sets the tick width (in px). The 'tickwidth' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float
Sets the tick width (in px). The 'tickwidth' property is a number and may be specified as: - An int or float in the interval [0, inf]
def tickwidth(self): """ Sets the tick width (in px). The 'tickwidth' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float """ return self["tickwidth"]
[ "def", "tickwidth", "(", "self", ")", ":", "return", "self", "[", "\"tickwidth\"", "]" ]
[ 1053, 4 ]
[ 1064, 32 ]
python
en
['en', 'error', 'th']
False
Aaxis.title
(self)
The 'title' property is an instance of Title that may be specified as: - An instance of :class:`plotly.graph_objs.layout.ternary.aaxis.Title` - A dict of string/value properties that will be passed to the Title constructor Supported dict properties: ...
The 'title' property is an instance of Title that may be specified as: - An instance of :class:`plotly.graph_objs.layout.ternary.aaxis.Title` - A dict of string/value properties that will be passed to the Title constructor Supported dict properties: ...
def title(self): """ The 'title' property is an instance of Title that may be specified as: - An instance of :class:`plotly.graph_objs.layout.ternary.aaxis.Title` - A dict of string/value properties that will be passed to the Title constructor Sup...
[ "def", "title", "(", "self", ")", ":", "return", "self", "[", "\"title\"", "]" ]
[ 1073, 4 ]
[ 1098, 28 ]
python
en
['en', 'error', 'th']
False
Aaxis.titlefont
(self)
Deprecated: Please use layout.ternary.aaxis.title.font instead. Sets this axis' title font. Note that the title's font used to be customized by the now deprecated `titlefont` attribute. The 'font' property is an instance of Font that may be specified as: - An inst...
Deprecated: Please use layout.ternary.aaxis.title.font instead. Sets this axis' title font. Note that the title's font used to be customized by the now deprecated `titlefont` attribute. The 'font' property is an instance of Font that may be specified as: - An inst...
def titlefont(self): """ Deprecated: Please use layout.ternary.aaxis.title.font instead. Sets this axis' title font. Note that the title's font used to be customized by the now deprecated `titlefont` attribute. The 'font' property is an instance of Font that may be s...
[ "def", "titlefont", "(", "self", ")", ":", "return", "self", "[", "\"titlefont\"", "]" ]
[ 1107, 4 ]
[ 1146, 32 ]
python
en
['en', 'error', 'th']
False
Aaxis.uirevision
(self)
Controls persistence of user-driven changes in axis `min`, and `title` if in `editable: true` configuration. Defaults to `ternary<N>.uirevision`. The 'uirevision' property accepts values of any type Returns ------- Any
Controls persistence of user-driven changes in axis `min`, and `title` if in `editable: true` configuration. Defaults to `ternary<N>.uirevision`. The 'uirevision' property accepts values of any type
def uirevision(self): """ Controls persistence of user-driven changes in axis `min`, and `title` if in `editable: true` configuration. Defaults to `ternary<N>.uirevision`. The 'uirevision' property accepts values of any type Returns ------- Any ...
[ "def", "uirevision", "(", "self", ")", ":", "return", "self", "[", "\"uirevision\"", "]" ]
[ 1155, 4 ]
[ 1167, 33 ]
python
en
['en', 'error', 'th']
False
Aaxis.__init__
( self, arg=None, color=None, dtick=None, exponentformat=None, gridcolor=None, gridwidth=None, hoverformat=None, layer=None, linecolor=None, linewidth=None, min=None, nticks=None, separatethousands=None, ...
Construct a new Aaxis object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.layout.ternary.Aaxis` color Sets default for all colors associated with...
Construct a new Aaxis object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.layout.ternary.Aaxis` color Sets default for all colors associated with...
def __init__( self, arg=None, color=None, dtick=None, exponentformat=None, gridcolor=None, gridwidth=None, hoverformat=None, layer=None, linecolor=None, linewidth=None, min=None, nticks=None, separatethousand...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "color", "=", "None", ",", "dtick", "=", "None", ",", "exponentformat", "=", "None", ",", "gridcolor", "=", "None", ",", "gridwidth", "=", "None", ",", "hoverformat", "=", "None", ",", "la...
[ 1365, 4 ]
[ 1793, 34 ]
python
en
['en', 'error', 'th']
False
js_prerelease
(command, strict=False)
decorator for building minified js/css prior to another command
decorator for building minified js/css prior to another command
def js_prerelease(command, strict=False): """decorator for building minified js/css prior to another command""" class DecoratedCommand(command): def run(self): jsdeps = self.distribution.get_command_obj("jsdeps") if not is_repo and all(os.path.exists(t) for t in jsdeps.targets):...
[ "def", "js_prerelease", "(", "command", ",", "strict", "=", "False", ")", ":", "class", "DecoratedCommand", "(", "command", ")", ":", "def", "run", "(", "self", ")", ":", "jsdeps", "=", "self", ".", "distribution", ".", "get_command_obj", "(", "\"jsdeps\""...
[ 43, 0 ]
[ 69, 27 ]
python
en
['en', 'en', 'en']
True
update_package_data
(distribution)
update package_data to catch changes during setup
update package_data to catch changes during setup
def update_package_data(distribution): """update package_data to catch changes during setup""" build_py = distribution.get_command_obj("build_py") # distribution.package_data = find_package_data() # re-init build_py options which load package_data build_py.finalize_options()
[ "def", "update_package_data", "(", "distribution", ")", ":", "build_py", "=", "distribution", ".", "get_command_obj", "(", "\"build_py\"", ")", "# distribution.package_data = find_package_data()", "# re-init build_py options which load package_data", "build_py", ".", "finalize_op...
[ 72, 0 ]
[ 77, 31 ]
python
en
['en', 'en', 'en']
True
Tickformatstop.dtickrange
(self)
range [*min*, *max*], where "min", "max" - dtick values which describe some zoom level, it is possible to omit "min" or "max" value by passing "null" The 'dtickrange' property is an info array that may be specified as: * a list or tuple of 2 elements where: (0) The...
range [*min*, *max*], where "min", "max" - dtick values which describe some zoom level, it is possible to omit "min" or "max" value by passing "null" The 'dtickrange' property is an info array that may be specified as: * a list or tuple of 2 elements where: (0) The...
def dtickrange(self): """ range [*min*, *max*], where "min", "max" - dtick values which describe some zoom level, it is possible to omit "min" or "max" value by passing "null" The 'dtickrange' property is an info array that may be specified as: * a list or tuple...
[ "def", "dtickrange", "(", "self", ")", ":", "return", "self", "[", "\"dtickrange\"", "]" ]
[ 15, 4 ]
[ 31, 33 ]
python
en
['en', 'error', 'th']
False
Tickformatstop.enabled
(self)
Determines whether or not this stop is used. If `false`, this stop is ignored even within its `dtickrange`. The 'enabled' property must be specified as a bool (either True, or False) Returns ------- bool
Determines whether or not this stop is used. If `false`, this stop is ignored even within its `dtickrange`. The 'enabled' property must be specified as a bool (either True, or False)
def enabled(self): """ Determines whether or not this stop is used. If `false`, this stop is ignored even within its `dtickrange`. The 'enabled' property must be specified as a bool (either True, or False) Returns ------- bool """ ret...
[ "def", "enabled", "(", "self", ")", ":", "return", "self", "[", "\"enabled\"", "]" ]
[ 40, 4 ]
[ 52, 30 ]
python
en
['en', 'error', 'th']
False
Tickformatstop.name
(self)
When used in a template, named items are created in the output figure in addition to any items the figure already has in this array. You can modify these items in the output figure by making your own item with `templateitemname` matching this `name` alongside your modifications ...
When used in a template, named items are created in the output figure in addition to any items the figure already has in this array. You can modify these items in the output figure by making your own item with `templateitemname` matching this `name` alongside your modifications ...
def name(self): """ When used in a template, named items are created in the output figure in addition to any items the figure already has in this array. You can modify these items in the output figure by making your own item with `templateitemname` matching this `name` al...
[ "def", "name", "(", "self", ")", ":", "return", "self", "[", "\"name\"", "]" ]
[ 61, 4 ]
[ 79, 27 ]
python
en
['en', 'error', 'th']
False
Tickformatstop.templateitemname
(self)
Used to refer to a named item in this array in the template. Named items from the template will be created even without a matching item in the input figure, but you can modify one by making an item with `templateitemname` matching its `name`, alongside your modifications (includ...
Used to refer to a named item in this array in the template. Named items from the template will be created even without a matching item in the input figure, but you can modify one by making an item with `templateitemname` matching its `name`, alongside your modifications (includ...
def templateitemname(self): """ Used to refer to a named item in this array in the template. Named items from the template will be created even without a matching item in the input figure, but you can modify one by making an item with `templateitemname` matching its `name`, ...
[ "def", "templateitemname", "(", "self", ")", ":", "return", "self", "[", "\"templateitemname\"", "]" ]
[ 88, 4 ]
[ 107, 39 ]
python
en
['en', 'error', 'th']
False
Tickformatstop.value
(self)
string - dtickformat for described zoom level, the same as "tickformat" The 'value' property is a string and must be specified as: - A string - A number that will be converted to a string Returns ------- str
string - dtickformat for described zoom level, the same as "tickformat" The 'value' property is a string and must be specified as: - A string - A number that will be converted to a string
def value(self): """ string - dtickformat for described zoom level, the same as "tickformat" The 'value' property is a string and must be specified as: - A string - A number that will be converted to a string Returns ------- str "...
[ "def", "value", "(", "self", ")", ":", "return", "self", "[", "\"value\"", "]" ]
[ 116, 4 ]
[ 129, 28 ]
python
en
['en', 'error', 'th']
False
Tickformatstop.__init__
( self, arg=None, dtickrange=None, enabled=None, name=None, templateitemname=None, value=None, **kwargs )
Construct a new Tickformatstop object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.parcats.line.c olorbar.Tickformatstop` dtickrange range [*min*...
Construct a new Tickformatstop object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.parcats.line.c olorbar.Tickformatstop` dtickrange range [*min*...
def __init__( self, arg=None, dtickrange=None, enabled=None, name=None, templateitemname=None, value=None, **kwargs ): """ Construct a new Tickformatstop object Parameters ---------- arg dict...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "dtickrange", "=", "None", ",", "enabled", "=", "None", ",", "name", "=", "None", ",", "templateitemname", "=", "None", ",", "value", "=", "None", ",", "*", "*", "kwargs", ")", ":", "sup...
[ 172, 4 ]
[ 282, 34 ]
python
en
['en', 'error', 'th']
False