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
Parcoords.uid
(self)
Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. The 'uid' property is a string and must be specified as: - A string - A number that will be converted to a string Returns ------- ...
Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. The 'uid' property is a string and must be specified as: - A string - A number that will be converted to a string
def uid(self): """ Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. The 'uid' property is a string and must be specified as: - A string - A number that will be converted to a string Return...
[ "def", "uid", "(", "self", ")", ":", "return", "self", "[", "\"uid\"", "]" ]
[ 692, 4 ]
[ 705, 26 ]
python
en
['en', 'error', 'th']
False
Parcoords.uirevision
(self)
Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are co...
Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are co...
def uirevision(self): """ Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driv...
[ "def", "uirevision", "(", "self", ")", ":", "return", "self", "[", "\"uirevision\"", "]" ]
[ 714, 4 ]
[ 738, 33 ]
python
en
['en', 'error', 'th']
False
Parcoords.visible
(self)
Determines whether or not this trace is visible. If "legendonly", the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). The 'visible' property is an enumeration that may be specified as: - One of the following enumeration va...
Determines whether or not this trace is visible. If "legendonly", the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). The 'visible' property is an enumeration that may be specified as: - One of the following enumeration va...
def visible(self): """ Determines whether or not this trace is visible. If "legendonly", the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). The 'visible' property is an enumeration that may be specified as: - One o...
[ "def", "visible", "(", "self", ")", ":", "return", "self", "[", "\"visible\"", "]" ]
[ 747, 4 ]
[ 761, 30 ]
python
en
['en', 'error', 'th']
False
Parcoords.__init__
( self, arg=None, customdata=None, customdatasrc=None, dimensions=None, dimensiondefaults=None, domain=None, ids=None, idssrc=None, labelangle=None, labelfont=None, labelside=None, line=None, meta=None, ...
Construct a new Parcoords object Parallel coordinates for multidimensional exploratory data analysis. The samples are specified in `dimensions`. The colors are set in `line.color`. Parameters ---------- arg dict of properties compatible with...
Construct a new Parcoords object Parallel coordinates for multidimensional exploratory data analysis. The samples are specified in `dimensions`. The colors are set in `line.color`.
def __init__( self, arg=None, customdata=None, customdatasrc=None, dimensions=None, dimensiondefaults=None, domain=None, ids=None, idssrc=None, labelangle=None, labelfont=None, labelside=None, line=None, meta...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "customdata", "=", "None", ",", "customdatasrc", "=", "None", ",", "dimensions", "=", "None", ",", "dimensiondefaults", "=", "None", ",", "domain", "=", "None", ",", "ids", "=", "None", ",",...
[ 876, 4 ]
[ 1136, 34 ]
python
en
['en', 'error', 'th']
False
TestTransformerRanker.test_repeater
(self)
Test a simple repeat-after-me model.
Test a simple repeat-after-me model.
def test_repeater(self): """ Test a simple repeat-after-me model. """ valid, test = self._overfit_train() self.assertGreaterEqual(valid['hits@1'], 0.90) self.assertGreaterEqual(test['hits@1'], 0.90)
[ "def", "test_repeater", "(", "self", ")", ":", "valid", ",", "test", "=", "self", ".", "_overfit_train", "(", ")", "self", ".", "assertGreaterEqual", "(", "valid", "[", "'hits@1'", "]", ",", "0.90", ")", "self", ".", "assertGreaterEqual", "(", "test", "[...
[ 97, 4 ]
[ 104, 53 ]
python
en
['en', 'error', 'th']
False
TestTransformerRanker.test_resuming
(self)
Test saving and resuming training.
Test saving and resuming training.
def test_resuming(self): """ Test saving and resuming training. """ with testing_utils.tempdir() as tmpdir: model_file = os.path.join(tmpdir, 'model') valid1, test1 = testing_utils.train_model( dict( model_file=model_file, ...
[ "def", "test_resuming", "(", "self", ")", ":", "with", "testing_utils", ".", "tempdir", "(", ")", "as", "tmpdir", ":", "model_file", "=", "os", ".", "path", ".", "join", "(", "tmpdir", ",", "'model'", ")", "valid1", ",", "test1", "=", "testing_utils", ...
[ 106, 4 ]
[ 146, 13 ]
python
en
['en', 'error', 'th']
False
TestTransformerRanker.test_resuming_reduce_on_plateau
(self)
Reduce on Plateau can be tricky when combined with warmup. See: https://github.com/facebookresearch/ParlAI/pull/1812
Reduce on Plateau can be tricky when combined with warmup.
def test_resuming_reduce_on_plateau(self): """ Reduce on Plateau can be tricky when combined with warmup. See: https://github.com/facebookresearch/ParlAI/pull/1812 """ with testing_utils.tempdir() as tmpdir: model_file = os.path.join(tmpdir, 'model') vali...
[ "def", "test_resuming_reduce_on_plateau", "(", "self", ")", ":", "with", "testing_utils", ".", "tempdir", "(", ")", "as", "tmpdir", ":", "model_file", "=", "os", ".", "path", ".", "join", "(", "tmpdir", ",", "'model'", ")", "valid1", ",", "test1", "=", "...
[ 148, 4 ]
[ 186, 13 ]
python
en
['en', 'error', 'th']
False
TestTransformerRanker.test_backcomp
(self)
Tests that the transformer ranker model files continue to work over time.
Tests that the transformer ranker model files continue to work over time.
def test_backcomp(self): """ Tests that the transformer ranker model files continue to work over time. """ valid, test = testing_utils.eval_model( dict( task='integration_tests:multiturn_candidate', model='transformer/ranker', m...
[ "def", "test_backcomp", "(", "self", ")", ":", "valid", ",", "test", "=", "testing_utils", ".", "eval_model", "(", "dict", "(", "task", "=", "'integration_tests:multiturn_candidate'", ",", "model", "=", "'transformer/ranker'", ",", "model_file", "=", "'zoo:unittes...
[ 188, 4 ]
[ 207, 49 ]
python
en
['en', 'error', 'th']
False
TestTransformerRanker.test_xlm
(self)
Test --variant xlm.
Test --variant xlm.
def test_xlm(self): """ Test --variant xlm. """ valid, test = self._overfit_train(variant='xlm', activation='gelu') self.assertGreaterEqual(valid['hits@1'], 0.90) self.assertGreaterEqual(test['hits@1'], 0.90)
[ "def", "test_xlm", "(", "self", ")", ":", "valid", ",", "test", "=", "self", ".", "_overfit_train", "(", "variant", "=", "'xlm'", ",", "activation", "=", "'gelu'", ")", "self", ".", "assertGreaterEqual", "(", "valid", "[", "'hits@1'", "]", ",", "0.90", ...
[ 210, 4 ]
[ 217, 53 ]
python
en
['en', 'error', 'th']
False
TestTransformerRanker.test_prelayernorm
(self)
Test --variant prelayernorm with history_add_global_end_token option.
Test --variant prelayernorm with history_add_global_end_token option.
def test_prelayernorm(self): """ Test --variant prelayernorm with history_add_global_end_token option. """ valid, test = self._overfit_train( task='integration_tests:overfit', model='transformer/ranker', variant='prelayernorm', activation='...
[ "def", "test_prelayernorm", "(", "self", ")", ":", "valid", ",", "test", "=", "self", ".", "_overfit_train", "(", "task", "=", "'integration_tests:overfit'", ",", "model", "=", "'transformer/ranker'", ",", "variant", "=", "'prelayernorm'", ",", "activation", "="...
[ 220, 4 ]
[ 233, 53 ]
python
en
['en', 'error', 'th']
False
TestTransformerRanker.test_alt_reduction
(self)
Test a transformer ranker reduction method other than `mean`.
Test a transformer ranker reduction method other than `mean`.
def test_alt_reduction(self): """ Test a transformer ranker reduction method other than `mean`. """ valid, test = self._overfit_train( variant='xlm', activation='gelu', reduction_type='first', # this is really what we're trying to test for ) ...
[ "def", "test_alt_reduction", "(", "self", ")", ":", "valid", ",", "test", "=", "self", ".", "_overfit_train", "(", "variant", "=", "'xlm'", ",", "activation", "=", "'gelu'", ",", "reduction_type", "=", "'first'", ",", "# this is really what we're trying to test fo...
[ 236, 4 ]
[ 247, 53 ]
python
en
['en', 'error', 'th']
False
TestTransformerGenerator.test_greedysearch
(self)
Test greedy search.
Test greedy search.
def test_greedysearch(self): """ Test greedy search. """ valid, test = testing_utils.eval_model( dict( task='integration_tests:multiturn_candidate', model='transformer/generator', model_file='zoo:unittest/transformer_generator2/...
[ "def", "test_greedysearch", "(", "self", ")", ":", "valid", ",", "test", "=", "testing_utils", ".", "eval_model", "(", "dict", "(", "task", "=", "'integration_tests:multiturn_candidate'", ",", "model", "=", "'transformer/generator'", ",", "model_file", "=", "'zoo:...
[ 277, 4 ]
[ 300, 65 ]
python
en
['en', 'error', 'th']
False
TestTransformerGenerator.test_beamsearch
(self)
Test beamsearch.
Test beamsearch.
def test_beamsearch(self): """ Test beamsearch. """ valid, test = testing_utils.eval_model( dict( task='integration_tests:multiturn_candidate', model='transformer/generator', model_file='zoo:unittest/transformer_generator2/model...
[ "def", "test_beamsearch", "(", "self", ")", ":", "valid", ",", "test", "=", "testing_utils", ".", "eval_model", "(", "dict", "(", "task", "=", "'integration_tests:multiturn_candidate'", ",", "model", "=", "'transformer/generator'", ",", "model_file", "=", "'zoo:un...
[ 302, 4 ]
[ 324, 65 ]
python
en
['en', 'error', 'th']
False
TestTransformerGenerator.test_beamsearch_return_all_texts
(self)
Test beam_texts for beam_size > 1.
Test beam_texts for beam_size > 1.
def test_beamsearch_return_all_texts(self): """ Test beam_texts for beam_size > 1. """ size = 3 agent = create_agent_from_model_file( 'zoo:unittest/beam_blocking/model', opt_overrides={"beam_size": size, "inference": "beam"}, ) agent.obser...
[ "def", "test_beamsearch_return_all_texts", "(", "self", ")", ":", "size", "=", "3", "agent", "=", "create_agent_from_model_file", "(", "'zoo:unittest/beam_blocking/model'", ",", "opt_overrides", "=", "{", "\"beam_size\"", ":", "size", ",", "\"inference\"", ":", "\"bea...
[ 327, 4 ]
[ 352, 59 ]
python
en
['en', 'error', 'th']
False
TestTransformerGenerator.test_beamsearch_blocking
(self)
Test beamsearch blocking.
Test beamsearch blocking.
def test_beamsearch_blocking(self): """ Test beamsearch blocking. """ with testing_utils.tempdir() as tmpdir: agent = create_agent_from_model_file('zoo:unittest/beam_blocking/model') agent.observe({'text': '5 5 5 5 5 5 5', 'episode_done': True}) assert...
[ "def", "test_beamsearch_blocking", "(", "self", ")", ":", "with", "testing_utils", ".", "tempdir", "(", ")", "as", "tmpdir", ":", "agent", "=", "create_agent_from_model_file", "(", "'zoo:unittest/beam_blocking/model'", ")", "agent", ".", "observe", "(", "{", "'tex...
[ 355, 4 ]
[ 395, 38 ]
python
en
['en', 'error', 'th']
False
TestTransformerGenerator.test_beamsearch_contextblocking
(self)
Test beamsearch context blocking.
Test beamsearch context blocking.
def test_beamsearch_contextblocking(self): """ Test beamsearch context blocking. """ agent = create_agent_from_model_file('zoo:unittest/context_blocking/model') agent.observe({'text': '5 4 3 2', 'episode_done': True}) assert agent.act()['text'] == '5 4 3 2' agen...
[ "def", "test_beamsearch_contextblocking", "(", "self", ")", ":", "agent", "=", "create_agent_from_model_file", "(", "'zoo:unittest/context_blocking/model'", ")", "agent", ".", "observe", "(", "{", "'text'", ":", "'5 4 3 2'", ",", "'episode_done'", ":", "True", "}", ...
[ 398, 4 ]
[ 425, 32 ]
python
en
['en', 'error', 'th']
False
TestTransformerGenerator.test_nucleus
(self)
Test nucleus generation.
Test nucleus generation.
def test_nucleus(self): """ Test nucleus generation. """ # Nucleus is inherently stochastic, just ensure no crash. opt = ParlaiParser(True, True).parse_kwargs( model_file='zoo:unittest/transformer_generator2/model', inference='nucleus', topp=0....
[ "def", "test_nucleus", "(", "self", ")", ":", "# Nucleus is inherently stochastic, just ensure no crash.", "opt", "=", "ParlaiParser", "(", "True", ",", "True", ")", ".", "parse_kwargs", "(", "model_file", "=", "'zoo:unittest/transformer_generator2/model'", ",", "inferenc...
[ 427, 4 ]
[ 441, 35 ]
python
en
['en', 'error', 'th']
False
TestTransformerGenerator.test_beamdelay
(self)
Test delayedbeam generation.
Test delayedbeam generation.
def test_beamdelay(self): """ Test delayedbeam generation. """ # Delayed Beam is inherently stochastic, just ensure no crash. opt = ParlaiParser(True, True).parse_kwargs( model_file='zoo:unittest/transformer_generator2/model', inference='delayedbeam', ...
[ "def", "test_beamdelay", "(", "self", ")", ":", "# Delayed Beam is inherently stochastic, just ensure no crash.", "opt", "=", "ParlaiParser", "(", "True", ",", "True", ")", ".", "parse_kwargs", "(", "model_file", "=", "'zoo:unittest/transformer_generator2/model'", ",", "i...
[ 443, 4 ]
[ 460, 38 ]
python
en
['en', 'error', 'th']
False
TestTransformerGenerator.test_topk
(self)
Test topk generation.
Test topk generation.
def test_topk(self): """ Test topk generation. """ # Topk is inherently stochastic, just ensure no crash. opt = ParlaiParser(True, True).parse_kwargs( model_file='zoo:unittest/transformer_generator2/model', inference='topk', topp=10, ) ...
[ "def", "test_topk", "(", "self", ")", ":", "# Topk is inherently stochastic, just ensure no crash.", "opt", "=", "ParlaiParser", "(", "True", ",", "True", ")", ".", "parse_kwargs", "(", "model_file", "=", "'zoo:unittest/transformer_generator2/model'", ",", "inference", ...
[ 462, 4 ]
[ 476, 35 ]
python
en
['en', 'error', 'th']
False
TestTransformerGenerator.test_generator_backcomp
(self)
Tests that the generator model files work over time.
Tests that the generator model files work over time.
def test_generator_backcomp(self): """ Tests that the generator model files work over time. """ _, test = testing_utils.eval_model( dict( task='integration_tests:multiturn_candidate', model='transformer/generator', model_file='z...
[ "def", "test_generator_backcomp", "(", "self", ")", ":", "_", ",", "test", "=", "testing_utils", ".", "eval_model", "(", "dict", "(", "task", "=", "'integration_tests:multiturn_candidate'", ",", "model", "=", "'transformer/generator'", ",", "model_file", "=", "'zo...
[ 478, 4 ]
[ 496, 49 ]
python
en
['en', 'error', 'th']
False
TestTransformerGenerator.test_xlm
(self)
Test --variant xlm.
Test --variant xlm.
def test_xlm(self): """ Test --variant xlm. """ valid, test = self._overfit_train( variant='xlm', activation='gelu', n_segments=8, # doesn't do anything but still good to test adam_eps=1e-6, # just to test another flag simultaneously ...
[ "def", "test_xlm", "(", "self", ")", ":", "valid", ",", "test", "=", "self", ".", "_overfit_train", "(", "variant", "=", "'xlm'", ",", "activation", "=", "'gelu'", ",", "n_segments", "=", "8", ",", "# doesn't do anything but still good to test", "adam_eps", "=...
[ 499, 4 ]
[ 511, 47 ]
python
en
['en', 'error', 'th']
False
TestTransformerGenerator.test_prelayernorm
(self)
Test --variant prelayernorm.
Test --variant prelayernorm.
def test_prelayernorm(self): """ Test --variant prelayernorm. """ valid, test = self._overfit_train(variant='prelayernorm', activation='gelu') self.assertLessEqual(valid['ppl'], 1.30) self.assertLessEqual(test['ppl'], 1.30)
[ "def", "test_prelayernorm", "(", "self", ")", ":", "valid", ",", "test", "=", "self", ".", "_overfit_train", "(", "variant", "=", "'prelayernorm'", ",", "activation", "=", "'gelu'", ")", "self", ".", "assertLessEqual", "(", "valid", "[", "'ppl'", "]", ",",...
[ 514, 4 ]
[ 521, 47 ]
python
en
['en', 'error', 'th']
False
TestTransformerGenerator.test_compute_tokenized_bleu
(self)
Test that the model outputs self-computed bleu correctly.
Test that the model outputs self-computed bleu correctly.
def test_compute_tokenized_bleu(self): """ Test that the model outputs self-computed bleu correctly. """ valid, _ = testing_utils.eval_model( dict( task='integration_tests', model_file='zoo:unittest/context_blocking/model', dict...
[ "def", "test_compute_tokenized_bleu", "(", "self", ")", ":", "valid", ",", "_", "=", "testing_utils", ".", "eval_model", "(", "dict", "(", "task", "=", "'integration_tests'", ",", "model_file", "=", "'zoo:unittest/context_blocking/model'", ",", "dict_file", "=", "...
[ 524, 4 ]
[ 553, 16 ]
python
en
['en', 'error', 'th']
False
TestTransformerGenerator.test_temperature
(self)
Test temperature.
Test temperature.
def test_temperature(self): """ Test temperature. """ # Just ensuring no crash. testing_utils.eval_model( dict( task='integration_tests:multiturn_candidate', model='transformer/generator', model_file='zoo:unittest/transf...
[ "def", "test_temperature", "(", "self", ")", ":", "# Just ensuring no crash.", "testing_utils", ".", "eval_model", "(", "dict", "(", "task", "=", "'integration_tests:multiturn_candidate'", ",", "model", "=", "'transformer/generator'", ",", "model_file", "=", "'zoo:unitt...
[ 592, 4 ]
[ 607, 9 ]
python
en
['en', 'error', 'th']
False
TestLearningRateScheduler._test_learning_rate_resuming
(self, user_args)
Test learning rate resumes correctly.
Test learning rate resumes correctly.
def _test_learning_rate_resuming(self, user_args): """ Test learning rate resumes correctly. """ args = dict( task='integration_tests:overfit', lr_scheduler='invsqrt', optimizer='sgd', learningrate=1e-3, batchsize=4, ...
[ "def", "_test_learning_rate_resuming", "(", "self", ",", "user_args", ")", ":", "args", "=", "dict", "(", "task", "=", "'integration_tests:overfit'", ",", "lr_scheduler", "=", "'invsqrt'", ",", "optimizer", "=", "'sgd'", ",", "learningrate", "=", "1e-3", ",", ...
[ 646, 4 ]
[ 717, 13 ]
python
en
['en', 'error', 'th']
False
TestLearningRateScheduler.test_resuming_generator
(self)
Test generators resume correctly.
Test generators resume correctly.
def test_resuming_generator(self): """ Test generators resume correctly. """ GENERATOR_ARGS = dict( model='transformer/generator', skip_generation=True, warmup_updates=1 ) self._test_learning_rate_resuming(GENERATOR_ARGS)
[ "def", "test_resuming_generator", "(", "self", ")", ":", "GENERATOR_ARGS", "=", "dict", "(", "model", "=", "'transformer/generator'", ",", "skip_generation", "=", "True", ",", "warmup_updates", "=", "1", ")", "self", ".", "_test_learning_rate_resuming", "(", "GENE...
[ 719, 4 ]
[ 726, 57 ]
python
en
['en', 'error', 'th']
False
TestLearningRateScheduler.test_resuming_ranker
(self)
Test resuming learning rate for the ranker.
Test resuming learning rate for the ranker.
def test_resuming_ranker(self): """ Test resuming learning rate for the ranker. """ RANKER_ARGS = dict(model='transformer/ranker', warmup_updates=1) self._test_learning_rate_resuming(RANKER_ARGS)
[ "def", "test_resuming_ranker", "(", "self", ")", ":", "RANKER_ARGS", "=", "dict", "(", "model", "=", "'transformer/ranker'", ",", "warmup_updates", "=", "1", ")", "self", ".", "_test_learning_rate_resuming", "(", "RANKER_ARGS", ")" ]
[ 728, 4 ]
[ 733, 54 ]
python
en
['en', 'error', 'th']
False
BaseError.__init__
(self, *args, error_code: str = None, **kwargs)
Initialize a BaseError instance.
Initialize a BaseError instance.
def __init__(self, *args, error_code: str = None, **kwargs): """Initialize a BaseError instance.""" super().__init__(*args, **kwargs) if error_code: self.error_code = error_code
[ "def", "__init__", "(", "self", ",", "*", "args", ",", "error_code", ":", "str", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", ")", ".", "__init__", "(", "*", "args", ",", "*", "*", "kwargs", ")", "if", "error_code", ":", "self", ...
[ 8, 4 ]
[ 12, 40 ]
python
en
['en', 'fy', 'en']
True
BaseError.message
(self)
Accessor for the error message.
Accessor for the error message.
def message(self) -> str: """Accessor for the error message.""" return self.args and self.args[0]
[ "def", "message", "(", "self", ")", "->", "str", ":", "return", "self", ".", "args", "and", "self", ".", "args", "[", "0", "]" ]
[ 15, 4 ]
[ 17, 41 ]
python
en
['en', 'it', 'en']
True
Title.font
(self)
Sets this color bar's 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.scattergeo.marker.colorbar.title.Font` ...
Sets this color bar's 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.scattergeo.marker.colorbar.title.Font` ...
def font(self): """ Sets this color bar's 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.scattergeo.m...
[ "def", "font", "(", "self", ")", ":", "return", "self", "[", "\"font\"", "]" ]
[ 15, 4 ]
[ 53, 27 ]
python
en
['en', 'error', 'th']
False
Title.side
(self)
Determines the location of color bar's title with respect to the color bar. Note that the title's location used to be set by the now deprecated `titleside` attribute. The 'side' property is an enumeration that may be specified as: - One of the following enumeration values...
Determines the location of color bar's title with respect to the color bar. Note that the title's location used to be set by the now deprecated `titleside` attribute. The 'side' property is an enumeration that may be specified as: - One of the following enumeration values...
def side(self): """ Determines the location of color bar's title with respect to the color bar. Note that the title's location used to be set by the now deprecated `titleside` attribute. The 'side' property is an enumeration that may be specified as: - One of the f...
[ "def", "side", "(", "self", ")", ":", "return", "self", "[", "\"side\"", "]" ]
[ 62, 4 ]
[ 76, 27 ]
python
en
['en', 'error', 'th']
False
Title.text
(self)
Sets the title of the color bar. 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 ...
Sets the title of the color bar. 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 ...
def text(self): """ Sets the title of the color bar. 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\"", "]" ]
[ 85, 4 ]
[ 99, 27 ]
python
en
['en', 'error', 'th']
False
Title.__init__
(self, arg=None, font=None, side=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.scattergeo.mar ker.colorbar.Title` font Sets this color bar's title fon...
Construct a new Title object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.scattergeo.mar ker.colorbar.Title` font Sets this color bar's title fon...
def __init__(self, arg=None, font=None, side=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.scattergeo.mar ...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "font", "=", "None", ",", "side", "=", "None", ",", "text", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", "Title", ",", "self", ")", ".", "__init__", "(", "\"title\"", ...
[ 126, 4 ]
[ 203, 34 ]
python
en
['en', 'error', 'th']
False
Marker.color
(self)
Sets the marker 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,100%...
Sets the marker 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,100%...
def color(self): """ Sets the marker 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/h...
[ "def", "color", "(", "self", ")", ":", "return", "self", "[", "\"color\"", "]" ]
[ 15, 4 ]
[ 65, 28 ]
python
en
['en', 'error', 'th']
False
Marker.opacity
(self)
Sets the marker opacity of selected points. The 'opacity' property is a number and may be specified as: - An int or float in the interval [0, 1] Returns ------- int|float
Sets the marker opacity of selected points. The 'opacity' property is a number and may be specified as: - An int or float in the interval [0, 1]
def opacity(self): """ Sets the marker opacity of selected points. The 'opacity' property is a number and may be specified as: - An int or float in the interval [0, 1] Returns ------- int|float """ return self["opacity"]
[ "def", "opacity", "(", "self", ")", ":", "return", "self", "[", "\"opacity\"", "]" ]
[ 74, 4 ]
[ 85, 30 ]
python
en
['en', 'error', 'th']
False
Marker.__init__
(self, arg=None, color=None, opacity=None, **kwargs)
Construct a new Marker object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.histogram.selected.Marker` color Sets the marker color of selected poi...
Construct a new Marker object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.histogram.selected.Marker` color Sets the marker color of selected poi...
def __init__(self, arg=None, color=None, opacity=None, **kwargs): """ Construct a new Marker object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.histogram.sel...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "color", "=", "None", ",", "opacity", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", "Marker", ",", "self", ")", ".", "__init__", "(", "\"marker\"", ")", "if", "\"_parent\...
[ 102, 4 ]
[ 165, 34 ]
python
en
['en', 'error', 'th']
False
ProtocolRegistry.__init__
(self)
Initialize a `ProtocolRegistry` instance.
Initialize a `ProtocolRegistry` instance.
def __init__(self): """Initialize a `ProtocolRegistry` instance.""" self._controllers = {} self._typemap = {}
[ "def", "__init__", "(", "self", ")", ":", "self", ".", "_controllers", "=", "{", "}", "self", ".", "_typemap", "=", "{", "}" ]
[ 11, 4 ]
[ 14, 26 ]
python
en
['en', 'en', 'it']
True
ProtocolRegistry.protocols
(self)
Accessor for a list of all message protocols.
Accessor for a list of all message protocols.
def protocols(self) -> Sequence[str]: """Accessor for a list of all message protocols.""" prots = set() for message_type in self._typemap.keys(): pos = message_type.rfind("/") if pos > 0: family = message_type[:pos] prots.add(family) ...
[ "def", "protocols", "(", "self", ")", "->", "Sequence", "[", "str", "]", ":", "prots", "=", "set", "(", ")", "for", "message_type", "in", "self", ".", "_typemap", ".", "keys", "(", ")", ":", "pos", "=", "message_type", ".", "rfind", "(", "\"/\"", "...
[ 17, 4 ]
[ 25, 20 ]
python
en
['en', 'en', 'en']
True
ProtocolRegistry.message_types
(self)
Accessor for a list of all message types.
Accessor for a list of all message types.
def message_types(self) -> Sequence[str]: """Accessor for a list of all message types.""" return tuple(self._typemap.keys())
[ "def", "message_types", "(", "self", ")", "->", "Sequence", "[", "str", "]", ":", "return", "tuple", "(", "self", ".", "_typemap", ".", "keys", "(", ")", ")" ]
[ 28, 4 ]
[ 30, 42 ]
python
en
['en', 'en', 'en']
True
ProtocolRegistry.controllers
(self)
Accessor for a list of all protocol controller functions.
Accessor for a list of all protocol controller functions.
def controllers(self) -> Mapping[str, str]: """Accessor for a list of all protocol controller functions.""" return self._controllers.copy()
[ "def", "controllers", "(", "self", ")", "->", "Mapping", "[", "str", ",", "str", "]", ":", "return", "self", ".", "_controllers", ".", "copy", "(", ")" ]
[ 33, 4 ]
[ 35, 39 ]
python
en
['en', 'en', 'en']
True
ProtocolRegistry.protocols_matching_query
(self, query: str)
Return a list of message protocols matching a query string.
Return a list of message protocols matching a query string.
def protocols_matching_query(self, query: str) -> Sequence[str]: """Return a list of message protocols matching a query string.""" all_types = self.protocols result = None if query == "*" or query is None: result = all_types elif query: if query.endswith(...
[ "def", "protocols_matching_query", "(", "self", ",", "query", ":", "str", ")", "->", "Sequence", "[", "str", "]", ":", "all_types", "=", "self", ".", "protocols", "result", "=", "None", "if", "query", "==", "\"*\"", "or", "query", "is", "None", ":", "r...
[ 37, 4 ]
[ 50, 27 ]
python
en
['en', 'en', 'en']
True
ProtocolRegistry.register_message_types
(self, *typesets)
Add new supported message types. Args: typesets: Mappings of message types to register
Add new supported message types.
def register_message_types(self, *typesets): """ Add new supported message types. Args: typesets: Mappings of message types to register """ for typeset in typesets: self._typemap.update(typeset)
[ "def", "register_message_types", "(", "self", ",", "*", "typesets", ")", ":", "for", "typeset", "in", "typesets", ":", "self", ".", "_typemap", ".", "update", "(", "typeset", ")" ]
[ 52, 4 ]
[ 61, 41 ]
python
en
['en', 'error', 'th']
False
ProtocolRegistry.register_controllers
(self, *controller_sets)
Add new controllers. Args: controller_sets: Mappings of message families to coroutines
Add new controllers.
def register_controllers(self, *controller_sets): """ Add new controllers. Args: controller_sets: Mappings of message families to coroutines """ for controlset in controller_sets: self._controllers.update(controlset)
[ "def", "register_controllers", "(", "self", ",", "*", "controller_sets", ")", ":", "for", "controlset", "in", "controller_sets", ":", "self", ".", "_controllers", ".", "update", "(", "controlset", ")" ]
[ 63, 4 ]
[ 72, 48 ]
python
en
['en', 'error', 'th']
False
ProtocolRegistry.resolve_message_class
(self, message_type: str)
Resolve a message_type to a message class. Given a message type identifier, this method returns the corresponding registered message class. Args: message_type: Message type to resolve Returns: The resolved message class
Resolve a message_type to a message class.
def resolve_message_class(self, message_type: str) -> type: """ Resolve a message_type to a message class. Given a message type identifier, this method returns the corresponding registered message class. Args: message_type: Message type to resolve Returns: ...
[ "def", "resolve_message_class", "(", "self", ",", "message_type", ":", "str", ")", "->", "type", ":", "msg_cls", "=", "self", ".", "_typemap", ".", "get", "(", "message_type", ")", "if", "isinstance", "(", "msg_cls", ",", "str", ")", ":", "msg_cls", "=",...
[ 74, 4 ]
[ 91, 22 ]
python
en
['en', 'error', 'th']
False
ProtocolRegistry.prepare_disclosed
( self, context: InjectionContext, protocols: Sequence[str] )
Call controllers and return publicly supported message families and roles.
Call controllers and return publicly supported message families and roles.
async def prepare_disclosed( self, context: InjectionContext, protocols: Sequence[str] ): """Call controllers and return publicly supported message families and roles.""" published = [] for protocol in protocols: result = {"pid": protocol} if protocol in self....
[ "async", "def", "prepare_disclosed", "(", "self", ",", "context", ":", "InjectionContext", ",", "protocols", ":", "Sequence", "[", "str", "]", ")", ":", "published", "=", "[", "]", "for", "protocol", "in", "protocols", ":", "result", "=", "{", "\"pid\"", ...
[ 93, 4 ]
[ 115, 24 ]
python
en
['en', 'en', 'en']
True
ProtocolRegistry.__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__", ")" ]
[ 117, 4 ]
[ 119, 53 ]
python
en
['en', 'en', 'en']
True
repeat
(tensor, K)
[B, ...] => [B*K, ...] #-- Important --# Used unsqueeze and transpose to avoid [K*B] when using torch.Tensor.repeat
[B, ...] => [B*K, ...]
def repeat(tensor, K): """ [B, ...] => [B*K, ...] #-- Important --# Used unsqueeze and transpose to avoid [K*B] when using torch.Tensor.repeat """ if isinstance(tensor, torch.Tensor): B, *size = tensor.size() repeat_size = [1] + [K] + [1] * (tensor.dim() - 1) tensor = te...
[ "def", "repeat", "(", "tensor", ",", "K", ")", ":", "if", "isinstance", "(", "tensor", ",", "torch", ".", "Tensor", ")", ":", "B", ",", "", "*", "size", "=", "tensor", ".", "size", "(", ")", "repeat_size", "=", "[", "1", "]", "+", "[", "K", "...
[ 3, 0 ]
[ 20, 18 ]
python
en
['en', 'error', 'th']
False
setTTL
(qstate, ttl)
Updates return_msg TTL and the TTL of all the RRs
Updates return_msg TTL and the TTL of all the RRs
def setTTL(qstate, ttl): """Updates return_msg TTL and the TTL of all the RRs""" 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", ...
[ 42, 0 ]
[ 50, 37 ]
python
en
['en', 'en', 'en']
True
Stream.maxpoints
(self)
Sets the maximum number of points to keep on the plots from an incoming stream. If `maxpoints` is set to 50, only the newest 50 points will be displayed on the plot. The 'maxpoints' property is a number and may be specified as: - An int or float in the interval [0, 10000]...
Sets the maximum number of points to keep on the plots from an incoming stream. If `maxpoints` is set to 50, only the newest 50 points will be displayed on the plot. The 'maxpoints' property is a number and may be specified as: - An int or float in the interval [0, 10000]
def maxpoints(self): """ Sets the maximum number of points to keep on the plots from an incoming stream. If `maxpoints` is set to 50, only the newest 50 points will be displayed on the plot. The 'maxpoints' property is a number and may be specified as: - An int or ...
[ "def", "maxpoints", "(", "self", ")", ":", "return", "self", "[", "\"maxpoints\"", "]" ]
[ 15, 4 ]
[ 28, 32 ]
python
en
['en', 'error', 'th']
False
Stream.token
(self)
The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. The 'token' property is a string and must be specified as: - A non-empty string Returns ------- str
The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. The 'token' property is a string and must be specified as: - A non-empty string
def token(self): """ The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. The 'token' property is a string and must be specified as: - A non-empty string Returns ------- ...
[ "def", "token", "(", "self", ")", ":", "return", "self", "[", "\"token\"", "]" ]
[ 37, 4 ]
[ 50, 28 ]
python
en
['en', 'error', 'th']
False
Stream.__init__
(self, arg=None, maxpoints=None, token=None, **kwargs)
Construct a new Stream object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.box.Stream` maxpoints Sets the maximum number of points to keep on the plots ...
Construct a new Stream object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.box.Stream` maxpoints Sets the maximum number of points to keep on the plots ...
def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): """ Construct a new Stream object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.box.Stream` max...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "maxpoints", "=", "None", ",", "token", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", "Stream", ",", "self", ")", ".", "__init__", "(", "\"stream\"", ")", "if", "\"_paren...
[ 72, 4 ]
[ 139, 34 ]
python
en
['en', 'error', 'th']
False
CredentialIssueHandler.handle
(self, context: RequestContext, responder: BaseResponder)
Message handler logic for credential offers. Args: context: request context responder: responder callback
Message handler logic for credential offers.
async def handle(self, context: RequestContext, responder: BaseResponder): """ Message handler logic for credential offers. Args: context: request context responder: responder callback """ self._logger.debug("CredentialHandler called with context %s", co...
[ "async", "def", "handle", "(", "self", ",", "context", ":", "RequestContext", ",", "responder", ":", "BaseResponder", ")", ":", "self", ".", "_logger", ".", "debug", "(", "\"CredentialHandler called with context %s\"", ",", "context", ")", "assert", "isinstance", ...
[ 17, 4 ]
[ 48, 62 ]
python
en
['en', 'error', 'th']
False
_update_store
(caller, key=None, desc=None, delete=False, swapkey=None)
Helper function for updating the database store. Args: caller (Object): The caller of the command. key (str): Description identifier desc (str): Description text. delete (bool): Delete given key. swapkey (str): Swap list positions of `key` and this key.
Helper function for updating the database store.
def _update_store(caller, key=None, desc=None, delete=False, swapkey=None): """ Helper function for updating the database store. Args: caller (Object): The caller of the command. key (str): Description identifier desc (str): Description text. delete (bool): Delete given key....
[ "def", "_update_store", "(", "caller", ",", "key", "=", "None", ",", "desc", "=", "None", ",", "delete", "=", "False", ",", "swapkey", "=", "None", ")", ":", "if", "not", "caller", ".", "db", ".", "multidesc", ":", "# initialize the multidesc attribute", ...
[ 45, 0 ]
[ 95, 62 ]
python
en
['en', 'error', 'th']
False
_save_editor
(caller, buffer)
Called when the editor saves its contents
Called when the editor saves its contents
def _save_editor(caller, buffer): "Called when the editor saves its contents" key = caller.db._multidesc_editkey _update_store(caller, key, buffer) caller.msg("Saved description to key '%s'." % key) return True
[ "def", "_save_editor", "(", "caller", ",", "buffer", ")", ":", "key", "=", "caller", ".", "db", ".", "_multidesc_editkey", "_update_store", "(", "caller", ",", "key", ",", "buffer", ")", "caller", ".", "msg", "(", "\"Saved description to key '%s'.\"", "%", "...
[ 100, 0 ]
[ 105, 15 ]
python
en
['en', 'en', 'en']
True
_load_editor
(caller)
Called when the editor loads contents
Called when the editor loads contents
def _load_editor(caller): "Called when the editor loads contents" key = caller.db._multidesc_editkey match = [ind for ind, tup in enumerate(caller.db.multidesc) if tup[0] == key] if match: return caller.db.multidesc[match[0]][1] return ""
[ "def", "_load_editor", "(", "caller", ")", ":", "key", "=", "caller", ".", "db", ".", "_multidesc_editkey", "match", "=", "[", "ind", "for", "ind", ",", "tup", "in", "enumerate", "(", "caller", ".", "db", ".", "multidesc", ")", "if", "tup", "[", "0",...
[ 108, 0 ]
[ 114, 13 ]
python
en
['en', 'en', 'en']
True
_quit_editor
(caller)
Called when the editor quits
Called when the editor quits
def _quit_editor(caller): "Called when the editor quits" del caller.db._multidesc_editkey caller.msg("Exited editor.")
[ "def", "_quit_editor", "(", "caller", ")", ":", "del", "caller", ".", "db", ".", "_multidesc_editkey", "caller", ".", "msg", "(", "\"Exited editor.\"", ")" ]
[ 117, 0 ]
[ 120, 32 ]
python
en
['en', 'en', 'en']
True
CmdMultiDesc.func
(self)
Implements the multidescer. We will use `db.desc` for the description in use and `db.multidesc` to store all descriptions.
Implements the multidescer. We will use `db.desc` for the description in use and `db.multidesc` to store all descriptions.
def func(self): """ Implements the multidescer. We will use `db.desc` for the description in use and `db.multidesc` to store all descriptions. """ caller = self.caller args = self.args.strip() switches = self.switches try: if "list" in switc...
[ "def", "func", "(", "self", ")", ":", "caller", "=", "self", ".", "caller", "args", "=", "self", ".", "args", ".", "strip", "(", ")", "switches", "=", "self", ".", "switches", "try", ":", "if", "\"list\"", "in", "switches", "or", "\"all\"", "in", "...
[ 151, 4 ]
[ 256, 27 ]
python
en
['en', 'error', 'th']
False
merge_aug_bboxes_3d
(aug_results, img_metas, test_cfg)
Merge augmented detection 3D bboxes and scores. Args: aug_results (list[dict]): The dict of detection results. The dict contains the following keys - boxes_3d (:obj:`BaseInstance3DBoxes`): Detection bbox. - scores_3d (torch.Tensor): Detection scores. - label...
Merge augmented detection 3D bboxes and scores.
def merge_aug_bboxes_3d(aug_results, img_metas, test_cfg): """Merge augmented detection 3D bboxes and scores. Args: aug_results (list[dict]): The dict of detection results. The dict contains the following keys - boxes_3d (:obj:`BaseInstance3DBoxes`): Detection bbox. ...
[ "def", "merge_aug_bboxes_3d", "(", "aug_results", ",", "img_metas", ",", "test_cfg", ")", ":", "assert", "len", "(", "aug_results", ")", "==", "len", "(", "img_metas", ")", ",", "'\"aug_results\" should have the same length as \"img_metas\", got len('", "f'aug_results)={l...
[ 6, 0 ]
[ 90, 69 ]
python
en
['en', 'en', 'en']
True
Scattermapbox.below
(self)
Determines if this scattermapbox trace's layers are to be inserted before the layer with the specified ID. By default, scattermapbox layers are inserted above all the base layers. To place the scattermapbox layers above every other layer, set `below` to "''". The 'b...
Determines if this scattermapbox trace's layers are to be inserted before the layer with the specified ID. By default, scattermapbox layers are inserted above all the base layers. To place the scattermapbox layers above every other layer, set `below` to "''". The 'b...
def below(self): """ Determines if this scattermapbox trace's layers are to be inserted before the layer with the specified ID. By default, scattermapbox layers are inserted above all the base layers. To place the scattermapbox layers above every other layer, set `below` ...
[ "def", "below", "(", "self", ")", ":", "return", "self", "[", "\"below\"", "]" ]
[ 59, 4 ]
[ 75, 28 ]
python
en
['en', 'error', 'th']
False
Scattermapbox.connectgaps
(self)
Determines whether or not gaps (i.e. {nan} or missing values) in the provided data arrays are connected. The 'connectgaps' property must be specified as a bool (either True, or False) Returns ------- bool
Determines whether or not gaps (i.e. {nan} or missing values) in the provided data arrays are connected. The 'connectgaps' property must be specified as a bool (either True, or False)
def connectgaps(self): """ Determines whether or not gaps (i.e. {nan} or missing values) in the provided data arrays are connected. The 'connectgaps' property must be specified as a bool (either True, or False) Returns ------- bool """ ...
[ "def", "connectgaps", "(", "self", ")", ":", "return", "self", "[", "\"connectgaps\"", "]" ]
[ 84, 4 ]
[ 96, 34 ]
python
en
['en', 'error', 'th']
False
Scattermapbox.customdata
(self)
Assigns extra data each datum. This may be useful when listening to hover, click and selection events. Note that, "scatter" traces also appends customdata items in the markers DOM elements The 'customdata' property is an array that may be specified as a tuple, list,...
Assigns extra data each datum. This may be useful when listening to hover, click and selection events. Note that, "scatter" traces also appends customdata items in the markers DOM elements The 'customdata' property is an array that may be specified as a tuple, list,...
def customdata(self): """ Assigns extra data each datum. This may be useful when listening to hover, click and selection events. Note that, "scatter" traces also appends customdata items in the markers DOM elements The 'customdata' property is an array that may be sp...
[ "def", "customdata", "(", "self", ")", ":", "return", "self", "[", "\"customdata\"", "]" ]
[ 105, 4 ]
[ 119, 33 ]
python
en
['en', 'error', 'th']
False
Scattermapbox.customdatasrc
(self)
Sets the source reference on Chart Studio Cloud for customdata . The 'customdatasrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str
Sets the source reference on Chart Studio Cloud for customdata . The 'customdatasrc' property must be specified as a string or as a plotly.grid_objs.Column object
def customdatasrc(self): """ Sets the source reference on Chart Studio Cloud for customdata . The 'customdatasrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["cust...
[ "def", "customdatasrc", "(", "self", ")", ":", "return", "self", "[", "\"customdatasrc\"", "]" ]
[ 128, 4 ]
[ 140, 36 ]
python
en
['en', 'error', 'th']
False
Scattermapbox.fill
(self)
Sets the area to fill with a solid color. Use with `fillcolor` if not "none". "toself" connects the endpoints of the trace (or each segment of the trace if it has gaps) into a closed shape. The 'fill' property is an enumeration that may be specified as: - One of the follo...
Sets the area to fill with a solid color. Use with `fillcolor` if not "none". "toself" connects the endpoints of the trace (or each segment of the trace if it has gaps) into a closed shape. The 'fill' property is an enumeration that may be specified as: - One of the follo...
def fill(self): """ Sets the area to fill with a solid color. Use with `fillcolor` if not "none". "toself" connects the endpoints of the trace (or each segment of the trace if it has gaps) into a closed shape. The 'fill' property is an enumeration that may be specified as: ...
[ "def", "fill", "(", "self", ")", ":", "return", "self", "[", "\"fill\"", "]" ]
[ 149, 4 ]
[ 163, 27 ]
python
en
['en', 'error', 'th']
False
Scattermapbox.fillcolor
(self)
Sets the fill color. Defaults to a half-transparent variant of the line color, marker color, or marker line color, whichever is available. The 'fillcolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rg...
Sets the fill color. Defaults to a half-transparent variant of the line color, marker color, or marker line color, whichever is available. The 'fillcolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rg...
def fillcolor(self): """ Sets the fill color. Defaults to a half-transparent variant of the line color, marker color, or marker line color, whichever is available. The 'fillcolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') ...
[ "def", "fillcolor", "(", "self", ")", ":", "return", "self", "[", "\"fillcolor\"", "]" ]
[ 172, 4 ]
[ 224, 32 ]
python
en
['en', 'error', 'th']
False
Scattermapbox.hoverinfo
(self)
Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. The 'hoverinfo' property is a flaglist and may be specified as a string containing: ...
Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. The 'hoverinfo' property is a flaglist and may be specified as a string containing: ...
def hoverinfo(self): """ Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. The 'hoverinfo' property is a flaglist and may be specified ...
[ "def", "hoverinfo", "(", "self", ")", ":", "return", "self", "[", "\"hoverinfo\"", "]" ]
[ 233, 4 ]
[ 250, 32 ]
python
en
['en', 'error', 'th']
False
Scattermapbox.hoverinfosrc
(self)
Sets the source reference on Chart Studio Cloud for hoverinfo . The 'hoverinfosrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str
Sets the source reference on Chart Studio Cloud for hoverinfo . The 'hoverinfosrc' property must be specified as a string or as a plotly.grid_objs.Column object
def hoverinfosrc(self): """ Sets the source reference on Chart Studio Cloud for hoverinfo . The 'hoverinfosrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["hoverin...
[ "def", "hoverinfosrc", "(", "self", ")", ":", "return", "self", "[", "\"hoverinfosrc\"", "]" ]
[ 259, 4 ]
[ 271, 35 ]
python
en
['en', 'error', 'th']
False
Scattermapbox.hoverlabel
(self)
The 'hoverlabel' property is an instance of Hoverlabel that may be specified as: - An instance of :class:`plotly.graph_objs.scattermapbox.Hoverlabel` - A dict of string/value properties that will be passed to the Hoverlabel constructor Supported dict pro...
The 'hoverlabel' property is an instance of Hoverlabel that may be specified as: - An instance of :class:`plotly.graph_objs.scattermapbox.Hoverlabel` - A dict of string/value properties that will be passed to the Hoverlabel constructor Supported dict pro...
def hoverlabel(self): """ The 'hoverlabel' property is an instance of Hoverlabel that may be specified as: - An instance of :class:`plotly.graph_objs.scattermapbox.Hoverlabel` - A dict of string/value properties that will be passed to the Hoverlabel constructor ...
[ "def", "hoverlabel", "(", "self", ")", ":", "return", "self", "[", "\"hoverlabel\"", "]" ]
[ 280, 4 ]
[ 330, 33 ]
python
en
['en', 'error', 'th']
False
Scattermapbox.hovertemplate
(self)
Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$...
Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$...
def hovertemplate(self): """ Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d...
[ "def", "hovertemplate", "(", "self", ")", ":", "return", "self", "[", "\"hovertemplate\"", "]" ]
[ 339, 4 ]
[ 371, 36 ]
python
en
['en', 'error', 'th']
False
Scattermapbox.hovertemplatesrc
(self)
Sets the source reference on Chart Studio Cloud for hovertemplate . The 'hovertemplatesrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str
Sets the source reference on Chart Studio Cloud for hovertemplate . The 'hovertemplatesrc' property must be specified as a string or as a plotly.grid_objs.Column object
def hovertemplatesrc(self): """ Sets the source reference on Chart Studio Cloud for hovertemplate . The 'hovertemplatesrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return se...
[ "def", "hovertemplatesrc", "(", "self", ")", ":", "return", "self", "[", "\"hovertemplatesrc\"", "]" ]
[ 380, 4 ]
[ 392, 39 ]
python
en
['en', 'error', 'th']
False
Scattermapbox.hovertext
(self)
Sets hover text elements associated with each (lon,lat) pair If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (lon,lat) coordinates. To be seen, trace `hoverinfo` must contain a "text" ...
Sets hover text elements associated with each (lon,lat) pair If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (lon,lat) coordinates. To be seen, trace `hoverinfo` must contain a "text" ...
def hovertext(self): """ Sets hover text elements associated with each (lon,lat) pair If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (lon,lat) coordinates. To be seen, trace `h...
[ "def", "hovertext", "(", "self", ")", ":", "return", "self", "[", "\"hovertext\"", "]" ]
[ 401, 4 ]
[ 418, 32 ]
python
en
['en', 'error', 'th']
False
Scattermapbox.hovertextsrc
(self)
Sets the source reference on Chart Studio Cloud for hovertext . The 'hovertextsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str
Sets the source reference on Chart Studio Cloud for hovertext . The 'hovertextsrc' property must be specified as a string or as a plotly.grid_objs.Column object
def hovertextsrc(self): """ Sets the source reference on Chart Studio Cloud for hovertext . The 'hovertextsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["hoverte...
[ "def", "hovertextsrc", "(", "self", ")", ":", "return", "self", "[", "\"hovertextsrc\"", "]" ]
[ 427, 4 ]
[ 439, 35 ]
python
en
['en', 'error', 'th']
False
Scattermapbox.ids
(self)
Assigns id labels to each datum. These ids for object constancy of data points during animation. Should be an array of strings, not numbers or any other type. The 'ids' property is an array that may be specified as a tuple, list, numpy array, or pandas Series Retur...
Assigns id labels to each datum. These ids for object constancy of data points during animation. Should be an array of strings, not numbers or any other type. The 'ids' property is an array that may be specified as a tuple, list, numpy array, or pandas Series
def ids(self): """ Assigns id labels to each datum. These ids for object constancy of data points during animation. Should be an array of strings, not numbers or any other type. The 'ids' property is an array that may be specified as a tuple, list, numpy array, or pa...
[ "def", "ids", "(", "self", ")", ":", "return", "self", "[", "\"ids\"", "]" ]
[ 448, 4 ]
[ 461, 26 ]
python
en
['en', 'error', 'th']
False
Scattermapbox.idssrc
(self)
Sets the source reference on Chart Studio Cloud for ids . The 'idssrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str
Sets the source reference on Chart Studio Cloud for ids . The 'idssrc' property must be specified as a string or as a plotly.grid_objs.Column object
def idssrc(self): """ Sets the source reference on Chart Studio Cloud for ids . The 'idssrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["idssrc"]
[ "def", "idssrc", "(", "self", ")", ":", "return", "self", "[", "\"idssrc\"", "]" ]
[ 470, 4 ]
[ 481, 29 ]
python
en
['en', 'error', 'th']
False
Scattermapbox.lat
(self)
Sets the latitude coordinates (in degrees North). The 'lat' property is an array that may be specified as a tuple, list, numpy array, or pandas Series Returns ------- numpy.ndarray
Sets the latitude coordinates (in degrees North). The 'lat' property is an array that may be specified as a tuple, list, numpy array, or pandas Series
def lat(self): """ Sets the latitude coordinates (in degrees North). The 'lat' property is an array that may be specified as a tuple, list, numpy array, or pandas Series Returns ------- numpy.ndarray """ return self["lat"]
[ "def", "lat", "(", "self", ")", ":", "return", "self", "[", "\"lat\"", "]" ]
[ 490, 4 ]
[ 501, 26 ]
python
en
['en', 'error', 'th']
False
Scattermapbox.latsrc
(self)
Sets the source reference on Chart Studio Cloud for lat . The 'latsrc' 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 lat . The 'latsrc' property must be specified as a string or as a plotly.grid_objs.Column object
def latsrc(self): """ Sets the source reference on Chart Studio Cloud for lat . The 'latsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["latsrc"]
[ "def", "latsrc", "(", "self", ")", ":", "return", "self", "[", "\"latsrc\"", "]" ]
[ 510, 4 ]
[ 521, 29 ]
python
en
['en', 'error', 'th']
False
Scattermapbox.legendgroup
(self)
Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. The 'legendgroup' property is a string and must be specified as: - A string - A number that will be converted to a string R...
Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. The 'legendgroup' property is a string and must be specified as: - A string - A number that will be converted to a string
def legendgroup(self): """ Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. The 'legendgroup' property is a string and must be specified as: - A string - A number that will b...
[ "def", "legendgroup", "(", "self", ")", ":", "return", "self", "[", "\"legendgroup\"", "]" ]
[ 530, 4 ]
[ 544, 34 ]
python
en
['en', 'error', 'th']
False
Scattermapbox.line
(self)
The 'line' property is an instance of Line that may be specified as: - An instance of :class:`plotly.graph_objs.scattermapbox.Line` - A dict of string/value properties that will be passed to the Line constructor Supported dict properties: ...
The 'line' property is an instance of Line that may be specified as: - An instance of :class:`plotly.graph_objs.scattermapbox.Line` - A dict of string/value properties that will be passed to the Line constructor Supported dict properties: ...
def line(self): """ The 'line' property is an instance of Line that may be specified as: - An instance of :class:`plotly.graph_objs.scattermapbox.Line` - A dict of string/value properties that will be passed to the Line constructor Supported dict ...
[ "def", "line", "(", "self", ")", ":", "return", "self", "[", "\"line\"", "]" ]
[ 553, 4 ]
[ 572, 27 ]
python
en
['en', 'error', 'th']
False
Scattermapbox.lon
(self)
Sets the longitude coordinates (in degrees East). The 'lon' property is an array that may be specified as a tuple, list, numpy array, or pandas Series Returns ------- numpy.ndarray
Sets the longitude coordinates (in degrees East). The 'lon' property is an array that may be specified as a tuple, list, numpy array, or pandas Series
def lon(self): """ Sets the longitude coordinates (in degrees East). The 'lon' property is an array that may be specified as a tuple, list, numpy array, or pandas Series Returns ------- numpy.ndarray """ return self["lon"]
[ "def", "lon", "(", "self", ")", ":", "return", "self", "[", "\"lon\"", "]" ]
[ 581, 4 ]
[ 592, 26 ]
python
en
['en', 'error', 'th']
False
Scattermapbox.lonsrc
(self)
Sets the source reference on Chart Studio Cloud for lon . The 'lonsrc' 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 lon . The 'lonsrc' property must be specified as a string or as a plotly.grid_objs.Column object
def lonsrc(self): """ Sets the source reference on Chart Studio Cloud for lon . The 'lonsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["lonsrc"]
[ "def", "lonsrc", "(", "self", ")", ":", "return", "self", "[", "\"lonsrc\"", "]" ]
[ 601, 4 ]
[ 612, 29 ]
python
en
['en', 'error', 'th']
False
Scattermapbox.marker
(self)
The 'marker' property is an instance of Marker that may be specified as: - An instance of :class:`plotly.graph_objs.scattermapbox.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.scattermapbox.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.scattermapbox.Marker` - A dict of string/value properties that will be passed to the Marker constructor Suppo...
[ "def", "marker", "(", "self", ")", ":", "return", "self", "[", "\"marker\"", "]" ]
[ 621, 4 ]
[ 765, 29 ]
python
en
['en', 'error', 'th']
False
Scattermapbox.meta
(self)
Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To acce...
Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To acce...
def meta(self): """ Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text ...
[ "def", "meta", "(", "self", ")", ":", "return", "self", "[", "\"meta\"", "]" ]
[ 774, 4 ]
[ 793, 27 ]
python
en
['en', 'error', 'th']
False
Scattermapbox.metasrc
(self)
Sets the source reference on Chart Studio Cloud for meta . The 'metasrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str
Sets the source reference on Chart Studio Cloud for meta . The 'metasrc' property must be specified as a string or as a plotly.grid_objs.Column object
def metasrc(self): """ Sets the source reference on Chart Studio Cloud for meta . The 'metasrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["metasrc"]
[ "def", "metasrc", "(", "self", ")", ":", "return", "self", "[", "\"metasrc\"", "]" ]
[ 802, 4 ]
[ 813, 30 ]
python
en
['en', 'error', 'th']
False
Scattermapbox.mode
(self)
Determines the drawing mode for this scatter trace. If the provided `mode` includes "text" then the `text` elements appear at the coordinates. Otherwise, the `text` elements appear on hover. The 'mode' property is a flaglist and may be specified as a string containi...
Determines the drawing mode for this scatter trace. If the provided `mode` includes "text" then the `text` elements appear at the coordinates. Otherwise, the `text` elements appear on hover. The 'mode' property is a flaglist and may be specified as a string containi...
def mode(self): """ Determines the drawing mode for this scatter trace. If the provided `mode` includes "text" then the `text` elements appear at the coordinates. Otherwise, the `text` elements appear on hover. The 'mode' property is a flaglist and may be specified ...
[ "def", "mode", "(", "self", ")", ":", "return", "self", "[", "\"mode\"", "]" ]
[ 822, 4 ]
[ 839, 27 ]
python
en
['en', 'error', 'th']
False
Scattermapbox.name
(self)
Sets the trace name. The trace name appear as the legend item and on hover. The 'name' property is a string and must be specified as: - A string - A number that will be converted to a string Returns ------- str
Sets the trace name. The trace name appear as the legend item and on hover. The 'name' property is a string and must be specified as: - A string - A number that will be converted to a string
def name(self): """ Sets the trace name. The trace name appear as the legend item and on hover. The 'name' property is a string and must be specified as: - A string - A number that will be converted to a string Returns ------- str ...
[ "def", "name", "(", "self", ")", ":", "return", "self", "[", "\"name\"", "]" ]
[ 848, 4 ]
[ 861, 27 ]
python
en
['en', 'error', 'th']
False
Scattermapbox.opacity
(self)
Sets the opacity of the trace. The 'opacity' property is a number and may be specified as: - An int or float in the interval [0, 1] Returns ------- int|float
Sets the opacity of the trace. The 'opacity' property is a number and may be specified as: - An int or float in the interval [0, 1]
def opacity(self): """ Sets the opacity of the trace. The 'opacity' property is a number and may be specified as: - An int or float in the interval [0, 1] Returns ------- int|float """ return self["opacity"]
[ "def", "opacity", "(", "self", ")", ":", "return", "self", "[", "\"opacity\"", "]" ]
[ 870, 4 ]
[ 881, 30 ]
python
en
['en', 'error', 'th']
False
Scattermapbox.selected
(self)
The 'selected' property is an instance of Selected that may be specified as: - An instance of :class:`plotly.graph_objs.scattermapbox.Selected` - A dict of string/value properties that will be passed to the Selected constructor Supported dict properties:...
The 'selected' property is an instance of Selected that may be specified as: - An instance of :class:`plotly.graph_objs.scattermapbox.Selected` - A dict of string/value properties that will be passed to the Selected constructor Supported dict properties:...
def selected(self): """ The 'selected' property is an instance of Selected that may be specified as: - An instance of :class:`plotly.graph_objs.scattermapbox.Selected` - A dict of string/value properties that will be passed to the Selected constructor ...
[ "def", "selected", "(", "self", ")", ":", "return", "self", "[", "\"selected\"", "]" ]
[ 890, 4 ]
[ 909, 31 ]
python
en
['en', 'error', 'th']
False
Scattermapbox.selectedpoints
(self)
Array containing integer indices of selected points. Has an effect only for traces that support selections. Note that an empty array means an empty selection where the `unselected` are turned on for all points, whereas, any other non-array values means no selection all where the...
Array containing integer indices of selected points. Has an effect only for traces that support selections. Note that an empty array means an empty selection where the `unselected` are turned on for all points, whereas, any other non-array values means no selection all where the...
def selectedpoints(self): """ Array containing integer indices of selected points. Has an effect only for traces that support selections. Note that an empty array means an empty selection where the `unselected` are turned on for all points, whereas, any other non-array values ...
[ "def", "selectedpoints", "(", "self", ")", ":", "return", "self", "[", "\"selectedpoints\"", "]" ]
[ 918, 4 ]
[ 933, 37 ]
python
en
['en', 'error', 'th']
False
Scattermapbox.showlegend
(self)
Determines whether or not an item corresponding to this trace is shown in the legend. The 'showlegend' property must be specified as a bool (either True, or False) Returns ------- bool
Determines whether or not an item corresponding to this trace is shown in the legend. The 'showlegend' property must be specified as a bool (either True, or False)
def showlegend(self): """ Determines whether or not an item corresponding to this trace is shown in the legend. The 'showlegend' property must be specified as a bool (either True, or False) Returns ------- bool """ return self["showle...
[ "def", "showlegend", "(", "self", ")", ":", "return", "self", "[", "\"showlegend\"", "]" ]
[ 942, 4 ]
[ 954, 33 ]
python
en
['en', 'error', 'th']
False
Scattermapbox.stream
(self)
The 'stream' property is an instance of Stream that may be specified as: - An instance of :class:`plotly.graph_objs.scattermapbox.Stream` - A dict of string/value properties that will be passed to the Stream constructor Supported dict properties: ...
The 'stream' property is an instance of Stream that may be specified as: - An instance of :class:`plotly.graph_objs.scattermapbox.Stream` - A dict of string/value properties that will be passed to the Stream constructor Supported dict properties: ...
def stream(self): """ The 'stream' property is an instance of Stream that may be specified as: - An instance of :class:`plotly.graph_objs.scattermapbox.Stream` - A dict of string/value properties that will be passed to the Stream constructor Suppo...
[ "def", "stream", "(", "self", ")", ":", "return", "self", "[", "\"stream\"", "]" ]
[ 963, 4 ]
[ 987, 29 ]
python
en
['en', 'error', 'th']
False
Scattermapbox.subplot
(self)
Sets a reference between this trace's data coordinates and a mapbox subplot. If "mapbox" (the default value), the data refer to `layout.mapbox`. If "mapbox2", the data refer to `layout.mapbox2`, and so on. The 'subplot' property is an identifier of a particular subp...
Sets a reference between this trace's data coordinates and a mapbox subplot. If "mapbox" (the default value), the data refer to `layout.mapbox`. If "mapbox2", the data refer to `layout.mapbox2`, and so on. The 'subplot' property is an identifier of a particular subp...
def subplot(self): """ Sets a reference between this trace's data coordinates and a mapbox subplot. If "mapbox" (the default value), the data refer to `layout.mapbox`. If "mapbox2", the data refer to `layout.mapbox2`, and so on. The 'subplot' property is an identifie...
[ "def", "subplot", "(", "self", ")", ":", "return", "self", "[", "\"subplot\"", "]" ]
[ 996, 4 ]
[ 1012, 30 ]
python
en
['en', 'error', 'th']
False
Scattermapbox.text
(self)
Sets text elements associated with each (lon,lat) pair If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (lon,lat) coordinates. If trace `hoverinfo` contains a "text" flag and "hovertext...
Sets text elements associated with each (lon,lat) pair If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (lon,lat) coordinates. If trace `hoverinfo` contains a "text" flag and "hovertext...
def text(self): """ Sets text elements associated with each (lon,lat) pair If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (lon,lat) coordinates. If trace `hoverinfo` contains a...
[ "def", "text", "(", "self", ")", ":", "return", "self", "[", "\"text\"", "]" ]
[ 1021, 4 ]
[ 1039, 27 ]
python
en
['en', 'error', 'th']
False
Scattermapbox.textfont
(self)
Sets the icon text font (color=mapbox.layer.paint.text-color, size=mapbox.layer.layout.text-size). Has an effect only when `type` is set to "symbol". The 'textfont' property is an instance of Textfont that may be specified as: - An instance of :class:`plotly.graph...
Sets the icon text font (color=mapbox.layer.paint.text-color, size=mapbox.layer.layout.text-size). Has an effect only when `type` is set to "symbol". The 'textfont' property is an instance of Textfont that may be specified as: - An instance of :class:`plotly.graph...
def textfont(self): """ Sets the icon text font (color=mapbox.layer.paint.text-color, size=mapbox.layer.layout.text-size). Has an effect only when `type` is set to "symbol". The 'textfont' property is an instance of Textfont that may be specified as: - An i...
[ "def", "textfont", "(", "self", ")", ":", "return", "self", "[", "\"textfont\"", "]" ]
[ 1048, 4 ]
[ 1087, 31 ]
python
en
['en', 'error', 'th']
False
Scattermapbox.textposition
(self)
Sets the positions of the `text` elements with respects to the (x,y) coordinates. The 'textposition' property is an enumeration that may be specified as: - One of the following enumeration values: ['top left', 'top center', 'top right', 'middle left', ...
Sets the positions of the `text` elements with respects to the (x,y) coordinates. The 'textposition' property is an enumeration that may be specified as: - One of the following enumeration values: ['top left', 'top center', 'top right', 'middle left', ...
def textposition(self): """ Sets the positions of the `text` elements with respects to the (x,y) coordinates. The 'textposition' property is an enumeration that may be specified as: - One of the following enumeration values: ['top left', 'top center', 'top ...
[ "def", "textposition", "(", "self", ")", ":", "return", "self", "[", "\"textposition\"", "]" ]
[ 1096, 4 ]
[ 1111, 35 ]
python
en
['en', 'error', 'th']
False
Scattermapbox.textsrc
(self)
Sets the source reference on Chart Studio Cloud for text . The 'textsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str
Sets the source reference on Chart Studio Cloud for text . The 'textsrc' property must be specified as a string or as a plotly.grid_objs.Column object
def textsrc(self): """ Sets the source reference on Chart Studio Cloud for text . The 'textsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["textsrc"]
[ "def", "textsrc", "(", "self", ")", ":", "return", "self", "[", "\"textsrc\"", "]" ]
[ 1120, 4 ]
[ 1131, 30 ]
python
en
['en', 'error', 'th']
False
Scattermapbox.texttemplate
(self)
Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:...
Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:...
def texttemplate(self): """ Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d...
[ "def", "texttemplate", "(", "self", ")", ":", "return", "self", "[", "\"texttemplate\"", "]" ]
[ 1140, 4 ]
[ 1166, 35 ]
python
en
['en', 'error', 'th']
False
Scattermapbox.texttemplatesrc
(self)
Sets the source reference on Chart Studio Cloud for texttemplate . The 'texttemplatesrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str
Sets the source reference on Chart Studio Cloud for texttemplate . The 'texttemplatesrc' property must be specified as a string or as a plotly.grid_objs.Column object
def texttemplatesrc(self): """ Sets the source reference on Chart Studio Cloud for texttemplate . The 'texttemplatesrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self[...
[ "def", "texttemplatesrc", "(", "self", ")", ":", "return", "self", "[", "\"texttemplatesrc\"", "]" ]
[ 1175, 4 ]
[ 1187, 38 ]
python
en
['en', 'error', 'th']
False
Scattermapbox.uid
(self)
Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. The 'uid' property is a string and must be specified as: - A string - A number that will be converted to a string Returns ------- ...
Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. The 'uid' property is a string and must be specified as: - A string - A number that will be converted to a string
def uid(self): """ Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. The 'uid' property is a string and must be specified as: - A string - A number that will be converted to a string Return...
[ "def", "uid", "(", "self", ")", ":", "return", "self", "[", "\"uid\"", "]" ]
[ 1196, 4 ]
[ 1209, 26 ]
python
en
['en', 'error', 'th']
False
Scattermapbox.uirevision
(self)
Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are co...
Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are co...
def uirevision(self): """ Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driv...
[ "def", "uirevision", "(", "self", ")", ":", "return", "self", "[", "\"uirevision\"", "]" ]
[ 1218, 4 ]
[ 1242, 33 ]
python
en
['en', 'error', 'th']
False
Scattermapbox.unselected
(self)
The 'unselected' property is an instance of Unselected that may be specified as: - An instance of :class:`plotly.graph_objs.scattermapbox.Unselected` - A dict of string/value properties that will be passed to the Unselected constructor Supported dict pro...
The 'unselected' property is an instance of Unselected that may be specified as: - An instance of :class:`plotly.graph_objs.scattermapbox.Unselected` - A dict of string/value properties that will be passed to the Unselected constructor Supported dict pro...
def unselected(self): """ The 'unselected' property is an instance of Unselected that may be specified as: - An instance of :class:`plotly.graph_objs.scattermapbox.Unselected` - A dict of string/value properties that will be passed to the Unselected constructor ...
[ "def", "unselected", "(", "self", ")", ":", "return", "self", "[", "\"unselected\"", "]" ]
[ 1251, 4 ]
[ 1270, 33 ]
python
en
['en', 'error', 'th']
False
Scattermapbox.visible
(self)
Determines whether or not this trace is visible. If "legendonly", the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). The 'visible' property is an enumeration that may be specified as: - One of the following enumeration va...
Determines whether or not this trace is visible. If "legendonly", the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). The 'visible' property is an enumeration that may be specified as: - One of the following enumeration va...
def visible(self): """ Determines whether or not this trace is visible. If "legendonly", the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). The 'visible' property is an enumeration that may be specified as: - One o...
[ "def", "visible", "(", "self", ")", ":", "return", "self", "[", "\"visible\"", "]" ]
[ 1279, 4 ]
[ 1293, 30 ]
python
en
['en', 'error', 'th']
False