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
sequence
start_point
sequence
end_point
sequence
language
stringclasses
1 value
docstring_language
stringlengths
2
7
docstring_language_predictions
stringlengths
18
23
is_langid_reliable
stringclasses
2 values
BotAdminCog.add_to_blacklist
(self, ctx, user: discord.Member)
Adds a User to the Bots Blacklist. The User will not be able to trigger the bot as long as he is on the Blacklist. Best to use user-id as the parameter. Args: user (discord.Member): A discord User of the Guild. Input can be name or Id, but best to use Id. Example: @AntiPetros add_to_blacklist 576522029470056450
Adds a User to the Bots Blacklist.
async def add_to_blacklist(self, ctx, user: discord.Member): """ Adds a User to the Bots Blacklist. The User will not be able to trigger the bot as long as he is on the Blacklist. Best to use user-id as the parameter. Args: user (discord.Member): A discord User of the Guild. Input can be name or Id, but best to use Id. Example: @AntiPetros add_to_blacklist 576522029470056450 """ if user.bot is True: # TODO: make as embed await ctx.send("the user you are trying to add is a **__BOT__**!\n\nThis can't be done!") return blacklisted_user = await self.bot.blacklist_user(user) if blacklisted_user is not None: await ctx.send(f"User '{user.name}' with the id '{user.id}' was added to my blacklist, he wont be able to invoke my commands!") else: await ctx.send("Something went wrong while blacklisting the User")
[ "async", "def", "add_to_blacklist", "(", "self", ",", "ctx", ",", "user", ":", "discord", ".", "Member", ")", ":", "if", "user", ".", "bot", "is", "True", ":", "# TODO: make as embed", "await", "ctx", ".", "send", "(", "\"the user you are trying to add is a **__BOT__**!\\n\\nThis can't be done!\"", ")", "return", "blacklisted_user", "=", "await", "self", ".", "bot", ".", "blacklist_user", "(", "user", ")", "if", "blacklisted_user", "is", "not", "None", ":", "await", "ctx", ".", "send", "(", "f\"User '{user.name}' with the id '{user.id}' was added to my blacklist, he wont be able to invoke my commands!\"", ")", "else", ":", "await", "ctx", ".", "send", "(", "\"Something went wrong while blacklisting the User\"", ")" ]
[ 319, 4 ]
[ 339, 78 ]
python
en
['en', 'error', 'th']
False
BotAdminCog.remove_from_blacklist
(self, ctx, user: discord.Member)
Removes a User from the Blacklist. Best to use user-id as the parameter. Args: user (discord.Member): A discord User of the Guild. Input can be name or Id, but best to use Id. Example: @AntiPetros remove_from_blacklist 576522029470056450
Removes a User from the Blacklist.
async def remove_from_blacklist(self, ctx, user: discord.Member): """ Removes a User from the Blacklist. Best to use user-id as the parameter. Args: user (discord.Member): A discord User of the Guild. Input can be name or Id, but best to use Id. Example: @AntiPetros remove_from_blacklist 576522029470056450 """ await self.bot.unblacklist_user(user) await ctx.send(f"I have unblacklisted user {user.name}")
[ "async", "def", "remove_from_blacklist", "(", "self", ",", "ctx", ",", "user", ":", "discord", ".", "Member", ")", ":", "await", "self", ".", "bot", ".", "unblacklist_user", "(", "user", ")", "await", "ctx", ".", "send", "(", "f\"I have unblacklisted user {user.name}\"", ")" ]
[ 344, 4 ]
[ 358, 64 ]
python
en
['en', 'error', 'th']
False
BotAdminCog.send_log_file
(self, ctx: commands.Context, which_logs: str = 'newest')
Gets the log files of the bot and post it as a file to discord. You can choose to only get the newest or all logs. Args: which_logs (str, optional): [description]. Defaults to 'newest'. other options = 'all' Example: @AntiPetros send_log_file all
Gets the log files of the bot and post it as a file to discord.
async def send_log_file(self, ctx: commands.Context, which_logs: str = 'newest'): """ Gets the log files of the bot and post it as a file to discord. You can choose to only get the newest or all logs. Args: which_logs (str, optional): [description]. Defaults to 'newest'. other options = 'all' Example: @AntiPetros send_log_file all """ log_folder = APPDATA.log_folder all_log_files = [] async with ctx.typing(): for file in os.scandir(log_folder): if file.is_file() and file.name.endswith('.log'): file_path = Path(file.path) temp_path = Path(APPDATA['temp_files']).joinpath(file_path.name) shutil.copy(str(file_path), str(temp_path)) all_log_files.append(str(temp_path)) for old_file in os.scandir(pathmaker(log_folder, 'old_logs')): if old_file.is_file() and old_file.name.endswith('.log'): all_log_files.append(old_file.path) all_log_files = sorted(all_log_files, key=lambda x: os.stat(x).st_mtime, reverse=True) if which_logs == 'newest': to_send_file = all_log_files[0] discord_file = discord.File(to_send_file) await ctx.send(file=discord_file) elif which_logs == 'all': for file in all_log_files: discord_file = discord.File(file) await ctx.send(file=discord_file) log.warning("%s log file%s was requested by '%s'", which_logs, 's' if which_logs == 'all' else '', ctx.author.name)
[ "async", "def", "send_log_file", "(", "self", ",", "ctx", ":", "commands", ".", "Context", ",", "which_logs", ":", "str", "=", "'newest'", ")", ":", "log_folder", "=", "APPDATA", ".", "log_folder", "all_log_files", "=", "[", "]", "async", "with", "ctx", ".", "typing", "(", ")", ":", "for", "file", "in", "os", ".", "scandir", "(", "log_folder", ")", ":", "if", "file", ".", "is_file", "(", ")", "and", "file", ".", "name", ".", "endswith", "(", "'.log'", ")", ":", "file_path", "=", "Path", "(", "file", ".", "path", ")", "temp_path", "=", "Path", "(", "APPDATA", "[", "'temp_files'", "]", ")", ".", "joinpath", "(", "file_path", ".", "name", ")", "shutil", ".", "copy", "(", "str", "(", "file_path", ")", ",", "str", "(", "temp_path", ")", ")", "all_log_files", ".", "append", "(", "str", "(", "temp_path", ")", ")", "for", "old_file", "in", "os", ".", "scandir", "(", "pathmaker", "(", "log_folder", ",", "'old_logs'", ")", ")", ":", "if", "old_file", ".", "is_file", "(", ")", "and", "old_file", ".", "name", ".", "endswith", "(", "'.log'", ")", ":", "all_log_files", ".", "append", "(", "old_file", ".", "path", ")", "all_log_files", "=", "sorted", "(", "all_log_files", ",", "key", "=", "lambda", "x", ":", "os", ".", "stat", "(", "x", ")", ".", "st_mtime", ",", "reverse", "=", "True", ")", "if", "which_logs", "==", "'newest'", ":", "to_send_file", "=", "all_log_files", "[", "0", "]", "discord_file", "=", "discord", ".", "File", "(", "to_send_file", ")", "await", "ctx", ".", "send", "(", "file", "=", "discord_file", ")", "elif", "which_logs", "==", "'all'", ":", "for", "file", "in", "all_log_files", ":", "discord_file", "=", "discord", ".", "File", "(", "file", ")", "await", "ctx", ".", "send", "(", "file", "=", "discord_file", ")", "log", ".", "warning", "(", "\"%s log file%s was requested by '%s'\"", ",", "which_logs", ",", "'s'", "if", "which_logs", "==", "'all'", "else", "''", ",", "ctx", ".", "author", ".", "name", ")" ]
[ 362, 4 ]
[ 399, 123 ]
python
en
['en', 'error', 'th']
False
BotAdminCog.disable_cog
(self, ctx: commands.Context, cog: CogConverter)
Unloads a specific Cog. This disables all functionality and all backgroundtasks associated with that Cog. It also sets the config to not load the cog, so it does not get reloaded on accident. Args: cog (CogConverter): Name of the Cog, case-INsensitive. prefix `Cog` is optional. Example: @AntiPetros disable_cog Klimbim
Unloads a specific Cog.
async def disable_cog(self, ctx: commands.Context, cog: CogConverter): """ Unloads a specific Cog. This disables all functionality and all backgroundtasks associated with that Cog. It also sets the config to not load the cog, so it does not get reloaded on accident. Args: cog (CogConverter): Name of the Cog, case-INsensitive. prefix `Cog` is optional. Example: @AntiPetros disable_cog Klimbim """ name = cog.qualified_name await ctx.send(f"Trying to disable Cog `{name}`") self.bot.remove_cog(name) import_path = cog.__module__.split('.', 2)[-1] if import_path.split('.')[0] not in ['bot_admin_cogs', 'discord_admin_cogs', 'dev_cogs']: BASE_CONFIG.set("extensions", import_path, "no") BASE_CONFIG.save() await ctx.send(f"Set BASE_CONFIG import setting for Cog `{name}` to `no`") await ctx.send(f"removed Cog `{name}` from the the current bot process!")
[ "async", "def", "disable_cog", "(", "self", ",", "ctx", ":", "commands", ".", "Context", ",", "cog", ":", "CogConverter", ")", ":", "name", "=", "cog", ".", "qualified_name", "await", "ctx", ".", "send", "(", "f\"Trying to disable Cog `{name}`\"", ")", "self", ".", "bot", ".", "remove_cog", "(", "name", ")", "import_path", "=", "cog", ".", "__module__", ".", "split", "(", "'.'", ",", "2", ")", "[", "-", "1", "]", "if", "import_path", ".", "split", "(", "'.'", ")", "[", "0", "]", "not", "in", "[", "'bot_admin_cogs'", ",", "'discord_admin_cogs'", ",", "'dev_cogs'", "]", ":", "BASE_CONFIG", ".", "set", "(", "\"extensions\"", ",", "import_path", ",", "\"no\"", ")", "BASE_CONFIG", ".", "save", "(", ")", "await", "ctx", ".", "send", "(", "f\"Set BASE_CONFIG import setting for Cog `{name}` to `no`\"", ")", "await", "ctx", ".", "send", "(", "f\"removed Cog `{name}` from the the current bot process!\"", ")" ]
[ 403, 4 ]
[ 423, 81 ]
python
en
['en', 'error', 'th']
False
BotAdminCog.current_cogs
(self, ctx: commands.Context)
Gives a List of all currently active and loaded Cogs. Example: @AntiPetros current_cogs
Gives a List of all currently active and loaded Cogs.
async def current_cogs(self, ctx: commands.Context): """ Gives a List of all currently active and loaded Cogs. Example: @AntiPetros current_cogs """ text = "" for cog_name, cog_object in self.bot.cogs.items(): text += f"NAME: {cog_name}, CONFIG_NAME: {cog_object.config_name}\n{'-'*10}\n" await self.bot.split_to_messages(ctx, text, in_codeblock=True, syntax_highlighting='fix')
[ "async", "def", "current_cogs", "(", "self", ",", "ctx", ":", "commands", ".", "Context", ")", ":", "text", "=", "\"\"", "for", "cog_name", ",", "cog_object", "in", "self", ".", "bot", ".", "cogs", ".", "items", "(", ")", ":", "text", "+=", "f\"NAME: {cog_name}, CONFIG_NAME: {cog_object.config_name}\\n{'-'*10}\\n\"", "await", "self", ".", "bot", ".", "split_to_messages", "(", "ctx", ",", "text", ",", "in_codeblock", "=", "True", ",", "syntax_highlighting", "=", "'fix'", ")" ]
[ 427, 4 ]
[ 437, 97 ]
python
en
['en', 'error', 'th']
False
Labelfont.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: aliceblue, antiquewhite, aqua, aquamarine, azure, beige, bisque, black, blanchedalmond, blue, blueviolet, brown, burlywood, cadetblue, chartreuse, chocolate, coral, cornflowerblue, cornsilk, crimson, cyan, darkblue, darkcyan, darkgoldenrod, darkgray, darkgrey, darkgreen, darkkhaki, darkmagenta, darkolivegreen, darkorange, darkorchid, darkred, darksalmon, darkseagreen, darkslateblue, darkslategray, darkslategrey, darkturquoise, darkviolet, deeppink, deepskyblue, dimgray, dimgrey, dodgerblue, firebrick, floralwhite, forestgreen, fuchsia, gainsboro, ghostwhite, gold, goldenrod, gray, grey, green, greenyellow, honeydew, hotpink, indianred, indigo, ivory, khaki, lavender, lavenderblush, lawngreen, lemonchiffon, lightblue, lightcoral, lightcyan, lightgoldenrodyellow, lightgray, lightgrey, lightgreen, lightpink, lightsalmon, lightseagreen, lightskyblue, lightslategray, lightslategrey, lightsteelblue, lightyellow, lime, limegreen, linen, magenta, maroon, mediumaquamarine, mediumblue, mediumorchid, mediumpurple, mediumseagreen, mediumslateblue, mediumspringgreen, mediumturquoise, mediumvioletred, midnightblue, mintcream, mistyrose, moccasin, navajowhite, navy, oldlace, olive, olivedrab, orange, orangered, orchid, palegoldenrod, palegreen, paleturquoise, palevioletred, papayawhip, peachpuff, peru, pink, plum, powderblue, purple, red, rosybrown, royalblue, rebeccapurple, saddlebrown, salmon, sandybrown, seagreen, seashell, sienna, silver, skyblue, slateblue, slategray, slategrey, snow, springgreen, steelblue, tan, teal, thistle, tomato, turquoise, violet, wheat, white, whitesmoke, yellow, yellowgreen Returns ------- str
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: aliceblue, antiquewhite, aqua, aquamarine, azure, beige, bisque, black, blanchedalmond, blue, blueviolet, brown, burlywood, cadetblue, chartreuse, chocolate, coral, cornflowerblue, cornsilk, crimson, cyan, darkblue, darkcyan, darkgoldenrod, darkgray, darkgrey, darkgreen, darkkhaki, darkmagenta, darkolivegreen, darkorange, darkorchid, darkred, darksalmon, darkseagreen, darkslateblue, darkslategray, darkslategrey, darkturquoise, darkviolet, deeppink, deepskyblue, dimgray, dimgrey, dodgerblue, firebrick, floralwhite, forestgreen, fuchsia, gainsboro, ghostwhite, gold, goldenrod, gray, grey, green, greenyellow, honeydew, hotpink, indianred, indigo, ivory, khaki, lavender, lavenderblush, lawngreen, lemonchiffon, lightblue, lightcoral, lightcyan, lightgoldenrodyellow, lightgray, lightgrey, lightgreen, lightpink, lightsalmon, lightseagreen, lightskyblue, lightslategray, lightslategrey, lightsteelblue, lightyellow, lime, limegreen, linen, magenta, maroon, mediumaquamarine, mediumblue, mediumorchid, mediumpurple, mediumseagreen, mediumslateblue, mediumspringgreen, mediumturquoise, mediumvioletred, midnightblue, mintcream, mistyrose, moccasin, navajowhite, navy, oldlace, olive, olivedrab, orange, orangered, orchid, palegoldenrod, palegreen, paleturquoise, palevioletred, papayawhip, peachpuff, peru, pink, plum, powderblue, purple, red, rosybrown, royalblue, rebeccapurple, saddlebrown, salmon, sandybrown, seagreen, seashell, sienna, silver, skyblue, slateblue, slategray, slategrey, snow, springgreen, steelblue, tan, teal, thistle, tomato, turquoise, violet, wheat, white, whitesmoke, yellow, yellowgreen
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 named CSS color: aliceblue, antiquewhite, aqua, aquamarine, azure, beige, bisque, black, blanchedalmond, blue, blueviolet, brown, burlywood, cadetblue, chartreuse, chocolate, coral, cornflowerblue, cornsilk, crimson, cyan, darkblue, darkcyan, darkgoldenrod, darkgray, darkgrey, darkgreen, darkkhaki, darkmagenta, darkolivegreen, darkorange, darkorchid, darkred, darksalmon, darkseagreen, darkslateblue, darkslategray, darkslategrey, darkturquoise, darkviolet, deeppink, deepskyblue, dimgray, dimgrey, dodgerblue, firebrick, floralwhite, forestgreen, fuchsia, gainsboro, ghostwhite, gold, goldenrod, gray, grey, green, greenyellow, honeydew, hotpink, indianred, indigo, ivory, khaki, lavender, lavenderblush, lawngreen, lemonchiffon, lightblue, lightcoral, lightcyan, lightgoldenrodyellow, lightgray, lightgrey, lightgreen, lightpink, lightsalmon, lightseagreen, lightskyblue, lightslategray, lightslategrey, lightsteelblue, lightyellow, lime, limegreen, linen, magenta, maroon, mediumaquamarine, mediumblue, mediumorchid, mediumpurple, mediumseagreen, mediumslateblue, mediumspringgreen, mediumturquoise, mediumvioletred, midnightblue, mintcream, mistyrose, moccasin, navajowhite, navy, oldlace, olive, olivedrab, orange, orangered, orchid, palegoldenrod, palegreen, paleturquoise, palevioletred, papayawhip, peachpuff, peru, pink, plum, powderblue, purple, red, rosybrown, royalblue, rebeccapurple, saddlebrown, salmon, sandybrown, seagreen, seashell, sienna, silver, skyblue, slateblue, slategray, slategrey, snow, springgreen, steelblue, tan, teal, thistle, tomato, turquoise, violet, wheat, white, whitesmoke, yellow, yellowgreen Returns ------- str """ return self["color"]
[ "def", "color", "(", "self", ")", ":", "return", "self", "[", "\"color\"", "]" ]
[ 15, 4 ]
[ 63, 28 ]
python
en
['en', 'error', 'th']
False
Labelfont.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 if they aren't available on the system. The Chart Studio Cloud (at https://chart- studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include "Arial", "Balto", "Courier New", "Droid Sans",, "Droid Serif", "Droid Sans Mono", "Gravitas One", "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", "Raleway", "Times New Roman". The 'family' property is a string and must be specified as: - A non-empty string Returns ------- str
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 if they aren't available on the system. The Chart Studio Cloud (at https://chart- studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include "Arial", "Balto", "Courier New", "Droid Sans",, "Droid Serif", "Droid Sans Mono", "Gravitas One", "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", "Raleway", "Times New Roman". The 'family' property is a string and must be specified as: - A non-empty string
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 preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart- studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include "Arial", "Balto", "Courier New", "Droid Sans",, "Droid Serif", "Droid Sans Mono", "Gravitas One", "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", "Raleway", "Times New Roman". The 'family' property is a string and must be specified as: - A non-empty string Returns ------- str """ return self["family"]
[ "def", "family", "(", "self", ")", ":", "return", "self", "[", "\"family\"", "]" ]
[ 72, 4 ]
[ 94, 29 ]
python
en
['en', 'error', 'th']
False
Labelfont.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
Labelfont.__init__
(self, arg=None, color=None, family=None, size=None, **kwargs)
Construct a new Labelfont object Sets the font used for labeling the contour levels. The default color comes from the lines, if shown. The default family and size come from `layout.font`. Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.contour.contours.Labelfont` color family 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 if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on- premise) generates images on a server, where only a select number of fonts are installed and supported. These include "Arial", "Balto", "Courier New", "Droid Sans",, "Droid Serif", "Droid Sans Mono", "Gravitas One", "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", "Raleway", "Times New Roman". size Returns ------- Labelfont
Construct a new Labelfont object Sets the font used for labeling the contour levels. The default color comes from the lines, if shown. The default family and size come from `layout.font`.
def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): """ Construct a new Labelfont object Sets the font used for labeling the contour levels. The default color comes from the lines, if shown. The default family and size come from `layout.font`. Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.contour.contours.Labelfont` color family 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 if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on- premise) generates images on a server, where only a select number of fonts are installed and supported. These include "Arial", "Balto", "Courier New", "Droid Sans",, "Droid Serif", "Droid Sans Mono", "Gravitas One", "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", "Raleway", "Times New Roman". size Returns ------- Labelfont """ super(Labelfont, self).__init__("labelfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return # Validate arg # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): arg = arg.to_plotly_json() elif isinstance(arg, dict): arg = _copy.copy(arg) else: raise ValueError( """\ The first argument to the plotly.graph_objs.contour.contours.Labelfont constructor must be a dict or an instance of :class:`plotly.graph_objs.contour.contours.Labelfont`""" ) # Handle skip_invalid # ------------------- self._skip_invalid = kwargs.pop("skip_invalid", False) self._validate = kwargs.pop("_validate", True) # Populate data dict with properties # ---------------------------------- _v = arg.pop("color", None) _v = color if color is not None else _v if _v is not None: self["color"] = _v _v = arg.pop("family", None) _v = family if family is not None else _v if _v is not None: self["family"] = _v _v = arg.pop("size", None) _v = size if size is not None else _v if _v is not None: self["size"] = _v # Process unknown kwargs # ---------------------- self._process_kwargs(**dict(arg, **kwargs)) # Reset skip_invalid # ------------------ self._skip_invalid = False
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "color", "=", "None", ",", "family", "=", "None", ",", "size", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", "Labelfont", ",", "self", ")", ".", "__init__", "(", "\"labelfont\"", ")", "if", "\"_parent\"", "in", "kwargs", ":", "self", ".", "_parent", "=", "kwargs", "[", "\"_parent\"", "]", "return", "# Validate arg", "# ------------", "if", "arg", "is", "None", ":", "arg", "=", "{", "}", "elif", "isinstance", "(", "arg", ",", "self", ".", "__class__", ")", ":", "arg", "=", "arg", ".", "to_plotly_json", "(", ")", "elif", "isinstance", "(", "arg", ",", "dict", ")", ":", "arg", "=", "_copy", ".", "copy", "(", "arg", ")", "else", ":", "raise", "ValueError", "(", "\"\"\"\\\nThe first argument to the plotly.graph_objs.contour.contours.Labelfont \nconstructor must be a dict or \nan instance of :class:`plotly.graph_objs.contour.contours.Labelfont`\"\"\"", ")", "# Handle skip_invalid", "# -------------------", "self", ".", "_skip_invalid", "=", "kwargs", ".", "pop", "(", "\"skip_invalid\"", ",", "False", ")", "self", ".", "_validate", "=", "kwargs", ".", "pop", "(", "\"_validate\"", ",", "True", ")", "# Populate data dict with properties", "# ----------------------------------", "_v", "=", "arg", ".", "pop", "(", "\"color\"", ",", "None", ")", "_v", "=", "color", "if", "color", "is", "not", "None", "else", "_v", "if", "_v", "is", "not", "None", ":", "self", "[", "\"color\"", "]", "=", "_v", "_v", "=", "arg", ".", "pop", "(", "\"family\"", ",", "None", ")", "_v", "=", "family", "if", "family", "is", "not", "None", "else", "_v", "if", "_v", "is", "not", "None", ":", "self", "[", "\"family\"", "]", "=", "_v", "_v", "=", "arg", ".", "pop", "(", "\"size\"", ",", "None", ")", "_v", "=", "size", "if", "size", "is", "not", "None", "else", "_v", "if", "_v", "is", "not", "None", ":", "self", "[", "\"size\"", "]", "=", "_v", "# Process unknown kwargs", "# ----------------------", "self", ".", "_process_kwargs", "(", "*", "*", "dict", "(", "arg", ",", "*", "*", "kwargs", ")", ")", "# Reset skip_invalid", "# ------------------", "self", ".", "_skip_invalid", "=", "False" ]
[ 143, 4 ]
[ 228, 34 ]
python
en
['en', 'error', 'th']
False
Font.color
(self)
The 'color' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - A named CSS color: aliceblue, antiquewhite, aqua, aquamarine, azure, beige, bisque, black, blanchedalmond, blue, blueviolet, brown, burlywood, cadetblue, chartreuse, chocolate, coral, cornflowerblue, cornsilk, crimson, cyan, darkblue, darkcyan, darkgoldenrod, darkgray, darkgrey, darkgreen, darkkhaki, darkmagenta, darkolivegreen, darkorange, darkorchid, darkred, darksalmon, darkseagreen, darkslateblue, darkslategray, darkslategrey, darkturquoise, darkviolet, deeppink, deepskyblue, dimgray, dimgrey, dodgerblue, firebrick, floralwhite, forestgreen, fuchsia, gainsboro, ghostwhite, gold, goldenrod, gray, grey, green, greenyellow, honeydew, hotpink, indianred, indigo, ivory, khaki, lavender, lavenderblush, lawngreen, lemonchiffon, lightblue, lightcoral, lightcyan, lightgoldenrodyellow, lightgray, lightgrey, lightgreen, lightpink, lightsalmon, lightseagreen, lightskyblue, lightslategray, lightslategrey, lightsteelblue, lightyellow, lime, limegreen, linen, magenta, maroon, mediumaquamarine, mediumblue, mediumorchid, mediumpurple, mediumseagreen, mediumslateblue, mediumspringgreen, mediumturquoise, mediumvioletred, midnightblue, mintcream, mistyrose, moccasin, navajowhite, navy, oldlace, olive, olivedrab, orange, orangered, orchid, palegoldenrod, palegreen, paleturquoise, palevioletred, papayawhip, peachpuff, peru, pink, plum, powderblue, purple, red, rosybrown, royalblue, rebeccapurple, saddlebrown, salmon, sandybrown, seagreen, seashell, sienna, silver, skyblue, slateblue, slategray, slategrey, snow, springgreen, steelblue, tan, teal, thistle, tomato, turquoise, violet, wheat, white, whitesmoke, yellow, yellowgreen - A list or array of any of the above Returns ------- str|numpy.ndarray
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: aliceblue, antiquewhite, aqua, aquamarine, azure, beige, bisque, black, blanchedalmond, blue, blueviolet, brown, burlywood, cadetblue, chartreuse, chocolate, coral, cornflowerblue, cornsilk, crimson, cyan, darkblue, darkcyan, darkgoldenrod, darkgray, darkgrey, darkgreen, darkkhaki, darkmagenta, darkolivegreen, darkorange, darkorchid, darkred, darksalmon, darkseagreen, darkslateblue, darkslategray, darkslategrey, darkturquoise, darkviolet, deeppink, deepskyblue, dimgray, dimgrey, dodgerblue, firebrick, floralwhite, forestgreen, fuchsia, gainsboro, ghostwhite, gold, goldenrod, gray, grey, green, greenyellow, honeydew, hotpink, indianred, indigo, ivory, khaki, lavender, lavenderblush, lawngreen, lemonchiffon, lightblue, lightcoral, lightcyan, lightgoldenrodyellow, lightgray, lightgrey, lightgreen, lightpink, lightsalmon, lightseagreen, lightskyblue, lightslategray, lightslategrey, lightsteelblue, lightyellow, lime, limegreen, linen, magenta, maroon, mediumaquamarine, mediumblue, mediumorchid, mediumpurple, mediumseagreen, mediumslateblue, mediumspringgreen, mediumturquoise, mediumvioletred, midnightblue, mintcream, mistyrose, moccasin, navajowhite, navy, oldlace, olive, olivedrab, orange, orangered, orchid, palegoldenrod, palegreen, paleturquoise, palevioletred, papayawhip, peachpuff, peru, pink, plum, powderblue, purple, red, rosybrown, royalblue, rebeccapurple, saddlebrown, salmon, sandybrown, seagreen, seashell, sienna, silver, skyblue, slateblue, slategray, slategrey, snow, springgreen, steelblue, tan, teal, thistle, tomato, turquoise, violet, wheat, white, whitesmoke, yellow, yellowgreen - A list or array of any of the above
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 named CSS color: aliceblue, antiquewhite, aqua, aquamarine, azure, beige, bisque, black, blanchedalmond, blue, blueviolet, brown, burlywood, cadetblue, chartreuse, chocolate, coral, cornflowerblue, cornsilk, crimson, cyan, darkblue, darkcyan, darkgoldenrod, darkgray, darkgrey, darkgreen, darkkhaki, darkmagenta, darkolivegreen, darkorange, darkorchid, darkred, darksalmon, darkseagreen, darkslateblue, darkslategray, darkslategrey, darkturquoise, darkviolet, deeppink, deepskyblue, dimgray, dimgrey, dodgerblue, firebrick, floralwhite, forestgreen, fuchsia, gainsboro, ghostwhite, gold, goldenrod, gray, grey, green, greenyellow, honeydew, hotpink, indianred, indigo, ivory, khaki, lavender, lavenderblush, lawngreen, lemonchiffon, lightblue, lightcoral, lightcyan, lightgoldenrodyellow, lightgray, lightgrey, lightgreen, lightpink, lightsalmon, lightseagreen, lightskyblue, lightslategray, lightslategrey, lightsteelblue, lightyellow, lime, limegreen, linen, magenta, maroon, mediumaquamarine, mediumblue, mediumorchid, mediumpurple, mediumseagreen, mediumslateblue, mediumspringgreen, mediumturquoise, mediumvioletred, midnightblue, mintcream, mistyrose, moccasin, navajowhite, navy, oldlace, olive, olivedrab, orange, orangered, orchid, palegoldenrod, palegreen, paleturquoise, palevioletred, papayawhip, peachpuff, peru, pink, plum, powderblue, purple, red, rosybrown, royalblue, rebeccapurple, saddlebrown, salmon, sandybrown, seagreen, seashell, sienna, silver, skyblue, slateblue, slategray, slategrey, snow, springgreen, steelblue, tan, teal, thistle, tomato, turquoise, violet, wheat, white, whitesmoke, yellow, yellowgreen - A list or array of any of the above Returns ------- str|numpy.ndarray """ return self["color"]
[ "def", "color", "(", "self", ")", ":", "return", "self", "[", "\"color\"", "]" ]
[ 15, 4 ]
[ 64, 28 ]
python
en
['en', 'error', 'th']
False
Font.colorsrc
(self)
Sets the source reference on Chart Studio Cloud for color . The 'colorsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str
Sets the source reference on Chart Studio Cloud for color . The 'colorsrc' property must be specified as a string or as a plotly.grid_objs.Column object
def colorsrc(self): """ Sets the source reference on Chart Studio Cloud for color . The 'colorsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["colorsrc"]
[ "def", "colorsrc", "(", "self", ")", ":", "return", "self", "[", "\"colorsrc\"", "]" ]
[ 73, 4 ]
[ 84, 31 ]
python
en
['en', 'error', 'th']
False
Font.family
(self)
HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart- studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include "Arial", "Balto", "Courier New", "Droid Sans",, "Droid Serif", "Droid Sans Mono", "Gravitas One", "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", "Raleway", "Times New Roman". The 'family' property is a string and must be specified as: - A non-empty string - A tuple, list, or one-dimensional numpy array of the above Returns ------- str|numpy.ndarray
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 if they aren't available on the system. The Chart Studio Cloud (at https://chart- studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include "Arial", "Balto", "Courier New", "Droid Sans",, "Droid Serif", "Droid Sans Mono", "Gravitas One", "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", "Raleway", "Times New Roman". The 'family' property is a string and must be specified as: - A non-empty string - A tuple, list, or one-dimensional numpy array of the above
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 preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart- studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include "Arial", "Balto", "Courier New", "Droid Sans",, "Droid Serif", "Droid Sans Mono", "Gravitas One", "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", "Raleway", "Times New Roman". The 'family' property is a string and must be specified as: - A non-empty string - A tuple, list, or one-dimensional numpy array of the above Returns ------- str|numpy.ndarray """ return self["family"]
[ "def", "family", "(", "self", ")", ":", "return", "self", "[", "\"family\"", "]" ]
[ 93, 4 ]
[ 116, 29 ]
python
en
['en', 'error', 'th']
False
Font.familysrc
(self)
Sets the source reference on Chart Studio Cloud for family . The 'familysrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str
Sets the source reference on Chart Studio Cloud for family . The 'familysrc' property must be specified as a string or as a plotly.grid_objs.Column object
def familysrc(self): """ Sets the source reference on Chart Studio Cloud for family . The 'familysrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["familysrc"]
[ "def", "familysrc", "(", "self", ")", ":", "return", "self", "[", "\"familysrc\"", "]" ]
[ 125, 4 ]
[ 136, 32 ]
python
en
['en', 'error', 'th']
False
Font.size
(self)
The 'size' property is a number and may be specified as: - An int or float in the interval [1, inf] - A tuple, list, or one-dimensional numpy array of the above Returns ------- int|float|numpy.ndarray
The 'size' property is a number and may be specified as: - An int or float in the interval [1, inf] - A tuple, list, or one-dimensional numpy array of the above
def size(self): """ The 'size' property is a number and may be specified as: - An int or float in the interval [1, inf] - A tuple, list, or one-dimensional numpy array of the above Returns ------- int|float|numpy.ndarray """ return self["size"]
[ "def", "size", "(", "self", ")", ":", "return", "self", "[", "\"size\"", "]" ]
[ 145, 4 ]
[ 155, 27 ]
python
en
['en', 'error', 'th']
False
Font.sizesrc
(self)
Sets the source reference on Chart Studio Cloud for size . The 'sizesrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str
Sets the source reference on Chart Studio Cloud for size . The 'sizesrc' property must be specified as a string or as a plotly.grid_objs.Column object
def sizesrc(self): """ Sets the source reference on Chart Studio Cloud for size . The 'sizesrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["sizesrc"]
[ "def", "sizesrc", "(", "self", ")", ":", "return", "self", "[", "\"sizesrc\"", "]" ]
[ 164, 4 ]
[ 175, 30 ]
python
en
['en', 'error', 'th']
False
Font.__init__
( self, arg=None, color=None, colorsrc=None, family=None, familysrc=None, size=None, sizesrc=None, **kwargs )
Construct a new Font object Sets the font used in hover labels. Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.heatmapgl.hoverlabel.Font` color colorsrc Sets the source reference on Chart Studio Cloud for color . family 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 if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on- premise) generates images on a server, where only a select number of fonts are installed and supported. These include "Arial", "Balto", "Courier New", "Droid Sans",, "Droid Serif", "Droid Sans Mono", "Gravitas One", "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", "Raleway", "Times New Roman". familysrc Sets the source reference on Chart Studio Cloud for family . size sizesrc Sets the source reference on Chart Studio Cloud for size . Returns ------- Font
Construct a new Font object Sets the font used in hover labels.
def __init__( self, arg=None, color=None, colorsrc=None, family=None, familysrc=None, size=None, sizesrc=None, **kwargs ): """ Construct a new Font object Sets the font used in hover labels. Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.heatmapgl.hoverlabel.Font` color colorsrc Sets the source reference on Chart Studio Cloud for color . family 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 if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on- premise) generates images on a server, where only a select number of fonts are installed and supported. These include "Arial", "Balto", "Courier New", "Droid Sans",, "Droid Serif", "Droid Sans Mono", "Gravitas One", "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", "Raleway", "Times New Roman". familysrc Sets the source reference on Chart Studio Cloud for family . size sizesrc Sets the source reference on Chart Studio Cloud for size . Returns ------- Font """ super(Font, self).__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return # Validate arg # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): arg = arg.to_plotly_json() elif isinstance(arg, dict): arg = _copy.copy(arg) else: raise ValueError( """\ The first argument to the plotly.graph_objs.heatmapgl.hoverlabel.Font constructor must be a dict or an instance of :class:`plotly.graph_objs.heatmapgl.hoverlabel.Font`""" ) # Handle skip_invalid # ------------------- self._skip_invalid = kwargs.pop("skip_invalid", False) self._validate = kwargs.pop("_validate", True) # Populate data dict with properties # ---------------------------------- _v = arg.pop("color", None) _v = color if color is not None else _v if _v is not None: self["color"] = _v _v = arg.pop("colorsrc", None) _v = colorsrc if colorsrc is not None else _v if _v is not None: self["colorsrc"] = _v _v = arg.pop("family", None) _v = family if family is not None else _v if _v is not None: self["family"] = _v _v = arg.pop("familysrc", None) _v = familysrc if familysrc is not None else _v if _v is not None: self["familysrc"] = _v _v = arg.pop("size", None) _v = size if size is not None else _v if _v is not None: self["size"] = _v _v = arg.pop("sizesrc", None) _v = sizesrc if sizesrc is not None else _v if _v is not None: self["sizesrc"] = _v # Process unknown kwargs # ---------------------- self._process_kwargs(**dict(arg, **kwargs)) # Reset skip_invalid # ------------------ self._skip_invalid = False
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "color", "=", "None", ",", "colorsrc", "=", "None", ",", "family", "=", "None", ",", "familysrc", "=", "None", ",", "size", "=", "None", ",", "sizesrc", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", "Font", ",", "self", ")", ".", "__init__", "(", "\"font\"", ")", "if", "\"_parent\"", "in", "kwargs", ":", "self", ".", "_parent", "=", "kwargs", "[", "\"_parent\"", "]", "return", "# Validate arg", "# ------------", "if", "arg", "is", "None", ":", "arg", "=", "{", "}", "elif", "isinstance", "(", "arg", ",", "self", ".", "__class__", ")", ":", "arg", "=", "arg", ".", "to_plotly_json", "(", ")", "elif", "isinstance", "(", "arg", ",", "dict", ")", ":", "arg", "=", "_copy", ".", "copy", "(", "arg", ")", "else", ":", "raise", "ValueError", "(", "\"\"\"\\\nThe first argument to the plotly.graph_objs.heatmapgl.hoverlabel.Font \nconstructor must be a dict or \nan instance of :class:`plotly.graph_objs.heatmapgl.hoverlabel.Font`\"\"\"", ")", "# Handle skip_invalid", "# -------------------", "self", ".", "_skip_invalid", "=", "kwargs", ".", "pop", "(", "\"skip_invalid\"", ",", "False", ")", "self", ".", "_validate", "=", "kwargs", ".", "pop", "(", "\"_validate\"", ",", "True", ")", "# Populate data dict with properties", "# ----------------------------------", "_v", "=", "arg", ".", "pop", "(", "\"color\"", ",", "None", ")", "_v", "=", "color", "if", "color", "is", "not", "None", "else", "_v", "if", "_v", "is", "not", "None", ":", "self", "[", "\"color\"", "]", "=", "_v", "_v", "=", "arg", ".", "pop", "(", "\"colorsrc\"", ",", "None", ")", "_v", "=", "colorsrc", "if", "colorsrc", "is", "not", "None", "else", "_v", "if", "_v", "is", "not", "None", ":", "self", "[", "\"colorsrc\"", "]", "=", "_v", "_v", "=", "arg", ".", "pop", "(", "\"family\"", ",", "None", ")", "_v", "=", "family", "if", "family", "is", "not", "None", "else", "_v", "if", "_v", "is", "not", "None", ":", "self", "[", "\"family\"", "]", "=", "_v", "_v", "=", "arg", ".", "pop", "(", "\"familysrc\"", ",", "None", ")", "_v", "=", "familysrc", "if", "familysrc", "is", "not", "None", "else", "_v", "if", "_v", "is", "not", "None", ":", "self", "[", "\"familysrc\"", "]", "=", "_v", "_v", "=", "arg", ".", "pop", "(", "\"size\"", ",", "None", ")", "_v", "=", "size", "if", "size", "is", "not", "None", "else", "_v", "if", "_v", "is", "not", "None", ":", "self", "[", "\"size\"", "]", "=", "_v", "_v", "=", "arg", ".", "pop", "(", "\"sizesrc\"", ",", "None", ")", "_v", "=", "sizesrc", "if", "sizesrc", "is", "not", "None", "else", "_v", "if", "_v", "is", "not", "None", ":", "self", "[", "\"sizesrc\"", "]", "=", "_v", "# Process unknown kwargs", "# ----------------------", "self", ".", "_process_kwargs", "(", "*", "*", "dict", "(", "arg", ",", "*", "*", "kwargs", ")", ")", "# Reset skip_invalid", "# ------------------", "self", ".", "_skip_invalid", "=", "False" ]
[ 215, 4 ]
[ 329, 34 ]
python
en
['en', 'error', 'th']
False
RadialAxis.domain
(self)
Polar chart subplots are not supported yet. This key has currently no effect. The 'domain' property is an info array that may be specified as: * a list or tuple of 2 elements where: (0) The 'domain[0]' property is a number and may be specified as: - An int or float in the interval [0, 1] (1) The 'domain[1]' property is a number and may be specified as: - An int or float in the interval [0, 1] Returns ------- list
Polar chart subplots are not supported yet. This key has currently no effect. The 'domain' property is an info array that may be specified as: * a list or tuple of 2 elements where: (0) The 'domain[0]' property is a number and may be specified as: - An int or float in the interval [0, 1] (1) The 'domain[1]' property is a number and may be specified as: - An int or float in the interval [0, 1]
def domain(self): """ Polar chart subplots are not supported yet. This key has currently no effect. The 'domain' property is an info array that may be specified as: * a list or tuple of 2 elements where: (0) The 'domain[0]' property is a number and may be specified as: - An int or float in the interval [0, 1] (1) The 'domain[1]' property is a number and may be specified as: - An int or float in the interval [0, 1] Returns ------- list """ return self["domain"]
[ "def", "domain", "(", "self", ")", ":", "return", "self", "[", "\"domain\"", "]" ]
[ 27, 4 ]
[ 44, 29 ]
python
en
['en', 'error', 'th']
False
RadialAxis.endpadding
(self)
Legacy polar charts are deprecated! Please switch to "polar" subplots. The 'endpadding' property is a number and may be specified as: - An int or float Returns ------- int|float
Legacy polar charts are deprecated! Please switch to "polar" subplots. The 'endpadding' property is a number and may be specified as: - An int or float
def endpadding(self): """ Legacy polar charts are deprecated! Please switch to "polar" subplots. The 'endpadding' property is a number and may be specified as: - An int or float Returns ------- int|float """ return self["endpadding"]
[ "def", "endpadding", "(", "self", ")", ":", "return", "self", "[", "\"endpadding\"", "]" ]
[ 53, 4 ]
[ 65, 33 ]
python
en
['en', 'error', 'th']
False
RadialAxis.orientation
(self)
Legacy polar charts are deprecated! Please switch to "polar" subplots. Sets the orientation (an angle with respect to the origin) of the radial axis. The 'orientation' property is a number and may be specified as: - An int or float Returns ------- int|float
Legacy polar charts are deprecated! Please switch to "polar" subplots. Sets the orientation (an angle with respect to the origin) of the radial axis. The 'orientation' property is a number and may be specified as: - An int or float
def orientation(self): """ Legacy polar charts are deprecated! Please switch to "polar" subplots. Sets the orientation (an angle with respect to the origin) of the radial axis. The 'orientation' property is a number and may be specified as: - An int or float Returns ------- int|float """ return self["orientation"]
[ "def", "orientation", "(", "self", ")", ":", "return", "self", "[", "\"orientation\"", "]" ]
[ 74, 4 ]
[ 87, 34 ]
python
en
['en', 'error', 'th']
False
RadialAxis.range
(self)
Legacy polar charts are deprecated! Please switch to "polar" subplots. Defines the start and end point of this radial axis. The 'range' property is an info array that may be specified as: * a list or tuple of 2 elements where: (0) The 'range[0]' property is a number and may be specified as: - An int or float (1) The 'range[1]' property is a number and may be specified as: - An int or float Returns ------- list
Legacy polar charts are deprecated! Please switch to "polar" subplots. Defines the start and end point of this radial axis. The 'range' property is an info array that may be specified as: * a list or tuple of 2 elements where: (0) The 'range[0]' property is a number and may be specified as: - An int or float (1) The 'range[1]' property is a number and may be specified as: - An int or float
def range(self): """ Legacy polar charts are deprecated! Please switch to "polar" subplots. Defines the start and end point of this radial axis. The 'range' property is an info array that may be specified as: * a list or tuple of 2 elements where: (0) The 'range[0]' property is a number and may be specified as: - An int or float (1) The 'range[1]' property is a number and may be specified as: - An int or float Returns ------- list """ return self["range"]
[ "def", "range", "(", "self", ")", ":", "return", "self", "[", "\"range\"", "]" ]
[ 96, 4 ]
[ 113, 28 ]
python
en
['en', 'error', 'th']
False
RadialAxis.showline
(self)
Legacy polar charts are deprecated! Please switch to "polar" subplots. Determines whether or not the line bounding this radial axis will be shown on the figure. The 'showline' property must be specified as a bool (either True, or False) Returns ------- bool
Legacy polar charts are deprecated! Please switch to "polar" subplots. Determines whether or not the line bounding this radial axis will be shown on the figure. The 'showline' property must be specified as a bool (either True, or False)
def showline(self): """ Legacy polar charts are deprecated! Please switch to "polar" subplots. Determines whether or not the line bounding this radial axis will be shown on the figure. The 'showline' property must be specified as a bool (either True, or False) Returns ------- bool """ return self["showline"]
[ "def", "showline", "(", "self", ")", ":", "return", "self", "[", "\"showline\"", "]" ]
[ 122, 4 ]
[ 135, 31 ]
python
en
['en', 'error', 'th']
False
RadialAxis.showticklabels
(self)
Legacy polar charts are deprecated! Please switch to "polar" subplots. Determines whether or not the radial axis ticks will feature tick labels. The 'showticklabels' property must be specified as a bool (either True, or False) Returns ------- bool
Legacy polar charts are deprecated! Please switch to "polar" subplots. Determines whether or not the radial axis ticks will feature tick labels. The 'showticklabels' property must be specified as a bool (either True, or False)
def showticklabels(self): """ Legacy polar charts are deprecated! Please switch to "polar" subplots. Determines whether or not the radial axis ticks will feature tick labels. The 'showticklabels' property must be specified as a bool (either True, or False) Returns ------- bool """ return self["showticklabels"]
[ "def", "showticklabels", "(", "self", ")", ":", "return", "self", "[", "\"showticklabels\"", "]" ]
[ 144, 4 ]
[ 157, 37 ]
python
en
['en', 'error', 'th']
False
RadialAxis.tickcolor
(self)
Legacy polar charts are deprecated! Please switch to "polar" subplots. Sets the color of the tick lines on this radial axis. 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%)') - A named CSS color: aliceblue, antiquewhite, aqua, aquamarine, azure, beige, bisque, black, blanchedalmond, blue, blueviolet, brown, burlywood, cadetblue, chartreuse, chocolate, coral, cornflowerblue, cornsilk, crimson, cyan, darkblue, darkcyan, darkgoldenrod, darkgray, darkgrey, darkgreen, darkkhaki, darkmagenta, darkolivegreen, darkorange, darkorchid, darkred, darksalmon, darkseagreen, darkslateblue, darkslategray, darkslategrey, darkturquoise, darkviolet, deeppink, deepskyblue, dimgray, dimgrey, dodgerblue, firebrick, floralwhite, forestgreen, fuchsia, gainsboro, ghostwhite, gold, goldenrod, gray, grey, green, greenyellow, honeydew, hotpink, indianred, indigo, ivory, khaki, lavender, lavenderblush, lawngreen, lemonchiffon, lightblue, lightcoral, lightcyan, lightgoldenrodyellow, lightgray, lightgrey, lightgreen, lightpink, lightsalmon, lightseagreen, lightskyblue, lightslategray, lightslategrey, lightsteelblue, lightyellow, lime, limegreen, linen, magenta, maroon, mediumaquamarine, mediumblue, mediumorchid, mediumpurple, mediumseagreen, mediumslateblue, mediumspringgreen, mediumturquoise, mediumvioletred, midnightblue, mintcream, mistyrose, moccasin, navajowhite, navy, oldlace, olive, olivedrab, orange, orangered, orchid, palegoldenrod, palegreen, paleturquoise, palevioletred, papayawhip, peachpuff, peru, pink, plum, powderblue, purple, red, rosybrown, royalblue, rebeccapurple, saddlebrown, salmon, sandybrown, seagreen, seashell, sienna, silver, skyblue, slateblue, slategray, slategrey, snow, springgreen, steelblue, tan, teal, thistle, tomato, turquoise, violet, wheat, white, whitesmoke, yellow, yellowgreen Returns ------- str
Legacy polar charts are deprecated! Please switch to "polar" subplots. Sets the color of the tick lines on this radial axis. 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%)') - A named CSS color: aliceblue, antiquewhite, aqua, aquamarine, azure, beige, bisque, black, blanchedalmond, blue, blueviolet, brown, burlywood, cadetblue, chartreuse, chocolate, coral, cornflowerblue, cornsilk, crimson, cyan, darkblue, darkcyan, darkgoldenrod, darkgray, darkgrey, darkgreen, darkkhaki, darkmagenta, darkolivegreen, darkorange, darkorchid, darkred, darksalmon, darkseagreen, darkslateblue, darkslategray, darkslategrey, darkturquoise, darkviolet, deeppink, deepskyblue, dimgray, dimgrey, dodgerblue, firebrick, floralwhite, forestgreen, fuchsia, gainsboro, ghostwhite, gold, goldenrod, gray, grey, green, greenyellow, honeydew, hotpink, indianred, indigo, ivory, khaki, lavender, lavenderblush, lawngreen, lemonchiffon, lightblue, lightcoral, lightcyan, lightgoldenrodyellow, lightgray, lightgrey, lightgreen, lightpink, lightsalmon, lightseagreen, lightskyblue, lightslategray, lightslategrey, lightsteelblue, lightyellow, lime, limegreen, linen, magenta, maroon, mediumaquamarine, mediumblue, mediumorchid, mediumpurple, mediumseagreen, mediumslateblue, mediumspringgreen, mediumturquoise, mediumvioletred, midnightblue, mintcream, mistyrose, moccasin, navajowhite, navy, oldlace, olive, olivedrab, orange, orangered, orchid, palegoldenrod, palegreen, paleturquoise, palevioletred, papayawhip, peachpuff, peru, pink, plum, powderblue, purple, red, rosybrown, royalblue, rebeccapurple, saddlebrown, salmon, sandybrown, seagreen, seashell, sienna, silver, skyblue, slateblue, slategray, slategrey, snow, springgreen, steelblue, tan, teal, thistle, tomato, turquoise, violet, wheat, white, whitesmoke, yellow, yellowgreen
def tickcolor(self): """ Legacy polar charts are deprecated! Please switch to "polar" subplots. Sets the color of the tick lines on this radial axis. 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%)') - A named CSS color: aliceblue, antiquewhite, aqua, aquamarine, azure, beige, bisque, black, blanchedalmond, blue, blueviolet, brown, burlywood, cadetblue, chartreuse, chocolate, coral, cornflowerblue, cornsilk, crimson, cyan, darkblue, darkcyan, darkgoldenrod, darkgray, darkgrey, darkgreen, darkkhaki, darkmagenta, darkolivegreen, darkorange, darkorchid, darkred, darksalmon, darkseagreen, darkslateblue, darkslategray, darkslategrey, darkturquoise, darkviolet, deeppink, deepskyblue, dimgray, dimgrey, dodgerblue, firebrick, floralwhite, forestgreen, fuchsia, gainsboro, ghostwhite, gold, goldenrod, gray, grey, green, greenyellow, honeydew, hotpink, indianred, indigo, ivory, khaki, lavender, lavenderblush, lawngreen, lemonchiffon, lightblue, lightcoral, lightcyan, lightgoldenrodyellow, lightgray, lightgrey, lightgreen, lightpink, lightsalmon, lightseagreen, lightskyblue, lightslategray, lightslategrey, lightsteelblue, lightyellow, lime, limegreen, linen, magenta, maroon, mediumaquamarine, mediumblue, mediumorchid, mediumpurple, mediumseagreen, mediumslateblue, mediumspringgreen, mediumturquoise, mediumvioletred, midnightblue, mintcream, mistyrose, moccasin, navajowhite, navy, oldlace, olive, olivedrab, orange, orangered, orchid, palegoldenrod, palegreen, paleturquoise, palevioletred, papayawhip, peachpuff, peru, pink, plum, powderblue, purple, red, rosybrown, royalblue, rebeccapurple, saddlebrown, salmon, sandybrown, seagreen, seashell, sienna, silver, skyblue, slateblue, slategray, slategrey, snow, springgreen, steelblue, tan, teal, thistle, tomato, turquoise, violet, wheat, white, whitesmoke, yellow, yellowgreen Returns ------- str """ return self["tickcolor"]
[ "def", "tickcolor", "(", "self", ")", ":", "return", "self", "[", "\"tickcolor\"", "]" ]
[ 166, 4 ]
[ 217, 32 ]
python
en
['en', 'error', 'th']
False
RadialAxis.ticklen
(self)
Legacy polar charts are deprecated! Please switch to "polar" subplots. Sets the length of the tick lines on this radial axis. The 'ticklen' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float
Legacy polar charts are deprecated! Please switch to "polar" subplots. Sets the length of the tick lines on this radial axis. The 'ticklen' property is a number and may be specified as: - An int or float in the interval [0, inf]
def ticklen(self): """ Legacy polar charts are deprecated! Please switch to "polar" subplots. Sets the length of the tick lines on this radial axis. 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\"", "]" ]
[ 226, 4 ]
[ 239, 30 ]
python
en
['en', 'error', 'th']
False
RadialAxis.tickorientation
(self)
Legacy polar charts are deprecated! Please switch to "polar" subplots. Sets the orientation (from the paper perspective) of the radial axis tick labels. The 'tickorientation' property is an enumeration that may be specified as: - One of the following enumeration values: ['horizontal', 'vertical'] Returns ------- Any
Legacy polar charts are deprecated! Please switch to "polar" subplots. Sets the orientation (from the paper perspective) of the radial axis tick labels. The 'tickorientation' property is an enumeration that may be specified as: - One of the following enumeration values: ['horizontal', 'vertical']
def tickorientation(self): """ Legacy polar charts are deprecated! Please switch to "polar" subplots. Sets the orientation (from the paper perspective) of the radial axis tick labels. The 'tickorientation' property is an enumeration that may be specified as: - One of the following enumeration values: ['horizontal', 'vertical'] Returns ------- Any """ return self["tickorientation"]
[ "def", "tickorientation", "(", "self", ")", ":", "return", "self", "[", "\"tickorientation\"", "]" ]
[ 248, 4 ]
[ 262, 38 ]
python
en
['en', 'error', 'th']
False
RadialAxis.ticksuffix
(self)
Legacy polar charts are deprecated! Please switch to "polar" subplots. Sets the length of the tick lines on this radial axis. The 'ticksuffix' property is a string and must be specified as: - A string - A number that will be converted to a string Returns ------- str
Legacy polar charts are deprecated! Please switch to "polar" subplots. Sets the length of the tick lines on this radial axis. 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): """ Legacy polar charts are deprecated! Please switch to "polar" subplots. Sets the length of the tick lines on this radial axis. 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\"", "]" ]
[ 271, 4 ]
[ 285, 33 ]
python
en
['en', 'error', 'th']
False
RadialAxis.visible
(self)
Legacy polar charts are deprecated! Please switch to "polar" subplots. Determines whether or not this axis will be visible. The 'visible' property must be specified as a bool (either True, or False) Returns ------- bool
Legacy polar charts are deprecated! Please switch to "polar" subplots. Determines whether or not this axis will be visible. The 'visible' property must be specified as a bool (either True, or False)
def visible(self): """ Legacy polar charts are deprecated! Please switch to "polar" subplots. Determines whether or not this axis will be visible. The 'visible' property must be specified as a bool (either True, or False) Returns ------- bool """ return self["visible"]
[ "def", "visible", "(", "self", ")", ":", "return", "self", "[", "\"visible\"", "]" ]
[ 294, 4 ]
[ 306, 30 ]
python
en
['en', 'error', 'th']
False
RadialAxis.__init__
( self, arg=None, domain=None, endpadding=None, orientation=None, range=None, showline=None, showticklabels=None, tickcolor=None, ticklen=None, tickorientation=None, ticksuffix=None, visible=None, **kwargs )
Construct a new RadialAxis object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.layout.RadialAxis` domain Polar chart subplots are not supported yet. This key has currently no effect. endpadding Legacy polar charts are deprecated! Please switch to "polar" subplots. orientation Legacy polar charts are deprecated! Please switch to "polar" subplots. Sets the orientation (an angle with respect to the origin) of the radial axis. range Legacy polar charts are deprecated! Please switch to "polar" subplots. Defines the start and end point of this radial axis. showline Legacy polar charts are deprecated! Please switch to "polar" subplots. Determines whether or not the line bounding this radial axis will be shown on the figure. showticklabels Legacy polar charts are deprecated! Please switch to "polar" subplots. Determines whether or not the radial axis ticks will feature tick labels. tickcolor Legacy polar charts are deprecated! Please switch to "polar" subplots. Sets the color of the tick lines on this radial axis. ticklen Legacy polar charts are deprecated! Please switch to "polar" subplots. Sets the length of the tick lines on this radial axis. tickorientation Legacy polar charts are deprecated! Please switch to "polar" subplots. Sets the orientation (from the paper perspective) of the radial axis tick labels. ticksuffix Legacy polar charts are deprecated! Please switch to "polar" subplots. Sets the length of the tick lines on this radial axis. visible Legacy polar charts are deprecated! Please switch to "polar" subplots. Determines whether or not this axis will be visible. Returns ------- RadialAxis
Construct a new RadialAxis object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.layout.RadialAxis` domain Polar chart subplots are not supported yet. This key has currently no effect. endpadding Legacy polar charts are deprecated! Please switch to "polar" subplots. orientation Legacy polar charts are deprecated! Please switch to "polar" subplots. Sets the orientation (an angle with respect to the origin) of the radial axis. range Legacy polar charts are deprecated! Please switch to "polar" subplots. Defines the start and end point of this radial axis. showline Legacy polar charts are deprecated! Please switch to "polar" subplots. Determines whether or not the line bounding this radial axis will be shown on the figure. showticklabels Legacy polar charts are deprecated! Please switch to "polar" subplots. Determines whether or not the radial axis ticks will feature tick labels. tickcolor Legacy polar charts are deprecated! Please switch to "polar" subplots. Sets the color of the tick lines on this radial axis. ticklen Legacy polar charts are deprecated! Please switch to "polar" subplots. Sets the length of the tick lines on this radial axis. tickorientation Legacy polar charts are deprecated! Please switch to "polar" subplots. Sets the orientation (from the paper perspective) of the radial axis tick labels. ticksuffix Legacy polar charts are deprecated! Please switch to "polar" subplots. Sets the length of the tick lines on this radial axis. visible Legacy polar charts are deprecated! Please switch to "polar" subplots. Determines whether or not this axis will be visible.
def __init__( self, arg=None, domain=None, endpadding=None, orientation=None, range=None, showline=None, showticklabels=None, tickcolor=None, ticklen=None, tickorientation=None, ticksuffix=None, visible=None, **kwargs ): """ Construct a new RadialAxis object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.layout.RadialAxis` domain Polar chart subplots are not supported yet. This key has currently no effect. endpadding Legacy polar charts are deprecated! Please switch to "polar" subplots. orientation Legacy polar charts are deprecated! Please switch to "polar" subplots. Sets the orientation (an angle with respect to the origin) of the radial axis. range Legacy polar charts are deprecated! Please switch to "polar" subplots. Defines the start and end point of this radial axis. showline Legacy polar charts are deprecated! Please switch to "polar" subplots. Determines whether or not the line bounding this radial axis will be shown on the figure. showticklabels Legacy polar charts are deprecated! Please switch to "polar" subplots. Determines whether or not the radial axis ticks will feature tick labels. tickcolor Legacy polar charts are deprecated! Please switch to "polar" subplots. Sets the color of the tick lines on this radial axis. ticklen Legacy polar charts are deprecated! Please switch to "polar" subplots. Sets the length of the tick lines on this radial axis. tickorientation Legacy polar charts are deprecated! Please switch to "polar" subplots. Sets the orientation (from the paper perspective) of the radial axis tick labels. ticksuffix Legacy polar charts are deprecated! Please switch to "polar" subplots. Sets the length of the tick lines on this radial axis. visible Legacy polar charts are deprecated! Please switch to "polar" subplots. Determines whether or not this axis will be visible. Returns ------- RadialAxis """ super(RadialAxis, self).__init__("radialaxis") if "_parent" in kwargs: self._parent = kwargs["_parent"] return # Validate arg # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): arg = arg.to_plotly_json() elif isinstance(arg, dict): arg = _copy.copy(arg) else: raise ValueError( """\ The first argument to the plotly.graph_objs.layout.RadialAxis constructor must be a dict or an instance of :class:`plotly.graph_objs.layout.RadialAxis`""" ) # Handle skip_invalid # ------------------- self._skip_invalid = kwargs.pop("skip_invalid", False) self._validate = kwargs.pop("_validate", True) # Populate data dict with properties # ---------------------------------- _v = arg.pop("domain", None) _v = domain if domain is not None else _v if _v is not None: self["domain"] = _v _v = arg.pop("endpadding", None) _v = endpadding if endpadding is not None else _v if _v is not None: self["endpadding"] = _v _v = arg.pop("orientation", None) _v = orientation if orientation is not None else _v if _v is not None: self["orientation"] = _v _v = arg.pop("range", None) _v = range if range is not None else _v if _v is not None: self["range"] = _v _v = arg.pop("showline", None) _v = showline if showline is not None else _v if _v is not None: self["showline"] = _v _v = arg.pop("showticklabels", None) _v = showticklabels if showticklabels is not None else _v if _v is not None: self["showticklabels"] = _v _v = arg.pop("tickcolor", None) _v = tickcolor if tickcolor is not None else _v if _v is not None: self["tickcolor"] = _v _v = arg.pop("ticklen", None) _v = ticklen if ticklen is not None else _v if _v is not None: self["ticklen"] = _v _v = arg.pop("tickorientation", None) _v = tickorientation if tickorientation is not None else _v if _v is not None: self["tickorientation"] = _v _v = arg.pop("ticksuffix", None) _v = ticksuffix if ticksuffix is not None else _v if _v is not None: self["ticksuffix"] = _v _v = arg.pop("visible", None) _v = visible if visible is not None else _v if _v is not None: self["visible"] = _v # Process unknown kwargs # ---------------------- self._process_kwargs(**dict(arg, **kwargs)) # Reset skip_invalid # ------------------ self._skip_invalid = False
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "domain", "=", "None", ",", "endpadding", "=", "None", ",", "orientation", "=", "None", ",", "range", "=", "None", ",", "showline", "=", "None", ",", "showticklabels", "=", "None", ",", "tickcolor", "=", "None", ",", "ticklen", "=", "None", ",", "tickorientation", "=", "None", ",", "ticksuffix", "=", "None", ",", "visible", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", "RadialAxis", ",", "self", ")", ".", "__init__", "(", "\"radialaxis\"", ")", "if", "\"_parent\"", "in", "kwargs", ":", "self", ".", "_parent", "=", "kwargs", "[", "\"_parent\"", "]", "return", "# Validate arg", "# ------------", "if", "arg", "is", "None", ":", "arg", "=", "{", "}", "elif", "isinstance", "(", "arg", ",", "self", ".", "__class__", ")", ":", "arg", "=", "arg", ".", "to_plotly_json", "(", ")", "elif", "isinstance", "(", "arg", ",", "dict", ")", ":", "arg", "=", "_copy", ".", "copy", "(", "arg", ")", "else", ":", "raise", "ValueError", "(", "\"\"\"\\\nThe first argument to the plotly.graph_objs.layout.RadialAxis \nconstructor must be a dict or \nan instance of :class:`plotly.graph_objs.layout.RadialAxis`\"\"\"", ")", "# Handle skip_invalid", "# -------------------", "self", ".", "_skip_invalid", "=", "kwargs", ".", "pop", "(", "\"skip_invalid\"", ",", "False", ")", "self", ".", "_validate", "=", "kwargs", ".", "pop", "(", "\"_validate\"", ",", "True", ")", "# Populate data dict with properties", "# ----------------------------------", "_v", "=", "arg", ".", "pop", "(", "\"domain\"", ",", "None", ")", "_v", "=", "domain", "if", "domain", "is", "not", "None", "else", "_v", "if", "_v", "is", "not", "None", ":", "self", "[", "\"domain\"", "]", "=", "_v", "_v", "=", "arg", ".", "pop", "(", "\"endpadding\"", ",", "None", ")", "_v", "=", "endpadding", "if", "endpadding", "is", "not", "None", "else", "_v", "if", "_v", "is", "not", "None", ":", "self", "[", "\"endpadding\"", "]", "=", "_v", "_v", "=", "arg", ".", "pop", "(", "\"orientation\"", ",", "None", ")", "_v", "=", "orientation", "if", "orientation", "is", "not", "None", "else", "_v", "if", "_v", "is", "not", "None", ":", "self", "[", "\"orientation\"", "]", "=", "_v", "_v", "=", "arg", ".", "pop", "(", "\"range\"", ",", "None", ")", "_v", "=", "range", "if", "range", "is", "not", "None", "else", "_v", "if", "_v", "is", "not", "None", ":", "self", "[", "\"range\"", "]", "=", "_v", "_v", "=", "arg", ".", "pop", "(", "\"showline\"", ",", "None", ")", "_v", "=", "showline", "if", "showline", "is", "not", "None", "else", "_v", "if", "_v", "is", "not", "None", ":", "self", "[", "\"showline\"", "]", "=", "_v", "_v", "=", "arg", ".", "pop", "(", "\"showticklabels\"", ",", "None", ")", "_v", "=", "showticklabels", "if", "showticklabels", "is", "not", "None", "else", "_v", "if", "_v", "is", "not", "None", ":", "self", "[", "\"showticklabels\"", "]", "=", "_v", "_v", "=", "arg", ".", "pop", "(", "\"tickcolor\"", ",", "None", ")", "_v", "=", "tickcolor", "if", "tickcolor", "is", "not", "None", "else", "_v", "if", "_v", "is", "not", "None", ":", "self", "[", "\"tickcolor\"", "]", "=", "_v", "_v", "=", "arg", ".", "pop", "(", "\"ticklen\"", ",", "None", ")", "_v", "=", "ticklen", "if", "ticklen", "is", "not", "None", "else", "_v", "if", "_v", "is", "not", "None", ":", "self", "[", "\"ticklen\"", "]", "=", "_v", "_v", "=", "arg", ".", "pop", "(", "\"tickorientation\"", ",", "None", ")", "_v", "=", "tickorientation", "if", "tickorientation", "is", "not", "None", "else", "_v", "if", "_v", "is", "not", "None", ":", "self", "[", "\"tickorientation\"", "]", "=", "_v", "_v", "=", "arg", ".", "pop", "(", "\"ticksuffix\"", ",", "None", ")", "_v", "=", "ticksuffix", "if", "ticksuffix", "is", "not", "None", "else", "_v", "if", "_v", "is", "not", "None", ":", "self", "[", "\"ticksuffix\"", "]", "=", "_v", "_v", "=", "arg", ".", "pop", "(", "\"visible\"", ",", "None", ")", "_v", "=", "visible", "if", "visible", "is", "not", "None", "else", "_v", "if", "_v", "is", "not", "None", ":", "self", "[", "\"visible\"", "]", "=", "_v", "# Process unknown kwargs", "# ----------------------", "self", ".", "_process_kwargs", "(", "*", "*", "dict", "(", "arg", ",", "*", "*", "kwargs", ")", ")", "# Reset skip_invalid", "# ------------------", "self", ".", "_skip_invalid", "=", "False" ]
[ 361, 4 ]
[ 513, 34 ]
python
en
['en', 'error', 'th']
False
BaseInstance3DBoxes.volume
(self)
torch.Tensor: A vector with volume of each box.
torch.Tensor: A vector with volume of each box.
def volume(self): """torch.Tensor: A vector with volume of each box.""" return self.tensor[:, 3] * self.tensor[:, 4] * self.tensor[:, 5]
[ "def", "volume", "(", "self", ")", ":", "return", "self", ".", "tensor", "[", ":", ",", "3", "]", "*", "self", ".", "tensor", "[", ":", ",", "4", "]", "*", "self", ".", "tensor", "[", ":", ",", "5", "]" ]
[ 67, 4 ]
[ 69, 72 ]
python
en
['en', 'en', 'en']
True
BaseInstance3DBoxes.dims
(self)
torch.Tensor: Corners of each box with size (N, 8, 3).
torch.Tensor: Corners of each box with size (N, 8, 3).
def dims(self): """torch.Tensor: Corners of each box with size (N, 8, 3).""" return self.tensor[:, 3:6]
[ "def", "dims", "(", "self", ")", ":", "return", "self", ".", "tensor", "[", ":", ",", "3", ":", "6", "]" ]
[ 72, 4 ]
[ 74, 34 ]
python
en
['en', 'en', 'en']
True
BaseInstance3DBoxes.yaw
(self)
torch.Tensor: A vector with yaw of each box.
torch.Tensor: A vector with yaw of each box.
def yaw(self): """torch.Tensor: A vector with yaw of each box.""" return self.tensor[:, 6]
[ "def", "yaw", "(", "self", ")", ":", "return", "self", ".", "tensor", "[", ":", ",", "6", "]" ]
[ 77, 4 ]
[ 79, 32 ]
python
en
['en', 'en', 'en']
True
BaseInstance3DBoxes.height
(self)
torch.Tensor: A vector with height of each box.
torch.Tensor: A vector with height of each box.
def height(self): """torch.Tensor: A vector with height of each box.""" return self.tensor[:, 5]
[ "def", "height", "(", "self", ")", ":", "return", "self", ".", "tensor", "[", ":", ",", "5", "]" ]
[ 82, 4 ]
[ 84, 32 ]
python
en
['en', 'en', 'en']
True
BaseInstance3DBoxes.top_height
(self)
torch.Tensor: A vector with the top height of each box.
torch.Tensor: A vector with the top height of each box.
def top_height(self): """torch.Tensor: A vector with the top height of each box.""" return self.bottom_height + self.height
[ "def", "top_height", "(", "self", ")", ":", "return", "self", ".", "bottom_height", "+", "self", ".", "height" ]
[ 87, 4 ]
[ 89, 47 ]
python
en
['en', 'en', 'en']
True
BaseInstance3DBoxes.bottom_height
(self)
torch.Tensor: A vector with bottom's height of each box.
torch.Tensor: A vector with bottom's height of each box.
def bottom_height(self): """torch.Tensor: A vector with bottom's height of each box.""" return self.tensor[:, 2]
[ "def", "bottom_height", "(", "self", ")", ":", "return", "self", ".", "tensor", "[", ":", ",", "2", "]" ]
[ 92, 4 ]
[ 94, 32 ]
python
en
['en', 'en', 'en']
True
BaseInstance3DBoxes.center
(self)
Calculate the center of all the boxes. Note: In the MMDetection3D's convention, the bottom center is usually taken as the default center. The relative position of the centers in different kinds of boxes are different, e.g., the relative center of a boxes is (0.5, 1.0, 0.5) in camera and (0.5, 0.5, 0) in lidar. It is recommended to use ``bottom_center`` or ``gravity_center`` for more clear usage. Returns: torch.Tensor: A tensor with center of each box.
Calculate the center of all the boxes.
def center(self): """Calculate the center of all the boxes. Note: In the MMDetection3D's convention, the bottom center is usually taken as the default center. The relative position of the centers in different kinds of boxes are different, e.g., the relative center of a boxes is (0.5, 1.0, 0.5) in camera and (0.5, 0.5, 0) in lidar. It is recommended to use ``bottom_center`` or ``gravity_center`` for more clear usage. Returns: torch.Tensor: A tensor with center of each box. """ return self.bottom_center
[ "def", "center", "(", "self", ")", ":", "return", "self", ".", "bottom_center" ]
[ 97, 4 ]
[ 113, 33 ]
python
en
['en', 'en', 'en']
True
BaseInstance3DBoxes.bottom_center
(self)
torch.Tensor: A tensor with center of each box.
torch.Tensor: A tensor with center of each box.
def bottom_center(self): """torch.Tensor: A tensor with center of each box.""" return self.tensor[:, :3]
[ "def", "bottom_center", "(", "self", ")", ":", "return", "self", ".", "tensor", "[", ":", ",", ":", "3", "]" ]
[ 116, 4 ]
[ 118, 33 ]
python
en
['en', 'en', 'en']
True
BaseInstance3DBoxes.gravity_center
(self)
torch.Tensor: A tensor with center of each box.
torch.Tensor: A tensor with center of each box.
def gravity_center(self): """torch.Tensor: A tensor with center of each box.""" pass
[ "def", "gravity_center", "(", "self", ")", ":", "pass" ]
[ 121, 4 ]
[ 123, 12 ]
python
en
['en', 'en', 'en']
True
BaseInstance3DBoxes.corners
(self)
torch.Tensor: a tensor with 8 corners of each box.
torch.Tensor: a tensor with 8 corners of each box.
def corners(self): """torch.Tensor: a tensor with 8 corners of each box.""" pass
[ "def", "corners", "(", "self", ")", ":", "pass" ]
[ 126, 4 ]
[ 128, 12 ]
python
en
['en', 'en', 'en']
True
BaseInstance3DBoxes.rotate
(self, angles, axis=0)
Calculate whether the points are in any of the boxes. Args: angles (float): Rotation angles. axis (int): The axis to rotate the boxes.
Calculate whether the points are in any of the boxes.
def rotate(self, angles, axis=0): """Calculate whether the points are in any of the boxes. Args: angles (float): Rotation angles. axis (int): The axis to rotate the boxes. """ pass
[ "def", "rotate", "(", "self", ",", "angles", ",", "axis", "=", "0", ")", ":", "pass" ]
[ 131, 4 ]
[ 138, 12 ]
python
en
['en', 'en', 'en']
True
BaseInstance3DBoxes.flip
(self, bev_direction='horizontal')
Flip the boxes in BEV along given BEV direction.
Flip the boxes in BEV along given BEV direction.
def flip(self, bev_direction='horizontal'): """Flip the boxes in BEV along given BEV direction.""" pass
[ "def", "flip", "(", "self", ",", "bev_direction", "=", "'horizontal'", ")", ":", "pass" ]
[ 141, 4 ]
[ 143, 12 ]
python
en
['en', 'da', 'en']
True
BaseInstance3DBoxes.translate
(self, trans_vector)
Calculate whether the points are in any of the boxes. Args: trans_vector (torch.Tensor): Translation vector of size 1x3.
Calculate whether the points are in any of the boxes.
def translate(self, trans_vector): """Calculate whether the points are in any of the boxes. Args: trans_vector (torch.Tensor): Translation vector of size 1x3. """ if not isinstance(trans_vector, torch.Tensor): trans_vector = self.tensor.new_tensor(trans_vector) self.tensor[:, :3] += trans_vector
[ "def", "translate", "(", "self", ",", "trans_vector", ")", ":", "if", "not", "isinstance", "(", "trans_vector", ",", "torch", ".", "Tensor", ")", ":", "trans_vector", "=", "self", ".", "tensor", ".", "new_tensor", "(", "trans_vector", ")", "self", ".", "tensor", "[", ":", ",", ":", "3", "]", "+=", "trans_vector" ]
[ 145, 4 ]
[ 153, 42 ]
python
en
['en', 'en', 'en']
True
BaseInstance3DBoxes.in_range_3d
(self, box_range)
Check whether the boxes are in the given range. Args: box_range (list | torch.Tensor): The range of box (x_min, y_min, z_min, x_max, y_max, z_max) Note: In the original implementation of SECOND, checking whether a box in the range checks whether the points are in a convex polygon, we try to reduce the burden for simpler cases. Returns: torch.Tensor: A binary vector indicating whether each box is \ inside the reference range.
Check whether the boxes are in the given range.
def in_range_3d(self, box_range): """Check whether the boxes are in the given range. Args: box_range (list | torch.Tensor): The range of box (x_min, y_min, z_min, x_max, y_max, z_max) Note: In the original implementation of SECOND, checking whether a box in the range checks whether the points are in a convex polygon, we try to reduce the burden for simpler cases. Returns: torch.Tensor: A binary vector indicating whether each box is \ inside the reference range. """ in_range_flags = ((self.tensor[:, 0] > box_range[0]) & (self.tensor[:, 1] > box_range[1]) & (self.tensor[:, 2] > box_range[2]) & (self.tensor[:, 0] < box_range[3]) & (self.tensor[:, 1] < box_range[4]) & (self.tensor[:, 2] < box_range[5])) return in_range_flags
[ "def", "in_range_3d", "(", "self", ",", "box_range", ")", ":", "in_range_flags", "=", "(", "(", "self", ".", "tensor", "[", ":", ",", "0", "]", ">", "box_range", "[", "0", "]", ")", "&", "(", "self", ".", "tensor", "[", ":", ",", "1", "]", ">", "box_range", "[", "1", "]", ")", "&", "(", "self", ".", "tensor", "[", ":", ",", "2", "]", ">", "box_range", "[", "2", "]", ")", "&", "(", "self", ".", "tensor", "[", ":", ",", "0", "]", "<", "box_range", "[", "3", "]", ")", "&", "(", "self", ".", "tensor", "[", ":", ",", "1", "]", "<", "box_range", "[", "4", "]", ")", "&", "(", "self", ".", "tensor", "[", ":", ",", "2", "]", "<", "box_range", "[", "5", "]", ")", ")", "return", "in_range_flags" ]
[ 155, 4 ]
[ 177, 29 ]
python
en
['en', 'en', 'en']
True
BaseInstance3DBoxes.in_range_bev
(self, box_range)
Check whether the boxes are in the given range. Args: box_range (list | torch.Tensor): The range of box in order of (x_min, y_min, x_max, y_max). Returns: torch.Tensor: Indicating whether each box is inside \ the reference range.
Check whether the boxes are in the given range.
def in_range_bev(self, box_range): """Check whether the boxes are in the given range. Args: box_range (list | torch.Tensor): The range of box in order of (x_min, y_min, x_max, y_max). Returns: torch.Tensor: Indicating whether each box is inside \ the reference range. """ pass
[ "def", "in_range_bev", "(", "self", ",", "box_range", ")", ":", "pass" ]
[ 180, 4 ]
[ 191, 12 ]
python
en
['en', 'en', 'en']
True
BaseInstance3DBoxes.convert_to
(self, dst, rt_mat=None)
Convert self to ``dst`` mode. Args: dst (:obj:`BoxMode`): The target Box mode. rt_mat (np.ndarray | torch.Tensor): The rotation and translation matrix between different coordinates. Defaults to None. The conversion from `src` coordinates to `dst` coordinates usually comes along the change of sensors, e.g., from camera to LiDAR. This requires a transformation matrix. Returns: :obj:`BaseInstance3DBoxes`: The converted box of the same type \ in the `dst` mode.
Convert self to ``dst`` mode.
def convert_to(self, dst, rt_mat=None): """Convert self to ``dst`` mode. Args: dst (:obj:`BoxMode`): The target Box mode. rt_mat (np.ndarray | torch.Tensor): The rotation and translation matrix between different coordinates. Defaults to None. The conversion from `src` coordinates to `dst` coordinates usually comes along the change of sensors, e.g., from camera to LiDAR. This requires a transformation matrix. Returns: :obj:`BaseInstance3DBoxes`: The converted box of the same type \ in the `dst` mode. """ pass
[ "def", "convert_to", "(", "self", ",", "dst", ",", "rt_mat", "=", "None", ")", ":", "pass" ]
[ 194, 4 ]
[ 209, 12 ]
python
en
['en', 'en', 'en']
True
BaseInstance3DBoxes.scale
(self, scale_factor)
Scale the box with horizontal and vertical scaling factors. Args: scale_factors (float): Scale factors to scale the boxes.
Scale the box with horizontal and vertical scaling factors.
def scale(self, scale_factor): """Scale the box with horizontal and vertical scaling factors. Args: scale_factors (float): Scale factors to scale the boxes. """ self.tensor[:, :6] *= scale_factor self.tensor[:, 7:] *= scale_factor
[ "def", "scale", "(", "self", ",", "scale_factor", ")", ":", "self", ".", "tensor", "[", ":", ",", ":", "6", "]", "*=", "scale_factor", "self", ".", "tensor", "[", ":", ",", "7", ":", "]", "*=", "scale_factor" ]
[ 211, 4 ]
[ 218, 42 ]
python
en
['en', 'en', 'en']
True
BaseInstance3DBoxes.limit_yaw
(self, offset=0.5, period=np.pi)
Limit the yaw to a given period and offset. Args: offset (float): The offset of the yaw. period (float): The expected period.
Limit the yaw to a given period and offset.
def limit_yaw(self, offset=0.5, period=np.pi): """Limit the yaw to a given period and offset. Args: offset (float): The offset of the yaw. period (float): The expected period. """ self.tensor[:, 6] = limit_period(self.tensor[:, 6], offset, period)
[ "def", "limit_yaw", "(", "self", ",", "offset", "=", "0.5", ",", "period", "=", "np", ".", "pi", ")", ":", "self", ".", "tensor", "[", ":", ",", "6", "]", "=", "limit_period", "(", "self", ".", "tensor", "[", ":", ",", "6", "]", ",", "offset", ",", "period", ")" ]
[ 220, 4 ]
[ 227, 75 ]
python
en
['en', 'en', 'en']
True
BaseInstance3DBoxes.nonempty
(self, threshold: float = 0.0)
Find boxes that are non-empty. A box is considered empty, if either of its side is no larger than threshold. Args: threshold (float): The threshold of minimal sizes. Returns: torch.Tensor: A binary vector which represents whether each \ box is empty (False) or non-empty (True).
Find boxes that are non-empty.
def nonempty(self, threshold: float = 0.0): """Find boxes that are non-empty. A box is considered empty, if either of its side is no larger than threshold. Args: threshold (float): The threshold of minimal sizes. Returns: torch.Tensor: A binary vector which represents whether each \ box is empty (False) or non-empty (True). """ box = self.tensor size_x = box[..., 3] size_y = box[..., 4] size_z = box[..., 5] keep = ((size_x > threshold) & (size_y > threshold) & (size_z > threshold)) return keep
[ "def", "nonempty", "(", "self", ",", "threshold", ":", "float", "=", "0.0", ")", ":", "box", "=", "self", ".", "tensor", "size_x", "=", "box", "[", "...", ",", "3", "]", "size_y", "=", "box", "[", "...", ",", "4", "]", "size_z", "=", "box", "[", "...", ",", "5", "]", "keep", "=", "(", "(", "size_x", ">", "threshold", ")", "&", "(", "size_y", ">", "threshold", ")", "&", "(", "size_z", ">", "threshold", ")", ")", "return", "keep" ]
[ 229, 4 ]
[ 248, 19 ]
python
en
['en', 'en', 'en']
True
BaseInstance3DBoxes.__getitem__
(self, item)
Note: The following usage are allowed: 1. `new_boxes = boxes[3]`: return a `Boxes` that contains only one box. 2. `new_boxes = boxes[2:10]`: return a slice of boxes. 3. `new_boxes = boxes[vector]`: where vector is a torch.BoolTensor with `length = len(boxes)`. Nonzero elements in the vector will be selected. Note that the returned Boxes might share storage with this Boxes, subject to Pytorch's indexing semantics. Returns: :obj:`BaseInstances3DBoxes`: A new object of \ :class:`BaseInstances3DBoxes` after indexing.
Note: The following usage are allowed: 1. `new_boxes = boxes[3]`: return a `Boxes` that contains only one box. 2. `new_boxes = boxes[2:10]`: return a slice of boxes. 3. `new_boxes = boxes[vector]`: where vector is a torch.BoolTensor with `length = len(boxes)`. Nonzero elements in the vector will be selected. Note that the returned Boxes might share storage with this Boxes, subject to Pytorch's indexing semantics.
def __getitem__(self, item): """ Note: The following usage are allowed: 1. `new_boxes = boxes[3]`: return a `Boxes` that contains only one box. 2. `new_boxes = boxes[2:10]`: return a slice of boxes. 3. `new_boxes = boxes[vector]`: where vector is a torch.BoolTensor with `length = len(boxes)`. Nonzero elements in the vector will be selected. Note that the returned Boxes might share storage with this Boxes, subject to Pytorch's indexing semantics. Returns: :obj:`BaseInstances3DBoxes`: A new object of \ :class:`BaseInstances3DBoxes` after indexing. """ original_type = type(self) if isinstance(item, int): return original_type( self.tensor[item].view(1, -1), box_dim=self.box_dim, with_yaw=self.with_yaw) b = self.tensor[item] assert b.dim() == 2, \ f'Indexing on Boxes with {item} failed to return a matrix!' return original_type(b, box_dim=self.box_dim, with_yaw=self.with_yaw)
[ "def", "__getitem__", "(", "self", ",", "item", ")", ":", "original_type", "=", "type", "(", "self", ")", "if", "isinstance", "(", "item", ",", "int", ")", ":", "return", "original_type", "(", "self", ".", "tensor", "[", "item", "]", ".", "view", "(", "1", ",", "-", "1", ")", ",", "box_dim", "=", "self", ".", "box_dim", ",", "with_yaw", "=", "self", ".", "with_yaw", ")", "b", "=", "self", ".", "tensor", "[", "item", "]", "assert", "b", ".", "dim", "(", ")", "==", "2", ",", "f'Indexing on Boxes with {item} failed to return a matrix!'", "return", "original_type", "(", "b", ",", "box_dim", "=", "self", ".", "box_dim", ",", "with_yaw", "=", "self", ".", "with_yaw", ")" ]
[ 250, 4 ]
[ 277, 77 ]
python
en
['en', 'error', 'th']
False
BaseInstance3DBoxes.__len__
(self)
int: Number of boxes in the current object.
int: Number of boxes in the current object.
def __len__(self): """int: Number of boxes in the current object.""" return self.tensor.shape[0]
[ "def", "__len__", "(", "self", ")", ":", "return", "self", ".", "tensor", ".", "shape", "[", "0", "]" ]
[ 279, 4 ]
[ 281, 35 ]
python
en
['en', 'en', 'en']
True
BaseInstance3DBoxes.__repr__
(self)
str: Return a strings that describes the object.
str: Return a strings that describes the object.
def __repr__(self): """str: Return a strings that describes the object.""" return self.__class__.__name__ + '(\n ' + str(self.tensor) + ')'
[ "def", "__repr__", "(", "self", ")", ":", "return", "self", ".", "__class__", ".", "__name__", "+", "'(\\n '", "+", "str", "(", "self", ".", "tensor", ")", "+", "')'" ]
[ 283, 4 ]
[ 285, 75 ]
python
en
['en', 'en', 'en']
True
BaseInstance3DBoxes.cat
(cls, boxes_list)
Concatenate a list of Boxes into a single Boxes. Args: boxes_list (list[:obj:`BaseInstances3DBoxes`]): List of boxes. Returns: :obj:`BaseInstances3DBoxes`: The concatenated Boxes.
Concatenate a list of Boxes into a single Boxes.
def cat(cls, boxes_list): """Concatenate a list of Boxes into a single Boxes. Args: boxes_list (list[:obj:`BaseInstances3DBoxes`]): List of boxes. Returns: :obj:`BaseInstances3DBoxes`: The concatenated Boxes. """ assert isinstance(boxes_list, (list, tuple)) if len(boxes_list) == 0: return cls(torch.empty(0)) assert all(isinstance(box, cls) for box in boxes_list) # use torch.cat (v.s. layers.cat) # so the returned boxes never share storage with input cat_boxes = cls( torch.cat([b.tensor for b in boxes_list], dim=0), box_dim=boxes_list[0].tensor.shape[1], with_yaw=boxes_list[0].with_yaw) return cat_boxes
[ "def", "cat", "(", "cls", ",", "boxes_list", ")", ":", "assert", "isinstance", "(", "boxes_list", ",", "(", "list", ",", "tuple", ")", ")", "if", "len", "(", "boxes_list", ")", "==", "0", ":", "return", "cls", "(", "torch", ".", "empty", "(", "0", ")", ")", "assert", "all", "(", "isinstance", "(", "box", ",", "cls", ")", "for", "box", "in", "boxes_list", ")", "# use torch.cat (v.s. layers.cat)", "# so the returned boxes never share storage with input", "cat_boxes", "=", "cls", "(", "torch", ".", "cat", "(", "[", "b", ".", "tensor", "for", "b", "in", "boxes_list", "]", ",", "dim", "=", "0", ")", ",", "box_dim", "=", "boxes_list", "[", "0", "]", ".", "tensor", ".", "shape", "[", "1", "]", ",", "with_yaw", "=", "boxes_list", "[", "0", "]", ".", "with_yaw", ")", "return", "cat_boxes" ]
[ 288, 4 ]
[ 308, 24 ]
python
en
['en', 'en', 'en']
True
BaseInstance3DBoxes.to
(self, device)
Convert current boxes to a specific device. Args: device (str | :obj:`torch.device`): The name of the device. Returns: :obj:`BaseInstance3DBoxes`: A new boxes object on the \ specific device.
Convert current boxes to a specific device.
def to(self, device): """Convert current boxes to a specific device. Args: device (str | :obj:`torch.device`): The name of the device. Returns: :obj:`BaseInstance3DBoxes`: A new boxes object on the \ specific device. """ original_type = type(self) return original_type( self.tensor.to(device), box_dim=self.box_dim, with_yaw=self.with_yaw)
[ "def", "to", "(", "self", ",", "device", ")", ":", "original_type", "=", "type", "(", "self", ")", "return", "original_type", "(", "self", ".", "tensor", ".", "to", "(", "device", ")", ",", "box_dim", "=", "self", ".", "box_dim", ",", "with_yaw", "=", "self", ".", "with_yaw", ")" ]
[ 310, 4 ]
[ 324, 35 ]
python
en
['en', 'en', 'en']
True
BaseInstance3DBoxes.clone
(self)
Clone the Boxes. Returns: :obj:`BaseInstance3DBoxes`: Box object with the same properties \ as self.
Clone the Boxes.
def clone(self): """Clone the Boxes. Returns: :obj:`BaseInstance3DBoxes`: Box object with the same properties \ as self. """ original_type = type(self) return original_type( self.tensor.clone(), box_dim=self.box_dim, with_yaw=self.with_yaw)
[ "def", "clone", "(", "self", ")", ":", "original_type", "=", "type", "(", "self", ")", "return", "original_type", "(", "self", ".", "tensor", ".", "clone", "(", ")", ",", "box_dim", "=", "self", ".", "box_dim", ",", "with_yaw", "=", "self", ".", "with_yaw", ")" ]
[ 326, 4 ]
[ 335, 78 ]
python
en
['en', 'en', 'en']
True
BaseInstance3DBoxes.device
(self)
str: The device of the boxes are on.
str: The device of the boxes are on.
def device(self): """str: The device of the boxes are on.""" return self.tensor.device
[ "def", "device", "(", "self", ")", ":", "return", "self", ".", "tensor", ".", "device" ]
[ 338, 4 ]
[ 340, 33 ]
python
en
['en', 'en', 'en']
True
BaseInstance3DBoxes.__iter__
(self)
Yield a box as a Tensor of shape (4,) at a time. Returns: torch.Tensor: A box of shape (4,).
Yield a box as a Tensor of shape (4,) at a time.
def __iter__(self): """Yield a box as a Tensor of shape (4,) at a time. Returns: torch.Tensor: A box of shape (4,). """ yield from self.tensor
[ "def", "__iter__", "(", "self", ")", ":", "yield", "from", "self", ".", "tensor" ]
[ 342, 4 ]
[ 348, 30 ]
python
en
['en', 'en', 'en']
True
BaseInstance3DBoxes.height_overlaps
(cls, boxes1, boxes2, mode='iou')
Calculate height overlaps of two boxes. Note: This function calculates the height overlaps between boxes1 and boxes2, boxes1 and boxes2 should be in the same type. Args: boxes1 (:obj:`BaseInstanceBoxes`): Boxes 1 contain N boxes. boxes2 (:obj:`BaseInstanceBoxes`): Boxes 2 contain M boxes. mode (str, optional): Mode of iou calculation. Defaults to 'iou'. Returns: torch.Tensor: Calculated iou of boxes.
Calculate height overlaps of two boxes.
def height_overlaps(cls, boxes1, boxes2, mode='iou'): """Calculate height overlaps of two boxes. Note: This function calculates the height overlaps between boxes1 and boxes2, boxes1 and boxes2 should be in the same type. Args: boxes1 (:obj:`BaseInstanceBoxes`): Boxes 1 contain N boxes. boxes2 (:obj:`BaseInstanceBoxes`): Boxes 2 contain M boxes. mode (str, optional): Mode of iou calculation. Defaults to 'iou'. Returns: torch.Tensor: Calculated iou of boxes. """ assert isinstance(boxes1, BaseInstance3DBoxes) assert isinstance(boxes2, BaseInstance3DBoxes) assert type(boxes1) == type(boxes2), '"boxes1" and "boxes2" should' \ f'be in the same type, got {type(boxes1)} and {type(boxes2)}.' boxes1_top_height = boxes1.top_height.view(-1, 1) boxes1_bottom_height = boxes1.bottom_height.view(-1, 1) boxes2_top_height = boxes2.top_height.view(1, -1) boxes2_bottom_height = boxes2.bottom_height.view(1, -1) heighest_of_bottom = torch.max(boxes1_bottom_height, boxes2_bottom_height) lowest_of_top = torch.min(boxes1_top_height, boxes2_top_height) overlaps_h = torch.clamp(lowest_of_top - heighest_of_bottom, min=0) return overlaps_h
[ "def", "height_overlaps", "(", "cls", ",", "boxes1", ",", "boxes2", ",", "mode", "=", "'iou'", ")", ":", "assert", "isinstance", "(", "boxes1", ",", "BaseInstance3DBoxes", ")", "assert", "isinstance", "(", "boxes2", ",", "BaseInstance3DBoxes", ")", "assert", "type", "(", "boxes1", ")", "==", "type", "(", "boxes2", ")", ",", "'\"boxes1\" and \"boxes2\" should'", "f'be in the same type, got {type(boxes1)} and {type(boxes2)}.'", "boxes1_top_height", "=", "boxes1", ".", "top_height", ".", "view", "(", "-", "1", ",", "1", ")", "boxes1_bottom_height", "=", "boxes1", ".", "bottom_height", ".", "view", "(", "-", "1", ",", "1", ")", "boxes2_top_height", "=", "boxes2", ".", "top_height", ".", "view", "(", "1", ",", "-", "1", ")", "boxes2_bottom_height", "=", "boxes2", ".", "bottom_height", ".", "view", "(", "1", ",", "-", "1", ")", "heighest_of_bottom", "=", "torch", ".", "max", "(", "boxes1_bottom_height", ",", "boxes2_bottom_height", ")", "lowest_of_top", "=", "torch", ".", "min", "(", "boxes1_top_height", ",", "boxes2_top_height", ")", "overlaps_h", "=", "torch", ".", "clamp", "(", "lowest_of_top", "-", "heighest_of_bottom", ",", "min", "=", "0", ")", "return", "overlaps_h" ]
[ 351, 4 ]
[ 380, 25 ]
python
en
['en', 'en', 'en']
True
BaseInstance3DBoxes.overlaps
(cls, boxes1, boxes2, mode='iou')
Calculate 3D overlaps of two boxes. Note: This function calculates the overlaps between ``boxes1`` and ``boxes2``, ``boxes1`` and ``boxes2`` should be in the same type. Args: boxes1 (:obj:`BaseInstanceBoxes`): Boxes 1 contain N boxes. boxes2 (:obj:`BaseInstanceBoxes`): Boxes 2 contain M boxes. mode (str, optional): Mode of iou calculation. Defaults to 'iou'. Returns: torch.Tensor: Calculated iou of boxes' heights.
Calculate 3D overlaps of two boxes.
def overlaps(cls, boxes1, boxes2, mode='iou'): """Calculate 3D overlaps of two boxes. Note: This function calculates the overlaps between ``boxes1`` and ``boxes2``, ``boxes1`` and ``boxes2`` should be in the same type. Args: boxes1 (:obj:`BaseInstanceBoxes`): Boxes 1 contain N boxes. boxes2 (:obj:`BaseInstanceBoxes`): Boxes 2 contain M boxes. mode (str, optional): Mode of iou calculation. Defaults to 'iou'. Returns: torch.Tensor: Calculated iou of boxes' heights. """ assert isinstance(boxes1, BaseInstance3DBoxes) assert isinstance(boxes2, BaseInstance3DBoxes) assert type(boxes1) == type(boxes2), '"boxes1" and "boxes2" should' \ f'be in the same type, got {type(boxes1)} and {type(boxes2)}.' assert mode in ['iou', 'iof'] rows = len(boxes1) cols = len(boxes2) if rows * cols == 0: return boxes1.tensor.new(rows, cols) # height overlap overlaps_h = cls.height_overlaps(boxes1, boxes2) # obtain BEV boxes in XYXYR format boxes1_bev = xywhr2xyxyr(boxes1.bev) boxes2_bev = xywhr2xyxyr(boxes2.bev) # bev overlap overlaps_bev = boxes1_bev.new_zeros( (boxes1_bev.shape[0], boxes2_bev.shape[0])).cuda() # (N, M) iou3d_cuda.boxes_overlap_bev_gpu(boxes1_bev.contiguous().cuda(), boxes2_bev.contiguous().cuda(), overlaps_bev) # 3d overlaps overlaps_3d = overlaps_bev.to(boxes1.device) * overlaps_h volume1 = boxes1.volume.view(-1, 1) volume2 = boxes2.volume.view(1, -1) if mode == 'iou': # the clamp func is used to avoid division of 0 iou3d = overlaps_3d / torch.clamp( volume1 + volume2 - overlaps_3d, min=1e-8) else: iou3d = overlaps_3d / torch.clamp(volume1, min=1e-8) return iou3d
[ "def", "overlaps", "(", "cls", ",", "boxes1", ",", "boxes2", ",", "mode", "=", "'iou'", ")", ":", "assert", "isinstance", "(", "boxes1", ",", "BaseInstance3DBoxes", ")", "assert", "isinstance", "(", "boxes2", ",", "BaseInstance3DBoxes", ")", "assert", "type", "(", "boxes1", ")", "==", "type", "(", "boxes2", ")", ",", "'\"boxes1\" and \"boxes2\" should'", "f'be in the same type, got {type(boxes1)} and {type(boxes2)}.'", "assert", "mode", "in", "[", "'iou'", ",", "'iof'", "]", "rows", "=", "len", "(", "boxes1", ")", "cols", "=", "len", "(", "boxes2", ")", "if", "rows", "*", "cols", "==", "0", ":", "return", "boxes1", ".", "tensor", ".", "new", "(", "rows", ",", "cols", ")", "# height overlap", "overlaps_h", "=", "cls", ".", "height_overlaps", "(", "boxes1", ",", "boxes2", ")", "# obtain BEV boxes in XYXYR format", "boxes1_bev", "=", "xywhr2xyxyr", "(", "boxes1", ".", "bev", ")", "boxes2_bev", "=", "xywhr2xyxyr", "(", "boxes2", ".", "bev", ")", "# bev overlap", "overlaps_bev", "=", "boxes1_bev", ".", "new_zeros", "(", "(", "boxes1_bev", ".", "shape", "[", "0", "]", ",", "boxes2_bev", ".", "shape", "[", "0", "]", ")", ")", ".", "cuda", "(", ")", "# (N, M)", "iou3d_cuda", ".", "boxes_overlap_bev_gpu", "(", "boxes1_bev", ".", "contiguous", "(", ")", ".", "cuda", "(", ")", ",", "boxes2_bev", ".", "contiguous", "(", ")", ".", "cuda", "(", ")", ",", "overlaps_bev", ")", "# 3d overlaps", "overlaps_3d", "=", "overlaps_bev", ".", "to", "(", "boxes1", ".", "device", ")", "*", "overlaps_h", "volume1", "=", "boxes1", ".", "volume", ".", "view", "(", "-", "1", ",", "1", ")", "volume2", "=", "boxes2", ".", "volume", ".", "view", "(", "1", ",", "-", "1", ")", "if", "mode", "==", "'iou'", ":", "# the clamp func is used to avoid division of 0", "iou3d", "=", "overlaps_3d", "/", "torch", ".", "clamp", "(", "volume1", "+", "volume2", "-", "overlaps_3d", ",", "min", "=", "1e-8", ")", "else", ":", "iou3d", "=", "overlaps_3d", "/", "torch", ".", "clamp", "(", "volume1", ",", "min", "=", "1e-8", ")", "return", "iou3d" ]
[ 383, 4 ]
[ 437, 20 ]
python
en
['en', 'en', 'en']
True
BaseInstance3DBoxes.new_box
(self, data)
Create a new box object with data. The new box and its tensor has the similar properties \ as self and self.tensor, respectively. Args: data (torch.Tensor | numpy.array | list): Data to be copied. Returns: :obj:`BaseInstance3DBoxes`: A new bbox object with ``data``, \ the object's other properties are similar to ``self``.
Create a new box object with data.
def new_box(self, data): """Create a new box object with data. The new box and its tensor has the similar properties \ as self and self.tensor, respectively. Args: data (torch.Tensor | numpy.array | list): Data to be copied. Returns: :obj:`BaseInstance3DBoxes`: A new bbox object with ``data``, \ the object's other properties are similar to ``self``. """ new_tensor = self.tensor.new_tensor(data) \ if not isinstance(data, torch.Tensor) else data.to(self.device) original_type = type(self) return original_type( new_tensor, box_dim=self.box_dim, with_yaw=self.with_yaw)
[ "def", "new_box", "(", "self", ",", "data", ")", ":", "new_tensor", "=", "self", ".", "tensor", ".", "new_tensor", "(", "data", ")", "if", "not", "isinstance", "(", "data", ",", "torch", ".", "Tensor", ")", "else", "data", ".", "to", "(", "self", ".", "device", ")", "original_type", "=", "type", "(", "self", ")", "return", "original_type", "(", "new_tensor", ",", "box_dim", "=", "self", ".", "box_dim", ",", "with_yaw", "=", "self", ".", "with_yaw", ")" ]
[ 439, 4 ]
[ 456, 69 ]
python
en
['en', 'en', 'en']
True
Image.colormodel
(self)
Color model used to map the numerical color components described in `z` into colors. The 'colormodel' property is an enumeration that may be specified as: - One of the following enumeration values: ['rgb', 'rgba', 'hsl', 'hsla'] Returns ------- Any
Color model used to map the numerical color components described in `z` into colors. The 'colormodel' property is an enumeration that may be specified as: - One of the following enumeration values: ['rgb', 'rgba', 'hsl', 'hsla']
def colormodel(self): """ Color model used to map the numerical color components described in `z` into colors. The 'colormodel' property is an enumeration that may be specified as: - One of the following enumeration values: ['rgb', 'rgba', 'hsl', 'hsla'] Returns ------- Any """ return self["colormodel"]
[ "def", "colormodel", "(", "self", ")", ":", "return", "self", "[", "\"colormodel\"", "]" ]
[ 49, 4 ]
[ 62, 33 ]
python
en
['en', 'error', 'th']
False
Image.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, numpy array, or pandas Series Returns ------- numpy.ndarray
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, numpy array, or pandas Series
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 specified as a tuple, list, numpy array, or pandas Series Returns ------- numpy.ndarray """ return self["customdata"]
[ "def", "customdata", "(", "self", ")", ":", "return", "self", "[", "\"customdata\"", "]" ]
[ 71, 4 ]
[ 85, 33 ]
python
en
['en', 'error', 'th']
False
Image.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["customdatasrc"]
[ "def", "customdatasrc", "(", "self", ")", ":", "return", "self", "[", "\"customdatasrc\"", "]" ]
[ 94, 4 ]
[ 106, 36 ]
python
en
['en', 'error', 'th']
False
Image.dx
(self)
Set the pixel's horizontal size. The 'dx' property is a number and may be specified as: - An int or float Returns ------- int|float
Set the pixel's horizontal size. The 'dx' property is a number and may be specified as: - An int or float
def dx(self): """ Set the pixel's horizontal size. The 'dx' property is a number and may be specified as: - An int or float Returns ------- int|float """ return self["dx"]
[ "def", "dx", "(", "self", ")", ":", "return", "self", "[", "\"dx\"", "]" ]
[ 115, 4 ]
[ 126, 25 ]
python
en
['en', 'error', 'th']
False
Image.dy
(self)
Set the pixel's vertical size The 'dy' property is a number and may be specified as: - An int or float Returns ------- int|float
Set the pixel's vertical size The 'dy' property is a number and may be specified as: - An int or float
def dy(self): """ Set the pixel's vertical size The 'dy' property is a number and may be specified as: - An int or float Returns ------- int|float """ return self["dy"]
[ "def", "dy", "(", "self", ")", ":", "return", "self", "[", "\"dy\"", "]" ]
[ 135, 4 ]
[ 146, 25 ]
python
en
['en', 'error', 'th']
False
Image.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: - Any combination of ['x', 'y', 'z', 'color', 'name', 'text'] joined with '+' characters (e.g. 'x+y') OR exactly one of ['all', 'none', 'skip'] (e.g. 'skip') - A list or array of the above Returns ------- Any|numpy.ndarray
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: - Any combination of ['x', 'y', 'z', 'color', 'name', 'text'] joined with '+' characters (e.g. 'x+y') OR exactly one of ['all', 'none', 'skip'] (e.g. 'skip') - A list or array of the above
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 as a string containing: - Any combination of ['x', 'y', 'z', 'color', 'name', 'text'] joined with '+' characters (e.g. 'x+y') OR exactly one of ['all', 'none', 'skip'] (e.g. 'skip') - A list or array of the above Returns ------- Any|numpy.ndarray """ return self["hoverinfo"]
[ "def", "hoverinfo", "(", "self", ")", ":", "return", "self", "[", "\"hoverinfo\"", "]" ]
[ 155, 4 ]
[ 172, 32 ]
python
en
['en', 'error', 'th']
False
Image.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["hoverinfosrc"]
[ "def", "hoverinfosrc", "(", "self", ")", ":", "return", "self", "[", "\"hoverinfosrc\"", "]" ]
[ 181, 4 ]
[ 193, 35 ]
python
en
['en', 'error', 'th']
False
Image.hoverlabel
(self)
The 'hoverlabel' property is an instance of Hoverlabel that may be specified as: - An instance of :class:`plotly.graph_objs.image.Hoverlabel` - A dict of string/value properties that will be passed to the Hoverlabel constructor Supported dict properties: align Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines alignsrc Sets the source reference on Chart Studio Cloud for align . bgcolor Sets the background color of the hover labels for this trace bgcolorsrc Sets the source reference on Chart Studio Cloud for bgcolor . bordercolor Sets the border color of the hover labels for this trace. bordercolorsrc Sets the source reference on Chart Studio Cloud for bordercolor . font Sets the font used in hover labels. namelength Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. namelengthsrc Sets the source reference on Chart Studio Cloud for namelength . Returns ------- plotly.graph_objs.image.Hoverlabel
The 'hoverlabel' property is an instance of Hoverlabel that may be specified as: - An instance of :class:`plotly.graph_objs.image.Hoverlabel` - A dict of string/value properties that will be passed to the Hoverlabel constructor Supported dict properties: align Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines alignsrc Sets the source reference on Chart Studio Cloud for align . bgcolor Sets the background color of the hover labels for this trace bgcolorsrc Sets the source reference on Chart Studio Cloud for bgcolor . bordercolor Sets the border color of the hover labels for this trace. bordercolorsrc Sets the source reference on Chart Studio Cloud for bordercolor . font Sets the font used in hover labels. namelength Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. namelengthsrc Sets the source reference on Chart Studio Cloud for namelength .
def hoverlabel(self): """ The 'hoverlabel' property is an instance of Hoverlabel that may be specified as: - An instance of :class:`plotly.graph_objs.image.Hoverlabel` - A dict of string/value properties that will be passed to the Hoverlabel constructor Supported dict properties: align Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines alignsrc Sets the source reference on Chart Studio Cloud for align . bgcolor Sets the background color of the hover labels for this trace bgcolorsrc Sets the source reference on Chart Studio Cloud for bgcolor . bordercolor Sets the border color of the hover labels for this trace. bordercolorsrc Sets the source reference on Chart Studio Cloud for bordercolor . font Sets the font used in hover labels. namelength Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. namelengthsrc Sets the source reference on Chart Studio Cloud for namelength . Returns ------- plotly.graph_objs.image.Hoverlabel """ return self["hoverlabel"]
[ "def", "hoverlabel", "(", "self", ")", ":", "return", "self", "[", "\"hoverlabel\"", "]" ]
[ 202, 4 ]
[ 252, 33 ]
python
en
['en', 'error', 'th']
False
Image.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:$.2f}". https://github.com/d3/d3-3.x-api- reference/blob/master/Formatting.md#d3_format for details on the formatting syntax. Dates are formatted using d3-time- format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-3.x-api- reference/blob/master/Time-Formatting.md#format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event- data. Additionally, every attributes that can be specified per- point (the ones that are `arrayOk: true`) are available. variables `z`, `color` and `colormodel`. Anything contained in tag `<extra>` is displayed in the secondary box, for example "<extra>{fullData.name}</extra>". To hide the secondary box completely, use an empty tag `<extra></extra>`. The 'hovertemplate' property is a string and must be specified as: - A string - A number that will be converted to a string - A tuple, list, or one-dimensional numpy array of the above Returns ------- str|numpy.ndarray
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:$.2f}". https://github.com/d3/d3-3.x-api- reference/blob/master/Formatting.md#d3_format for details on the formatting syntax. Dates are formatted using d3-time- format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-3.x-api- reference/blob/master/Time-Formatting.md#format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event- data. Additionally, every attributes that can be specified per- point (the ones that are `arrayOk: true`) are available. variables `z`, `color` and `colormodel`. Anything contained in tag `<extra>` is displayed in the secondary box, for example "<extra>{fullData.name}</extra>". To hide the secondary box completely, use an empty tag `<extra></extra>`. The 'hovertemplate' property is a string and must be specified as: - A string - A number that will be converted to a string - A tuple, list, or one-dimensional numpy array of the above
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:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-3.x-api- reference/blob/master/Formatting.md#d3_format for details on the formatting syntax. Dates are formatted using d3-time- format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-3.x-api- reference/blob/master/Time-Formatting.md#format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event- data. Additionally, every attributes that can be specified per- point (the ones that are `arrayOk: true`) are available. variables `z`, `color` and `colormodel`. Anything contained in tag `<extra>` is displayed in the secondary box, for example "<extra>{fullData.name}</extra>". To hide the secondary box completely, use an empty tag `<extra></extra>`. The 'hovertemplate' property is a string and must be specified as: - A string - A number that will be converted to a string - A tuple, list, or one-dimensional numpy array of the above Returns ------- str|numpy.ndarray """ return self["hovertemplate"]
[ "def", "hovertemplate", "(", "self", ")", ":", "return", "self", "[", "\"hovertemplate\"", "]" ]
[ 261, 4 ]
[ 293, 36 ]
python
en
['en', 'error', 'th']
False
Image.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 self["hovertemplatesrc"]
[ "def", "hovertemplatesrc", "(", "self", ")", ":", "return", "self", "[", "\"hovertemplatesrc\"", "]" ]
[ 302, 4 ]
[ 314, 39 ]
python
en
['en', 'error', 'th']
False
Image.hovertext
(self)
Same as `text`. The 'hovertext' property is an array that may be specified as a tuple, list, numpy array, or pandas Series Returns ------- numpy.ndarray
Same as `text`. The 'hovertext' property is an array that may be specified as a tuple, list, numpy array, or pandas Series
def hovertext(self): """ Same as `text`. The 'hovertext' property is an array that may be specified as a tuple, list, numpy array, or pandas Series Returns ------- numpy.ndarray """ return self["hovertext"]
[ "def", "hovertext", "(", "self", ")", ":", "return", "self", "[", "\"hovertext\"", "]" ]
[ 323, 4 ]
[ 334, 32 ]
python
en
['en', 'error', 'th']
False
Image.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["hovertextsrc"]
[ "def", "hovertextsrc", "(", "self", ")", ":", "return", "self", "[", "\"hovertextsrc\"", "]" ]
[ 343, 4 ]
[ 355, 35 ]
python
en
['en', 'error', 'th']
False
Image.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 Returns ------- numpy.ndarray
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 pandas Series Returns ------- numpy.ndarray """ return self["ids"]
[ "def", "ids", "(", "self", ")", ":", "return", "self", "[", "\"ids\"", "]" ]
[ 364, 4 ]
[ 377, 26 ]
python
en
['en', 'error', 'th']
False
Image.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\"", "]" ]
[ 386, 4 ]
[ 397, 29 ]
python
en
['en', 'error', 'th']
False
Image.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 access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. The 'meta' property accepts values of any type Returns ------- Any|numpy.ndarray
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 access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. The 'meta' property accepts values of any type
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 all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. The 'meta' property accepts values of any type Returns ------- Any|numpy.ndarray """ return self["meta"]
[ "def", "meta", "(", "self", ")", ":", "return", "self", "[", "\"meta\"", "]" ]
[ 406, 4 ]
[ 425, 27 ]
python
en
['en', 'error', 'th']
False
Image.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\"", "]" ]
[ 434, 4 ]
[ 445, 30 ]
python
en
['en', 'error', 'th']
False
Image.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 """ return self["name"]
[ "def", "name", "(", "self", ")", ":", "return", "self", "[", "\"name\"", "]" ]
[ 454, 4 ]
[ 467, 27 ]
python
en
['en', 'error', 'th']
False
Image.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\"", "]" ]
[ 476, 4 ]
[ 487, 30 ]
python
en
['en', 'error', 'th']
False
Image.stream
(self)
The 'stream' property is an instance of Stream that may be specified as: - An instance of :class:`plotly.graph_objs.image.Stream` - A dict of string/value properties that will be passed to the Stream constructor Supported dict properties: maxpoints 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. token The stream id number links a data trace on a plot with a stream. See https://chart- studio.plotly.com/settings for more details. Returns ------- plotly.graph_objs.image.Stream
The 'stream' property is an instance of Stream that may be specified as: - An instance of :class:`plotly.graph_objs.image.Stream` - A dict of string/value properties that will be passed to the Stream constructor Supported dict properties: maxpoints 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. token The stream id number links a data trace on a plot with a stream. See https://chart- studio.plotly.com/settings for more details.
def stream(self): """ The 'stream' property is an instance of Stream that may be specified as: - An instance of :class:`plotly.graph_objs.image.Stream` - A dict of string/value properties that will be passed to the Stream constructor Supported dict properties: maxpoints 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. token The stream id number links a data trace on a plot with a stream. See https://chart- studio.plotly.com/settings for more details. Returns ------- plotly.graph_objs.image.Stream """ return self["stream"]
[ "def", "stream", "(", "self", ")", ":", "return", "self", "[", "\"stream\"", "]" ]
[ 496, 4 ]
[ 520, 29 ]
python
en
['en', 'error', 'th']
False
Image.text
(self)
Sets the text elements associated with each z value. The 'text' property is an array that may be specified as a tuple, list, numpy array, or pandas Series Returns ------- numpy.ndarray
Sets the text elements associated with each z value. The 'text' property is an array that may be specified as a tuple, list, numpy array, or pandas Series
def text(self): """ Sets the text elements associated with each z value. The 'text' property is an array that may be specified as a tuple, list, numpy array, or pandas Series Returns ------- numpy.ndarray """ return self["text"]
[ "def", "text", "(", "self", ")", ":", "return", "self", "[", "\"text\"", "]" ]
[ 529, 4 ]
[ 540, 27 ]
python
en
['en', 'error', 'th']
False
Image.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\"", "]" ]
[ 549, 4 ]
[ 560, 30 ]
python
en
['en', 'error', 'th']
False
Image.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 ------- str
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 Returns ------- str """ return self["uid"]
[ "def", "uid", "(", "self", ")", ":", "return", "self", "[", "\"uid\"", "]" ]
[ 569, 4 ]
[ 582, 26 ]
python
en
['en', 'error', 'th']
False
Image.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 controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves. The 'uirevision' property accepts values of any type Returns ------- Any
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 controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves. The 'uirevision' property accepts values of any type
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-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves. The 'uirevision' property accepts values of any type Returns ------- Any """ return self["uirevision"]
[ "def", "uirevision", "(", "self", ")", ":", "return", "self", "[", "\"uirevision\"", "]" ]
[ 591, 4 ]
[ 615, 33 ]
python
en
['en', 'error', 'th']
False
Image.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 values: [True, False, 'legendonly'] Returns ------- Any
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 values: [True, False, 'legendonly']
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 of the following enumeration values: [True, False, 'legendonly'] Returns ------- Any """ return self["visible"]
[ "def", "visible", "(", "self", ")", ":", "return", "self", "[", "\"visible\"", "]" ]
[ 624, 4 ]
[ 638, 30 ]
python
en
['en', 'error', 'th']
False
Image.x0
(self)
Set the image's x position. The 'x0' property accepts values of any type Returns ------- Any
Set the image's x position. The 'x0' property accepts values of any type
def x0(self): """ Set the image's x position. The 'x0' property accepts values of any type Returns ------- Any """ return self["x0"]
[ "def", "x0", "(", "self", ")", ":", "return", "self", "[", "\"x0\"", "]" ]
[ 647, 4 ]
[ 657, 25 ]
python
en
['en', 'error', 'th']
False
Image.xaxis
(self)
Sets a reference between this trace's x coordinates and a 2D cartesian x axis. If "x" (the default value), the x coordinates refer to `layout.xaxis`. If "x2", the x coordinates refer to `layout.xaxis2`, and so on. The 'xaxis' property is an identifier of a particular subplot, of type 'x', that may be specified as the string 'x' optionally followed by an integer >= 1 (e.g. 'x', 'x1', 'x2', 'x3', etc.) Returns ------- str
Sets a reference between this trace's x coordinates and a 2D cartesian x axis. If "x" (the default value), the x coordinates refer to `layout.xaxis`. If "x2", the x coordinates refer to `layout.xaxis2`, and so on. The 'xaxis' property is an identifier of a particular subplot, of type 'x', that may be specified as the string 'x' optionally followed by an integer >= 1 (e.g. 'x', 'x1', 'x2', 'x3', etc.)
def xaxis(self): """ Sets a reference between this trace's x coordinates and a 2D cartesian x axis. If "x" (the default value), the x coordinates refer to `layout.xaxis`. If "x2", the x coordinates refer to `layout.xaxis2`, and so on. The 'xaxis' property is an identifier of a particular subplot, of type 'x', that may be specified as the string 'x' optionally followed by an integer >= 1 (e.g. 'x', 'x1', 'x2', 'x3', etc.) Returns ------- str """ return self["xaxis"]
[ "def", "xaxis", "(", "self", ")", ":", "return", "self", "[", "\"xaxis\"", "]" ]
[ 666, 4 ]
[ 682, 28 ]
python
en
['en', 'error', 'th']
False
Image.y0
(self)
Set the image's y position. The 'y0' property accepts values of any type Returns ------- Any
Set the image's y position. The 'y0' property accepts values of any type
def y0(self): """ Set the image's y position. The 'y0' property accepts values of any type Returns ------- Any """ return self["y0"]
[ "def", "y0", "(", "self", ")", ":", "return", "self", "[", "\"y0\"", "]" ]
[ 691, 4 ]
[ 701, 25 ]
python
en
['en', 'error', 'th']
False
Image.yaxis
(self)
Sets a reference between this trace's y coordinates and a 2D cartesian y axis. If "y" (the default value), the y coordinates refer to `layout.yaxis`. If "y2", the y coordinates refer to `layout.yaxis2`, and so on. The 'yaxis' property is an identifier of a particular subplot, of type 'y', that may be specified as the string 'y' optionally followed by an integer >= 1 (e.g. 'y', 'y1', 'y2', 'y3', etc.) Returns ------- str
Sets a reference between this trace's y coordinates and a 2D cartesian y axis. If "y" (the default value), the y coordinates refer to `layout.yaxis`. If "y2", the y coordinates refer to `layout.yaxis2`, and so on. The 'yaxis' property is an identifier of a particular subplot, of type 'y', that may be specified as the string 'y' optionally followed by an integer >= 1 (e.g. 'y', 'y1', 'y2', 'y3', etc.)
def yaxis(self): """ Sets a reference between this trace's y coordinates and a 2D cartesian y axis. If "y" (the default value), the y coordinates refer to `layout.yaxis`. If "y2", the y coordinates refer to `layout.yaxis2`, and so on. The 'yaxis' property is an identifier of a particular subplot, of type 'y', that may be specified as the string 'y' optionally followed by an integer >= 1 (e.g. 'y', 'y1', 'y2', 'y3', etc.) Returns ------- str """ return self["yaxis"]
[ "def", "yaxis", "(", "self", ")", ":", "return", "self", "[", "\"yaxis\"", "]" ]
[ 710, 4 ]
[ 726, 28 ]
python
en
['en', 'error', 'th']
False
Image.z
(self)
A 2-dimensional array in which each element is an array of 3 or 4 numbers representing a color. The 'z' property is an array that may be specified as a tuple, list, numpy array, or pandas Series Returns ------- numpy.ndarray
A 2-dimensional array in which each element is an array of 3 or 4 numbers representing a color. The 'z' property is an array that may be specified as a tuple, list, numpy array, or pandas Series
def z(self): """ A 2-dimensional array in which each element is an array of 3 or 4 numbers representing a color. The 'z' property is an array that may be specified as a tuple, list, numpy array, or pandas Series Returns ------- numpy.ndarray """ return self["z"]
[ "def", "z", "(", "self", ")", ":", "return", "self", "[", "\"z\"", "]" ]
[ 735, 4 ]
[ 747, 24 ]
python
en
['en', 'error', 'th']
False
Image.zmax
(self)
Array defining the higher bound for each color component. Note that the default value will depend on the colormodel. For the `rgb` colormodel, it is [255, 255, 255]. For the `rgba` colormodel, it is [255, 255, 255, 1]. For the `hsl` colormodel, it is [360, 100, 100]. For the `hsla` colormodel, it is [360, 100, 100, 1]. The 'zmax' property is an info array that may be specified as: * a list or tuple of 4 elements where: (0) The 'zmax[0]' property is a number and may be specified as: - An int or float (1) The 'zmax[1]' property is a number and may be specified as: - An int or float (2) The 'zmax[2]' property is a number and may be specified as: - An int or float (3) The 'zmax[3]' property is a number and may be specified as: - An int or float Returns ------- list
Array defining the higher bound for each color component. Note that the default value will depend on the colormodel. For the `rgb` colormodel, it is [255, 255, 255]. For the `rgba` colormodel, it is [255, 255, 255, 1]. For the `hsl` colormodel, it is [360, 100, 100]. For the `hsla` colormodel, it is [360, 100, 100, 1]. The 'zmax' property is an info array that may be specified as: * a list or tuple of 4 elements where: (0) The 'zmax[0]' property is a number and may be specified as: - An int or float (1) The 'zmax[1]' property is a number and may be specified as: - An int or float (2) The 'zmax[2]' property is a number and may be specified as: - An int or float (3) The 'zmax[3]' property is a number and may be specified as: - An int or float
def zmax(self): """ Array defining the higher bound for each color component. Note that the default value will depend on the colormodel. For the `rgb` colormodel, it is [255, 255, 255]. For the `rgba` colormodel, it is [255, 255, 255, 1]. For the `hsl` colormodel, it is [360, 100, 100]. For the `hsla` colormodel, it is [360, 100, 100, 1]. The 'zmax' property is an info array that may be specified as: * a list or tuple of 4 elements where: (0) The 'zmax[0]' property is a number and may be specified as: - An int or float (1) The 'zmax[1]' property is a number and may be specified as: - An int or float (2) The 'zmax[2]' property is a number and may be specified as: - An int or float (3) The 'zmax[3]' property is a number and may be specified as: - An int or float Returns ------- list """ return self["zmax"]
[ "def", "zmax", "(", "self", ")", ":", "return", "self", "[", "\"zmax\"", "]" ]
[ 756, 4 ]
[ 781, 27 ]
python
en
['en', 'error', 'th']
False
Image.zmin
(self)
Array defining the lower bound for each color component. Note that the default value will depend on the colormodel. For the `rgb` colormodel, it is [0, 0, 0]. For the `rgba` colormodel, it is [0, 0, 0, 0]. For the `hsl` colormodel, it is [0, 0, 0]. For the `hsla` colormodel, it is [0, 0, 0, 0]. The 'zmin' property is an info array that may be specified as: * a list or tuple of 4 elements where: (0) The 'zmin[0]' property is a number and may be specified as: - An int or float (1) The 'zmin[1]' property is a number and may be specified as: - An int or float (2) The 'zmin[2]' property is a number and may be specified as: - An int or float (3) The 'zmin[3]' property is a number and may be specified as: - An int or float Returns ------- list
Array defining the lower bound for each color component. Note that the default value will depend on the colormodel. For the `rgb` colormodel, it is [0, 0, 0]. For the `rgba` colormodel, it is [0, 0, 0, 0]. For the `hsl` colormodel, it is [0, 0, 0]. For the `hsla` colormodel, it is [0, 0, 0, 0]. The 'zmin' property is an info array that may be specified as: * a list or tuple of 4 elements where: (0) The 'zmin[0]' property is a number and may be specified as: - An int or float (1) The 'zmin[1]' property is a number and may be specified as: - An int or float (2) The 'zmin[2]' property is a number and may be specified as: - An int or float (3) The 'zmin[3]' property is a number and may be specified as: - An int or float
def zmin(self): """ Array defining the lower bound for each color component. Note that the default value will depend on the colormodel. For the `rgb` colormodel, it is [0, 0, 0]. For the `rgba` colormodel, it is [0, 0, 0, 0]. For the `hsl` colormodel, it is [0, 0, 0]. For the `hsla` colormodel, it is [0, 0, 0, 0]. The 'zmin' property is an info array that may be specified as: * a list or tuple of 4 elements where: (0) The 'zmin[0]' property is a number and may be specified as: - An int or float (1) The 'zmin[1]' property is a number and may be specified as: - An int or float (2) The 'zmin[2]' property is a number and may be specified as: - An int or float (3) The 'zmin[3]' property is a number and may be specified as: - An int or float Returns ------- list """ return self["zmin"]
[ "def", "zmin", "(", "self", ")", ":", "return", "self", "[", "\"zmin\"", "]" ]
[ 790, 4 ]
[ 814, 27 ]
python
en
['en', 'error', 'th']
False
Image.zsrc
(self)
Sets the source reference on Chart Studio Cloud for z . The 'zsrc' 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 z . The 'zsrc' property must be specified as a string or as a plotly.grid_objs.Column object
def zsrc(self): """ Sets the source reference on Chart Studio Cloud for z . The 'zsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["zsrc"]
[ "def", "zsrc", "(", "self", ")", ":", "return", "self", "[", "\"zsrc\"", "]" ]
[ 823, 4 ]
[ 834, 27 ]
python
en
['en', 'error', 'th']
False
Image.__init__
( self, arg=None, colormodel=None, customdata=None, customdatasrc=None, dx=None, dy=None, hoverinfo=None, hoverinfosrc=None, hoverlabel=None, hovertemplate=None, hovertemplatesrc=None, hovertext=None, hovertextsrc=None, ids=None, idssrc=None, meta=None, metasrc=None, name=None, opacity=None, stream=None, text=None, textsrc=None, uid=None, uirevision=None, visible=None, x0=None, xaxis=None, y0=None, yaxis=None, z=None, zmax=None, zmin=None, zsrc=None, **kwargs )
Construct a new Image object Display an image, i.e. data on a 2D regular raster. By default, when an image is displayed in a subplot, its y axis will be reversed (ie. `autorange: 'reversed'`), constrained to the domain (ie. `constrain: 'domain'`) and it will have the same scale as its x axis (ie. `scaleanchor: 'x,`) in order for pixels to be rendered as squares. Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.Image` colormodel Color model used to map the numerical color components described in `z` into colors. customdata 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 customdatasrc Sets the source reference on Chart Studio Cloud for customdata . dx Set the pixel's horizontal size. dy Set the pixel's vertical size hoverinfo 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. hoverinfosrc Sets the source reference on Chart Studio Cloud for hoverinfo . hoverlabel :class:`plotly.graph_objects.image.Hoverlabel` instance or dict with compatible properties hovertemplate 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:$.2f}". https://github.com/d3/d3-3.x-api- reference/blob/master/Formatting.md#d3_format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time- format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-3.x-api- reference/blob/master/Time-Formatting.md#format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event- data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `z`, `color` and `colormodel`. Anything contained in tag `<extra>` is displayed in the secondary box, for example "<extra>{fullData.name}</extra>". To hide the secondary box completely, use an empty tag `<extra></extra>`. hovertemplatesrc Sets the source reference on Chart Studio Cloud for hovertemplate . hovertext Same as `text`. hovertextsrc Sets the source reference on Chart Studio Cloud for hovertext . ids 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. idssrc Sets the source reference on Chart Studio Cloud for ids . meta 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 access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. metasrc Sets the source reference on Chart Studio Cloud for meta . name Sets the trace name. The trace name appear as the legend item and on hover. opacity Sets the opacity of the trace. stream :class:`plotly.graph_objects.image.Stream` instance or dict with compatible properties text Sets the text elements associated with each z value. textsrc Sets the source reference on Chart Studio Cloud for text . uid Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. uirevision 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 controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves. visible 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). x0 Set the image's x position. xaxis Sets a reference between this trace's x coordinates and a 2D cartesian x axis. If "x" (the default value), the x coordinates refer to `layout.xaxis`. If "x2", the x coordinates refer to `layout.xaxis2`, and so on. y0 Set the image's y position. yaxis Sets a reference between this trace's y coordinates and a 2D cartesian y axis. If "y" (the default value), the y coordinates refer to `layout.yaxis`. If "y2", the y coordinates refer to `layout.yaxis2`, and so on. z A 2-dimensional array in which each element is an array of 3 or 4 numbers representing a color. zmax Array defining the higher bound for each color component. Note that the default value will depend on the colormodel. For the `rgb` colormodel, it is [255, 255, 255]. For the `rgba` colormodel, it is [255, 255, 255, 1]. For the `hsl` colormodel, it is [360, 100, 100]. For the `hsla` colormodel, it is [360, 100, 100, 1]. zmin Array defining the lower bound for each color component. Note that the default value will depend on the colormodel. For the `rgb` colormodel, it is [0, 0, 0]. For the `rgba` colormodel, it is [0, 0, 0, 0]. For the `hsl` colormodel, it is [0, 0, 0]. For the `hsla` colormodel, it is [0, 0, 0, 0]. zsrc Sets the source reference on Chart Studio Cloud for z . Returns ------- Image
Construct a new Image object Display an image, i.e. data on a 2D regular raster. By default, when an image is displayed in a subplot, its y axis will be reversed (ie. `autorange: 'reversed'`), constrained to the domain (ie. `constrain: 'domain'`) and it will have the same scale as its x axis (ie. `scaleanchor: 'x,`) in order for pixels to be rendered as squares.
def __init__( self, arg=None, colormodel=None, customdata=None, customdatasrc=None, dx=None, dy=None, hoverinfo=None, hoverinfosrc=None, hoverlabel=None, hovertemplate=None, hovertemplatesrc=None, hovertext=None, hovertextsrc=None, ids=None, idssrc=None, meta=None, metasrc=None, name=None, opacity=None, stream=None, text=None, textsrc=None, uid=None, uirevision=None, visible=None, x0=None, xaxis=None, y0=None, yaxis=None, z=None, zmax=None, zmin=None, zsrc=None, **kwargs ): """ Construct a new Image object Display an image, i.e. data on a 2D regular raster. By default, when an image is displayed in a subplot, its y axis will be reversed (ie. `autorange: 'reversed'`), constrained to the domain (ie. `constrain: 'domain'`) and it will have the same scale as its x axis (ie. `scaleanchor: 'x,`) in order for pixels to be rendered as squares. Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.Image` colormodel Color model used to map the numerical color components described in `z` into colors. customdata 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 customdatasrc Sets the source reference on Chart Studio Cloud for customdata . dx Set the pixel's horizontal size. dy Set the pixel's vertical size hoverinfo 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. hoverinfosrc Sets the source reference on Chart Studio Cloud for hoverinfo . hoverlabel :class:`plotly.graph_objects.image.Hoverlabel` instance or dict with compatible properties hovertemplate 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:$.2f}". https://github.com/d3/d3-3.x-api- reference/blob/master/Formatting.md#d3_format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time- format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-3.x-api- reference/blob/master/Time-Formatting.md#format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event- data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `z`, `color` and `colormodel`. Anything contained in tag `<extra>` is displayed in the secondary box, for example "<extra>{fullData.name}</extra>". To hide the secondary box completely, use an empty tag `<extra></extra>`. hovertemplatesrc Sets the source reference on Chart Studio Cloud for hovertemplate . hovertext Same as `text`. hovertextsrc Sets the source reference on Chart Studio Cloud for hovertext . ids 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. idssrc Sets the source reference on Chart Studio Cloud for ids . meta 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 access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. metasrc Sets the source reference on Chart Studio Cloud for meta . name Sets the trace name. The trace name appear as the legend item and on hover. opacity Sets the opacity of the trace. stream :class:`plotly.graph_objects.image.Stream` instance or dict with compatible properties text Sets the text elements associated with each z value. textsrc Sets the source reference on Chart Studio Cloud for text . uid Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. uirevision 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 controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves. visible 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). x0 Set the image's x position. xaxis Sets a reference between this trace's x coordinates and a 2D cartesian x axis. If "x" (the default value), the x coordinates refer to `layout.xaxis`. If "x2", the x coordinates refer to `layout.xaxis2`, and so on. y0 Set the image's y position. yaxis Sets a reference between this trace's y coordinates and a 2D cartesian y axis. If "y" (the default value), the y coordinates refer to `layout.yaxis`. If "y2", the y coordinates refer to `layout.yaxis2`, and so on. z A 2-dimensional array in which each element is an array of 3 or 4 numbers representing a color. zmax Array defining the higher bound for each color component. Note that the default value will depend on the colormodel. For the `rgb` colormodel, it is [255, 255, 255]. For the `rgba` colormodel, it is [255, 255, 255, 1]. For the `hsl` colormodel, it is [360, 100, 100]. For the `hsla` colormodel, it is [360, 100, 100, 1]. zmin Array defining the lower bound for each color component. Note that the default value will depend on the colormodel. For the `rgb` colormodel, it is [0, 0, 0]. For the `rgba` colormodel, it is [0, 0, 0, 0]. For the `hsl` colormodel, it is [0, 0, 0]. For the `hsla` colormodel, it is [0, 0, 0, 0]. zsrc Sets the source reference on Chart Studio Cloud for z . Returns ------- Image """ super(Image, self).__init__("image") if "_parent" in kwargs: self._parent = kwargs["_parent"] return # Validate arg # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): arg = arg.to_plotly_json() elif isinstance(arg, dict): arg = _copy.copy(arg) else: raise ValueError( """\ The first argument to the plotly.graph_objs.Image constructor must be a dict or an instance of :class:`plotly.graph_objs.Image`""" ) # Handle skip_invalid # ------------------- self._skip_invalid = kwargs.pop("skip_invalid", False) self._validate = kwargs.pop("_validate", True) # Populate data dict with properties # ---------------------------------- _v = arg.pop("colormodel", None) _v = colormodel if colormodel is not None else _v if _v is not None: self["colormodel"] = _v _v = arg.pop("customdata", None) _v = customdata if customdata is not None else _v if _v is not None: self["customdata"] = _v _v = arg.pop("customdatasrc", None) _v = customdatasrc if customdatasrc is not None else _v if _v is not None: self["customdatasrc"] = _v _v = arg.pop("dx", None) _v = dx if dx is not None else _v if _v is not None: self["dx"] = _v _v = arg.pop("dy", None) _v = dy if dy is not None else _v if _v is not None: self["dy"] = _v _v = arg.pop("hoverinfo", None) _v = hoverinfo if hoverinfo is not None else _v if _v is not None: self["hoverinfo"] = _v _v = arg.pop("hoverinfosrc", None) _v = hoverinfosrc if hoverinfosrc is not None else _v if _v is not None: self["hoverinfosrc"] = _v _v = arg.pop("hoverlabel", None) _v = hoverlabel if hoverlabel is not None else _v if _v is not None: self["hoverlabel"] = _v _v = arg.pop("hovertemplate", None) _v = hovertemplate if hovertemplate is not None else _v if _v is not None: self["hovertemplate"] = _v _v = arg.pop("hovertemplatesrc", None) _v = hovertemplatesrc if hovertemplatesrc is not None else _v if _v is not None: self["hovertemplatesrc"] = _v _v = arg.pop("hovertext", None) _v = hovertext if hovertext is not None else _v if _v is not None: self["hovertext"] = _v _v = arg.pop("hovertextsrc", None) _v = hovertextsrc if hovertextsrc is not None else _v if _v is not None: self["hovertextsrc"] = _v _v = arg.pop("ids", None) _v = ids if ids is not None else _v if _v is not None: self["ids"] = _v _v = arg.pop("idssrc", None) _v = idssrc if idssrc is not None else _v if _v is not None: self["idssrc"] = _v _v = arg.pop("meta", None) _v = meta if meta is not None else _v if _v is not None: self["meta"] = _v _v = arg.pop("metasrc", None) _v = metasrc if metasrc is not None else _v if _v is not None: self["metasrc"] = _v _v = arg.pop("name", None) _v = name if name is not None else _v if _v is not None: self["name"] = _v _v = arg.pop("opacity", None) _v = opacity if opacity is not None else _v if _v is not None: self["opacity"] = _v _v = arg.pop("stream", None) _v = stream if stream is not None else _v if _v is not None: self["stream"] = _v _v = arg.pop("text", None) _v = text if text is not None else _v if _v is not None: self["text"] = _v _v = arg.pop("textsrc", None) _v = textsrc if textsrc is not None else _v if _v is not None: self["textsrc"] = _v _v = arg.pop("uid", None) _v = uid if uid is not None else _v if _v is not None: self["uid"] = _v _v = arg.pop("uirevision", None) _v = uirevision if uirevision is not None else _v if _v is not None: self["uirevision"] = _v _v = arg.pop("visible", None) _v = visible if visible is not None else _v if _v is not None: self["visible"] = _v _v = arg.pop("x0", None) _v = x0 if x0 is not None else _v if _v is not None: self["x0"] = _v _v = arg.pop("xaxis", None) _v = xaxis if xaxis is not None else _v if _v is not None: self["xaxis"] = _v _v = arg.pop("y0", None) _v = y0 if y0 is not None else _v if _v is not None: self["y0"] = _v _v = arg.pop("yaxis", None) _v = yaxis if yaxis is not None else _v if _v is not None: self["yaxis"] = _v _v = arg.pop("z", None) _v = z if z is not None else _v if _v is not None: self["z"] = _v _v = arg.pop("zmax", None) _v = zmax if zmax is not None else _v if _v is not None: self["zmax"] = _v _v = arg.pop("zmin", None) _v = zmin if zmin is not None else _v if _v is not None: self["zmin"] = _v _v = arg.pop("zsrc", None) _v = zsrc if zsrc is not None else _v if _v is not None: self["zsrc"] = _v # Read-only literals # ------------------ self._props["type"] = "image" arg.pop("type", None) # Process unknown kwargs # ---------------------- self._process_kwargs(**dict(arg, **kwargs)) # Reset skip_invalid # ------------------ self._skip_invalid = False
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "colormodel", "=", "None", ",", "customdata", "=", "None", ",", "customdatasrc", "=", "None", ",", "dx", "=", "None", ",", "dy", "=", "None", ",", "hoverinfo", "=", "None", ",", "hoverinfosrc", "=", "None", ",", "hoverlabel", "=", "None", ",", "hovertemplate", "=", "None", ",", "hovertemplatesrc", "=", "None", ",", "hovertext", "=", "None", ",", "hovertextsrc", "=", "None", ",", "ids", "=", "None", ",", "idssrc", "=", "None", ",", "meta", "=", "None", ",", "metasrc", "=", "None", ",", "name", "=", "None", ",", "opacity", "=", "None", ",", "stream", "=", "None", ",", "text", "=", "None", ",", "textsrc", "=", "None", ",", "uid", "=", "None", ",", "uirevision", "=", "None", ",", "visible", "=", "None", ",", "x0", "=", "None", ",", "xaxis", "=", "None", ",", "y0", "=", "None", ",", "yaxis", "=", "None", ",", "z", "=", "None", ",", "zmax", "=", "None", ",", "zmin", "=", "None", ",", "zsrc", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", "Image", ",", "self", ")", ".", "__init__", "(", "\"image\"", ")", "if", "\"_parent\"", "in", "kwargs", ":", "self", ".", "_parent", "=", "kwargs", "[", "\"_parent\"", "]", "return", "# Validate arg", "# ------------", "if", "arg", "is", "None", ":", "arg", "=", "{", "}", "elif", "isinstance", "(", "arg", ",", "self", ".", "__class__", ")", ":", "arg", "=", "arg", ".", "to_plotly_json", "(", ")", "elif", "isinstance", "(", "arg", ",", "dict", ")", ":", "arg", "=", "_copy", ".", "copy", "(", "arg", ")", "else", ":", "raise", "ValueError", "(", "\"\"\"\\\nThe first argument to the plotly.graph_objs.Image \nconstructor must be a dict or \nan instance of :class:`plotly.graph_objs.Image`\"\"\"", ")", "# Handle skip_invalid", "# -------------------", "self", ".", "_skip_invalid", "=", "kwargs", ".", "pop", "(", "\"skip_invalid\"", ",", "False", ")", "self", ".", "_validate", "=", "kwargs", ".", "pop", "(", "\"_validate\"", ",", "True", ")", "# Populate data dict with properties", "# ----------------------------------", "_v", "=", "arg", ".", "pop", "(", "\"colormodel\"", ",", "None", ")", "_v", "=", "colormodel", "if", "colormodel", "is", "not", "None", "else", "_v", "if", "_v", "is", "not", "None", ":", "self", "[", "\"colormodel\"", "]", "=", "_v", "_v", "=", "arg", ".", "pop", "(", "\"customdata\"", ",", "None", ")", "_v", "=", "customdata", "if", "customdata", "is", "not", "None", "else", "_v", "if", "_v", "is", "not", "None", ":", "self", "[", "\"customdata\"", "]", "=", "_v", "_v", "=", "arg", ".", "pop", "(", "\"customdatasrc\"", ",", "None", ")", "_v", "=", "customdatasrc", "if", "customdatasrc", "is", "not", "None", "else", "_v", "if", "_v", "is", "not", "None", ":", "self", "[", "\"customdatasrc\"", "]", "=", "_v", "_v", "=", "arg", ".", "pop", "(", "\"dx\"", ",", "None", ")", "_v", "=", "dx", "if", "dx", "is", "not", "None", "else", "_v", "if", "_v", "is", "not", "None", ":", "self", "[", "\"dx\"", "]", "=", "_v", "_v", "=", "arg", ".", "pop", "(", "\"dy\"", ",", "None", ")", "_v", "=", "dy", "if", "dy", "is", "not", "None", "else", "_v", "if", "_v", "is", "not", "None", ":", "self", "[", "\"dy\"", "]", "=", "_v", "_v", "=", "arg", ".", "pop", "(", "\"hoverinfo\"", ",", "None", ")", "_v", "=", "hoverinfo", "if", "hoverinfo", "is", "not", "None", "else", "_v", "if", "_v", "is", "not", "None", ":", "self", "[", "\"hoverinfo\"", "]", "=", "_v", "_v", "=", "arg", ".", "pop", "(", "\"hoverinfosrc\"", ",", "None", ")", "_v", "=", "hoverinfosrc", "if", "hoverinfosrc", "is", "not", "None", "else", "_v", "if", "_v", "is", "not", "None", ":", "self", "[", "\"hoverinfosrc\"", "]", "=", "_v", "_v", "=", "arg", ".", "pop", "(", "\"hoverlabel\"", ",", "None", ")", "_v", "=", "hoverlabel", "if", "hoverlabel", "is", "not", "None", "else", "_v", "if", "_v", "is", "not", "None", ":", "self", "[", "\"hoverlabel\"", "]", "=", "_v", "_v", "=", "arg", ".", "pop", "(", "\"hovertemplate\"", ",", "None", ")", "_v", "=", "hovertemplate", "if", "hovertemplate", "is", "not", "None", "else", "_v", "if", "_v", "is", "not", "None", ":", "self", "[", "\"hovertemplate\"", "]", "=", "_v", "_v", "=", "arg", ".", "pop", "(", "\"hovertemplatesrc\"", ",", "None", ")", "_v", "=", "hovertemplatesrc", "if", "hovertemplatesrc", "is", "not", "None", "else", "_v", "if", "_v", "is", "not", "None", ":", "self", "[", "\"hovertemplatesrc\"", "]", "=", "_v", "_v", "=", "arg", ".", "pop", "(", "\"hovertext\"", ",", "None", ")", "_v", "=", "hovertext", "if", "hovertext", "is", "not", "None", "else", "_v", "if", "_v", "is", "not", "None", ":", "self", "[", "\"hovertext\"", "]", "=", "_v", "_v", "=", "arg", ".", "pop", "(", "\"hovertextsrc\"", ",", "None", ")", "_v", "=", "hovertextsrc", "if", "hovertextsrc", "is", "not", "None", "else", "_v", "if", "_v", "is", "not", "None", ":", "self", "[", "\"hovertextsrc\"", "]", "=", "_v", "_v", "=", "arg", ".", "pop", "(", "\"ids\"", ",", "None", ")", "_v", "=", "ids", "if", "ids", "is", "not", "None", "else", "_v", "if", "_v", "is", "not", "None", ":", "self", "[", "\"ids\"", "]", "=", "_v", "_v", "=", "arg", ".", "pop", "(", "\"idssrc\"", ",", "None", ")", "_v", "=", "idssrc", "if", "idssrc", "is", "not", "None", "else", "_v", "if", "_v", "is", "not", "None", ":", "self", "[", "\"idssrc\"", "]", "=", "_v", "_v", "=", "arg", ".", "pop", "(", "\"meta\"", ",", "None", ")", "_v", "=", "meta", "if", "meta", "is", "not", "None", "else", "_v", "if", "_v", "is", "not", "None", ":", "self", "[", "\"meta\"", "]", "=", "_v", "_v", "=", "arg", ".", "pop", "(", "\"metasrc\"", ",", "None", ")", "_v", "=", "metasrc", "if", "metasrc", "is", "not", "None", "else", "_v", "if", "_v", "is", "not", "None", ":", "self", "[", "\"metasrc\"", "]", "=", "_v", "_v", "=", "arg", ".", "pop", "(", "\"name\"", ",", "None", ")", "_v", "=", "name", "if", "name", "is", "not", "None", "else", "_v", "if", "_v", "is", "not", "None", ":", "self", "[", "\"name\"", "]", "=", "_v", "_v", "=", "arg", ".", "pop", "(", "\"opacity\"", ",", "None", ")", "_v", "=", "opacity", "if", "opacity", "is", "not", "None", "else", "_v", "if", "_v", "is", "not", "None", ":", "self", "[", "\"opacity\"", "]", "=", "_v", "_v", "=", "arg", ".", "pop", "(", "\"stream\"", ",", "None", ")", "_v", "=", "stream", "if", "stream", "is", "not", "None", "else", "_v", "if", "_v", "is", "not", "None", ":", "self", "[", "\"stream\"", "]", "=", "_v", "_v", "=", "arg", ".", "pop", "(", "\"text\"", ",", "None", ")", "_v", "=", "text", "if", "text", "is", "not", "None", "else", "_v", "if", "_v", "is", "not", "None", ":", "self", "[", "\"text\"", "]", "=", "_v", "_v", "=", "arg", ".", "pop", "(", "\"textsrc\"", ",", "None", ")", "_v", "=", "textsrc", "if", "textsrc", "is", "not", "None", "else", "_v", "if", "_v", "is", "not", "None", ":", "self", "[", "\"textsrc\"", "]", "=", "_v", "_v", "=", "arg", ".", "pop", "(", "\"uid\"", ",", "None", ")", "_v", "=", "uid", "if", "uid", "is", "not", "None", "else", "_v", "if", "_v", "is", "not", "None", ":", "self", "[", "\"uid\"", "]", "=", "_v", "_v", "=", "arg", ".", "pop", "(", "\"uirevision\"", ",", "None", ")", "_v", "=", "uirevision", "if", "uirevision", "is", "not", "None", "else", "_v", "if", "_v", "is", "not", "None", ":", "self", "[", "\"uirevision\"", "]", "=", "_v", "_v", "=", "arg", ".", "pop", "(", "\"visible\"", ",", "None", ")", "_v", "=", "visible", "if", "visible", "is", "not", "None", "else", "_v", "if", "_v", "is", "not", "None", ":", "self", "[", "\"visible\"", "]", "=", "_v", "_v", "=", "arg", ".", "pop", "(", "\"x0\"", ",", "None", ")", "_v", "=", "x0", "if", "x0", "is", "not", "None", "else", "_v", "if", "_v", "is", "not", "None", ":", "self", "[", "\"x0\"", "]", "=", "_v", "_v", "=", "arg", ".", "pop", "(", "\"xaxis\"", ",", "None", ")", "_v", "=", "xaxis", "if", "xaxis", "is", "not", "None", "else", "_v", "if", "_v", "is", "not", "None", ":", "self", "[", "\"xaxis\"", "]", "=", "_v", "_v", "=", "arg", ".", "pop", "(", "\"y0\"", ",", "None", ")", "_v", "=", "y0", "if", "y0", "is", "not", "None", "else", "_v", "if", "_v", "is", "not", "None", ":", "self", "[", "\"y0\"", "]", "=", "_v", "_v", "=", "arg", ".", "pop", "(", "\"yaxis\"", ",", "None", ")", "_v", "=", "yaxis", "if", "yaxis", "is", "not", "None", "else", "_v", "if", "_v", "is", "not", "None", ":", "self", "[", "\"yaxis\"", "]", "=", "_v", "_v", "=", "arg", ".", "pop", "(", "\"z\"", ",", "None", ")", "_v", "=", "z", "if", "z", "is", "not", "None", "else", "_v", "if", "_v", "is", "not", "None", ":", "self", "[", "\"z\"", "]", "=", "_v", "_v", "=", "arg", ".", "pop", "(", "\"zmax\"", ",", "None", ")", "_v", "=", "zmax", "if", "zmax", "is", "not", "None", "else", "_v", "if", "_v", "is", "not", "None", ":", "self", "[", "\"zmax\"", "]", "=", "_v", "_v", "=", "arg", ".", "pop", "(", "\"zmin\"", ",", "None", ")", "_v", "=", "zmin", "if", "zmin", "is", "not", "None", "else", "_v", "if", "_v", "is", "not", "None", ":", "self", "[", "\"zmin\"", "]", "=", "_v", "_v", "=", "arg", ".", "pop", "(", "\"zsrc\"", ",", "None", ")", "_v", "=", "zsrc", "if", "zsrc", "is", "not", "None", "else", "_v", "if", "_v", "is", "not", "None", ":", "self", "[", "\"zsrc\"", "]", "=", "_v", "# Read-only literals", "# ------------------", "self", ".", "_props", "[", "\"type\"", "]", "=", "\"image\"", "arg", ".", "pop", "(", "\"type\"", ",", "None", ")", "# Process unknown kwargs", "# ----------------------", "self", ".", "_process_kwargs", "(", "*", "*", "dict", "(", "arg", ",", "*", "*", "kwargs", ")", ")", "# Reset skip_invalid", "# ------------------", "self", ".", "_skip_invalid", "=", "False" ]
[ 1009, 4 ]
[ 1392, 34 ]
python
en
['en', 'error', 'th']
False
Font.color
(self)
The 'color' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - A named CSS color: aliceblue, antiquewhite, aqua, aquamarine, azure, beige, bisque, black, blanchedalmond, blue, blueviolet, brown, burlywood, cadetblue, chartreuse, chocolate, coral, cornflowerblue, cornsilk, crimson, cyan, darkblue, darkcyan, darkgoldenrod, darkgray, darkgrey, darkgreen, darkkhaki, darkmagenta, darkolivegreen, darkorange, darkorchid, darkred, darksalmon, darkseagreen, darkslateblue, darkslategray, darkslategrey, darkturquoise, darkviolet, deeppink, deepskyblue, dimgray, dimgrey, dodgerblue, firebrick, floralwhite, forestgreen, fuchsia, gainsboro, ghostwhite, gold, goldenrod, gray, grey, green, greenyellow, honeydew, hotpink, indianred, indigo, ivory, khaki, lavender, lavenderblush, lawngreen, lemonchiffon, lightblue, lightcoral, lightcyan, lightgoldenrodyellow, lightgray, lightgrey, lightgreen, lightpink, lightsalmon, lightseagreen, lightskyblue, lightslategray, lightslategrey, lightsteelblue, lightyellow, lime, limegreen, linen, magenta, maroon, mediumaquamarine, mediumblue, mediumorchid, mediumpurple, mediumseagreen, mediumslateblue, mediumspringgreen, mediumturquoise, mediumvioletred, midnightblue, mintcream, mistyrose, moccasin, navajowhite, navy, oldlace, olive, olivedrab, orange, orangered, orchid, palegoldenrod, palegreen, paleturquoise, palevioletred, papayawhip, peachpuff, peru, pink, plum, powderblue, purple, red, rosybrown, royalblue, rebeccapurple, saddlebrown, salmon, sandybrown, seagreen, seashell, sienna, silver, skyblue, slateblue, slategray, slategrey, snow, springgreen, steelblue, tan, teal, thistle, tomato, turquoise, violet, wheat, white, whitesmoke, yellow, yellowgreen Returns ------- str
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: aliceblue, antiquewhite, aqua, aquamarine, azure, beige, bisque, black, blanchedalmond, blue, blueviolet, brown, burlywood, cadetblue, chartreuse, chocolate, coral, cornflowerblue, cornsilk, crimson, cyan, darkblue, darkcyan, darkgoldenrod, darkgray, darkgrey, darkgreen, darkkhaki, darkmagenta, darkolivegreen, darkorange, darkorchid, darkred, darksalmon, darkseagreen, darkslateblue, darkslategray, darkslategrey, darkturquoise, darkviolet, deeppink, deepskyblue, dimgray, dimgrey, dodgerblue, firebrick, floralwhite, forestgreen, fuchsia, gainsboro, ghostwhite, gold, goldenrod, gray, grey, green, greenyellow, honeydew, hotpink, indianred, indigo, ivory, khaki, lavender, lavenderblush, lawngreen, lemonchiffon, lightblue, lightcoral, lightcyan, lightgoldenrodyellow, lightgray, lightgrey, lightgreen, lightpink, lightsalmon, lightseagreen, lightskyblue, lightslategray, lightslategrey, lightsteelblue, lightyellow, lime, limegreen, linen, magenta, maroon, mediumaquamarine, mediumblue, mediumorchid, mediumpurple, mediumseagreen, mediumslateblue, mediumspringgreen, mediumturquoise, mediumvioletred, midnightblue, mintcream, mistyrose, moccasin, navajowhite, navy, oldlace, olive, olivedrab, orange, orangered, orchid, palegoldenrod, palegreen, paleturquoise, palevioletred, papayawhip, peachpuff, peru, pink, plum, powderblue, purple, red, rosybrown, royalblue, rebeccapurple, saddlebrown, salmon, sandybrown, seagreen, seashell, sienna, silver, skyblue, slateblue, slategray, slategrey, snow, springgreen, steelblue, tan, teal, thistle, tomato, turquoise, violet, wheat, white, whitesmoke, yellow, yellowgreen
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 named CSS color: aliceblue, antiquewhite, aqua, aquamarine, azure, beige, bisque, black, blanchedalmond, blue, blueviolet, brown, burlywood, cadetblue, chartreuse, chocolate, coral, cornflowerblue, cornsilk, crimson, cyan, darkblue, darkcyan, darkgoldenrod, darkgray, darkgrey, darkgreen, darkkhaki, darkmagenta, darkolivegreen, darkorange, darkorchid, darkred, darksalmon, darkseagreen, darkslateblue, darkslategray, darkslategrey, darkturquoise, darkviolet, deeppink, deepskyblue, dimgray, dimgrey, dodgerblue, firebrick, floralwhite, forestgreen, fuchsia, gainsboro, ghostwhite, gold, goldenrod, gray, grey, green, greenyellow, honeydew, hotpink, indianred, indigo, ivory, khaki, lavender, lavenderblush, lawngreen, lemonchiffon, lightblue, lightcoral, lightcyan, lightgoldenrodyellow, lightgray, lightgrey, lightgreen, lightpink, lightsalmon, lightseagreen, lightskyblue, lightslategray, lightslategrey, lightsteelblue, lightyellow, lime, limegreen, linen, magenta, maroon, mediumaquamarine, mediumblue, mediumorchid, mediumpurple, mediumseagreen, mediumslateblue, mediumspringgreen, mediumturquoise, mediumvioletred, midnightblue, mintcream, mistyrose, moccasin, navajowhite, navy, oldlace, olive, olivedrab, orange, orangered, orchid, palegoldenrod, palegreen, paleturquoise, palevioletred, papayawhip, peachpuff, peru, pink, plum, powderblue, purple, red, rosybrown, royalblue, rebeccapurple, saddlebrown, salmon, sandybrown, seagreen, seashell, sienna, silver, skyblue, slateblue, slategray, slategrey, snow, springgreen, steelblue, tan, teal, thistle, tomato, turquoise, violet, wheat, white, whitesmoke, yellow, yellowgreen Returns ------- str """ return self["color"]
[ "def", "color", "(", "self", ")", ":", "return", "self", "[", "\"color\"", "]" ]
[ 15, 4 ]
[ 63, 28 ]
python
en
['en', 'error', 'th']
False
Font.family
(self)
HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart- studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include "Arial", "Balto", "Courier New", "Droid Sans",, "Droid Serif", "Droid Sans Mono", "Gravitas One", "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", "Raleway", "Times New Roman". The 'family' property is a string and must be specified as: - A non-empty string Returns ------- str
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 if they aren't available on the system. The Chart Studio Cloud (at https://chart- studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include "Arial", "Balto", "Courier New", "Droid Sans",, "Droid Serif", "Droid Sans Mono", "Gravitas One", "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", "Raleway", "Times New Roman". The 'family' property is a string and must be specified as: - A non-empty string
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 preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart- studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include "Arial", "Balto", "Courier New", "Droid Sans",, "Droid Serif", "Droid Sans Mono", "Gravitas One", "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", "Raleway", "Times New Roman". The 'family' property is a string and must be specified as: - A non-empty string Returns ------- str """ return self["family"]
[ "def", "family", "(", "self", ")", ":", "return", "self", "[", "\"family\"", "]" ]
[ 72, 4 ]
[ 94, 29 ]
python
en
['en', 'error', 'th']
False
Font.size
(self)
The 'size' property is a number and may be specified as: - An int or float in the interval [1, inf] Returns ------- int|float
The 'size' property is a number and may be specified as: - An int or float in the interval [1, inf]
def size(self): """ The 'size' property is a number and may be specified as: - An int or float in the interval [1, inf] Returns ------- int|float """ return self["size"]
[ "def", "size", "(", "self", ")", ":", "return", "self", "[", "\"size\"", "]" ]
[ 103, 4 ]
[ 112, 27 ]
python
en
['en', 'error', 'th']
False
Font.__init__
(self, arg=None, color=None, family=None, size=None, **kwargs)
Construct a new Font object Sets the font of the current value label text. Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.layout.slider. currentvalue.Font` color family 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 if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on- premise) generates images on a server, where only a select number of fonts are installed and supported. These include "Arial", "Balto", "Courier New", "Droid Sans",, "Droid Serif", "Droid Sans Mono", "Gravitas One", "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", "Raleway", "Times New Roman". size Returns ------- Font
Construct a new Font object Sets the font of the current value label text.
def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): """ Construct a new Font object Sets the font of the current value label text. Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.layout.slider. currentvalue.Font` color family 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 if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on- premise) generates images on a server, where only a select number of fonts are installed and supported. These include "Arial", "Balto", "Courier New", "Droid Sans",, "Droid Serif", "Droid Sans Mono", "Gravitas One", "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", "Raleway", "Times New Roman". size Returns ------- Font """ super(Font, self).__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return # Validate arg # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): arg = arg.to_plotly_json() elif isinstance(arg, dict): arg = _copy.copy(arg) else: raise ValueError( """\ The first argument to the plotly.graph_objs.layout.slider.currentvalue.Font constructor must be a dict or an instance of :class:`plotly.graph_objs.layout.slider.currentvalue.Font`""" ) # Handle skip_invalid # ------------------- self._skip_invalid = kwargs.pop("skip_invalid", False) self._validate = kwargs.pop("_validate", True) # Populate data dict with properties # ---------------------------------- _v = arg.pop("color", None) _v = color if color is not None else _v if _v is not None: self["color"] = _v _v = arg.pop("family", None) _v = family if family is not None else _v if _v is not None: self["family"] = _v _v = arg.pop("size", None) _v = size if size is not None else _v if _v is not None: self["size"] = _v # Process unknown kwargs # ---------------------- self._process_kwargs(**dict(arg, **kwargs)) # Reset skip_invalid # ------------------ self._skip_invalid = False
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "color", "=", "None", ",", "family", "=", "None", ",", "size", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", "Font", ",", "self", ")", ".", "__init__", "(", "\"font\"", ")", "if", "\"_parent\"", "in", "kwargs", ":", "self", ".", "_parent", "=", "kwargs", "[", "\"_parent\"", "]", "return", "# Validate arg", "# ------------", "if", "arg", "is", "None", ":", "arg", "=", "{", "}", "elif", "isinstance", "(", "arg", ",", "self", ".", "__class__", ")", ":", "arg", "=", "arg", ".", "to_plotly_json", "(", ")", "elif", "isinstance", "(", "arg", ",", "dict", ")", ":", "arg", "=", "_copy", ".", "copy", "(", "arg", ")", "else", ":", "raise", "ValueError", "(", "\"\"\"\\\nThe first argument to the plotly.graph_objs.layout.slider.currentvalue.Font \nconstructor must be a dict or \nan instance of :class:`plotly.graph_objs.layout.slider.currentvalue.Font`\"\"\"", ")", "# Handle skip_invalid", "# -------------------", "self", ".", "_skip_invalid", "=", "kwargs", ".", "pop", "(", "\"skip_invalid\"", ",", "False", ")", "self", ".", "_validate", "=", "kwargs", ".", "pop", "(", "\"_validate\"", ",", "True", ")", "# Populate data dict with properties", "# ----------------------------------", "_v", "=", "arg", ".", "pop", "(", "\"color\"", ",", "None", ")", "_v", "=", "color", "if", "color", "is", "not", "None", "else", "_v", "if", "_v", "is", "not", "None", ":", "self", "[", "\"color\"", "]", "=", "_v", "_v", "=", "arg", ".", "pop", "(", "\"family\"", ",", "None", ")", "_v", "=", "family", "if", "family", "is", "not", "None", "else", "_v", "if", "_v", "is", "not", "None", ":", "self", "[", "\"family\"", "]", "=", "_v", "_v", "=", "arg", ".", "pop", "(", "\"size\"", ",", "None", ")", "_v", "=", "size", "if", "size", "is", "not", "None", "else", "_v", "if", "_v", "is", "not", "None", ":", "self", "[", "\"size\"", "]", "=", "_v", "# Process unknown kwargs", "# ----------------------", "self", ".", "_process_kwargs", "(", "*", "*", "dict", "(", "arg", ",", "*", "*", "kwargs", ")", ")", "# Reset skip_invalid", "# ------------------", "self", ".", "_skip_invalid", "=", "False" ]
[ 143, 4 ]
[ 226, 34 ]
python
en
['en', 'error', 'th']
False
Textfont.color
(self)
Sets the text font color of selected points. The 'color' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - A named CSS color: aliceblue, antiquewhite, aqua, aquamarine, azure, beige, bisque, black, blanchedalmond, blue, blueviolet, brown, burlywood, cadetblue, chartreuse, chocolate, coral, cornflowerblue, cornsilk, crimson, cyan, darkblue, darkcyan, darkgoldenrod, darkgray, darkgrey, darkgreen, darkkhaki, darkmagenta, darkolivegreen, darkorange, darkorchid, darkred, darksalmon, darkseagreen, darkslateblue, darkslategray, darkslategrey, darkturquoise, darkviolet, deeppink, deepskyblue, dimgray, dimgrey, dodgerblue, firebrick, floralwhite, forestgreen, fuchsia, gainsboro, ghostwhite, gold, goldenrod, gray, grey, green, greenyellow, honeydew, hotpink, indianred, indigo, ivory, khaki, lavender, lavenderblush, lawngreen, lemonchiffon, lightblue, lightcoral, lightcyan, lightgoldenrodyellow, lightgray, lightgrey, lightgreen, lightpink, lightsalmon, lightseagreen, lightskyblue, lightslategray, lightslategrey, lightsteelblue, lightyellow, lime, limegreen, linen, magenta, maroon, mediumaquamarine, mediumblue, mediumorchid, mediumpurple, mediumseagreen, mediumslateblue, mediumspringgreen, mediumturquoise, mediumvioletred, midnightblue, mintcream, mistyrose, moccasin, navajowhite, navy, oldlace, olive, olivedrab, orange, orangered, orchid, palegoldenrod, palegreen, paleturquoise, palevioletred, papayawhip, peachpuff, peru, pink, plum, powderblue, purple, red, rosybrown, royalblue, rebeccapurple, saddlebrown, salmon, sandybrown, seagreen, seashell, sienna, silver, skyblue, slateblue, slategray, slategrey, snow, springgreen, steelblue, tan, teal, thistle, tomato, turquoise, violet, wheat, white, whitesmoke, yellow, yellowgreen Returns ------- str
Sets the text font color of selected points. The 'color' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - A named CSS color: aliceblue, antiquewhite, aqua, aquamarine, azure, beige, bisque, black, blanchedalmond, blue, blueviolet, brown, burlywood, cadetblue, chartreuse, chocolate, coral, cornflowerblue, cornsilk, crimson, cyan, darkblue, darkcyan, darkgoldenrod, darkgray, darkgrey, darkgreen, darkkhaki, darkmagenta, darkolivegreen, darkorange, darkorchid, darkred, darksalmon, darkseagreen, darkslateblue, darkslategray, darkslategrey, darkturquoise, darkviolet, deeppink, deepskyblue, dimgray, dimgrey, dodgerblue, firebrick, floralwhite, forestgreen, fuchsia, gainsboro, ghostwhite, gold, goldenrod, gray, grey, green, greenyellow, honeydew, hotpink, indianred, indigo, ivory, khaki, lavender, lavenderblush, lawngreen, lemonchiffon, lightblue, lightcoral, lightcyan, lightgoldenrodyellow, lightgray, lightgrey, lightgreen, lightpink, lightsalmon, lightseagreen, lightskyblue, lightslategray, lightslategrey, lightsteelblue, lightyellow, lime, limegreen, linen, magenta, maroon, mediumaquamarine, mediumblue, mediumorchid, mediumpurple, mediumseagreen, mediumslateblue, mediumspringgreen, mediumturquoise, mediumvioletred, midnightblue, mintcream, mistyrose, moccasin, navajowhite, navy, oldlace, olive, olivedrab, orange, orangered, orchid, palegoldenrod, palegreen, paleturquoise, palevioletred, papayawhip, peachpuff, peru, pink, plum, powderblue, purple, red, rosybrown, royalblue, rebeccapurple, saddlebrown, salmon, sandybrown, seagreen, seashell, sienna, silver, skyblue, slateblue, slategray, slategrey, snow, springgreen, steelblue, tan, teal, thistle, tomato, turquoise, violet, wheat, white, whitesmoke, yellow, yellowgreen
def color(self): """ Sets the text font color of selected points. The 'color' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - A named CSS color: aliceblue, antiquewhite, aqua, aquamarine, azure, beige, bisque, black, blanchedalmond, blue, blueviolet, brown, burlywood, cadetblue, chartreuse, chocolate, coral, cornflowerblue, cornsilk, crimson, cyan, darkblue, darkcyan, darkgoldenrod, darkgray, darkgrey, darkgreen, darkkhaki, darkmagenta, darkolivegreen, darkorange, darkorchid, darkred, darksalmon, darkseagreen, darkslateblue, darkslategray, darkslategrey, darkturquoise, darkviolet, deeppink, deepskyblue, dimgray, dimgrey, dodgerblue, firebrick, floralwhite, forestgreen, fuchsia, gainsboro, ghostwhite, gold, goldenrod, gray, grey, green, greenyellow, honeydew, hotpink, indianred, indigo, ivory, khaki, lavender, lavenderblush, lawngreen, lemonchiffon, lightblue, lightcoral, lightcyan, lightgoldenrodyellow, lightgray, lightgrey, lightgreen, lightpink, lightsalmon, lightseagreen, lightskyblue, lightslategray, lightslategrey, lightsteelblue, lightyellow, lime, limegreen, linen, magenta, maroon, mediumaquamarine, mediumblue, mediumorchid, mediumpurple, mediumseagreen, mediumslateblue, mediumspringgreen, mediumturquoise, mediumvioletred, midnightblue, mintcream, mistyrose, moccasin, navajowhite, navy, oldlace, olive, olivedrab, orange, orangered, orchid, palegoldenrod, palegreen, paleturquoise, palevioletred, papayawhip, peachpuff, peru, pink, plum, powderblue, purple, red, rosybrown, royalblue, rebeccapurple, saddlebrown, salmon, sandybrown, seagreen, seashell, sienna, silver, skyblue, slateblue, slategray, slategrey, snow, springgreen, steelblue, tan, teal, thistle, tomato, turquoise, violet, wheat, white, whitesmoke, yellow, yellowgreen Returns ------- str """ return self["color"]
[ "def", "color", "(", "self", ")", ":", "return", "self", "[", "\"color\"", "]" ]
[ 15, 4 ]
[ 65, 28 ]
python
en
['en', 'error', 'th']
False
Textfont.__init__
(self, arg=None, color=None, **kwargs)
Construct a new Textfont object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.scatterpolar.s elected.Textfont` color Sets the text font color of selected points. Returns ------- Textfont
Construct a new Textfont object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.scatterpolar.s elected.Textfont` color Sets the text font color of selected points.
def __init__(self, arg=None, color=None, **kwargs): """ Construct a new Textfont object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.scatterpolar.s elected.Textfont` color Sets the text font color of selected points. Returns ------- Textfont """ super(Textfont, self).__init__("textfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return # Validate arg # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): arg = arg.to_plotly_json() elif isinstance(arg, dict): arg = _copy.copy(arg) else: raise ValueError( """\ The first argument to the plotly.graph_objs.scatterpolar.selected.Textfont constructor must be a dict or an instance of :class:`plotly.graph_objs.scatterpolar.selected.Textfont`""" ) # Handle skip_invalid # ------------------- self._skip_invalid = kwargs.pop("skip_invalid", False) self._validate = kwargs.pop("_validate", True) # Populate data dict with properties # ---------------------------------- _v = arg.pop("color", None) _v = color if color is not None else _v if _v is not None: self["color"] = _v # Process unknown kwargs # ---------------------- self._process_kwargs(**dict(arg, **kwargs)) # Reset skip_invalid # ------------------ self._skip_invalid = False
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "color", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", "Textfont", ",", "self", ")", ".", "__init__", "(", "\"textfont\"", ")", "if", "\"_parent\"", "in", "kwargs", ":", "self", ".", "_parent", "=", "kwargs", "[", "\"_parent\"", "]", "return", "# Validate arg", "# ------------", "if", "arg", "is", "None", ":", "arg", "=", "{", "}", "elif", "isinstance", "(", "arg", ",", "self", ".", "__class__", ")", ":", "arg", "=", "arg", ".", "to_plotly_json", "(", ")", "elif", "isinstance", "(", "arg", ",", "dict", ")", ":", "arg", "=", "_copy", ".", "copy", "(", "arg", ")", "else", ":", "raise", "ValueError", "(", "\"\"\"\\\nThe first argument to the plotly.graph_objs.scatterpolar.selected.Textfont \nconstructor must be a dict or \nan instance of :class:`plotly.graph_objs.scatterpolar.selected.Textfont`\"\"\"", ")", "# Handle skip_invalid", "# -------------------", "self", ".", "_skip_invalid", "=", "kwargs", ".", "pop", "(", "\"skip_invalid\"", ",", "False", ")", "self", ".", "_validate", "=", "kwargs", ".", "pop", "(", "\"_validate\"", ",", "True", ")", "# Populate data dict with properties", "# ----------------------------------", "_v", "=", "arg", ".", "pop", "(", "\"color\"", ",", "None", ")", "_v", "=", "color", "if", "color", "is", "not", "None", "else", "_v", "if", "_v", "is", "not", "None", ":", "self", "[", "\"color\"", "]", "=", "_v", "# Process unknown kwargs", "# ----------------------", "self", ".", "_process_kwargs", "(", "*", "*", "dict", "(", "arg", ",", "*", "*", "kwargs", ")", ")", "# Reset skip_invalid", "# ------------------", "self", ".", "_skip_invalid", "=", "False" ]
[ 80, 4 ]
[ 137, 34 ]
python
en
['en', 'error', 'th']
False
TestPerform.test_init
(self)
Test initialization.
Test initialization.
def test_init(self): """Test initialization.""" assert self.perform.name == self.test_name assert self.perform.params == self.test_params
[ "def", "test_init", "(", "self", ")", ":", "assert", "self", ".", "perform", ".", "name", "==", "self", ".", "test_name", "assert", "self", ".", "perform", ".", "params", "==", "self", ".", "test_params" ]
[ 13, 4 ]
[ 16, 54 ]
python
co
['es', 'co', 'en']
False
TestPerform.test_deserialize
(self, mock_perform_schema_load)
Test deserialization.
Test deserialization.
def test_deserialize(self, mock_perform_schema_load): """ Test deserialization. """ obj = {"obj": "obj"} request = Perform.deserialize(obj) mock_perform_schema_load.assert_called_once_with(obj) assert request is mock_perform_schema_load.return_value
[ "def", "test_deserialize", "(", "self", ",", "mock_perform_schema_load", ")", ":", "obj", "=", "{", "\"obj\"", ":", "\"obj\"", "}", "request", "=", "Perform", ".", "deserialize", "(", "obj", ")", "mock_perform_schema_load", ".", "assert_called_once_with", "(", "obj", ")", "assert", "request", "is", "mock_perform_schema_load", ".", "return_value" ]
[ 23, 4 ]
[ 32, 63 ]
python
en
['en', 'error', 'th']
False
TestPerform.test_serialize
(self, mock_perform_schema_dump)
Test serialization.
Test serialization.
def test_serialize(self, mock_perform_schema_dump): """ Test serialization. """ request_dict = self.perform.serialize() mock_perform_schema_dump.assert_called_once_with(self.perform) assert request_dict is mock_perform_schema_dump.return_value
[ "def", "test_serialize", "(", "self", ",", "mock_perform_schema_dump", ")", ":", "request_dict", "=", "self", ".", "perform", ".", "serialize", "(", ")", "mock_perform_schema_dump", ".", "assert_called_once_with", "(", "self", ".", "perform", ")", "assert", "request_dict", "is", "mock_perform_schema_dump", ".", "return_value" ]
[ 35, 4 ]
[ 41, 68 ]
python
en
['en', 'error', 'th']
False