content stringlengths 1 103k ⌀ | path stringlengths 8 216 | filename stringlengths 2 179 | language stringclasses 15
values | size_bytes int64 2 189k | quality_score float64 0.5 0.95 | complexity float64 0 1 | documentation_ratio float64 0 1 | repository stringclasses 5
values | stars int64 0 1k | created_date stringdate 2023-07-10 19:21:08 2025-07-09 19:11:45 | license stringclasses 4
values | is_test bool 2
classes | file_hash stringlengths 32 32 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
import sys\nfrom typing import TYPE_CHECKING\n\nif TYPE_CHECKING:\n from ._tickfont import Tickfont\n from ._tickformatstop import Tickformatstop\n from ._title import Title\n from . import title\nelse:\n from _plotly_utils.importers import relative_import\n\n __all__, __getattr__, __dir__ = relative_import(\n __name__,\n [".title"],\n ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"],\n )\n | .venv\Lib\site-packages\plotly\graph_objs\icicle\marker\colorbar\__init__.py | __init__.py | Python | 446 | 0.85 | 0.0625 | 0 | vue-tools | 18 | 2025-02-08T20:37:54.114251 | BSD-3-Clause | false | c1c51c7cdaa97ba16b501a938689f435 |
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType\nimport copy as _copy\n\n\nclass Font(_BaseTraceHierarchyType):\n _parent_path_str = "icicle.marker.colorbar.title"\n _path_str = "icicle.marker.colorbar.title.font"\n _valid_props = {\n "color",\n "family",\n "lineposition",\n "shadow",\n "size",\n "style",\n "textcase",\n "variant",\n "weight",\n }\n\n @property\n def color(self):\n """\n The 'color' property is a color and may be specified as:\n - A hex string (e.g. '#ff0000')\n - An rgb/rgba string (e.g. 'rgb(255,0,0)')\n - An hsl/hsla string (e.g. 'hsl(0,100%,50%)')\n - An hsv/hsva string (e.g. 'hsv(0,100%,100%)')\n - A named CSS color: see https://plotly.com/python/css-colors/ for a list\n\n Returns\n -------\n str\n """\n return self["color"]\n\n @color.setter\n def color(self, val):\n self["color"] = val\n\n @property\n def family(self):\n """\n HTML font family - the typeface that will be applied by the web\n browser. The web browser can only apply a font if it is\n available on the system where it runs. Provide multiple font\n families, separated by commas, to indicate the order in which\n to apply fonts if they aren't available.\n\n The 'family' property is a string and must be specified as:\n - A non-empty string\n\n Returns\n -------\n str\n """\n return self["family"]\n\n @family.setter\n def family(self, val):\n self["family"] = val\n\n @property\n def lineposition(self):\n """\n Sets the kind of decoration line(s) with text, such as an\n "under", "over" or "through" as well as combinations e.g.\n "under+over", etc.\n\n The 'lineposition' property is a flaglist and may be specified\n as a string containing:\n - Any combination of ['under', 'over', 'through'] joined with '+' characters\n (e.g. 'under+over')\n OR exactly one of ['none'] (e.g. 'none')\n\n Returns\n -------\n Any\n """\n return self["lineposition"]\n\n @lineposition.setter\n def lineposition(self, val):\n self["lineposition"] = val\n\n @property\n def shadow(self):\n """\n Sets the shape and color of the shadow behind text. "auto"\n places minimal shadow and applies contrast text font color. See\n https://developer.mozilla.org/en-US/docs/Web/CSS/text-shadow\n for additional options.\n\n The 'shadow' property is a string and must be specified as:\n - A string\n - A number that will be converted to a string\n\n Returns\n -------\n str\n """\n return self["shadow"]\n\n @shadow.setter\n def shadow(self, val):\n self["shadow"] = val\n\n @property\n def size(self):\n """\n The 'size' property is a number and may be specified as:\n - An int or float in the interval [1, inf]\n\n Returns\n -------\n int|float\n """\n return self["size"]\n\n @size.setter\n def size(self, val):\n self["size"] = val\n\n @property\n def style(self):\n """\n Sets whether a font should be styled with a normal or italic\n face from its family.\n\n The 'style' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['normal', 'italic']\n\n Returns\n -------\n Any\n """\n return self["style"]\n\n @style.setter\n def style(self, val):\n self["style"] = val\n\n @property\n def textcase(self):\n """\n Sets capitalization of text. It can be used to make text appear\n in all-uppercase or all-lowercase, or with each word\n capitalized.\n\n The 'textcase' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['normal', 'word caps', 'upper', 'lower']\n\n Returns\n -------\n Any\n """\n return self["textcase"]\n\n @textcase.setter\n def textcase(self, val):\n self["textcase"] = val\n\n @property\n def variant(self):\n """\n Sets the variant of the font.\n\n The 'variant' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['normal', 'small-caps', 'all-small-caps',\n 'all-petite-caps', 'petite-caps', 'unicase']\n\n Returns\n -------\n Any\n """\n return self["variant"]\n\n @variant.setter\n def variant(self, val):\n self["variant"] = val\n\n @property\n def weight(self):\n """\n Sets the weight (or boldness) of the font.\n\n The 'weight' property is a integer and may be specified as:\n - An int (or float that will be cast to an int)\n in the interval [1, 1000]\n OR exactly one of ['normal', 'bold'] (e.g. 'bold')\n\n Returns\n -------\n int\n """\n return self["weight"]\n\n @weight.setter\n def weight(self, val):\n self["weight"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n color\n\n family\n HTML font family - the typeface that will be applied by\n the web browser. The web browser can only apply a font\n if it is available on the system where it runs. Provide\n multiple font families, separated by commas, to\n indicate the order in which to apply fonts if they\n aren't available.\n lineposition\n Sets the kind of decoration line(s) with text, such as\n an "under", "over" or "through" as well as combinations\n e.g. "under+over", etc.\n shadow\n Sets the shape and color of the shadow behind text.\n "auto" places minimal shadow and applies contrast text\n font color. See https://developer.mozilla.org/en-\n US/docs/Web/CSS/text-shadow for additional options.\n size\n\n style\n Sets whether a font should be styled with a normal or\n italic face from its family.\n textcase\n Sets capitalization of text. It can be used to make\n text appear in all-uppercase or all-lowercase, or with\n each word capitalized.\n variant\n Sets the variant of the font.\n weight\n Sets the weight (or boldness) of the font.\n """\n\n def __init__(\n self,\n arg=None,\n color=None,\n family=None,\n lineposition=None,\n shadow=None,\n size=None,\n style=None,\n textcase=None,\n variant=None,\n weight=None,\n **kwargs,\n ):\n """\n Construct a new Font object\n\n Sets this color bar's title font.\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of :class:`plotly.graph_objs.icicle.marker.\n colorbar.title.Font`\n color\n\n family\n HTML font family - the typeface that will be applied by\n the web browser. The web browser can only apply a font\n if it is available on the system where it runs. Provide\n multiple font families, separated by commas, to\n indicate the order in which to apply fonts if they\n aren't available.\n lineposition\n Sets the kind of decoration line(s) with text, such as\n an "under", "over" or "through" as well as combinations\n e.g. "under+over", etc.\n shadow\n Sets the shape and color of the shadow behind text.\n "auto" places minimal shadow and applies contrast text\n font color. See https://developer.mozilla.org/en-\n US/docs/Web/CSS/text-shadow for additional options.\n size\n\n style\n Sets whether a font should be styled with a normal or\n italic face from its family.\n textcase\n Sets capitalization of text. It can be used to make\n text appear in all-uppercase or all-lowercase, or with\n each word capitalized.\n variant\n Sets the variant of the font.\n weight\n Sets the weight (or boldness) of the font.\n\n Returns\n -------\n Font\n """\n super().__init__("font")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.icicle.marker.colorbar.title.Font\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.icicle.marker.colorbar.title.Font`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("color", arg, color)\n self._set_property("family", arg, family)\n self._set_property("lineposition", arg, lineposition)\n self._set_property("shadow", arg, shadow)\n self._set_property("size", arg, size)\n self._set_property("style", arg, style)\n self._set_property("textcase", arg, textcase)\n self._set_property("variant", arg, variant)\n self._set_property("weight", arg, weight)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n | .venv\Lib\site-packages\plotly\graph_objs\icicle\marker\colorbar\title\_font.py | _font.py | Python | 9,944 | 0.95 | 0.10479 | 0.010526 | python-kit | 162 | 2025-06-27T00:56:54.520010 | Apache-2.0 | false | 403444e12258820e2e133379e669cb83 |
import sys\nfrom typing import TYPE_CHECKING\n\nif TYPE_CHECKING:\n from ._font import Font\nelse:\n from _plotly_utils.importers import relative_import\n\n __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"])\n | .venv\Lib\site-packages\plotly\graph_objs\icicle\marker\colorbar\title\__init__.py | __init__.py | Python | 237 | 0.85 | 0.111111 | 0 | react-lib | 744 | 2023-08-28T21:42:47.691397 | Apache-2.0 | false | 78f0039a1e574405772be52751197792 |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\icicle\marker\colorbar\title\__pycache__\_font.cpython-313.pyc | _font.cpython-313.pyc | Other | 10,954 | 0.8 | 0.048583 | 0 | react-lib | 111 | 2025-07-06T04:58:49.461675 | Apache-2.0 | false | 1ff3016d7428007710b58818bb16b700 |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\icicle\marker\colorbar\title\__pycache__\__init__.cpython-313.pyc | __init__.cpython-313.pyc | Other | 514 | 0.85 | 0 | 0 | react-lib | 19 | 2025-02-10T03:13:54.389632 | BSD-3-Clause | false | 95f0f5e667237c766b72ba5d0bfb532b |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\icicle\marker\colorbar\__pycache__\_tickfont.cpython-313.pyc | _tickfont.cpython-313.pyc | Other | 11,001 | 0.8 | 0.04918 | 0 | react-lib | 222 | 2023-12-06T09:12:42.415825 | GPL-3.0 | false | de31c0e8856d64e4dc5612ba271dd340 |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\icicle\marker\colorbar\__pycache__\_tickformatstop.cpython-313.pyc | _tickformatstop.cpython-313.pyc | Other | 9,327 | 0.8 | 0.024876 | 0.005348 | vue-tools | 596 | 2023-08-07T03:38:40.514029 | MIT | false | 55f4ba09253903a77901bde4856bccba |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\icicle\marker\colorbar\__pycache__\_title.cpython-313.pyc | _title.cpython-313.pyc | Other | 4,922 | 0.8 | 0.087379 | 0 | awesome-app | 866 | 2024-11-06T04:36:53.087620 | GPL-3.0 | false | f11978f60efc0ddce16dc3804b29d151 |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\icicle\marker\colorbar\__pycache__\__init__.cpython-313.pyc | __init__.cpython-313.pyc | Other | 714 | 0.95 | 0 | 0 | awesome-app | 230 | 2024-12-02T10:17:39.123173 | BSD-3-Clause | false | 73f952ae63863c43d514e3db5daa1051 |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\icicle\marker\__pycache__\_colorbar.cpython-313.pyc | _colorbar.cpython-313.pyc | Other | 61,333 | 0.6 | 0.082343 | 0 | awesome-app | 326 | 2024-07-05T23:48:44.943083 | GPL-3.0 | false | fbb984b3dc6bbb7465647b7cb33bde5e |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\icicle\marker\__pycache__\_line.cpython-313.pyc | _line.cpython-313.pyc | Other | 5,642 | 0.8 | 0.069767 | 0 | vue-tools | 690 | 2025-03-27T03:54:30.320526 | GPL-3.0 | false | c4bcab385a6ed5056641a5cb1d83e214 |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\icicle\marker\__pycache__\_pattern.cpython-313.pyc | _pattern.cpython-313.pyc | Other | 14,449 | 0.8 | 0.071429 | 0 | node-utils | 440 | 2025-06-06T04:00:21.743396 | GPL-3.0 | false | 2e34bc3b09c96722d2489a43511ecc12 |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\icicle\marker\__pycache__\__init__.cpython-313.pyc | __init__.cpython-313.pyc | Other | 679 | 0.95 | 0 | 0 | vue-tools | 709 | 2025-01-03T10:11:27.548450 | BSD-3-Clause | false | c5ba66066324cb75358654e3cbfcad09 |
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType\nimport copy as _copy\n\n\nclass Textfont(_BaseTraceHierarchyType):\n _parent_path_str = "icicle.pathbar"\n _path_str = "icicle.pathbar.textfont"\n _valid_props = {\n "color",\n "colorsrc",\n "family",\n "familysrc",\n "lineposition",\n "linepositionsrc",\n "shadow",\n "shadowsrc",\n "size",\n "sizesrc",\n "style",\n "stylesrc",\n "textcase",\n "textcasesrc",\n "variant",\n "variantsrc",\n "weight",\n "weightsrc",\n }\n\n @property\n def color(self):\n """\n The 'color' property is a color and may be specified as:\n - A hex string (e.g. '#ff0000')\n - An rgb/rgba string (e.g. 'rgb(255,0,0)')\n - An hsl/hsla string (e.g. 'hsl(0,100%,50%)')\n - An hsv/hsva string (e.g. 'hsv(0,100%,100%)')\n - A named CSS color: see https://plotly.com/python/css-colors/ for a list\n - A list or array of any of the above\n\n Returns\n -------\n str|numpy.ndarray\n """\n return self["color"]\n\n @color.setter\n def color(self, val):\n self["color"] = val\n\n @property\n def colorsrc(self):\n """\n Sets the source reference on Chart Studio Cloud for `color`.\n\n The 'colorsrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n """\n return self["colorsrc"]\n\n @colorsrc.setter\n def colorsrc(self, val):\n self["colorsrc"] = val\n\n @property\n def family(self):\n """\n HTML font family - the typeface that will be applied by the web\n browser. The web browser can only apply a font if it is\n available on the system where it runs. Provide multiple font\n families, separated by commas, to indicate the order in which\n to apply fonts if they aren't available.\n\n The 'family' property is a string and must be specified as:\n - A non-empty string\n - A tuple, list, or one-dimensional numpy array of the above\n\n Returns\n -------\n str|numpy.ndarray\n """\n return self["family"]\n\n @family.setter\n def family(self, val):\n self["family"] = val\n\n @property\n def familysrc(self):\n """\n Sets the source reference on Chart Studio Cloud for `family`.\n\n The 'familysrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n """\n return self["familysrc"]\n\n @familysrc.setter\n def familysrc(self, val):\n self["familysrc"] = val\n\n @property\n def lineposition(self):\n """\n Sets the kind of decoration line(s) with text, such as an\n "under", "over" or "through" as well as combinations e.g.\n "under+over", etc.\n\n The 'lineposition' property is a flaglist and may be specified\n as a string containing:\n - Any combination of ['under', 'over', 'through'] joined with '+' characters\n (e.g. 'under+over')\n OR exactly one of ['none'] (e.g. 'none')\n - A list or array of the above\n\n Returns\n -------\n Any|numpy.ndarray\n """\n return self["lineposition"]\n\n @lineposition.setter\n def lineposition(self, val):\n self["lineposition"] = val\n\n @property\n def linepositionsrc(self):\n """\n Sets the source reference on Chart Studio Cloud for\n `lineposition`.\n\n The 'linepositionsrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n """\n return self["linepositionsrc"]\n\n @linepositionsrc.setter\n def linepositionsrc(self, val):\n self["linepositionsrc"] = val\n\n @property\n def shadow(self):\n """\n Sets the shape and color of the shadow behind text. "auto"\n places minimal shadow and applies contrast text font color. See\n https://developer.mozilla.org/en-US/docs/Web/CSS/text-shadow\n for additional options.\n\n The 'shadow' property is a string and must be specified as:\n - A string\n - A number that will be converted to a string\n - A tuple, list, or one-dimensional numpy array of the above\n\n Returns\n -------\n str|numpy.ndarray\n """\n return self["shadow"]\n\n @shadow.setter\n def shadow(self, val):\n self["shadow"] = val\n\n @property\n def shadowsrc(self):\n """\n Sets the source reference on Chart Studio Cloud for `shadow`.\n\n The 'shadowsrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n """\n return self["shadowsrc"]\n\n @shadowsrc.setter\n def shadowsrc(self, val):\n self["shadowsrc"] = val\n\n @property\n def size(self):\n """\n The 'size' property is a number and may be specified as:\n - An int or float in the interval [1, inf]\n - A tuple, list, or one-dimensional numpy array of the above\n\n Returns\n -------\n int|float|numpy.ndarray\n """\n return self["size"]\n\n @size.setter\n def size(self, val):\n self["size"] = val\n\n @property\n def sizesrc(self):\n """\n Sets the source reference on Chart Studio Cloud for `size`.\n\n The 'sizesrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n """\n return self["sizesrc"]\n\n @sizesrc.setter\n def sizesrc(self, val):\n self["sizesrc"] = val\n\n @property\n def style(self):\n """\n Sets whether a font should be styled with a normal or italic\n face from its family.\n\n The 'style' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['normal', 'italic']\n - A tuple, list, or one-dimensional numpy array of the above\n\n Returns\n -------\n Any|numpy.ndarray\n """\n return self["style"]\n\n @style.setter\n def style(self, val):\n self["style"] = val\n\n @property\n def stylesrc(self):\n """\n Sets the source reference on Chart Studio Cloud for `style`.\n\n The 'stylesrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n """\n return self["stylesrc"]\n\n @stylesrc.setter\n def stylesrc(self, val):\n self["stylesrc"] = val\n\n @property\n def textcase(self):\n """\n Sets capitalization of text. It can be used to make text appear\n in all-uppercase or all-lowercase, or with each word\n capitalized.\n\n The 'textcase' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['normal', 'word caps', 'upper', 'lower']\n - A tuple, list, or one-dimensional numpy array of the above\n\n Returns\n -------\n Any|numpy.ndarray\n """\n return self["textcase"]\n\n @textcase.setter\n def textcase(self, val):\n self["textcase"] = val\n\n @property\n def textcasesrc(self):\n """\n Sets the source reference on Chart Studio Cloud for `textcase`.\n\n The 'textcasesrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n """\n return self["textcasesrc"]\n\n @textcasesrc.setter\n def textcasesrc(self, val):\n self["textcasesrc"] = val\n\n @property\n def variant(self):\n """\n Sets the variant of the font.\n\n The 'variant' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['normal', 'small-caps', 'all-small-caps',\n 'all-petite-caps', 'petite-caps', 'unicase']\n - A tuple, list, or one-dimensional numpy array of the above\n\n Returns\n -------\n Any|numpy.ndarray\n """\n return self["variant"]\n\n @variant.setter\n def variant(self, val):\n self["variant"] = val\n\n @property\n def variantsrc(self):\n """\n Sets the source reference on Chart Studio Cloud for `variant`.\n\n The 'variantsrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n """\n return self["variantsrc"]\n\n @variantsrc.setter\n def variantsrc(self, val):\n self["variantsrc"] = val\n\n @property\n def weight(self):\n """\n Sets the weight (or boldness) of the font.\n\n The 'weight' property is a integer and may be specified as:\n - An int (or float that will be cast to an int)\n in the interval [1, 1000]\n OR exactly one of ['normal', 'bold'] (e.g. 'bold')\n - A tuple, list, or one-dimensional numpy array of the above\n\n Returns\n -------\n int|numpy.ndarray\n """\n return self["weight"]\n\n @weight.setter\n def weight(self, val):\n self["weight"] = val\n\n @property\n def weightsrc(self):\n """\n Sets the source reference on Chart Studio Cloud for `weight`.\n\n The 'weightsrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n """\n return self["weightsrc"]\n\n @weightsrc.setter\n def weightsrc(self, val):\n self["weightsrc"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n color\n\n colorsrc\n Sets the source reference on Chart Studio Cloud for\n `color`.\n family\n HTML font family - the typeface that will be applied by\n the web browser. The web browser can only apply a font\n if it is available on the system where it runs. Provide\n multiple font families, separated by commas, to\n indicate the order in which to apply fonts if they\n aren't available.\n familysrc\n Sets the source reference on Chart Studio Cloud for\n `family`.\n lineposition\n Sets the kind of decoration line(s) with text, such as\n an "under", "over" or "through" as well as combinations\n e.g. "under+over", etc.\n linepositionsrc\n Sets the source reference on Chart Studio Cloud for\n `lineposition`.\n shadow\n Sets the shape and color of the shadow behind text.\n "auto" places minimal shadow and applies contrast text\n font color. See https://developer.mozilla.org/en-\n US/docs/Web/CSS/text-shadow for additional options.\n shadowsrc\n Sets the source reference on Chart Studio Cloud for\n `shadow`.\n size\n\n sizesrc\n Sets the source reference on Chart Studio Cloud for\n `size`.\n style\n Sets whether a font should be styled with a normal or\n italic face from its family.\n stylesrc\n Sets the source reference on Chart Studio Cloud for\n `style`.\n textcase\n Sets capitalization of text. It can be used to make\n text appear in all-uppercase or all-lowercase, or with\n each word capitalized.\n textcasesrc\n Sets the source reference on Chart Studio Cloud for\n `textcase`.\n variant\n Sets the variant of the font.\n variantsrc\n Sets the source reference on Chart Studio Cloud for\n `variant`.\n weight\n Sets the weight (or boldness) of the font.\n weightsrc\n Sets the source reference on Chart Studio Cloud for\n `weight`.\n """\n\n def __init__(\n self,\n arg=None,\n color=None,\n colorsrc=None,\n family=None,\n familysrc=None,\n lineposition=None,\n linepositionsrc=None,\n shadow=None,\n shadowsrc=None,\n size=None,\n sizesrc=None,\n style=None,\n stylesrc=None,\n textcase=None,\n textcasesrc=None,\n variant=None,\n variantsrc=None,\n weight=None,\n weightsrc=None,\n **kwargs,\n ):\n """\n Construct a new Textfont object\n\n Sets the font used inside `pathbar`.\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of\n :class:`plotly.graph_objs.icicle.pathbar.Textfont`\n color\n\n colorsrc\n Sets the source reference on Chart Studio Cloud for\n `color`.\n family\n HTML font family - the typeface that will be applied by\n the web browser. The web browser can only apply a font\n if it is available on the system where it runs. Provide\n multiple font families, separated by commas, to\n indicate the order in which to apply fonts if they\n aren't available.\n familysrc\n Sets the source reference on Chart Studio Cloud for\n `family`.\n lineposition\n Sets the kind of decoration line(s) with text, such as\n an "under", "over" or "through" as well as combinations\n e.g. "under+over", etc.\n linepositionsrc\n Sets the source reference on Chart Studio Cloud for\n `lineposition`.\n shadow\n Sets the shape and color of the shadow behind text.\n "auto" places minimal shadow and applies contrast text\n font color. See https://developer.mozilla.org/en-\n US/docs/Web/CSS/text-shadow for additional options.\n shadowsrc\n Sets the source reference on Chart Studio Cloud for\n `shadow`.\n size\n\n sizesrc\n Sets the source reference on Chart Studio Cloud for\n `size`.\n style\n Sets whether a font should be styled with a normal or\n italic face from its family.\n stylesrc\n Sets the source reference on Chart Studio Cloud for\n `style`.\n textcase\n Sets capitalization of text. It can be used to make\n text appear in all-uppercase or all-lowercase, or with\n each word capitalized.\n textcasesrc\n Sets the source reference on Chart Studio Cloud for\n `textcase`.\n variant\n Sets the variant of the font.\n variantsrc\n Sets the source reference on Chart Studio Cloud for\n `variant`.\n weight\n Sets the weight (or boldness) of the font.\n weightsrc\n Sets the source reference on Chart Studio Cloud for\n `weight`.\n\n Returns\n -------\n Textfont\n """\n super().__init__("textfont")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.icicle.pathbar.Textfont\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.icicle.pathbar.Textfont`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("color", arg, color)\n self._set_property("colorsrc", arg, colorsrc)\n self._set_property("family", arg, family)\n self._set_property("familysrc", arg, familysrc)\n self._set_property("lineposition", arg, lineposition)\n self._set_property("linepositionsrc", arg, linepositionsrc)\n self._set_property("shadow", arg, shadow)\n self._set_property("shadowsrc", arg, shadowsrc)\n self._set_property("size", arg, size)\n self._set_property("sizesrc", arg, sizesrc)\n self._set_property("style", arg, style)\n self._set_property("stylesrc", arg, stylesrc)\n self._set_property("textcase", arg, textcase)\n self._set_property("textcasesrc", arg, textcasesrc)\n self._set_property("variant", arg, variant)\n self._set_property("variantsrc", arg, variantsrc)\n self._set_property("weight", arg, weight)\n self._set_property("weightsrc", arg, weightsrc)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n | .venv\Lib\site-packages\plotly\graph_objs\icicle\pathbar\_textfont.py | _textfont.py | Python | 17,156 | 0.95 | 0.136286 | 0.005976 | awesome-app | 614 | 2024-12-08T03:35:01.663511 | BSD-3-Clause | false | bab0f2333b85842eb868ff62d0db0fef |
import sys\nfrom typing import TYPE_CHECKING\n\nif TYPE_CHECKING:\n from ._textfont import Textfont\nelse:\n from _plotly_utils.importers import relative_import\n\n __all__, __getattr__, __dir__ = relative_import(\n __name__, [], ["._textfont.Textfont"]\n )\n | .venv\Lib\site-packages\plotly\graph_objs\icicle\pathbar\__init__.py | __init__.py | Python | 267 | 0.85 | 0.090909 | 0 | awesome-app | 530 | 2023-08-16T07:59:16.950825 | BSD-3-Clause | false | 5be2d129f4ac0c2ab7e40d722b6b818b |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\icicle\pathbar\__pycache__\_textfont.cpython-313.pyc | _textfont.cpython-313.pyc | Other | 18,482 | 0.8 | 0.101299 | 0 | vue-tools | 93 | 2024-04-24T04:25:08.595703 | Apache-2.0 | false | b9736de164570e3430fe95a6be09bf45 |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\icicle\pathbar\__pycache__\__init__.cpython-313.pyc | __init__.cpython-313.pyc | Other | 521 | 0.95 | 0 | 0 | awesome-app | 953 | 2025-05-09T18:25:06.842959 | BSD-3-Clause | false | 26c1e447ede06d822e085f0f706f01b0 |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\icicle\__pycache__\_domain.cpython-313.pyc | _domain.cpython-313.pyc | Other | 5,979 | 0.8 | 0.097222 | 0.015267 | react-lib | 97 | 2025-01-02T22:26:35.072965 | Apache-2.0 | false | 504f51751aaecb4df03b55f47a207170 |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\icicle\__pycache__\_hoverlabel.cpython-313.pyc | _hoverlabel.cpython-313.pyc | Other | 11,374 | 0.8 | 0.142276 | 0 | python-kit | 581 | 2024-03-28T18:33:43.779659 | MIT | false | e3b8e878208e521102639ec1c5de73f4 |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\icicle\__pycache__\_insidetextfont.cpython-313.pyc | _insidetextfont.cpython-313.pyc | Other | 18,631 | 0.8 | 0.104167 | 0 | react-lib | 664 | 2024-08-31T09:22:10.641478 | MIT | false | dc6bd33061d184349740d5d3d1c431f6 |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\icicle\__pycache__\_leaf.cpython-313.pyc | _leaf.cpython-313.pyc | Other | 3,077 | 0.8 | 0.03125 | 0 | react-lib | 51 | 2024-04-15T05:10:29.280460 | Apache-2.0 | false | 3f843daf6e84d506115da1163154acbf |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\icicle\__pycache__\_legendgrouptitle.cpython-313.pyc | _legendgrouptitle.cpython-313.pyc | Other | 3,846 | 0.8 | 0.04 | 0 | node-utils | 3 | 2024-10-18T07:26:16.082612 | MIT | false | 6c6da8c492f9b431917c593d2ec05d7d |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\icicle\__pycache__\_marker.cpython-313.pyc | _marker.cpython-313.pyc | Other | 21,858 | 0.95 | 0.124424 | 0 | vue-tools | 38 | 2025-03-07T10:41:18.251750 | Apache-2.0 | false | 11f3671be234f207d56c2ebb8695e0ab |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\icicle\__pycache__\_outsidetextfont.cpython-313.pyc | _outsidetextfont.cpython-313.pyc | Other | 18,885 | 0.8 | 0.10567 | 0 | python-kit | 394 | 2024-08-20T00:26:21.239742 | MIT | false | 188e6950a2e2bac6cb712090e97ed748 |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\icicle\__pycache__\_pathbar.cpython-313.pyc | _pathbar.cpython-313.pyc | Other | 6,610 | 0.8 | 0.060811 | 0 | node-utils | 337 | 2024-05-26T06:11:09.890519 | GPL-3.0 | false | 8a20b71271f932176ab2467798aed18a |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\icicle\__pycache__\_root.cpython-313.pyc | _root.cpython-313.pyc | Other | 3,381 | 0.8 | 0.082192 | 0 | node-utils | 902 | 2023-10-11T05:30:03.989460 | Apache-2.0 | false | 8c457c9a3b905fd4cf9acc7795630dc8 |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\icicle\__pycache__\_stream.cpython-313.pyc | _stream.cpython-313.pyc | Other | 4,296 | 0.8 | 0.054348 | 0 | python-kit | 782 | 2025-06-26T15:38:27.543942 | MIT | false | 31ba72a93d592e43ea24017a6e60b172 |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\icicle\__pycache__\_textfont.cpython-313.pyc | _textfont.cpython-313.pyc | Other | 18,429 | 0.8 | 0.103896 | 0 | react-lib | 329 | 2023-08-02T22:42:55.215614 | Apache-2.0 | false | 1ff2afcac882f291edd18fff7787a503 |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\icicle\__pycache__\_tiling.cpython-313.pyc | _tiling.cpython-313.pyc | Other | 5,888 | 0.8 | 0.039683 | 0 | vue-tools | 527 | 2023-07-28T22:21:48.668567 | Apache-2.0 | false | 19042fdba836c48d448356a263e678b2 |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\icicle\__pycache__\__init__.cpython-313.pyc | __init__.cpython-313.pyc | Other | 1,439 | 0.95 | 0 | 0 | node-utils | 589 | 2024-12-07T17:25:55.630599 | Apache-2.0 | false | 83c0d391800aa387ed1f325808011740 |
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType\nimport copy as _copy\n\n\nclass Hoverlabel(_BaseTraceHierarchyType):\n _parent_path_str = "image"\n _path_str = "image.hoverlabel"\n _valid_props = {\n "align",\n "alignsrc",\n "bgcolor",\n "bgcolorsrc",\n "bordercolor",\n "bordercolorsrc",\n "font",\n "namelength",\n "namelengthsrc",\n }\n\n @property\n def align(self):\n """\n Sets the horizontal alignment of the text content within hover\n label box. Has an effect only if the hover label text spans\n more two or more lines\n\n The 'align' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['left', 'right', 'auto']\n - A tuple, list, or one-dimensional numpy array of the above\n\n Returns\n -------\n Any|numpy.ndarray\n """\n return self["align"]\n\n @align.setter\n def align(self, val):\n self["align"] = val\n\n @property\n def alignsrc(self):\n """\n Sets the source reference on Chart Studio Cloud for `align`.\n\n The 'alignsrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n """\n return self["alignsrc"]\n\n @alignsrc.setter\n def alignsrc(self, val):\n self["alignsrc"] = val\n\n @property\n def bgcolor(self):\n """\n Sets the background color of the hover labels for this trace\n\n The 'bgcolor' property is a color and may be specified as:\n - A hex string (e.g. '#ff0000')\n - An rgb/rgba string (e.g. 'rgb(255,0,0)')\n - An hsl/hsla string (e.g. 'hsl(0,100%,50%)')\n - An hsv/hsva string (e.g. 'hsv(0,100%,100%)')\n - A named CSS color: see https://plotly.com/python/css-colors/ for a list\n - A list or array of any of the above\n\n Returns\n -------\n str|numpy.ndarray\n """\n return self["bgcolor"]\n\n @bgcolor.setter\n def bgcolor(self, val):\n self["bgcolor"] = val\n\n @property\n def bgcolorsrc(self):\n """\n Sets the source reference on Chart Studio Cloud for `bgcolor`.\n\n The 'bgcolorsrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n """\n return self["bgcolorsrc"]\n\n @bgcolorsrc.setter\n def bgcolorsrc(self, val):\n self["bgcolorsrc"] = val\n\n @property\n def bordercolor(self):\n """\n Sets the border color of the hover labels for this trace.\n\n The 'bordercolor' property is a color and may be specified as:\n - A hex string (e.g. '#ff0000')\n - An rgb/rgba string (e.g. 'rgb(255,0,0)')\n - An hsl/hsla string (e.g. 'hsl(0,100%,50%)')\n - An hsv/hsva string (e.g. 'hsv(0,100%,100%)')\n - A named CSS color: see https://plotly.com/python/css-colors/ for a list\n - A list or array of any of the above\n\n Returns\n -------\n str|numpy.ndarray\n """\n return self["bordercolor"]\n\n @bordercolor.setter\n def bordercolor(self, val):\n self["bordercolor"] = val\n\n @property\n def bordercolorsrc(self):\n """\n Sets the source reference on Chart Studio Cloud for\n `bordercolor`.\n\n The 'bordercolorsrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n """\n return self["bordercolorsrc"]\n\n @bordercolorsrc.setter\n def bordercolorsrc(self, val):\n self["bordercolorsrc"] = val\n\n @property\n def font(self):\n """\n Sets the font used in hover labels.\n\n The 'font' property is an instance of Font\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.image.hoverlabel.Font`\n - A dict of string/value properties that will be passed\n to the Font constructor\n\n Returns\n -------\n plotly.graph_objs.image.hoverlabel.Font\n """\n return self["font"]\n\n @font.setter\n def font(self, val):\n self["font"] = val\n\n @property\n def namelength(self):\n """\n Sets the default length (in number of characters) of the trace\n name in the hover labels for all traces. -1 shows the whole\n name regardless of length. 0-3 shows the first 0-3 characters,\n and an integer >3 will show the whole name if it is less than\n that many characters, but if it is longer, will truncate to\n `namelength - 3` characters and add an ellipsis.\n\n The 'namelength' property is a integer and may be specified as:\n - An int (or float that will be cast to an int)\n in the interval [-1, 9223372036854775807]\n - A tuple, list, or one-dimensional numpy array of the above\n\n Returns\n -------\n int|numpy.ndarray\n """\n return self["namelength"]\n\n @namelength.setter\n def namelength(self, val):\n self["namelength"] = val\n\n @property\n def namelengthsrc(self):\n """\n Sets the source reference on Chart Studio Cloud for\n `namelength`.\n\n The 'namelengthsrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n """\n return self["namelengthsrc"]\n\n @namelengthsrc.setter\n def namelengthsrc(self, val):\n self["namelengthsrc"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n align\n Sets the horizontal alignment of the text content\n within hover label box. Has an effect only if the hover\n label text spans more two or more lines\n alignsrc\n Sets the source reference on Chart Studio Cloud for\n `align`.\n bgcolor\n Sets the background color of the hover labels for this\n trace\n bgcolorsrc\n Sets the source reference on Chart Studio Cloud for\n `bgcolor`.\n bordercolor\n Sets the border color of the hover labels for this\n trace.\n bordercolorsrc\n Sets the source reference on Chart Studio Cloud for\n `bordercolor`.\n font\n Sets the font used in hover labels.\n namelength\n Sets the default length (in number of characters) of\n the trace name in the hover labels for all traces. -1\n shows the whole name regardless of length. 0-3 shows\n the first 0-3 characters, and an integer >3 will show\n the whole name if it is less than that many characters,\n but if it is longer, will truncate to `namelength - 3`\n characters and add an ellipsis.\n namelengthsrc\n Sets the source reference on Chart Studio Cloud for\n `namelength`.\n """\n\n def __init__(\n self,\n arg=None,\n align=None,\n alignsrc=None,\n bgcolor=None,\n bgcolorsrc=None,\n bordercolor=None,\n bordercolorsrc=None,\n font=None,\n namelength=None,\n namelengthsrc=None,\n **kwargs,\n ):\n """\n Construct a new Hoverlabel object\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of\n :class:`plotly.graph_objs.image.Hoverlabel`\n align\n Sets the horizontal alignment of the text content\n within hover label box. Has an effect only if the hover\n label text spans more two or more lines\n alignsrc\n Sets the source reference on Chart Studio Cloud for\n `align`.\n bgcolor\n Sets the background color of the hover labels for this\n trace\n bgcolorsrc\n Sets the source reference on Chart Studio Cloud for\n `bgcolor`.\n bordercolor\n Sets the border color of the hover labels for this\n trace.\n bordercolorsrc\n Sets the source reference on Chart Studio Cloud for\n `bordercolor`.\n font\n Sets the font used in hover labels.\n namelength\n Sets the default length (in number of characters) of\n the trace name in the hover labels for all traces. -1\n shows the whole name regardless of length. 0-3 shows\n the first 0-3 characters, and an integer >3 will show\n the whole name if it is less than that many characters,\n but if it is longer, will truncate to `namelength - 3`\n characters and add an ellipsis.\n namelengthsrc\n Sets the source reference on Chart Studio Cloud for\n `namelength`.\n\n Returns\n -------\n Hoverlabel\n """\n super().__init__("hoverlabel")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.image.Hoverlabel\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.image.Hoverlabel`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("align", arg, align)\n self._set_property("alignsrc", arg, alignsrc)\n self._set_property("bgcolor", arg, bgcolor)\n self._set_property("bgcolorsrc", arg, bgcolorsrc)\n self._set_property("bordercolor", arg, bordercolor)\n self._set_property("bordercolorsrc", arg, bordercolorsrc)\n self._set_property("font", arg, font)\n self._set_property("namelength", arg, namelength)\n self._set_property("namelengthsrc", arg, namelengthsrc)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n | .venv\Lib\site-packages\plotly\graph_objs\image\_hoverlabel.py | _hoverlabel.py | Python | 10,443 | 0.95 | 0.171598 | 0.010274 | node-utils | 967 | 2024-05-20T14:41:26.122158 | GPL-3.0 | false | 644ebb33b9f8ec82830c75ce78a8d2c1 |
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType\nimport copy as _copy\n\n\nclass Legendgrouptitle(_BaseTraceHierarchyType):\n _parent_path_str = "image"\n _path_str = "image.legendgrouptitle"\n _valid_props = {"font", "text"}\n\n @property\n def font(self):\n """\n Sets this legend group's title font.\n\n The 'font' property is an instance of Font\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.image.legendgrouptitle.Font`\n - A dict of string/value properties that will be passed\n to the Font constructor\n\n Returns\n -------\n plotly.graph_objs.image.legendgrouptitle.Font\n """\n return self["font"]\n\n @font.setter\n def font(self, val):\n self["font"] = val\n\n @property\n def text(self):\n """\n Sets the title of the legend group.\n\n The 'text' property is a string and must be specified as:\n - A string\n - A number that will be converted to a string\n\n Returns\n -------\n str\n """\n return self["text"]\n\n @text.setter\n def text(self, val):\n self["text"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n font\n Sets this legend group's title font.\n text\n Sets the title of the legend group.\n """\n\n def __init__(self, arg=None, font=None, text=None, **kwargs):\n """\n Construct a new Legendgrouptitle object\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of\n :class:`plotly.graph_objs.image.Legendgrouptitle`\n font\n Sets this legend group's title font.\n text\n Sets the title of the legend group.\n\n Returns\n -------\n Legendgrouptitle\n """\n super().__init__("legendgrouptitle")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.image.Legendgrouptitle\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.image.Legendgrouptitle`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("font", arg, font)\n self._set_property("text", arg, text)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n | .venv\Lib\site-packages\plotly\graph_objs\image\_legendgrouptitle.py | _legendgrouptitle.py | Python | 2,925 | 0.95 | 0.115385 | 0.023256 | awesome-app | 508 | 2024-11-10T00:29:55.335868 | BSD-3-Clause | false | 719bf3cbcb513823b6f09c2bd05894c2 |
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType\nimport copy as _copy\n\n\nclass Stream(_BaseTraceHierarchyType):\n _parent_path_str = "image"\n _path_str = "image.stream"\n _valid_props = {"maxpoints", "token"}\n\n @property\n def maxpoints(self):\n """\n Sets the maximum number of points to keep on the plots from an\n incoming stream. If `maxpoints` is set to 50, only the newest\n 50 points will be displayed on the plot.\n\n The 'maxpoints' property is a number and may be specified as:\n - An int or float in the interval [0, 10000]\n\n Returns\n -------\n int|float\n """\n return self["maxpoints"]\n\n @maxpoints.setter\n def maxpoints(self, val):\n self["maxpoints"] = val\n\n @property\n def token(self):\n """\n The stream id number links a data trace on a plot with a\n stream. See https://chart-studio.plotly.com/settings for more\n details.\n\n The 'token' property is a string and must be specified as:\n - A non-empty string\n\n Returns\n -------\n str\n """\n return self["token"]\n\n @token.setter\n def token(self, val):\n self["token"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n maxpoints\n Sets the maximum number of points to keep on the plots\n from an incoming stream. If `maxpoints` is set to 50,\n only the newest 50 points will be displayed on the\n plot.\n token\n The stream id number links a data trace on a plot with\n a stream. See https://chart-studio.plotly.com/settings\n for more details.\n """\n\n def __init__(self, arg=None, maxpoints=None, token=None, **kwargs):\n """\n Construct a new Stream object\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of :class:`plotly.graph_objs.image.Stream`\n maxpoints\n Sets the maximum number of points to keep on the plots\n from an incoming stream. If `maxpoints` is set to 50,\n only the newest 50 points will be displayed on the\n plot.\n token\n The stream id number links a data trace on a plot with\n a stream. See https://chart-studio.plotly.com/settings\n for more details.\n\n Returns\n -------\n Stream\n """\n super().__init__("stream")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.image.Stream\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.image.Stream`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("maxpoints", arg, maxpoints)\n self._set_property("token", arg, token)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n | .venv\Lib\site-packages\plotly\graph_objs\image\_stream.py | _stream.py | Python | 3,489 | 0.95 | 0.123894 | 0.021053 | react-lib | 987 | 2025-07-05T09:27:41.073353 | MIT | false | ed2de2bac6375554cd591c5e2e70794a |
import sys\nfrom typing import TYPE_CHECKING\n\nif TYPE_CHECKING:\n from ._hoverlabel import Hoverlabel\n from ._legendgrouptitle import Legendgrouptitle\n from ._stream import Stream\n from . import hoverlabel\n from . import legendgrouptitle\nelse:\n from _plotly_utils.importers import relative_import\n\n __all__, __getattr__, __dir__ = relative_import(\n __name__,\n [".hoverlabel", ".legendgrouptitle"],\n [\n "._hoverlabel.Hoverlabel",\n "._legendgrouptitle.Legendgrouptitle",\n "._stream.Stream",\n ],\n )\n | .venv\Lib\site-packages\plotly\graph_objs\image\__init__.py | __init__.py | Python | 579 | 0.85 | 0.047619 | 0 | python-kit | 104 | 2025-06-22T20:54:06.872555 | MIT | false | a3758560d96f8d8a909ad28130e6f4d9 |
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType\nimport copy as _copy\n\n\nclass Font(_BaseTraceHierarchyType):\n _parent_path_str = "image.hoverlabel"\n _path_str = "image.hoverlabel.font"\n _valid_props = {\n "color",\n "colorsrc",\n "family",\n "familysrc",\n "lineposition",\n "linepositionsrc",\n "shadow",\n "shadowsrc",\n "size",\n "sizesrc",\n "style",\n "stylesrc",\n "textcase",\n "textcasesrc",\n "variant",\n "variantsrc",\n "weight",\n "weightsrc",\n }\n\n @property\n def color(self):\n """\n The 'color' property is a color and may be specified as:\n - A hex string (e.g. '#ff0000')\n - An rgb/rgba string (e.g. 'rgb(255,0,0)')\n - An hsl/hsla string (e.g. 'hsl(0,100%,50%)')\n - An hsv/hsva string (e.g. 'hsv(0,100%,100%)')\n - A named CSS color: see https://plotly.com/python/css-colors/ for a list\n - A list or array of any of the above\n\n Returns\n -------\n str|numpy.ndarray\n """\n return self["color"]\n\n @color.setter\n def color(self, val):\n self["color"] = val\n\n @property\n def colorsrc(self):\n """\n Sets the source reference on Chart Studio Cloud for `color`.\n\n The 'colorsrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n """\n return self["colorsrc"]\n\n @colorsrc.setter\n def colorsrc(self, val):\n self["colorsrc"] = val\n\n @property\n def family(self):\n """\n HTML font family - the typeface that will be applied by the web\n browser. The web browser can only apply a font if it is\n available on the system where it runs. Provide multiple font\n families, separated by commas, to indicate the order in which\n to apply fonts if they aren't available.\n\n The 'family' property is a string and must be specified as:\n - A non-empty string\n - A tuple, list, or one-dimensional numpy array of the above\n\n Returns\n -------\n str|numpy.ndarray\n """\n return self["family"]\n\n @family.setter\n def family(self, val):\n self["family"] = val\n\n @property\n def familysrc(self):\n """\n Sets the source reference on Chart Studio Cloud for `family`.\n\n The 'familysrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n """\n return self["familysrc"]\n\n @familysrc.setter\n def familysrc(self, val):\n self["familysrc"] = val\n\n @property\n def lineposition(self):\n """\n Sets the kind of decoration line(s) with text, such as an\n "under", "over" or "through" as well as combinations e.g.\n "under+over", etc.\n\n The 'lineposition' property is a flaglist and may be specified\n as a string containing:\n - Any combination of ['under', 'over', 'through'] joined with '+' characters\n (e.g. 'under+over')\n OR exactly one of ['none'] (e.g. 'none')\n - A list or array of the above\n\n Returns\n -------\n Any|numpy.ndarray\n """\n return self["lineposition"]\n\n @lineposition.setter\n def lineposition(self, val):\n self["lineposition"] = val\n\n @property\n def linepositionsrc(self):\n """\n Sets the source reference on Chart Studio Cloud for\n `lineposition`.\n\n The 'linepositionsrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n """\n return self["linepositionsrc"]\n\n @linepositionsrc.setter\n def linepositionsrc(self, val):\n self["linepositionsrc"] = val\n\n @property\n def shadow(self):\n """\n Sets the shape and color of the shadow behind text. "auto"\n places minimal shadow and applies contrast text font color. See\n https://developer.mozilla.org/en-US/docs/Web/CSS/text-shadow\n for additional options.\n\n The 'shadow' property is a string and must be specified as:\n - A string\n - A number that will be converted to a string\n - A tuple, list, or one-dimensional numpy array of the above\n\n Returns\n -------\n str|numpy.ndarray\n """\n return self["shadow"]\n\n @shadow.setter\n def shadow(self, val):\n self["shadow"] = val\n\n @property\n def shadowsrc(self):\n """\n Sets the source reference on Chart Studio Cloud for `shadow`.\n\n The 'shadowsrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n """\n return self["shadowsrc"]\n\n @shadowsrc.setter\n def shadowsrc(self, val):\n self["shadowsrc"] = val\n\n @property\n def size(self):\n """\n The 'size' property is a number and may be specified as:\n - An int or float in the interval [1, inf]\n - A tuple, list, or one-dimensional numpy array of the above\n\n Returns\n -------\n int|float|numpy.ndarray\n """\n return self["size"]\n\n @size.setter\n def size(self, val):\n self["size"] = val\n\n @property\n def sizesrc(self):\n """\n Sets the source reference on Chart Studio Cloud for `size`.\n\n The 'sizesrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n """\n return self["sizesrc"]\n\n @sizesrc.setter\n def sizesrc(self, val):\n self["sizesrc"] = val\n\n @property\n def style(self):\n """\n Sets whether a font should be styled with a normal or italic\n face from its family.\n\n The 'style' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['normal', 'italic']\n - A tuple, list, or one-dimensional numpy array of the above\n\n Returns\n -------\n Any|numpy.ndarray\n """\n return self["style"]\n\n @style.setter\n def style(self, val):\n self["style"] = val\n\n @property\n def stylesrc(self):\n """\n Sets the source reference on Chart Studio Cloud for `style`.\n\n The 'stylesrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n """\n return self["stylesrc"]\n\n @stylesrc.setter\n def stylesrc(self, val):\n self["stylesrc"] = val\n\n @property\n def textcase(self):\n """\n Sets capitalization of text. It can be used to make text appear\n in all-uppercase or all-lowercase, or with each word\n capitalized.\n\n The 'textcase' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['normal', 'word caps', 'upper', 'lower']\n - A tuple, list, or one-dimensional numpy array of the above\n\n Returns\n -------\n Any|numpy.ndarray\n """\n return self["textcase"]\n\n @textcase.setter\n def textcase(self, val):\n self["textcase"] = val\n\n @property\n def textcasesrc(self):\n """\n Sets the source reference on Chart Studio Cloud for `textcase`.\n\n The 'textcasesrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n """\n return self["textcasesrc"]\n\n @textcasesrc.setter\n def textcasesrc(self, val):\n self["textcasesrc"] = val\n\n @property\n def variant(self):\n """\n Sets the variant of the font.\n\n The 'variant' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['normal', 'small-caps', 'all-small-caps',\n 'all-petite-caps', 'petite-caps', 'unicase']\n - A tuple, list, or one-dimensional numpy array of the above\n\n Returns\n -------\n Any|numpy.ndarray\n """\n return self["variant"]\n\n @variant.setter\n def variant(self, val):\n self["variant"] = val\n\n @property\n def variantsrc(self):\n """\n Sets the source reference on Chart Studio Cloud for `variant`.\n\n The 'variantsrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n """\n return self["variantsrc"]\n\n @variantsrc.setter\n def variantsrc(self, val):\n self["variantsrc"] = val\n\n @property\n def weight(self):\n """\n Sets the weight (or boldness) of the font.\n\n The 'weight' property is a integer and may be specified as:\n - An int (or float that will be cast to an int)\n in the interval [1, 1000]\n OR exactly one of ['normal', 'bold'] (e.g. 'bold')\n - A tuple, list, or one-dimensional numpy array of the above\n\n Returns\n -------\n int|numpy.ndarray\n """\n return self["weight"]\n\n @weight.setter\n def weight(self, val):\n self["weight"] = val\n\n @property\n def weightsrc(self):\n """\n Sets the source reference on Chart Studio Cloud for `weight`.\n\n The 'weightsrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n """\n return self["weightsrc"]\n\n @weightsrc.setter\n def weightsrc(self, val):\n self["weightsrc"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n color\n\n colorsrc\n Sets the source reference on Chart Studio Cloud for\n `color`.\n family\n HTML font family - the typeface that will be applied by\n the web browser. The web browser can only apply a font\n if it is available on the system where it runs. Provide\n multiple font families, separated by commas, to\n indicate the order in which to apply fonts if they\n aren't available.\n familysrc\n Sets the source reference on Chart Studio Cloud for\n `family`.\n lineposition\n Sets the kind of decoration line(s) with text, such as\n an "under", "over" or "through" as well as combinations\n e.g. "under+over", etc.\n linepositionsrc\n Sets the source reference on Chart Studio Cloud for\n `lineposition`.\n shadow\n Sets the shape and color of the shadow behind text.\n "auto" places minimal shadow and applies contrast text\n font color. See https://developer.mozilla.org/en-\n US/docs/Web/CSS/text-shadow for additional options.\n shadowsrc\n Sets the source reference on Chart Studio Cloud for\n `shadow`.\n size\n\n sizesrc\n Sets the source reference on Chart Studio Cloud for\n `size`.\n style\n Sets whether a font should be styled with a normal or\n italic face from its family.\n stylesrc\n Sets the source reference on Chart Studio Cloud for\n `style`.\n textcase\n Sets capitalization of text. It can be used to make\n text appear in all-uppercase or all-lowercase, or with\n each word capitalized.\n textcasesrc\n Sets the source reference on Chart Studio Cloud for\n `textcase`.\n variant\n Sets the variant of the font.\n variantsrc\n Sets the source reference on Chart Studio Cloud for\n `variant`.\n weight\n Sets the weight (or boldness) of the font.\n weightsrc\n Sets the source reference on Chart Studio Cloud for\n `weight`.\n """\n\n def __init__(\n self,\n arg=None,\n color=None,\n colorsrc=None,\n family=None,\n familysrc=None,\n lineposition=None,\n linepositionsrc=None,\n shadow=None,\n shadowsrc=None,\n size=None,\n sizesrc=None,\n style=None,\n stylesrc=None,\n textcase=None,\n textcasesrc=None,\n variant=None,\n variantsrc=None,\n weight=None,\n weightsrc=None,\n **kwargs,\n ):\n """\n Construct a new Font object\n\n Sets the font used in hover labels.\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of\n :class:`plotly.graph_objs.image.hoverlabel.Font`\n color\n\n colorsrc\n Sets the source reference on Chart Studio Cloud for\n `color`.\n family\n HTML font family - the typeface that will be applied by\n the web browser. The web browser can only apply a font\n if it is available on the system where it runs. Provide\n multiple font families, separated by commas, to\n indicate the order in which to apply fonts if they\n aren't available.\n familysrc\n Sets the source reference on Chart Studio Cloud for\n `family`.\n lineposition\n Sets the kind of decoration line(s) with text, such as\n an "under", "over" or "through" as well as combinations\n e.g. "under+over", etc.\n linepositionsrc\n Sets the source reference on Chart Studio Cloud for\n `lineposition`.\n shadow\n Sets the shape and color of the shadow behind text.\n "auto" places minimal shadow and applies contrast text\n font color. See https://developer.mozilla.org/en-\n US/docs/Web/CSS/text-shadow for additional options.\n shadowsrc\n Sets the source reference on Chart Studio Cloud for\n `shadow`.\n size\n\n sizesrc\n Sets the source reference on Chart Studio Cloud for\n `size`.\n style\n Sets whether a font should be styled with a normal or\n italic face from its family.\n stylesrc\n Sets the source reference on Chart Studio Cloud for\n `style`.\n textcase\n Sets capitalization of text. It can be used to make\n text appear in all-uppercase or all-lowercase, or with\n each word capitalized.\n textcasesrc\n Sets the source reference on Chart Studio Cloud for\n `textcase`.\n variant\n Sets the variant of the font.\n variantsrc\n Sets the source reference on Chart Studio Cloud for\n `variant`.\n weight\n Sets the weight (or boldness) of the font.\n weightsrc\n Sets the source reference on Chart Studio Cloud for\n `weight`.\n\n Returns\n -------\n Font\n """\n super().__init__("font")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.image.hoverlabel.Font\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.image.hoverlabel.Font`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("color", arg, color)\n self._set_property("colorsrc", arg, colorsrc)\n self._set_property("family", arg, family)\n self._set_property("familysrc", arg, familysrc)\n self._set_property("lineposition", arg, lineposition)\n self._set_property("linepositionsrc", arg, linepositionsrc)\n self._set_property("shadow", arg, shadow)\n self._set_property("shadowsrc", arg, shadowsrc)\n self._set_property("size", arg, size)\n self._set_property("sizesrc", arg, sizesrc)\n self._set_property("style", arg, style)\n self._set_property("stylesrc", arg, stylesrc)\n self._set_property("textcase", arg, textcase)\n self._set_property("textcasesrc", arg, textcasesrc)\n self._set_property("variant", arg, variant)\n self._set_property("variantsrc", arg, variantsrc)\n self._set_property("weight", arg, weight)\n self._set_property("weightsrc", arg, weightsrc)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n | .venv\Lib\site-packages\plotly\graph_objs\image\hoverlabel\_font.py | _font.py | Python | 17,133 | 0.95 | 0.136286 | 0.005976 | node-utils | 549 | 2025-03-29T13:36:32.523260 | Apache-2.0 | false | b22ccaa792622b53e9fca88d6349865a |
import sys\nfrom typing import TYPE_CHECKING\n\nif TYPE_CHECKING:\n from ._font import Font\nelse:\n from _plotly_utils.importers import relative_import\n\n __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"])\n | .venv\Lib\site-packages\plotly\graph_objs\image\hoverlabel\__init__.py | __init__.py | Python | 237 | 0.85 | 0.111111 | 0 | python-kit | 137 | 2024-08-02T16:19:49.557830 | MIT | false | 78f0039a1e574405772be52751197792 |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\image\hoverlabel\__pycache__\_font.cpython-313.pyc | _font.cpython-313.pyc | Other | 18,377 | 0.8 | 0.1 | 0 | python-kit | 160 | 2024-06-18T07:01:36.064921 | Apache-2.0 | false | 1fd6d923dc48adb56db72bfc1ff411d8 |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\image\hoverlabel\__pycache__\__init__.cpython-313.pyc | __init__.cpython-313.pyc | Other | 502 | 0.85 | 0 | 0 | node-utils | 202 | 2024-09-13T22:27:49.617927 | BSD-3-Clause | false | 0b0068fb67cc88c5f740210078fb473b |
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType\nimport copy as _copy\n\n\nclass Font(_BaseTraceHierarchyType):\n _parent_path_str = "image.legendgrouptitle"\n _path_str = "image.legendgrouptitle.font"\n _valid_props = {\n "color",\n "family",\n "lineposition",\n "shadow",\n "size",\n "style",\n "textcase",\n "variant",\n "weight",\n }\n\n @property\n def color(self):\n """\n The 'color' property is a color and may be specified as:\n - A hex string (e.g. '#ff0000')\n - An rgb/rgba string (e.g. 'rgb(255,0,0)')\n - An hsl/hsla string (e.g. 'hsl(0,100%,50%)')\n - An hsv/hsva string (e.g. 'hsv(0,100%,100%)')\n - A named CSS color: see https://plotly.com/python/css-colors/ for a list\n\n Returns\n -------\n str\n """\n return self["color"]\n\n @color.setter\n def color(self, val):\n self["color"] = val\n\n @property\n def family(self):\n """\n HTML font family - the typeface that will be applied by the web\n browser. The web browser can only apply a font if it is\n available on the system where it runs. Provide multiple font\n families, separated by commas, to indicate the order in which\n to apply fonts if they aren't available.\n\n The 'family' property is a string and must be specified as:\n - A non-empty string\n\n Returns\n -------\n str\n """\n return self["family"]\n\n @family.setter\n def family(self, val):\n self["family"] = val\n\n @property\n def lineposition(self):\n """\n Sets the kind of decoration line(s) with text, such as an\n "under", "over" or "through" as well as combinations e.g.\n "under+over", etc.\n\n The 'lineposition' property is a flaglist and may be specified\n as a string containing:\n - Any combination of ['under', 'over', 'through'] joined with '+' characters\n (e.g. 'under+over')\n OR exactly one of ['none'] (e.g. 'none')\n\n Returns\n -------\n Any\n """\n return self["lineposition"]\n\n @lineposition.setter\n def lineposition(self, val):\n self["lineposition"] = val\n\n @property\n def shadow(self):\n """\n Sets the shape and color of the shadow behind text. "auto"\n places minimal shadow and applies contrast text font color. See\n https://developer.mozilla.org/en-US/docs/Web/CSS/text-shadow\n for additional options.\n\n The 'shadow' property is a string and must be specified as:\n - A string\n - A number that will be converted to a string\n\n Returns\n -------\n str\n """\n return self["shadow"]\n\n @shadow.setter\n def shadow(self, val):\n self["shadow"] = val\n\n @property\n def size(self):\n """\n The 'size' property is a number and may be specified as:\n - An int or float in the interval [1, inf]\n\n Returns\n -------\n int|float\n """\n return self["size"]\n\n @size.setter\n def size(self, val):\n self["size"] = val\n\n @property\n def style(self):\n """\n Sets whether a font should be styled with a normal or italic\n face from its family.\n\n The 'style' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['normal', 'italic']\n\n Returns\n -------\n Any\n """\n return self["style"]\n\n @style.setter\n def style(self, val):\n self["style"] = val\n\n @property\n def textcase(self):\n """\n Sets capitalization of text. It can be used to make text appear\n in all-uppercase or all-lowercase, or with each word\n capitalized.\n\n The 'textcase' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['normal', 'word caps', 'upper', 'lower']\n\n Returns\n -------\n Any\n """\n return self["textcase"]\n\n @textcase.setter\n def textcase(self, val):\n self["textcase"] = val\n\n @property\n def variant(self):\n """\n Sets the variant of the font.\n\n The 'variant' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['normal', 'small-caps', 'all-small-caps',\n 'all-petite-caps', 'petite-caps', 'unicase']\n\n Returns\n -------\n Any\n """\n return self["variant"]\n\n @variant.setter\n def variant(self, val):\n self["variant"] = val\n\n @property\n def weight(self):\n """\n Sets the weight (or boldness) of the font.\n\n The 'weight' property is a integer and may be specified as:\n - An int (or float that will be cast to an int)\n in the interval [1, 1000]\n OR exactly one of ['normal', 'bold'] (e.g. 'bold')\n\n Returns\n -------\n int\n """\n return self["weight"]\n\n @weight.setter\n def weight(self, val):\n self["weight"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n color\n\n family\n HTML font family - the typeface that will be applied by\n the web browser. The web browser can only apply a font\n if it is available on the system where it runs. Provide\n multiple font families, separated by commas, to\n indicate the order in which to apply fonts if they\n aren't available.\n lineposition\n Sets the kind of decoration line(s) with text, such as\n an "under", "over" or "through" as well as combinations\n e.g. "under+over", etc.\n shadow\n Sets the shape and color of the shadow behind text.\n "auto" places minimal shadow and applies contrast text\n font color. See https://developer.mozilla.org/en-\n US/docs/Web/CSS/text-shadow for additional options.\n size\n\n style\n Sets whether a font should be styled with a normal or\n italic face from its family.\n textcase\n Sets capitalization of text. It can be used to make\n text appear in all-uppercase or all-lowercase, or with\n each word capitalized.\n variant\n Sets the variant of the font.\n weight\n Sets the weight (or boldness) of the font.\n """\n\n def __init__(\n self,\n arg=None,\n color=None,\n family=None,\n lineposition=None,\n shadow=None,\n size=None,\n style=None,\n textcase=None,\n variant=None,\n weight=None,\n **kwargs,\n ):\n """\n Construct a new Font object\n\n Sets this legend group's title font.\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of\n :class:`plotly.graph_objs.image.legendgrouptitle.Font`\n color\n\n family\n HTML font family - the typeface that will be applied by\n the web browser. The web browser can only apply a font\n if it is available on the system where it runs. Provide\n multiple font families, separated by commas, to\n indicate the order in which to apply fonts if they\n aren't available.\n lineposition\n Sets the kind of decoration line(s) with text, such as\n an "under", "over" or "through" as well as combinations\n e.g. "under+over", etc.\n shadow\n Sets the shape and color of the shadow behind text.\n "auto" places minimal shadow and applies contrast text\n font color. See https://developer.mozilla.org/en-\n US/docs/Web/CSS/text-shadow for additional options.\n size\n\n style\n Sets whether a font should be styled with a normal or\n italic face from its family.\n textcase\n Sets capitalization of text. It can be used to make\n text appear in all-uppercase or all-lowercase, or with\n each word capitalized.\n variant\n Sets the variant of the font.\n weight\n Sets the weight (or boldness) of the font.\n\n Returns\n -------\n Font\n """\n super().__init__("font")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.image.legendgrouptitle.Font\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.image.legendgrouptitle.Font`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("color", arg, color)\n self._set_property("family", arg, family)\n self._set_property("lineposition", arg, lineposition)\n self._set_property("shadow", arg, shadow)\n self._set_property("size", arg, size)\n self._set_property("style", arg, style)\n self._set_property("textcase", arg, textcase)\n self._set_property("variant", arg, variant)\n self._set_property("weight", arg, weight)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n | .venv\Lib\site-packages\plotly\graph_objs\image\legendgrouptitle\_font.py | _font.py | Python | 9,916 | 0.95 | 0.10479 | 0.010526 | awesome-app | 596 | 2023-08-24T06:09:17.602483 | GPL-3.0 | false | 71b2c75846c68a6d94a2277869a901ac |
import sys\nfrom typing import TYPE_CHECKING\n\nif TYPE_CHECKING:\n from ._font import Font\nelse:\n from _plotly_utils.importers import relative_import\n\n __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"])\n | .venv\Lib\site-packages\plotly\graph_objs\image\legendgrouptitle\__init__.py | __init__.py | Python | 237 | 0.85 | 0.111111 | 0 | python-kit | 782 | 2025-05-04T08:56:03.219292 | BSD-3-Clause | false | 78f0039a1e574405772be52751197792 |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\image\legendgrouptitle\__pycache__\_font.cpython-313.pyc | _font.cpython-313.pyc | Other | 10,920 | 0.8 | 0.048583 | 0 | python-kit | 637 | 2024-02-28T08:13:33.723761 | Apache-2.0 | false | 74c0bd92b2a5f8323fddb2b765ffb3fb |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\image\legendgrouptitle\__pycache__\__init__.cpython-313.pyc | __init__.cpython-313.pyc | Other | 508 | 0.85 | 0 | 0 | react-lib | 952 | 2025-05-31T15:22:28.164514 | Apache-2.0 | false | 3f7658d0cd3db9004c3350fc05dfe2b7 |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\image\__pycache__\_hoverlabel.cpython-313.pyc | _hoverlabel.cpython-313.pyc | Other | 11,364 | 0.8 | 0.142276 | 0 | node-utils | 268 | 2025-04-09T11:48:35.975723 | GPL-3.0 | false | 78ba4c835779dbf3f77f64ce07def3c1 |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\image\__pycache__\_legendgrouptitle.cpython-313.pyc | _legendgrouptitle.cpython-313.pyc | Other | 3,838 | 0.8 | 0.04 | 0 | vue-tools | 488 | 2025-01-13T10:40:18.970778 | GPL-3.0 | false | f13037706ac745a1ed25f95ac5d85929 |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\image\__pycache__\_stream.cpython-313.pyc | _stream.cpython-313.pyc | Other | 4,290 | 0.8 | 0.054945 | 0 | python-kit | 122 | 2024-03-06T00:30:44.177266 | Apache-2.0 | false | 747eb3143393a79923fc4333507ea0a9 |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\image\__pycache__\__init__.cpython-313.pyc | __init__.cpython-313.pyc | Other | 794 | 0.95 | 0 | 0 | python-kit | 888 | 2023-07-24T19:12:48.396316 | BSD-3-Clause | false | fad29b52483e0a3edbc1222f13a98a13 |
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType\nimport copy as _copy\n\n\nclass Delta(_BaseTraceHierarchyType):\n _parent_path_str = "indicator"\n _path_str = "indicator.delta"\n _valid_props = {\n "decreasing",\n "font",\n "increasing",\n "position",\n "prefix",\n "reference",\n "relative",\n "suffix",\n "valueformat",\n }\n\n @property\n def decreasing(self):\n """\n The 'decreasing' property is an instance of Decreasing\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.indicator.delta.Decreasing`\n - A dict of string/value properties that will be passed\n to the Decreasing constructor\n\n Returns\n -------\n plotly.graph_objs.indicator.delta.Decreasing\n """\n return self["decreasing"]\n\n @decreasing.setter\n def decreasing(self, val):\n self["decreasing"] = val\n\n @property\n def font(self):\n """\n Set the font used to display the delta\n\n The 'font' property is an instance of Font\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.indicator.delta.Font`\n - A dict of string/value properties that will be passed\n to the Font constructor\n\n Returns\n -------\n plotly.graph_objs.indicator.delta.Font\n """\n return self["font"]\n\n @font.setter\n def font(self, val):\n self["font"] = val\n\n @property\n def increasing(self):\n """\n The 'increasing' property is an instance of Increasing\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.indicator.delta.Increasing`\n - A dict of string/value properties that will be passed\n to the Increasing constructor\n\n Returns\n -------\n plotly.graph_objs.indicator.delta.Increasing\n """\n return self["increasing"]\n\n @increasing.setter\n def increasing(self, val):\n self["increasing"] = val\n\n @property\n def position(self):\n """\n Sets the position of delta with respect to the number.\n\n The 'position' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['top', 'bottom', 'left', 'right']\n\n Returns\n -------\n Any\n """\n return self["position"]\n\n @position.setter\n def position(self, val):\n self["position"] = val\n\n @property\n def prefix(self):\n """\n Sets a prefix appearing before the delta.\n\n The 'prefix' property is a string and must be specified as:\n - A string\n - A number that will be converted to a string\n\n Returns\n -------\n str\n """\n return self["prefix"]\n\n @prefix.setter\n def prefix(self, val):\n self["prefix"] = val\n\n @property\n def reference(self):\n """\n Sets the reference value to compute the delta. By default, it\n is set to the current value.\n\n The 'reference' property is a number and may be specified as:\n - An int or float\n\n Returns\n -------\n int|float\n """\n return self["reference"]\n\n @reference.setter\n def reference(self, val):\n self["reference"] = val\n\n @property\n def relative(self):\n """\n Show relative change\n\n The 'relative' property must be specified as a bool\n (either True, or False)\n\n Returns\n -------\n bool\n """\n return self["relative"]\n\n @relative.setter\n def relative(self, val):\n self["relative"] = val\n\n @property\n def suffix(self):\n """\n Sets a suffix appearing next to the delta.\n\n The 'suffix' property is a string and must be specified as:\n - A string\n - A number that will be converted to a string\n\n Returns\n -------\n str\n """\n return self["suffix"]\n\n @suffix.setter\n def suffix(self, val):\n self["suffix"] = val\n\n @property\n def valueformat(self):\n """\n Sets the value formatting rule using d3 formatting mini-\n languages which are very similar to those in Python. For\n numbers, see:\n https://github.com/d3/d3-format/tree/v1.4.5#d3-format.\n\n The 'valueformat' property is a string and must be specified as:\n - A string\n - A number that will be converted to a string\n\n Returns\n -------\n str\n """\n return self["valueformat"]\n\n @valueformat.setter\n def valueformat(self, val):\n self["valueformat"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n decreasing\n :class:`plotly.graph_objects.indicator.delta.Decreasing\n ` instance or dict with compatible properties\n font\n Set the font used to display the delta\n increasing\n :class:`plotly.graph_objects.indicator.delta.Increasing\n ` instance or dict with compatible properties\n position\n Sets the position of delta with respect to the number.\n prefix\n Sets a prefix appearing before the delta.\n reference\n Sets the reference value to compute the delta. By\n default, it is set to the current value.\n relative\n Show relative change\n suffix\n Sets a suffix appearing next to the delta.\n valueformat\n Sets the value formatting rule using d3 formatting\n mini-languages which are very similar to those in\n Python. For numbers, see:\n https://github.com/d3/d3-format/tree/v1.4.5#d3-format.\n """\n\n def __init__(\n self,\n arg=None,\n decreasing=None,\n font=None,\n increasing=None,\n position=None,\n prefix=None,\n reference=None,\n relative=None,\n suffix=None,\n valueformat=None,\n **kwargs,\n ):\n """\n Construct a new Delta object\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of\n :class:`plotly.graph_objs.indicator.Delta`\n decreasing\n :class:`plotly.graph_objects.indicator.delta.Decreasing\n ` instance or dict with compatible properties\n font\n Set the font used to display the delta\n increasing\n :class:`plotly.graph_objects.indicator.delta.Increasing\n ` instance or dict with compatible properties\n position\n Sets the position of delta with respect to the number.\n prefix\n Sets a prefix appearing before the delta.\n reference\n Sets the reference value to compute the delta. By\n default, it is set to the current value.\n relative\n Show relative change\n suffix\n Sets a suffix appearing next to the delta.\n valueformat\n Sets the value formatting rule using d3 formatting\n mini-languages which are very similar to those in\n Python. For numbers, see:\n https://github.com/d3/d3-format/tree/v1.4.5#d3-format.\n\n Returns\n -------\n Delta\n """\n super().__init__("delta")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.indicator.Delta\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.indicator.Delta`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("decreasing", arg, decreasing)\n self._set_property("font", arg, font)\n self._set_property("increasing", arg, increasing)\n self._set_property("position", arg, position)\n self._set_property("prefix", arg, prefix)\n self._set_property("reference", arg, reference)\n self._set_property("relative", arg, relative)\n self._set_property("suffix", arg, suffix)\n self._set_property("valueformat", arg, valueformat)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n | .venv\Lib\site-packages\plotly\graph_objs\indicator\_delta.py | _delta.py | Python | 8,798 | 0.95 | 0.10356 | 0.011321 | python-kit | 660 | 2024-12-28T23:53:27.349467 | BSD-3-Clause | false | 031a172ba25b9105503352fc3cfd9e0c |
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType\nimport copy as _copy\n\n\nclass Domain(_BaseTraceHierarchyType):\n _parent_path_str = "indicator"\n _path_str = "indicator.domain"\n _valid_props = {"column", "row", "x", "y"}\n\n @property\n def column(self):\n """\n If there is a layout grid, use the domain for this column in\n the grid for this indicator trace .\n\n The 'column' property is a integer and may be specified as:\n - An int (or float that will be cast to an int)\n in the interval [0, 9223372036854775807]\n\n Returns\n -------\n int\n """\n return self["column"]\n\n @column.setter\n def column(self, val):\n self["column"] = val\n\n @property\n def row(self):\n """\n If there is a layout grid, use the domain for this row in the\n grid for this indicator trace .\n\n The 'row' property is a integer and may be specified as:\n - An int (or float that will be cast to an int)\n in the interval [0, 9223372036854775807]\n\n Returns\n -------\n int\n """\n return self["row"]\n\n @row.setter\n def row(self, val):\n self["row"] = val\n\n @property\n def x(self):\n """\n Sets the horizontal domain of this indicator trace (in plot\n fraction).\n\n The 'x' property is an info array that may be specified as:\n\n * a list or tuple of 2 elements where:\n (0) The 'x[0]' property is a number and may be specified as:\n - An int or float in the interval [0, 1]\n (1) The 'x[1]' property is a number and may be specified as:\n - An int or float in the interval [0, 1]\n\n Returns\n -------\n list\n """\n return self["x"]\n\n @x.setter\n def x(self, val):\n self["x"] = val\n\n @property\n def y(self):\n """\n Sets the vertical domain of this indicator trace (in plot\n fraction).\n\n The 'y' property is an info array that may be specified as:\n\n * a list or tuple of 2 elements where:\n (0) The 'y[0]' property is a number and may be specified as:\n - An int or float in the interval [0, 1]\n (1) The 'y[1]' property is a number and may be specified as:\n - An int or float in the interval [0, 1]\n\n Returns\n -------\n list\n """\n return self["y"]\n\n @y.setter\n def y(self, val):\n self["y"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n column\n If there is a layout grid, use the domain for this\n column in the grid for this indicator trace .\n row\n If there is a layout grid, use the domain for this row\n in the grid for this indicator trace .\n x\n Sets the horizontal domain of this indicator trace (in\n plot fraction).\n y\n Sets the vertical domain of this indicator trace (in\n plot fraction).\n """\n\n def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs):\n """\n Construct a new Domain object\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of\n :class:`plotly.graph_objs.indicator.Domain`\n column\n If there is a layout grid, use the domain for this\n column in the grid for this indicator trace .\n row\n If there is a layout grid, use the domain for this row\n in the grid for this indicator trace .\n x\n Sets the horizontal domain of this indicator trace (in\n plot fraction).\n y\n Sets the vertical domain of this indicator trace (in\n plot fraction).\n\n Returns\n -------\n Domain\n """\n super().__init__("domain")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.indicator.Domain\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.indicator.Domain`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("column", arg, column)\n self._set_property("row", arg, row)\n self._set_property("x", arg, x)\n self._set_property("y", arg, y)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n | .venv\Lib\site-packages\plotly\graph_objs\indicator\_domain.py | _domain.py | Python | 5,051 | 0.95 | 0.158824 | 0.028169 | awesome-app | 358 | 2024-01-07T04:51:35.598099 | BSD-3-Clause | false | 8ba11421ce6f21342e04ac503e02e40f |
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType\nimport copy as _copy\n\n\nclass Gauge(_BaseTraceHierarchyType):\n _parent_path_str = "indicator"\n _path_str = "indicator.gauge"\n _valid_props = {\n "axis",\n "bar",\n "bgcolor",\n "bordercolor",\n "borderwidth",\n "shape",\n "stepdefaults",\n "steps",\n "threshold",\n }\n\n @property\n def axis(self):\n """\n The 'axis' property is an instance of Axis\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.indicator.gauge.Axis`\n - A dict of string/value properties that will be passed\n to the Axis constructor\n\n Returns\n -------\n plotly.graph_objs.indicator.gauge.Axis\n """\n return self["axis"]\n\n @axis.setter\n def axis(self, val):\n self["axis"] = val\n\n @property\n def bar(self):\n """\n Set the appearance of the gauge's value\n\n The 'bar' property is an instance of Bar\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.indicator.gauge.Bar`\n - A dict of string/value properties that will be passed\n to the Bar constructor\n\n Returns\n -------\n plotly.graph_objs.indicator.gauge.Bar\n """\n return self["bar"]\n\n @bar.setter\n def bar(self, val):\n self["bar"] = val\n\n @property\n def bgcolor(self):\n """\n Sets the gauge background color.\n\n The 'bgcolor' property is a color and may be specified as:\n - A hex string (e.g. '#ff0000')\n - An rgb/rgba string (e.g. 'rgb(255,0,0)')\n - An hsl/hsla string (e.g. 'hsl(0,100%,50%)')\n - An hsv/hsva string (e.g. 'hsv(0,100%,100%)')\n - A named CSS color: see https://plotly.com/python/css-colors/ for a list\n\n Returns\n -------\n str\n """\n return self["bgcolor"]\n\n @bgcolor.setter\n def bgcolor(self, val):\n self["bgcolor"] = val\n\n @property\n def bordercolor(self):\n """\n Sets the color of the border enclosing the gauge.\n\n The 'bordercolor' property is a color and may be specified as:\n - A hex string (e.g. '#ff0000')\n - An rgb/rgba string (e.g. 'rgb(255,0,0)')\n - An hsl/hsla string (e.g. 'hsl(0,100%,50%)')\n - An hsv/hsva string (e.g. 'hsv(0,100%,100%)')\n - A named CSS color: see https://plotly.com/python/css-colors/ for a list\n\n Returns\n -------\n str\n """\n return self["bordercolor"]\n\n @bordercolor.setter\n def bordercolor(self, val):\n self["bordercolor"] = val\n\n @property\n def borderwidth(self):\n """\n Sets the width (in px) of the border enclosing the gauge.\n\n The 'borderwidth' property is a number and may be specified as:\n - An int or float in the interval [0, inf]\n\n Returns\n -------\n int|float\n """\n return self["borderwidth"]\n\n @borderwidth.setter\n def borderwidth(self, val):\n self["borderwidth"] = val\n\n @property\n def shape(self):\n """\n Set the shape of the gauge\n\n The 'shape' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['angular', 'bullet']\n\n Returns\n -------\n Any\n """\n return self["shape"]\n\n @shape.setter\n def shape(self, val):\n self["shape"] = val\n\n @property\n def steps(self):\n """\n The 'steps' property is a tuple of instances of\n Step that may be specified as:\n - A list or tuple of instances of plotly.graph_objs.indicator.gauge.Step\n - A list or tuple of dicts of string/value properties that\n will be passed to the Step constructor\n\n Returns\n -------\n tuple[plotly.graph_objs.indicator.gauge.Step]\n """\n return self["steps"]\n\n @steps.setter\n def steps(self, val):\n self["steps"] = val\n\n @property\n def stepdefaults(self):\n """\n When used in a template (as\n layout.template.data.indicator.gauge.stepdefaults), sets the\n default property values to use for elements of\n indicator.gauge.steps\n\n The 'stepdefaults' property is an instance of Step\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.indicator.gauge.Step`\n - A dict of string/value properties that will be passed\n to the Step constructor\n\n Returns\n -------\n plotly.graph_objs.indicator.gauge.Step\n """\n return self["stepdefaults"]\n\n @stepdefaults.setter\n def stepdefaults(self, val):\n self["stepdefaults"] = val\n\n @property\n def threshold(self):\n """\n The 'threshold' property is an instance of Threshold\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.indicator.gauge.Threshold`\n - A dict of string/value properties that will be passed\n to the Threshold constructor\n\n Returns\n -------\n plotly.graph_objs.indicator.gauge.Threshold\n """\n return self["threshold"]\n\n @threshold.setter\n def threshold(self, val):\n self["threshold"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n axis\n :class:`plotly.graph_objects.indicator.gauge.Axis`\n instance or dict with compatible properties\n bar\n Set the appearance of the gauge's value\n bgcolor\n Sets the gauge background color.\n bordercolor\n Sets the color of the border enclosing the gauge.\n borderwidth\n Sets the width (in px) of the border enclosing the\n gauge.\n shape\n Set the shape of the gauge\n steps\n A tuple of\n :class:`plotly.graph_objects.indicator.gauge.Step`\n instances or dicts with compatible properties\n stepdefaults\n When used in a template (as\n layout.template.data.indicator.gauge.stepdefaults),\n sets the default property values to use for elements of\n indicator.gauge.steps\n threshold\n :class:`plotly.graph_objects.indicator.gauge.Threshold`\n instance or dict with compatible properties\n """\n\n def __init__(\n self,\n arg=None,\n axis=None,\n bar=None,\n bgcolor=None,\n bordercolor=None,\n borderwidth=None,\n shape=None,\n steps=None,\n stepdefaults=None,\n threshold=None,\n **kwargs,\n ):\n """\n Construct a new Gauge object\n\n The gauge of the Indicator plot.\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of\n :class:`plotly.graph_objs.indicator.Gauge`\n axis\n :class:`plotly.graph_objects.indicator.gauge.Axis`\n instance or dict with compatible properties\n bar\n Set the appearance of the gauge's value\n bgcolor\n Sets the gauge background color.\n bordercolor\n Sets the color of the border enclosing the gauge.\n borderwidth\n Sets the width (in px) of the border enclosing the\n gauge.\n shape\n Set the shape of the gauge\n steps\n A tuple of\n :class:`plotly.graph_objects.indicator.gauge.Step`\n instances or dicts with compatible properties\n stepdefaults\n When used in a template (as\n layout.template.data.indicator.gauge.stepdefaults),\n sets the default property values to use for elements of\n indicator.gauge.steps\n threshold\n :class:`plotly.graph_objects.indicator.gauge.Threshold`\n instance or dict with compatible properties\n\n Returns\n -------\n Gauge\n """\n super().__init__("gauge")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.indicator.Gauge\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.indicator.Gauge`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("axis", arg, axis)\n self._set_property("bar", arg, bar)\n self._set_property("bgcolor", arg, bgcolor)\n self._set_property("bordercolor", arg, bordercolor)\n self._set_property("borderwidth", arg, borderwidth)\n self._set_property("shape", arg, shape)\n self._set_property("steps", arg, steps)\n self._set_property("stepdefaults", arg, stepdefaults)\n self._set_property("threshold", arg, threshold)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n | .venv\Lib\site-packages\plotly\graph_objs\indicator\_gauge.py | _gauge.py | Python | 9,497 | 0.95 | 0.123839 | 0.010753 | vue-tools | 431 | 2024-01-13T16:34:48.942405 | BSD-3-Clause | false | 8c0a7181e284cebff1b4a9d15812aea7 |
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType\nimport copy as _copy\n\n\nclass Legendgrouptitle(_BaseTraceHierarchyType):\n _parent_path_str = "indicator"\n _path_str = "indicator.legendgrouptitle"\n _valid_props = {"font", "text"}\n\n @property\n def font(self):\n """\n Sets this legend group's title font.\n\n The 'font' property is an instance of Font\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.indicator.legendgrouptitle.Font`\n - A dict of string/value properties that will be passed\n to the Font constructor\n\n Returns\n -------\n plotly.graph_objs.indicator.legendgrouptitle.Font\n """\n return self["font"]\n\n @font.setter\n def font(self, val):\n self["font"] = val\n\n @property\n def text(self):\n """\n Sets the title of the legend group.\n\n The 'text' property is a string and must be specified as:\n - A string\n - A number that will be converted to a string\n\n Returns\n -------\n str\n """\n return self["text"]\n\n @text.setter\n def text(self, val):\n self["text"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n font\n Sets this legend group's title font.\n text\n Sets the title of the legend group.\n """\n\n def __init__(self, arg=None, font=None, text=None, **kwargs):\n """\n Construct a new Legendgrouptitle object\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of\n :class:`plotly.graph_objs.indicator.Legendgrouptitle`\n font\n Sets this legend group's title font.\n text\n Sets the title of the legend group.\n\n Returns\n -------\n Legendgrouptitle\n """\n super().__init__("legendgrouptitle")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.indicator.Legendgrouptitle\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.indicator.Legendgrouptitle`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("font", arg, font)\n self._set_property("text", arg, text)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n | .venv\Lib\site-packages\plotly\graph_objs\indicator\_legendgrouptitle.py | _legendgrouptitle.py | Python | 2,953 | 0.95 | 0.115385 | 0.023256 | python-kit | 805 | 2024-06-27T14:10:02.462559 | GPL-3.0 | false | 5c1e9e1b77e54bdef6749915e1083e01 |
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType\nimport copy as _copy\n\n\nclass Number(_BaseTraceHierarchyType):\n _parent_path_str = "indicator"\n _path_str = "indicator.number"\n _valid_props = {"font", "prefix", "suffix", "valueformat"}\n\n @property\n def font(self):\n """\n Set the font used to display main number\n\n The 'font' property is an instance of Font\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.indicator.number.Font`\n - A dict of string/value properties that will be passed\n to the Font constructor\n\n Returns\n -------\n plotly.graph_objs.indicator.number.Font\n """\n return self["font"]\n\n @font.setter\n def font(self, val):\n self["font"] = val\n\n @property\n def prefix(self):\n """\n Sets a prefix appearing before the number.\n\n The 'prefix' property is a string and must be specified as:\n - A string\n - A number that will be converted to a string\n\n Returns\n -------\n str\n """\n return self["prefix"]\n\n @prefix.setter\n def prefix(self, val):\n self["prefix"] = val\n\n @property\n def suffix(self):\n """\n Sets a suffix appearing next to the number.\n\n The 'suffix' property is a string and must be specified as:\n - A string\n - A number that will be converted to a string\n\n Returns\n -------\n str\n """\n return self["suffix"]\n\n @suffix.setter\n def suffix(self, val):\n self["suffix"] = val\n\n @property\n def valueformat(self):\n """\n Sets the value formatting rule using d3 formatting mini-\n languages which are very similar to those in Python. For\n numbers, see:\n https://github.com/d3/d3-format/tree/v1.4.5#d3-format.\n\n The 'valueformat' property is a string and must be specified as:\n - A string\n - A number that will be converted to a string\n\n Returns\n -------\n str\n """\n return self["valueformat"]\n\n @valueformat.setter\n def valueformat(self, val):\n self["valueformat"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n font\n Set the font used to display main number\n prefix\n Sets a prefix appearing before the number.\n suffix\n Sets a suffix appearing next to the number.\n valueformat\n Sets the value formatting rule using d3 formatting\n mini-languages which are very similar to those in\n Python. For numbers, see:\n https://github.com/d3/d3-format/tree/v1.4.5#d3-format.\n """\n\n def __init__(\n self, arg=None, font=None, prefix=None, suffix=None, valueformat=None, **kwargs\n ):\n """\n Construct a new Number object\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of\n :class:`plotly.graph_objs.indicator.Number`\n font\n Set the font used to display main number\n prefix\n Sets a prefix appearing before the number.\n suffix\n Sets a suffix appearing next to the number.\n valueformat\n Sets the value formatting rule using d3 formatting\n mini-languages which are very similar to those in\n Python. For numbers, see:\n https://github.com/d3/d3-format/tree/v1.4.5#d3-format.\n\n Returns\n -------\n Number\n """\n super().__init__("number")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.indicator.Number\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.indicator.Number`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("font", arg, font)\n self._set_property("prefix", arg, prefix)\n self._set_property("suffix", arg, suffix)\n self._set_property("valueformat", arg, valueformat)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n | .venv\Lib\site-packages\plotly\graph_objs\indicator\_number.py | _number.py | Python | 4,745 | 0.95 | 0.09816 | 0.014599 | vue-tools | 181 | 2023-08-24T13:58:06.086113 | BSD-3-Clause | false | 540096b4f1f6b0c775377b403381a8e9 |
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType\nimport copy as _copy\n\n\nclass Stream(_BaseTraceHierarchyType):\n _parent_path_str = "indicator"\n _path_str = "indicator.stream"\n _valid_props = {"maxpoints", "token"}\n\n @property\n def maxpoints(self):\n """\n Sets the maximum number of points to keep on the plots from an\n incoming stream. If `maxpoints` is set to 50, only the newest\n 50 points will be displayed on the plot.\n\n The 'maxpoints' property is a number and may be specified as:\n - An int or float in the interval [0, 10000]\n\n Returns\n -------\n int|float\n """\n return self["maxpoints"]\n\n @maxpoints.setter\n def maxpoints(self, val):\n self["maxpoints"] = val\n\n @property\n def token(self):\n """\n The stream id number links a data trace on a plot with a\n stream. See https://chart-studio.plotly.com/settings for more\n details.\n\n The 'token' property is a string and must be specified as:\n - A non-empty string\n\n Returns\n -------\n str\n """\n return self["token"]\n\n @token.setter\n def token(self, val):\n self["token"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n maxpoints\n Sets the maximum number of points to keep on the plots\n from an incoming stream. If `maxpoints` is set to 50,\n only the newest 50 points will be displayed on the\n plot.\n token\n The stream id number links a data trace on a plot with\n a stream. See https://chart-studio.plotly.com/settings\n for more details.\n """\n\n def __init__(self, arg=None, maxpoints=None, token=None, **kwargs):\n """\n Construct a new Stream object\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of\n :class:`plotly.graph_objs.indicator.Stream`\n maxpoints\n Sets the maximum number of points to keep on the plots\n from an incoming stream. If `maxpoints` is set to 50,\n only the newest 50 points will be displayed on the\n plot.\n token\n The stream id number links a data trace on a plot with\n a stream. See https://chart-studio.plotly.com/settings\n for more details.\n\n Returns\n -------\n Stream\n """\n super().__init__("stream")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.indicator.Stream\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.indicator.Stream`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("maxpoints", arg, maxpoints)\n self._set_property("token", arg, token)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n | .venv\Lib\site-packages\plotly\graph_objs\indicator\_stream.py | _stream.py | Python | 3,521 | 0.95 | 0.122807 | 0.020833 | node-utils | 687 | 2023-12-04T20:42:26.837595 | Apache-2.0 | false | 1cebe173a2cad485a0e7c66043edf431 |
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType\nimport copy as _copy\n\n\nclass Title(_BaseTraceHierarchyType):\n _parent_path_str = "indicator"\n _path_str = "indicator.title"\n _valid_props = {"align", "font", "text"}\n\n @property\n def align(self):\n """\n Sets the horizontal alignment of the title. It defaults to\n `center` except for bullet charts for which it defaults to\n right.\n\n The 'align' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['left', 'center', 'right']\n\n Returns\n -------\n Any\n """\n return self["align"]\n\n @align.setter\n def align(self, val):\n self["align"] = val\n\n @property\n def font(self):\n """\n Set the font used to display the title\n\n The 'font' property is an instance of Font\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.indicator.title.Font`\n - A dict of string/value properties that will be passed\n to the Font constructor\n\n Returns\n -------\n plotly.graph_objs.indicator.title.Font\n """\n return self["font"]\n\n @font.setter\n def font(self, val):\n self["font"] = val\n\n @property\n def text(self):\n """\n Sets the title of this indicator.\n\n The 'text' property is a string and must be specified as:\n - A string\n - A number that will be converted to a string\n\n Returns\n -------\n str\n """\n return self["text"]\n\n @text.setter\n def text(self, val):\n self["text"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n align\n Sets the horizontal alignment of the title. It defaults\n to `center` except for bullet charts for which it\n defaults to right.\n font\n Set the font used to display the title\n text\n Sets the title of this indicator.\n """\n\n def __init__(self, arg=None, align=None, font=None, text=None, **kwargs):\n """\n Construct a new Title object\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of\n :class:`plotly.graph_objs.indicator.Title`\n align\n Sets the horizontal alignment of the title. It defaults\n to `center` except for bullet charts for which it\n defaults to right.\n font\n Set the font used to display the title\n text\n Sets the title of this indicator.\n\n Returns\n -------\n Title\n """\n super().__init__("title")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.indicator.Title\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.indicator.Title`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("align", arg, align)\n self._set_property("font", arg, font)\n self._set_property("text", arg, text)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n | .venv\Lib\site-packages\plotly\graph_objs\indicator\_title.py | _title.py | Python | 3,789 | 0.95 | 0.149254 | 0.017857 | awesome-app | 404 | 2024-09-12T15:49:44.333902 | Apache-2.0 | false | e1036d3b3094191de5b77b09dfc8a118 |
import sys\nfrom typing import TYPE_CHECKING\n\nif TYPE_CHECKING:\n from ._delta import Delta\n from ._domain import Domain\n from ._gauge import Gauge\n from ._legendgrouptitle import Legendgrouptitle\n from ._number import Number\n from ._stream import Stream\n from ._title import Title\n from . import delta\n from . import gauge\n from . import legendgrouptitle\n from . import number\n from . import title\nelse:\n from _plotly_utils.importers import relative_import\n\n __all__, __getattr__, __dir__ = relative_import(\n __name__,\n [".delta", ".gauge", ".legendgrouptitle", ".number", ".title"],\n [\n "._delta.Delta",\n "._domain.Domain",\n "._gauge.Gauge",\n "._legendgrouptitle.Legendgrouptitle",\n "._number.Number",\n "._stream.Stream",\n "._title.Title",\n ],\n )\n | .venv\Lib\site-packages\plotly\graph_objs\indicator\__init__.py | __init__.py | Python | 897 | 0.85 | 0.03125 | 0 | react-lib | 606 | 2024-05-25T00:59:25.095787 | BSD-3-Clause | false | 57cc2a1f57d8ae4821b367f986dae017 |
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType\nimport copy as _copy\n\n\nclass Decreasing(_BaseTraceHierarchyType):\n _parent_path_str = "indicator.delta"\n _path_str = "indicator.delta.decreasing"\n _valid_props = {"color", "symbol"}\n\n @property\n def color(self):\n """\n Sets the color for increasing value.\n\n The 'color' property is a color and may be specified as:\n - A hex string (e.g. '#ff0000')\n - An rgb/rgba string (e.g. 'rgb(255,0,0)')\n - An hsl/hsla string (e.g. 'hsl(0,100%,50%)')\n - An hsv/hsva string (e.g. 'hsv(0,100%,100%)')\n - A named CSS color: see https://plotly.com/python/css-colors/ for a list\n\n Returns\n -------\n str\n """\n return self["color"]\n\n @color.setter\n def color(self, val):\n self["color"] = val\n\n @property\n def symbol(self):\n """\n Sets the symbol to display for increasing value\n\n The 'symbol' property is a string and must be specified as:\n - A string\n - A number that will be converted to a string\n\n Returns\n -------\n str\n """\n return self["symbol"]\n\n @symbol.setter\n def symbol(self, val):\n self["symbol"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n color\n Sets the color for increasing value.\n symbol\n Sets the symbol to display for increasing value\n """\n\n def __init__(self, arg=None, color=None, symbol=None, **kwargs):\n """\n Construct a new Decreasing object\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of\n :class:`plotly.graph_objs.indicator.delta.Decreasing`\n color\n Sets the color for increasing value.\n symbol\n Sets the symbol to display for increasing value\n\n Returns\n -------\n Decreasing\n """\n super().__init__("decreasing")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.indicator.delta.Decreasing\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.indicator.delta.Decreasing`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("color", arg, color)\n self._set_property("symbol", arg, symbol)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n | .venv\Lib\site-packages\plotly\graph_objs\indicator\delta\_decreasing.py | _decreasing.py | Python | 3,044 | 0.95 | 0.171429 | 0.022989 | python-kit | 170 | 2023-12-22T03:19:47.000987 | MIT | false | b924d892413915cc793e92a429791168 |
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType\nimport copy as _copy\n\n\nclass Font(_BaseTraceHierarchyType):\n _parent_path_str = "indicator.delta"\n _path_str = "indicator.delta.font"\n _valid_props = {\n "color",\n "family",\n "lineposition",\n "shadow",\n "size",\n "style",\n "textcase",\n "variant",\n "weight",\n }\n\n @property\n def color(self):\n """\n The 'color' property is a color and may be specified as:\n - A hex string (e.g. '#ff0000')\n - An rgb/rgba string (e.g. 'rgb(255,0,0)')\n - An hsl/hsla string (e.g. 'hsl(0,100%,50%)')\n - An hsv/hsva string (e.g. 'hsv(0,100%,100%)')\n - A named CSS color: see https://plotly.com/python/css-colors/ for a list\n\n Returns\n -------\n str\n """\n return self["color"]\n\n @color.setter\n def color(self, val):\n self["color"] = val\n\n @property\n def family(self):\n """\n HTML font family - the typeface that will be applied by the web\n browser. The web browser can only apply a font if it is\n available on the system where it runs. Provide multiple font\n families, separated by commas, to indicate the order in which\n to apply fonts if they aren't available.\n\n The 'family' property is a string and must be specified as:\n - A non-empty string\n\n Returns\n -------\n str\n """\n return self["family"]\n\n @family.setter\n def family(self, val):\n self["family"] = val\n\n @property\n def lineposition(self):\n """\n Sets the kind of decoration line(s) with text, such as an\n "under", "over" or "through" as well as combinations e.g.\n "under+over", etc.\n\n The 'lineposition' property is a flaglist and may be specified\n as a string containing:\n - Any combination of ['under', 'over', 'through'] joined with '+' characters\n (e.g. 'under+over')\n OR exactly one of ['none'] (e.g. 'none')\n\n Returns\n -------\n Any\n """\n return self["lineposition"]\n\n @lineposition.setter\n def lineposition(self, val):\n self["lineposition"] = val\n\n @property\n def shadow(self):\n """\n Sets the shape and color of the shadow behind text. "auto"\n places minimal shadow and applies contrast text font color. See\n https://developer.mozilla.org/en-US/docs/Web/CSS/text-shadow\n for additional options.\n\n The 'shadow' property is a string and must be specified as:\n - A string\n - A number that will be converted to a string\n\n Returns\n -------\n str\n """\n return self["shadow"]\n\n @shadow.setter\n def shadow(self, val):\n self["shadow"] = val\n\n @property\n def size(self):\n """\n The 'size' property is a number and may be specified as:\n - An int or float in the interval [1, inf]\n\n Returns\n -------\n int|float\n """\n return self["size"]\n\n @size.setter\n def size(self, val):\n self["size"] = val\n\n @property\n def style(self):\n """\n Sets whether a font should be styled with a normal or italic\n face from its family.\n\n The 'style' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['normal', 'italic']\n\n Returns\n -------\n Any\n """\n return self["style"]\n\n @style.setter\n def style(self, val):\n self["style"] = val\n\n @property\n def textcase(self):\n """\n Sets capitalization of text. It can be used to make text appear\n in all-uppercase or all-lowercase, or with each word\n capitalized.\n\n The 'textcase' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['normal', 'word caps', 'upper', 'lower']\n\n Returns\n -------\n Any\n """\n return self["textcase"]\n\n @textcase.setter\n def textcase(self, val):\n self["textcase"] = val\n\n @property\n def variant(self):\n """\n Sets the variant of the font.\n\n The 'variant' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['normal', 'small-caps', 'all-small-caps',\n 'all-petite-caps', 'petite-caps', 'unicase']\n\n Returns\n -------\n Any\n """\n return self["variant"]\n\n @variant.setter\n def variant(self, val):\n self["variant"] = val\n\n @property\n def weight(self):\n """\n Sets the weight (or boldness) of the font.\n\n The 'weight' property is a integer and may be specified as:\n - An int (or float that will be cast to an int)\n in the interval [1, 1000]\n OR exactly one of ['normal', 'bold'] (e.g. 'bold')\n\n Returns\n -------\n int\n """\n return self["weight"]\n\n @weight.setter\n def weight(self, val):\n self["weight"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n color\n\n family\n HTML font family - the typeface that will be applied by\n the web browser. The web browser can only apply a font\n if it is available on the system where it runs. Provide\n multiple font families, separated by commas, to\n indicate the order in which to apply fonts if they\n aren't available.\n lineposition\n Sets the kind of decoration line(s) with text, such as\n an "under", "over" or "through" as well as combinations\n e.g. "under+over", etc.\n shadow\n Sets the shape and color of the shadow behind text.\n "auto" places minimal shadow and applies contrast text\n font color. See https://developer.mozilla.org/en-\n US/docs/Web/CSS/text-shadow for additional options.\n size\n\n style\n Sets whether a font should be styled with a normal or\n italic face from its family.\n textcase\n Sets capitalization of text. It can be used to make\n text appear in all-uppercase or all-lowercase, or with\n each word capitalized.\n variant\n Sets the variant of the font.\n weight\n Sets the weight (or boldness) of the font.\n """\n\n def __init__(\n self,\n arg=None,\n color=None,\n family=None,\n lineposition=None,\n shadow=None,\n size=None,\n style=None,\n textcase=None,\n variant=None,\n weight=None,\n **kwargs,\n ):\n """\n Construct a new Font object\n\n Set the font used to display the delta\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of\n :class:`plotly.graph_objs.indicator.delta.Font`\n color\n\n family\n HTML font family - the typeface that will be applied by\n the web browser. The web browser can only apply a font\n if it is available on the system where it runs. Provide\n multiple font families, separated by commas, to\n indicate the order in which to apply fonts if they\n aren't available.\n lineposition\n Sets the kind of decoration line(s) with text, such as\n an "under", "over" or "through" as well as combinations\n e.g. "under+over", etc.\n shadow\n Sets the shape and color of the shadow behind text.\n "auto" places minimal shadow and applies contrast text\n font color. See https://developer.mozilla.org/en-\n US/docs/Web/CSS/text-shadow for additional options.\n size\n\n style\n Sets whether a font should be styled with a normal or\n italic face from its family.\n textcase\n Sets capitalization of text. It can be used to make\n text appear in all-uppercase or all-lowercase, or with\n each word capitalized.\n variant\n Sets the variant of the font.\n weight\n Sets the weight (or boldness) of the font.\n\n Returns\n -------\n Font\n """\n super().__init__("font")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.indicator.delta.Font\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.indicator.delta.Font`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("color", arg, color)\n self._set_property("family", arg, family)\n self._set_property("lineposition", arg, lineposition)\n self._set_property("shadow", arg, shadow)\n self._set_property("size", arg, size)\n self._set_property("style", arg, style)\n self._set_property("textcase", arg, textcase)\n self._set_property("variant", arg, variant)\n self._set_property("weight", arg, weight)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n | .venv\Lib\site-packages\plotly\graph_objs\indicator\delta\_font.py | _font.py | Python | 9,883 | 0.95 | 0.10479 | 0.010526 | node-utils | 45 | 2025-04-23T22:32:46.088046 | MIT | false | 0f5216591201767276433d7d87797545 |
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType\nimport copy as _copy\n\n\nclass Increasing(_BaseTraceHierarchyType):\n _parent_path_str = "indicator.delta"\n _path_str = "indicator.delta.increasing"\n _valid_props = {"color", "symbol"}\n\n @property\n def color(self):\n """\n Sets the color for increasing value.\n\n The 'color' property is a color and may be specified as:\n - A hex string (e.g. '#ff0000')\n - An rgb/rgba string (e.g. 'rgb(255,0,0)')\n - An hsl/hsla string (e.g. 'hsl(0,100%,50%)')\n - An hsv/hsva string (e.g. 'hsv(0,100%,100%)')\n - A named CSS color: see https://plotly.com/python/css-colors/ for a list\n\n Returns\n -------\n str\n """\n return self["color"]\n\n @color.setter\n def color(self, val):\n self["color"] = val\n\n @property\n def symbol(self):\n """\n Sets the symbol to display for increasing value\n\n The 'symbol' property is a string and must be specified as:\n - A string\n - A number that will be converted to a string\n\n Returns\n -------\n str\n """\n return self["symbol"]\n\n @symbol.setter\n def symbol(self, val):\n self["symbol"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n color\n Sets the color for increasing value.\n symbol\n Sets the symbol to display for increasing value\n """\n\n def __init__(self, arg=None, color=None, symbol=None, **kwargs):\n """\n Construct a new Increasing object\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of\n :class:`plotly.graph_objs.indicator.delta.Increasing`\n color\n Sets the color for increasing value.\n symbol\n Sets the symbol to display for increasing value\n\n Returns\n -------\n Increasing\n """\n super().__init__("increasing")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.indicator.delta.Increasing\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.indicator.delta.Increasing`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("color", arg, color)\n self._set_property("symbol", arg, symbol)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n | .venv\Lib\site-packages\plotly\graph_objs\indicator\delta\_increasing.py | _increasing.py | Python | 3,044 | 0.95 | 0.171429 | 0.022989 | python-kit | 438 | 2023-08-22T02:05:53.053904 | BSD-3-Clause | false | d318ac59e2384dec50a6b1dac84a40af |
import sys\nfrom typing import TYPE_CHECKING\n\nif TYPE_CHECKING:\n from ._decreasing import Decreasing\n from ._font import Font\n from ._increasing import Increasing\nelse:\n from _plotly_utils.importers import relative_import\n\n __all__, __getattr__, __dir__ = relative_import(\n __name__,\n [],\n ["._decreasing.Decreasing", "._font.Font", "._increasing.Increasing"],\n )\n | .venv\Lib\site-packages\plotly\graph_objs\indicator\delta\__init__.py | __init__.py | Python | 402 | 0.85 | 0.066667 | 0 | awesome-app | 468 | 2023-08-11T11:31:06.982626 | BSD-3-Clause | false | 40cf261efbb5c924f9e02f63fcabdd31 |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\indicator\delta\__pycache__\_decreasing.cpython-313.pyc | _decreasing.cpython-313.pyc | Other | 3,916 | 0.8 | 0.102273 | 0 | react-lib | 27 | 2025-02-14T01:13:48.665752 | MIT | false | 789af0fa899c4bd3837c1d6a1b09ae44 |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\indicator\delta\__pycache__\_font.cpython-313.pyc | _font.cpython-313.pyc | Other | 10,880 | 0.8 | 0.048583 | 0 | vue-tools | 201 | 2024-05-01T02:09:48.295915 | BSD-3-Clause | false | 61c56bb62514b6e9cff6150984ed1e31 |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\indicator\delta\__pycache__\_increasing.cpython-313.pyc | _increasing.cpython-313.pyc | Other | 3,916 | 0.8 | 0.102273 | 0 | python-kit | 807 | 2023-11-16T04:08:16.314646 | GPL-3.0 | false | 58fe8afc73f9b9690467defed2e8cb47 |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\indicator\delta\__pycache__\__init__.cpython-313.pyc | __init__.cpython-313.pyc | Other | 652 | 0.85 | 0 | 0 | vue-tools | 22 | 2024-01-07T13:02:43.092887 | BSD-3-Clause | false | afc5c585d39c7b8686860bac76083901 |
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType\nimport copy as _copy\n\n\nclass Axis(_BaseTraceHierarchyType):\n _parent_path_str = "indicator.gauge"\n _path_str = "indicator.gauge.axis"\n _valid_props = {\n "dtick",\n "exponentformat",\n "labelalias",\n "minexponent",\n "nticks",\n "range",\n "separatethousands",\n "showexponent",\n "showticklabels",\n "showtickprefix",\n "showticksuffix",\n "tick0",\n "tickangle",\n "tickcolor",\n "tickfont",\n "tickformat",\n "tickformatstopdefaults",\n "tickformatstops",\n "ticklabelstep",\n "ticklen",\n "tickmode",\n "tickprefix",\n "ticks",\n "ticksuffix",\n "ticktext",\n "ticktextsrc",\n "tickvals",\n "tickvalssrc",\n "tickwidth",\n "visible",\n }\n\n @property\n def dtick(self):\n """\n Sets the step in-between ticks on this axis. Use with `tick0`.\n Must be a positive number, or special strings available to\n "log" and "date" axes. If the axis `type` is "log", then ticks\n are set every 10^(n*dtick) where n is the tick number. For\n example, to set a tick mark at 1, 10, 100, 1000, ... set dtick\n to 1. To set tick marks at 1, 100, 10000, ... set dtick to 2.\n To set tick marks at 1, 5, 25, 125, 625, 3125, ... set dtick to\n log_10(5), or 0.69897000433. "log" has several special values;\n "L<f>", where `f` is a positive number, gives ticks linearly\n spaced in value (but not position). For example `tick0` = 0.1,\n `dtick` = "L0.5" will put ticks at 0.1, 0.6, 1.1, 1.6 etc. To\n show powers of 10 plus small digits between, use "D1" (all\n digits) or "D2" (only 2 and 5). `tick0` is ignored for "D1" and\n "D2". If the axis `type` is "date", then you must convert the\n time to milliseconds. For example, to set the interval between\n ticks to one day, set `dtick` to 86400000.0. "date" also has\n special values "M<n>" gives ticks spaced by a number of months.\n `n` must be a positive integer. To set ticks on the 15th of\n every third month, set `tick0` to "2000-01-15" and `dtick` to\n "M3". To set ticks every 4 years, set `dtick` to "M48"\n\n The 'dtick' property accepts values of any type\n\n Returns\n -------\n Any\n """\n return self["dtick"]\n\n @dtick.setter\n def dtick(self, val):\n self["dtick"] = val\n\n @property\n def exponentformat(self):\n """\n Determines a formatting rule for the tick exponents. For\n example, consider the number 1,000,000,000. If "none", it\n appears as 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If\n "power", 1x10^9 (with 9 in a super script). If "SI", 1G. If\n "B", 1B.\n\n The 'exponentformat' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['none', 'e', 'E', 'power', 'SI', 'B']\n\n Returns\n -------\n Any\n """\n return self["exponentformat"]\n\n @exponentformat.setter\n def exponentformat(self, val):\n self["exponentformat"] = val\n\n @property\n def labelalias(self):\n """\n Replacement text for specific tick or hover labels. For example\n using {US: 'USA', CA: 'Canada'} changes US to USA and CA to\n Canada. The labels we would have shown must match the keys\n exactly, after adding any tickprefix or ticksuffix. For\n negative numbers the minus sign symbol used (U+2212) is wider\n than the regular ascii dash. That means you need to use −1\n instead of -1. labelalias can be used with any axis type, and\n both keys (if needed) and values (if desired) can include html-\n like tags or MathJax.\n\n The 'labelalias' property accepts values of any type\n\n Returns\n -------\n Any\n """\n return self["labelalias"]\n\n @labelalias.setter\n def labelalias(self, val):\n self["labelalias"] = val\n\n @property\n def minexponent(self):\n """\n Hide SI prefix for 10^n if |n| is below this number. This only\n has an effect when `tickformat` is "SI" or "B".\n\n The 'minexponent' property is a number and may be specified as:\n - An int or float in the interval [0, inf]\n\n Returns\n -------\n int|float\n """\n return self["minexponent"]\n\n @minexponent.setter\n def minexponent(self, val):\n self["minexponent"] = val\n\n @property\n def nticks(self):\n """\n Specifies the maximum number of ticks for the particular axis.\n The actual number of ticks will be chosen automatically to be\n less than or equal to `nticks`. Has an effect only if\n `tickmode` is set to "auto".\n\n The 'nticks' property is a integer and may be specified as:\n - An int (or float that will be cast to an int)\n in the interval [0, 9223372036854775807]\n\n Returns\n -------\n int\n """\n return self["nticks"]\n\n @nticks.setter\n def nticks(self, val):\n self["nticks"] = val\n\n @property\n def range(self):\n """\n Sets the range of this axis.\n\n The 'range' property is an info array that may be specified as:\n\n * a list or tuple of 2 elements where:\n (0) The 'range[0]' property is a number and may be specified as:\n - An int or float\n (1) The 'range[1]' property is a number and may be specified as:\n - An int or float\n\n Returns\n -------\n list\n """\n return self["range"]\n\n @range.setter\n def range(self, val):\n self["range"] = val\n\n @property\n def separatethousands(self):\n """\n If "true", even 4-digit integers are separated\n\n The 'separatethousands' property must be specified as a bool\n (either True, or False)\n\n Returns\n -------\n bool\n """\n return self["separatethousands"]\n\n @separatethousands.setter\n def separatethousands(self, val):\n self["separatethousands"] = val\n\n @property\n def showexponent(self):\n """\n If "all", all exponents are shown besides their significands.\n If "first", only the exponent of the first tick is shown. If\n "last", only the exponent of the last tick is shown. If "none",\n no exponents appear.\n\n The 'showexponent' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['all', 'first', 'last', 'none']\n\n Returns\n -------\n Any\n """\n return self["showexponent"]\n\n @showexponent.setter\n def showexponent(self, val):\n self["showexponent"] = val\n\n @property\n def showticklabels(self):\n """\n Determines whether or not the tick labels are drawn.\n\n The 'showticklabels' property must be specified as a bool\n (either True, or False)\n\n Returns\n -------\n bool\n """\n return self["showticklabels"]\n\n @showticklabels.setter\n def showticklabels(self, val):\n self["showticklabels"] = val\n\n @property\n def showtickprefix(self):\n """\n If "all", all tick labels are displayed with a prefix. If\n "first", only the first tick is displayed with a prefix. If\n "last", only the last tick is displayed with a suffix. If\n "none", tick prefixes are hidden.\n\n The 'showtickprefix' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['all', 'first', 'last', 'none']\n\n Returns\n -------\n Any\n """\n return self["showtickprefix"]\n\n @showtickprefix.setter\n def showtickprefix(self, val):\n self["showtickprefix"] = val\n\n @property\n def showticksuffix(self):\n """\n Same as `showtickprefix` but for tick suffixes.\n\n The 'showticksuffix' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['all', 'first', 'last', 'none']\n\n Returns\n -------\n Any\n """\n return self["showticksuffix"]\n\n @showticksuffix.setter\n def showticksuffix(self, val):\n self["showticksuffix"] = val\n\n @property\n def tick0(self):\n """\n Sets the placement of the first tick on this axis. Use with\n `dtick`. If the axis `type` is "log", then you must take the\n log of your starting tick (e.g. to set the starting tick to\n 100, set the `tick0` to 2) except when `dtick`=*L<f>* (see\n `dtick` for more info). If the axis `type` is "date", it should\n be a date string, like date data. If the axis `type` is\n "category", it should be a number, using the scale where each\n category is assigned a serial number from zero in the order it\n appears.\n\n The 'tick0' property accepts values of any type\n\n Returns\n -------\n Any\n """\n return self["tick0"]\n\n @tick0.setter\n def tick0(self, val):\n self["tick0"] = val\n\n @property\n def tickangle(self):\n """\n Sets the angle of the tick labels with respect to the\n horizontal. For example, a `tickangle` of -90 draws the tick\n labels vertically.\n\n The 'tickangle' property is a angle (in degrees) that may be\n specified as a number between -180 and 180.\n Numeric values outside this range are converted to the equivalent value\n (e.g. 270 is converted to -90).\n\n Returns\n -------\n int|float\n """\n return self["tickangle"]\n\n @tickangle.setter\n def tickangle(self, val):\n self["tickangle"] = val\n\n @property\n def tickcolor(self):\n """\n Sets the tick color.\n\n The 'tickcolor' property is a color and may be specified as:\n - A hex string (e.g. '#ff0000')\n - An rgb/rgba string (e.g. 'rgb(255,0,0)')\n - An hsl/hsla string (e.g. 'hsl(0,100%,50%)')\n - An hsv/hsva string (e.g. 'hsv(0,100%,100%)')\n - A named CSS color: see https://plotly.com/python/css-colors/ for a list\n\n Returns\n -------\n str\n """\n return self["tickcolor"]\n\n @tickcolor.setter\n def tickcolor(self, val):\n self["tickcolor"] = val\n\n @property\n def tickfont(self):\n """\n Sets the color bar's tick label font\n\n The 'tickfont' property is an instance of Tickfont\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.indicator.gauge.axis.Tickfont`\n - A dict of string/value properties that will be passed\n to the Tickfont constructor\n\n Returns\n -------\n plotly.graph_objs.indicator.gauge.axis.Tickfont\n """\n return self["tickfont"]\n\n @tickfont.setter\n def tickfont(self, val):\n self["tickfont"] = val\n\n @property\n def tickformat(self):\n """\n Sets the tick label formatting rule using d3 formatting mini-\n languages which are very similar to those in Python. For\n numbers, see:\n https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for\n dates see: https://github.com/d3/d3-time-\n format/tree/v2.2.3#locale_format. We add two items to d3's date\n formatter: "%h" for half of the year as a decimal number as\n well as "%{n}f" for fractional seconds with n digits. For\n example, *2016-10-13 09:15:23.456* with tickformat\n "%H~%M~%S.%2f" would display "09~15~23.46"\n\n The 'tickformat' property is a string and must be specified as:\n - A string\n - A number that will be converted to a string\n\n Returns\n -------\n str\n """\n return self["tickformat"]\n\n @tickformat.setter\n def tickformat(self, val):\n self["tickformat"] = val\n\n @property\n def tickformatstops(self):\n """\n The 'tickformatstops' property is a tuple of instances of\n Tickformatstop that may be specified as:\n - A list or tuple of instances of plotly.graph_objs.indicator.gauge.axis.Tickformatstop\n - A list or tuple of dicts of string/value properties that\n will be passed to the Tickformatstop constructor\n\n Returns\n -------\n tuple[plotly.graph_objs.indicator.gauge.axis.Tickformatstop]\n """\n return self["tickformatstops"]\n\n @tickformatstops.setter\n def tickformatstops(self, val):\n self["tickformatstops"] = val\n\n @property\n def tickformatstopdefaults(self):\n """\n When used in a template (as layout.template.data.indicator.gaug\n e.axis.tickformatstopdefaults), sets the default property\n values to use for elements of\n indicator.gauge.axis.tickformatstops\n\n The 'tickformatstopdefaults' property is an instance of Tickformatstop\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.indicator.gauge.axis.Tickformatstop`\n - A dict of string/value properties that will be passed\n to the Tickformatstop constructor\n\n Returns\n -------\n plotly.graph_objs.indicator.gauge.axis.Tickformatstop\n """\n return self["tickformatstopdefaults"]\n\n @tickformatstopdefaults.setter\n def tickformatstopdefaults(self, val):\n self["tickformatstopdefaults"] = val\n\n @property\n def ticklabelstep(self):\n """\n Sets the spacing between tick labels as compared to the spacing\n between ticks. A value of 1 (default) means each tick gets a\n label. A value of 2 means shows every 2nd label. A larger value\n n means only every nth tick is labeled. `tick0` determines\n which labels are shown. Not implemented for axes with `type`\n "log" or "multicategory", or when `tickmode` is "array".\n\n The 'ticklabelstep' property is a integer and may be specified as:\n - An int (or float that will be cast to an int)\n in the interval [1, 9223372036854775807]\n\n Returns\n -------\n int\n """\n return self["ticklabelstep"]\n\n @ticklabelstep.setter\n def ticklabelstep(self, val):\n self["ticklabelstep"] = val\n\n @property\n def ticklen(self):\n """\n Sets the tick length (in px).\n\n The 'ticklen' property is a number and may be specified as:\n - An int or float in the interval [0, inf]\n\n Returns\n -------\n int|float\n """\n return self["ticklen"]\n\n @ticklen.setter\n def ticklen(self, val):\n self["ticklen"] = val\n\n @property\n def tickmode(self):\n """\n Sets the tick mode for this axis. If "auto", the number of\n ticks is set via `nticks`. If "linear", the placement of the\n ticks is determined by a starting position `tick0` and a tick\n step `dtick` ("linear" is the default value if `tick0` and\n `dtick` are provided). If "array", the placement of the ticks\n is set via `tickvals` and the tick text is `ticktext`. ("array"\n is the default value if `tickvals` is provided).\n\n The 'tickmode' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['auto', 'linear', 'array']\n\n Returns\n -------\n Any\n """\n return self["tickmode"]\n\n @tickmode.setter\n def tickmode(self, val):\n self["tickmode"] = val\n\n @property\n def tickprefix(self):\n """\n Sets a tick label prefix.\n\n The 'tickprefix' property is a string and must be specified as:\n - A string\n - A number that will be converted to a string\n\n Returns\n -------\n str\n """\n return self["tickprefix"]\n\n @tickprefix.setter\n def tickprefix(self, val):\n self["tickprefix"] = val\n\n @property\n def ticks(self):\n """\n Determines whether ticks are drawn or not. If "", this axis'\n ticks are not drawn. If "outside" ("inside"), this axis' are\n drawn outside (inside) the axis lines.\n\n The 'ticks' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['outside', 'inside', '']\n\n Returns\n -------\n Any\n """\n return self["ticks"]\n\n @ticks.setter\n def ticks(self, val):\n self["ticks"] = val\n\n @property\n def ticksuffix(self):\n """\n Sets a tick label suffix.\n\n The 'ticksuffix' property is a string and must be specified as:\n - A string\n - A number that will be converted to a string\n\n Returns\n -------\n str\n """\n return self["ticksuffix"]\n\n @ticksuffix.setter\n def ticksuffix(self, val):\n self["ticksuffix"] = val\n\n @property\n def ticktext(self):\n """\n Sets the text displayed at the ticks position via `tickvals`.\n Only has an effect if `tickmode` is set to "array". Used with\n `tickvals`.\n\n The 'ticktext' property is an array that may be specified as a tuple,\n list, numpy array, or pandas Series\n\n Returns\n -------\n numpy.ndarray\n """\n return self["ticktext"]\n\n @ticktext.setter\n def ticktext(self, val):\n self["ticktext"] = val\n\n @property\n def ticktextsrc(self):\n """\n Sets the source reference on Chart Studio Cloud for `ticktext`.\n\n The 'ticktextsrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n """\n return self["ticktextsrc"]\n\n @ticktextsrc.setter\n def ticktextsrc(self, val):\n self["ticktextsrc"] = val\n\n @property\n def tickvals(self):\n """\n Sets the values at which ticks on this axis appear. Only has an\n effect if `tickmode` is set to "array". Used with `ticktext`.\n\n The 'tickvals' property is an array that may be specified as a tuple,\n list, numpy array, or pandas Series\n\n Returns\n -------\n numpy.ndarray\n """\n return self["tickvals"]\n\n @tickvals.setter\n def tickvals(self, val):\n self["tickvals"] = val\n\n @property\n def tickvalssrc(self):\n """\n Sets the source reference on Chart Studio Cloud for `tickvals`.\n\n The 'tickvalssrc' property must be specified as a string or\n as a plotly.grid_objs.Column object\n\n Returns\n -------\n str\n """\n return self["tickvalssrc"]\n\n @tickvalssrc.setter\n def tickvalssrc(self, val):\n self["tickvalssrc"] = val\n\n @property\n def tickwidth(self):\n """\n Sets the tick width (in px).\n\n The 'tickwidth' property is a number and may be specified as:\n - An int or float in the interval [0, inf]\n\n Returns\n -------\n int|float\n """\n return self["tickwidth"]\n\n @tickwidth.setter\n def tickwidth(self, val):\n self["tickwidth"] = val\n\n @property\n def visible(self):\n """\n A single toggle to hide the axis while preserving interaction\n like dragging. Default is true when a cheater plot is present\n on the axis, otherwise false\n\n The 'visible' property must be specified as a bool\n (either True, or False)\n\n Returns\n -------\n bool\n """\n return self["visible"]\n\n @visible.setter\n def visible(self, val):\n self["visible"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n dtick\n Sets the step in-between ticks on this axis. Use with\n `tick0`. Must be a positive number, or special strings\n available to "log" and "date" axes. If the axis `type`\n is "log", then ticks are set every 10^(n*dtick) where n\n is the tick number. For example, to set a tick mark at\n 1, 10, 100, 1000, ... set dtick to 1. To set tick marks\n at 1, 100, 10000, ... set dtick to 2. To set tick marks\n at 1, 5, 25, 125, 625, 3125, ... set dtick to\n log_10(5), or 0.69897000433. "log" has several special\n values; "L<f>", where `f` is a positive number, gives\n ticks linearly spaced in value (but not position). For\n example `tick0` = 0.1, `dtick` = "L0.5" will put ticks\n at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 plus\n small digits between, use "D1" (all digits) or "D2"\n (only 2 and 5). `tick0` is ignored for "D1" and "D2".\n If the axis `type` is "date", then you must convert the\n time to milliseconds. For example, to set the interval\n between ticks to one day, set `dtick` to 86400000.0.\n "date" also has special values "M<n>" gives ticks\n spaced by a number of months. `n` must be a positive\n integer. To set ticks on the 15th of every third month,\n set `tick0` to "2000-01-15" and `dtick` to "M3". To set\n ticks every 4 years, set `dtick` to "M48"\n exponentformat\n Determines a formatting rule for the tick exponents.\n For example, consider the number 1,000,000,000. If\n "none", it appears as 1,000,000,000. If "e", 1e+9. If\n "E", 1E+9. If "power", 1x10^9 (with 9 in a super\n script). If "SI", 1G. If "B", 1B.\n labelalias\n Replacement text for specific tick or hover labels. For\n example using {US: 'USA', CA: 'Canada'} changes US to\n USA and CA to Canada. The labels we would have shown\n must match the keys exactly, after adding any\n tickprefix or ticksuffix. For negative numbers the\n minus sign symbol used (U+2212) is wider than the\n regular ascii dash. That means you need to use −1\n instead of -1. labelalias can be used with any axis\n type, and both keys (if needed) and values (if desired)\n can include html-like tags or MathJax.\n minexponent\n Hide SI prefix for 10^n if |n| is below this number.\n This only has an effect when `tickformat` is "SI" or\n "B".\n nticks\n Specifies the maximum number of ticks for the\n particular axis. The actual number of ticks will be\n chosen automatically to be less than or equal to\n `nticks`. Has an effect only if `tickmode` is set to\n "auto".\n range\n Sets the range of this axis.\n separatethousands\n If "true", even 4-digit integers are separated\n showexponent\n If "all", all exponents are shown besides their\n significands. If "first", only the exponent of the\n first tick is shown. If "last", only the exponent of\n the last tick is shown. If "none", no exponents appear.\n showticklabels\n Determines whether or not the tick labels are drawn.\n showtickprefix\n If "all", all tick labels are displayed with a prefix.\n If "first", only the first tick is displayed with a\n prefix. If "last", only the last tick is displayed with\n a suffix. If "none", tick prefixes are hidden.\n showticksuffix\n Same as `showtickprefix` but for tick suffixes.\n tick0\n Sets the placement of the first tick on this axis. Use\n with `dtick`. If the axis `type` is "log", then you\n must take the log of your starting tick (e.g. to set\n the starting tick to 100, set the `tick0` to 2) except\n when `dtick`=*L<f>* (see `dtick` for more info). If the\n axis `type` is "date", it should be a date string, like\n date data. If the axis `type` is "category", it should\n be a number, using the scale where each category is\n assigned a serial number from zero in the order it\n appears.\n tickangle\n Sets the angle of the tick labels with respect to the\n horizontal. For example, a `tickangle` of -90 draws the\n tick labels vertically.\n tickcolor\n Sets the tick color.\n tickfont\n Sets the color bar's tick label font\n tickformat\n Sets the tick label formatting rule using d3 formatting\n mini-languages which are very similar to those in\n Python. For numbers, see:\n https://github.com/d3/d3-format/tree/v1.4.5#d3-format.\n And for dates see: https://github.com/d3/d3-time-\n format/tree/v2.2.3#locale_format. We add two items to\n d3's date formatter: "%h" for half of the year as a\n decimal number as well as "%{n}f" for fractional\n seconds with n digits. For example, *2016-10-13\n 09:15:23.456* with tickformat "%H~%M~%S.%2f" would\n display "09~15~23.46"\n tickformatstops\n A tuple of :class:`plotly.graph_objects.indicator.gauge\n .axis.Tickformatstop` instances or dicts with\n compatible properties\n tickformatstopdefaults\n When used in a template (as layout.template.data.indica\n tor.gauge.axis.tickformatstopdefaults), sets the\n default property values to use for elements of\n indicator.gauge.axis.tickformatstops\n ticklabelstep\n Sets the spacing between tick labels as compared to the\n spacing between ticks. A value of 1 (default) means\n each tick gets a label. A value of 2 means shows every\n 2nd label. A larger value n means only every nth tick\n is labeled. `tick0` determines which labels are shown.\n Not implemented for axes with `type` "log" or\n "multicategory", or when `tickmode` is "array".\n ticklen\n Sets the tick length (in px).\n tickmode\n Sets the tick mode for this axis. If "auto", the number\n of ticks is set via `nticks`. If "linear", the\n placement of the ticks is determined by a starting\n position `tick0` and a tick step `dtick` ("linear" is\n the default value if `tick0` and `dtick` are provided).\n If "array", the placement of the ticks is set via\n `tickvals` and the tick text is `ticktext`. ("array" is\n the default value if `tickvals` is provided).\n tickprefix\n Sets a tick label prefix.\n ticks\n Determines whether ticks are drawn or not. If "", this\n axis' ticks are not drawn. If "outside" ("inside"),\n this axis' are drawn outside (inside) the axis lines.\n ticksuffix\n Sets a tick label suffix.\n ticktext\n Sets the text displayed at the ticks position via\n `tickvals`. Only has an effect if `tickmode` is set to\n "array". Used with `tickvals`.\n ticktextsrc\n Sets the source reference on Chart Studio Cloud for\n `ticktext`.\n tickvals\n Sets the values at which ticks on this axis appear.\n Only has an effect if `tickmode` is set to "array".\n Used with `ticktext`.\n tickvalssrc\n Sets the source reference on Chart Studio Cloud for\n `tickvals`.\n tickwidth\n Sets the tick width (in px).\n visible\n A single toggle to hide the axis while preserving\n interaction like dragging. Default is true when a\n cheater plot is present on the axis, otherwise false\n """\n\n def __init__(\n self,\n arg=None,\n dtick=None,\n exponentformat=None,\n labelalias=None,\n minexponent=None,\n nticks=None,\n range=None,\n separatethousands=None,\n showexponent=None,\n showticklabels=None,\n showtickprefix=None,\n showticksuffix=None,\n tick0=None,\n tickangle=None,\n tickcolor=None,\n tickfont=None,\n tickformat=None,\n tickformatstops=None,\n tickformatstopdefaults=None,\n ticklabelstep=None,\n ticklen=None,\n tickmode=None,\n tickprefix=None,\n ticks=None,\n ticksuffix=None,\n ticktext=None,\n ticktextsrc=None,\n tickvals=None,\n tickvalssrc=None,\n tickwidth=None,\n visible=None,\n **kwargs,\n ):\n """\n Construct a new Axis object\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of\n :class:`plotly.graph_objs.indicator.gauge.Axis`\n dtick\n Sets the step in-between ticks on this axis. Use with\n `tick0`. Must be a positive number, or special strings\n available to "log" and "date" axes. If the axis `type`\n is "log", then ticks are set every 10^(n*dtick) where n\n is the tick number. For example, to set a tick mark at\n 1, 10, 100, 1000, ... set dtick to 1. To set tick marks\n at 1, 100, 10000, ... set dtick to 2. To set tick marks\n at 1, 5, 25, 125, 625, 3125, ... set dtick to\n log_10(5), or 0.69897000433. "log" has several special\n values; "L<f>", where `f` is a positive number, gives\n ticks linearly spaced in value (but not position). For\n example `tick0` = 0.1, `dtick` = "L0.5" will put ticks\n at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 plus\n small digits between, use "D1" (all digits) or "D2"\n (only 2 and 5). `tick0` is ignored for "D1" and "D2".\n If the axis `type` is "date", then you must convert the\n time to milliseconds. For example, to set the interval\n between ticks to one day, set `dtick` to 86400000.0.\n "date" also has special values "M<n>" gives ticks\n spaced by a number of months. `n` must be a positive\n integer. To set ticks on the 15th of every third month,\n set `tick0` to "2000-01-15" and `dtick` to "M3". To set\n ticks every 4 years, set `dtick` to "M48"\n exponentformat\n Determines a formatting rule for the tick exponents.\n For example, consider the number 1,000,000,000. If\n "none", it appears as 1,000,000,000. If "e", 1e+9. If\n "E", 1E+9. If "power", 1x10^9 (with 9 in a super\n script). If "SI", 1G. If "B", 1B.\n labelalias\n Replacement text for specific tick or hover labels. For\n example using {US: 'USA', CA: 'Canada'} changes US to\n USA and CA to Canada. The labels we would have shown\n must match the keys exactly, after adding any\n tickprefix or ticksuffix. For negative numbers the\n minus sign symbol used (U+2212) is wider than the\n regular ascii dash. That means you need to use −1\n instead of -1. labelalias can be used with any axis\n type, and both keys (if needed) and values (if desired)\n can include html-like tags or MathJax.\n minexponent\n Hide SI prefix for 10^n if |n| is below this number.\n This only has an effect when `tickformat` is "SI" or\n "B".\n nticks\n Specifies the maximum number of ticks for the\n particular axis. The actual number of ticks will be\n chosen automatically to be less than or equal to\n `nticks`. Has an effect only if `tickmode` is set to\n "auto".\n range\n Sets the range of this axis.\n separatethousands\n If "true", even 4-digit integers are separated\n showexponent\n If "all", all exponents are shown besides their\n significands. If "first", only the exponent of the\n first tick is shown. If "last", only the exponent of\n the last tick is shown. If "none", no exponents appear.\n showticklabels\n Determines whether or not the tick labels are drawn.\n showtickprefix\n If "all", all tick labels are displayed with a prefix.\n If "first", only the first tick is displayed with a\n prefix. If "last", only the last tick is displayed with\n a suffix. If "none", tick prefixes are hidden.\n showticksuffix\n Same as `showtickprefix` but for tick suffixes.\n tick0\n Sets the placement of the first tick on this axis. Use\n with `dtick`. If the axis `type` is "log", then you\n must take the log of your starting tick (e.g. to set\n the starting tick to 100, set the `tick0` to 2) except\n when `dtick`=*L<f>* (see `dtick` for more info). If the\n axis `type` is "date", it should be a date string, like\n date data. If the axis `type` is "category", it should\n be a number, using the scale where each category is\n assigned a serial number from zero in the order it\n appears.\n tickangle\n Sets the angle of the tick labels with respect to the\n horizontal. For example, a `tickangle` of -90 draws the\n tick labels vertically.\n tickcolor\n Sets the tick color.\n tickfont\n Sets the color bar's tick label font\n tickformat\n Sets the tick label formatting rule using d3 formatting\n mini-languages which are very similar to those in\n Python. For numbers, see:\n https://github.com/d3/d3-format/tree/v1.4.5#d3-format.\n And for dates see: https://github.com/d3/d3-time-\n format/tree/v2.2.3#locale_format. We add two items to\n d3's date formatter: "%h" for half of the year as a\n decimal number as well as "%{n}f" for fractional\n seconds with n digits. For example, *2016-10-13\n 09:15:23.456* with tickformat "%H~%M~%S.%2f" would\n display "09~15~23.46"\n tickformatstops\n A tuple of :class:`plotly.graph_objects.indicator.gauge\n .axis.Tickformatstop` instances or dicts with\n compatible properties\n tickformatstopdefaults\n When used in a template (as layout.template.data.indica\n tor.gauge.axis.tickformatstopdefaults), sets the\n default property values to use for elements of\n indicator.gauge.axis.tickformatstops\n ticklabelstep\n Sets the spacing between tick labels as compared to the\n spacing between ticks. A value of 1 (default) means\n each tick gets a label. A value of 2 means shows every\n 2nd label. A larger value n means only every nth tick\n is labeled. `tick0` determines which labels are shown.\n Not implemented for axes with `type` "log" or\n "multicategory", or when `tickmode` is "array".\n ticklen\n Sets the tick length (in px).\n tickmode\n Sets the tick mode for this axis. If "auto", the number\n of ticks is set via `nticks`. If "linear", the\n placement of the ticks is determined by a starting\n position `tick0` and a tick step `dtick` ("linear" is\n the default value if `tick0` and `dtick` are provided).\n If "array", the placement of the ticks is set via\n `tickvals` and the tick text is `ticktext`. ("array" is\n the default value if `tickvals` is provided).\n tickprefix\n Sets a tick label prefix.\n ticks\n Determines whether ticks are drawn or not. If "", this\n axis' ticks are not drawn. If "outside" ("inside"),\n this axis' are drawn outside (inside) the axis lines.\n ticksuffix\n Sets a tick label suffix.\n ticktext\n Sets the text displayed at the ticks position via\n `tickvals`. Only has an effect if `tickmode` is set to\n "array". Used with `tickvals`.\n ticktextsrc\n Sets the source reference on Chart Studio Cloud for\n `ticktext`.\n tickvals\n Sets the values at which ticks on this axis appear.\n Only has an effect if `tickmode` is set to "array".\n Used with `ticktext`.\n tickvalssrc\n Sets the source reference on Chart Studio Cloud for\n `tickvals`.\n tickwidth\n Sets the tick width (in px).\n visible\n A single toggle to hide the axis while preserving\n interaction like dragging. Default is true when a\n cheater plot is present on the axis, otherwise false\n\n Returns\n -------\n Axis\n """\n super().__init__("axis")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.indicator.gauge.Axis\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.indicator.gauge.Axis`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("dtick", arg, dtick)\n self._set_property("exponentformat", arg, exponentformat)\n self._set_property("labelalias", arg, labelalias)\n self._set_property("minexponent", arg, minexponent)\n self._set_property("nticks", arg, nticks)\n self._set_property("range", arg, range)\n self._set_property("separatethousands", arg, separatethousands)\n self._set_property("showexponent", arg, showexponent)\n self._set_property("showticklabels", arg, showticklabels)\n self._set_property("showtickprefix", arg, showtickprefix)\n self._set_property("showticksuffix", arg, showticksuffix)\n self._set_property("tick0", arg, tick0)\n self._set_property("tickangle", arg, tickangle)\n self._set_property("tickcolor", arg, tickcolor)\n self._set_property("tickfont", arg, tickfont)\n self._set_property("tickformat", arg, tickformat)\n self._set_property("tickformatstops", arg, tickformatstops)\n self._set_property("tickformatstopdefaults", arg, tickformatstopdefaults)\n self._set_property("ticklabelstep", arg, ticklabelstep)\n self._set_property("ticklen", arg, ticklen)\n self._set_property("tickmode", arg, tickmode)\n self._set_property("tickprefix", arg, tickprefix)\n self._set_property("ticks", arg, ticks)\n self._set_property("ticksuffix", arg, ticksuffix)\n self._set_property("ticktext", arg, ticktext)\n self._set_property("ticktextsrc", arg, ticktextsrc)\n self._set_property("tickvals", arg, tickvals)\n self._set_property("tickvalssrc", arg, tickvalssrc)\n self._set_property("tickwidth", arg, tickwidth)\n self._set_property("visible", arg, visible)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n | .venv\Lib\site-packages\plotly\graph_objs\indicator\gauge\_axis.py | _axis.py | Python | 40,034 | 0.95 | 0.129964 | 0.00409 | react-lib | 616 | 2025-03-24T10:45:56.239571 | Apache-2.0 | false | cb48691b9e2b33acccaaa06f31091938 |
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType\nimport copy as _copy\n\n\nclass Bar(_BaseTraceHierarchyType):\n _parent_path_str = "indicator.gauge"\n _path_str = "indicator.gauge.bar"\n _valid_props = {"color", "line", "thickness"}\n\n @property\n def color(self):\n """\n Sets the background color of the arc.\n\n The 'color' property is a color and may be specified as:\n - A hex string (e.g. '#ff0000')\n - An rgb/rgba string (e.g. 'rgb(255,0,0)')\n - An hsl/hsla string (e.g. 'hsl(0,100%,50%)')\n - An hsv/hsva string (e.g. 'hsv(0,100%,100%)')\n - A named CSS color: see https://plotly.com/python/css-colors/ for a list\n\n Returns\n -------\n str\n """\n return self["color"]\n\n @color.setter\n def color(self, val):\n self["color"] = val\n\n @property\n def line(self):\n """\n The 'line' property is an instance of Line\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.indicator.gauge.bar.Line`\n - A dict of string/value properties that will be passed\n to the Line constructor\n\n Returns\n -------\n plotly.graph_objs.indicator.gauge.bar.Line\n """\n return self["line"]\n\n @line.setter\n def line(self, val):\n self["line"] = val\n\n @property\n def thickness(self):\n """\n Sets the thickness of the bar as a fraction of the total\n thickness of the gauge.\n\n The 'thickness' property is a number and may be specified as:\n - An int or float in the interval [0, 1]\n\n Returns\n -------\n int|float\n """\n return self["thickness"]\n\n @thickness.setter\n def thickness(self, val):\n self["thickness"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n color\n Sets the background color of the arc.\n line\n :class:`plotly.graph_objects.indicator.gauge.bar.Line`\n instance or dict with compatible properties\n thickness\n Sets the thickness of the bar as a fraction of the\n total thickness of the gauge.\n """\n\n def __init__(self, arg=None, color=None, line=None, thickness=None, **kwargs):\n """\n Construct a new Bar object\n\n Set the appearance of the gauge's value\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of\n :class:`plotly.graph_objs.indicator.gauge.Bar`\n color\n Sets the background color of the arc.\n line\n :class:`plotly.graph_objects.indicator.gauge.bar.Line`\n instance or dict with compatible properties\n thickness\n Sets the thickness of the bar as a fraction of the\n total thickness of the gauge.\n\n Returns\n -------\n Bar\n """\n super().__init__("bar")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.indicator.gauge.Bar\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.indicator.gauge.Bar`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("color", arg, color)\n self._set_property("line", arg, line)\n self._set_property("thickness", arg, thickness)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n | .venv\Lib\site-packages\plotly\graph_objs\indicator\gauge\_bar.py | _bar.py | Python | 4,030 | 0.95 | 0.125926 | 0.017699 | awesome-app | 835 | 2025-05-31T04:22:42.776178 | MIT | false | 34f602ae6e3f09f202f454cc0d0e4d92 |
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType\nimport copy as _copy\n\n\nclass Step(_BaseTraceHierarchyType):\n _parent_path_str = "indicator.gauge"\n _path_str = "indicator.gauge.step"\n _valid_props = {"color", "line", "name", "range", "templateitemname", "thickness"}\n\n @property\n def color(self):\n """\n Sets the background color of the arc.\n\n The 'color' property is a color and may be specified as:\n - A hex string (e.g. '#ff0000')\n - An rgb/rgba string (e.g. 'rgb(255,0,0)')\n - An hsl/hsla string (e.g. 'hsl(0,100%,50%)')\n - An hsv/hsva string (e.g. 'hsv(0,100%,100%)')\n - A named CSS color: see https://plotly.com/python/css-colors/ for a list\n\n Returns\n -------\n str\n """\n return self["color"]\n\n @color.setter\n def color(self, val):\n self["color"] = val\n\n @property\n def line(self):\n """\n The 'line' property is an instance of Line\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.indicator.gauge.step.Line`\n - A dict of string/value properties that will be passed\n to the Line constructor\n\n Returns\n -------\n plotly.graph_objs.indicator.gauge.step.Line\n """\n return self["line"]\n\n @line.setter\n def line(self, val):\n self["line"] = val\n\n @property\n def name(self):\n """\n When used in a template, named items are created in the output\n figure in addition to any items the figure already has in this\n array. You can modify these items in the output figure by\n making your own item with `templateitemname` matching this\n `name` alongside your modifications (including `visible: false`\n or `enabled: false` to hide it). Has no effect outside of a\n template.\n\n The 'name' property is a string and must be specified as:\n - A string\n - A number that will be converted to a string\n\n Returns\n -------\n str\n """\n return self["name"]\n\n @name.setter\n def name(self, val):\n self["name"] = val\n\n @property\n def range(self):\n """\n Sets the range of this axis.\n\n The 'range' property is an info array that may be specified as:\n\n * a list or tuple of 2 elements where:\n (0) The 'range[0]' property is a number and may be specified as:\n - An int or float\n (1) The 'range[1]' property is a number and may be specified as:\n - An int or float\n\n Returns\n -------\n list\n """\n return self["range"]\n\n @range.setter\n def range(self, val):\n self["range"] = val\n\n @property\n def templateitemname(self):\n """\n Used to refer to a named item in this array in the template.\n Named items from the template will be created even without a\n matching item in the input figure, but you can modify one by\n making an item with `templateitemname` matching its `name`,\n alongside your modifications (including `visible: false` or\n `enabled: false` to hide it). If there is no template or no\n matching item, this item will be hidden unless you explicitly\n show it with `visible: true`.\n\n The 'templateitemname' property is a string and must be specified as:\n - A string\n - A number that will be converted to a string\n\n Returns\n -------\n str\n """\n return self["templateitemname"]\n\n @templateitemname.setter\n def templateitemname(self, val):\n self["templateitemname"] = val\n\n @property\n def thickness(self):\n """\n Sets the thickness of the bar as a fraction of the total\n thickness of the gauge.\n\n The 'thickness' property is a number and may be specified as:\n - An int or float in the interval [0, 1]\n\n Returns\n -------\n int|float\n """\n return self["thickness"]\n\n @thickness.setter\n def thickness(self, val):\n self["thickness"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n color\n Sets the background color of the arc.\n line\n :class:`plotly.graph_objects.indicator.gauge.step.Line`\n instance or dict with compatible properties\n name\n When used in a template, named items are created in the\n output figure in addition to any items the figure\n already has in this array. You can modify these items\n in the output figure by making your own item with\n `templateitemname` matching this `name` alongside your\n modifications (including `visible: false` or `enabled:\n false` to hide it). Has no effect outside of a\n template.\n range\n Sets the range of this axis.\n templateitemname\n Used to refer to a named item in this array in the\n template. Named items from the template will be created\n even without a matching item in the input figure, but\n you can modify one by making an item with\n `templateitemname` matching its `name`, alongside your\n modifications (including `visible: false` or `enabled:\n false` to hide it). If there is no template or no\n matching item, this item will be hidden unless you\n explicitly show it with `visible: true`.\n thickness\n Sets the thickness of the bar as a fraction of the\n total thickness of the gauge.\n """\n\n def __init__(\n self,\n arg=None,\n color=None,\n line=None,\n name=None,\n range=None,\n templateitemname=None,\n thickness=None,\n **kwargs,\n ):\n """\n Construct a new Step object\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of\n :class:`plotly.graph_objs.indicator.gauge.Step`\n color\n Sets the background color of the arc.\n line\n :class:`plotly.graph_objects.indicator.gauge.step.Line`\n instance or dict with compatible properties\n name\n When used in a template, named items are created in the\n output figure in addition to any items the figure\n already has in this array. You can modify these items\n in the output figure by making your own item with\n `templateitemname` matching this `name` alongside your\n modifications (including `visible: false` or `enabled:\n false` to hide it). Has no effect outside of a\n template.\n range\n Sets the range of this axis.\n templateitemname\n Used to refer to a named item in this array in the\n template. Named items from the template will be created\n even without a matching item in the input figure, but\n you can modify one by making an item with\n `templateitemname` matching its `name`, alongside your\n modifications (including `visible: false` or `enabled:\n false` to hide it). If there is no template or no\n matching item, this item will be hidden unless you\n explicitly show it with `visible: true`.\n thickness\n Sets the thickness of the bar as a fraction of the\n total thickness of the gauge.\n\n Returns\n -------\n Step\n """\n super().__init__("steps")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.indicator.gauge.Step\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.indicator.gauge.Step`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("color", arg, color)\n self._set_property("line", arg, line)\n self._set_property("name", arg, name)\n self._set_property("range", arg, range)\n self._set_property("templateitemname", arg, templateitemname)\n self._set_property("thickness", arg, thickness)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n | .venv\Lib\site-packages\plotly\graph_objs\indicator\gauge\_step.py | _step.py | Python | 8,894 | 0.95 | 0.087786 | 0.017544 | awesome-app | 836 | 2025-04-23T02:46:10.531806 | GPL-3.0 | false | 484403037e061fe465a5587902e571d7 |
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType\nimport copy as _copy\n\n\nclass Threshold(_BaseTraceHierarchyType):\n _parent_path_str = "indicator.gauge"\n _path_str = "indicator.gauge.threshold"\n _valid_props = {"line", "thickness", "value"}\n\n @property\n def line(self):\n """\n The 'line' property is an instance of Line\n that may be specified as:\n - An instance of :class:`plotly.graph_objs.indicator.gauge.threshold.Line`\n - A dict of string/value properties that will be passed\n to the Line constructor\n\n Returns\n -------\n plotly.graph_objs.indicator.gauge.threshold.Line\n """\n return self["line"]\n\n @line.setter\n def line(self, val):\n self["line"] = val\n\n @property\n def thickness(self):\n """\n Sets the thickness of the threshold line as a fraction of the\n thickness of the gauge.\n\n The 'thickness' property is a number and may be specified as:\n - An int or float in the interval [0, 1]\n\n Returns\n -------\n int|float\n """\n return self["thickness"]\n\n @thickness.setter\n def thickness(self, val):\n self["thickness"] = val\n\n @property\n def value(self):\n """\n Sets a treshold value drawn as a line.\n\n The 'value' property is a number and may be specified as:\n - An int or float\n\n Returns\n -------\n int|float\n """\n return self["value"]\n\n @value.setter\n def value(self, val):\n self["value"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n line\n :class:`plotly.graph_objects.indicator.gauge.threshold.\n Line` instance or dict with compatible properties\n thickness\n Sets the thickness of the threshold line as a fraction\n of the thickness of the gauge.\n value\n Sets a treshold value drawn as a line.\n """\n\n def __init__(self, arg=None, line=None, thickness=None, value=None, **kwargs):\n """\n Construct a new Threshold object\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of\n :class:`plotly.graph_objs.indicator.gauge.Threshold`\n line\n :class:`plotly.graph_objects.indicator.gauge.threshold.\n Line` instance or dict with compatible properties\n thickness\n Sets the thickness of the threshold line as a fraction\n of the thickness of the gauge.\n value\n Sets a treshold value drawn as a line.\n\n Returns\n -------\n Threshold\n """\n super().__init__("threshold")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.indicator.gauge.Threshold\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.indicator.gauge.Threshold`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("line", arg, line)\n self._set_property("thickness", arg, thickness)\n self._set_property("value", arg, value)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n | .venv\Lib\site-packages\plotly\graph_objs\indicator\gauge\_threshold.py | _threshold.py | Python | 3,816 | 0.95 | 0.124031 | 0.018519 | react-lib | 335 | 2025-06-06T18:15:11.305517 | GPL-3.0 | false | 4cbccb89dacdc4a32f325d6e58883516 |
import sys\nfrom typing import TYPE_CHECKING\n\nif TYPE_CHECKING:\n from ._axis import Axis\n from ._bar import Bar\n from ._step import Step\n from ._threshold import Threshold\n from . import axis\n from . import bar\n from . import step\n from . import threshold\nelse:\n from _plotly_utils.importers import relative_import\n\n __all__, __getattr__, __dir__ = relative_import(\n __name__,\n [".axis", ".bar", ".step", ".threshold"],\n ["._axis.Axis", "._bar.Bar", "._step.Step", "._threshold.Threshold"],\n )\n | .venv\Lib\site-packages\plotly\graph_objs\indicator\gauge\__init__.py | __init__.py | Python | 547 | 0.85 | 0.05 | 0 | node-utils | 762 | 2025-07-04T12:39:09.128055 | GPL-3.0 | false | 6456bffeb32dc8f3046d244f7b58d1c5 |
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType\nimport copy as _copy\n\n\nclass Tickfont(_BaseTraceHierarchyType):\n _parent_path_str = "indicator.gauge.axis"\n _path_str = "indicator.gauge.axis.tickfont"\n _valid_props = {\n "color",\n "family",\n "lineposition",\n "shadow",\n "size",\n "style",\n "textcase",\n "variant",\n "weight",\n }\n\n @property\n def color(self):\n """\n The 'color' property is a color and may be specified as:\n - A hex string (e.g. '#ff0000')\n - An rgb/rgba string (e.g. 'rgb(255,0,0)')\n - An hsl/hsla string (e.g. 'hsl(0,100%,50%)')\n - An hsv/hsva string (e.g. 'hsv(0,100%,100%)')\n - A named CSS color: see https://plotly.com/python/css-colors/ for a list\n\n Returns\n -------\n str\n """\n return self["color"]\n\n @color.setter\n def color(self, val):\n self["color"] = val\n\n @property\n def family(self):\n """\n HTML font family - the typeface that will be applied by the web\n browser. The web browser can only apply a font if it is\n available on the system where it runs. Provide multiple font\n families, separated by commas, to indicate the order in which\n to apply fonts if they aren't available.\n\n The 'family' property is a string and must be specified as:\n - A non-empty string\n\n Returns\n -------\n str\n """\n return self["family"]\n\n @family.setter\n def family(self, val):\n self["family"] = val\n\n @property\n def lineposition(self):\n """\n Sets the kind of decoration line(s) with text, such as an\n "under", "over" or "through" as well as combinations e.g.\n "under+over", etc.\n\n The 'lineposition' property is a flaglist and may be specified\n as a string containing:\n - Any combination of ['under', 'over', 'through'] joined with '+' characters\n (e.g. 'under+over')\n OR exactly one of ['none'] (e.g. 'none')\n\n Returns\n -------\n Any\n """\n return self["lineposition"]\n\n @lineposition.setter\n def lineposition(self, val):\n self["lineposition"] = val\n\n @property\n def shadow(self):\n """\n Sets the shape and color of the shadow behind text. "auto"\n places minimal shadow and applies contrast text font color. See\n https://developer.mozilla.org/en-US/docs/Web/CSS/text-shadow\n for additional options.\n\n The 'shadow' property is a string and must be specified as:\n - A string\n - A number that will be converted to a string\n\n Returns\n -------\n str\n """\n return self["shadow"]\n\n @shadow.setter\n def shadow(self, val):\n self["shadow"] = val\n\n @property\n def size(self):\n """\n The 'size' property is a number and may be specified as:\n - An int or float in the interval [1, inf]\n\n Returns\n -------\n int|float\n """\n return self["size"]\n\n @size.setter\n def size(self, val):\n self["size"] = val\n\n @property\n def style(self):\n """\n Sets whether a font should be styled with a normal or italic\n face from its family.\n\n The 'style' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['normal', 'italic']\n\n Returns\n -------\n Any\n """\n return self["style"]\n\n @style.setter\n def style(self, val):\n self["style"] = val\n\n @property\n def textcase(self):\n """\n Sets capitalization of text. It can be used to make text appear\n in all-uppercase or all-lowercase, or with each word\n capitalized.\n\n The 'textcase' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['normal', 'word caps', 'upper', 'lower']\n\n Returns\n -------\n Any\n """\n return self["textcase"]\n\n @textcase.setter\n def textcase(self, val):\n self["textcase"] = val\n\n @property\n def variant(self):\n """\n Sets the variant of the font.\n\n The 'variant' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['normal', 'small-caps', 'all-small-caps',\n 'all-petite-caps', 'petite-caps', 'unicase']\n\n Returns\n -------\n Any\n """\n return self["variant"]\n\n @variant.setter\n def variant(self, val):\n self["variant"] = val\n\n @property\n def weight(self):\n """\n Sets the weight (or boldness) of the font.\n\n The 'weight' property is a integer and may be specified as:\n - An int (or float that will be cast to an int)\n in the interval [1, 1000]\n OR exactly one of ['normal', 'bold'] (e.g. 'bold')\n\n Returns\n -------\n int\n """\n return self["weight"]\n\n @weight.setter\n def weight(self, val):\n self["weight"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n color\n\n family\n HTML font family - the typeface that will be applied by\n the web browser. The web browser can only apply a font\n if it is available on the system where it runs. Provide\n multiple font families, separated by commas, to\n indicate the order in which to apply fonts if they\n aren't available.\n lineposition\n Sets the kind of decoration line(s) with text, such as\n an "under", "over" or "through" as well as combinations\n e.g. "under+over", etc.\n shadow\n Sets the shape and color of the shadow behind text.\n "auto" places minimal shadow and applies contrast text\n font color. See https://developer.mozilla.org/en-\n US/docs/Web/CSS/text-shadow for additional options.\n size\n\n style\n Sets whether a font should be styled with a normal or\n italic face from its family.\n textcase\n Sets capitalization of text. It can be used to make\n text appear in all-uppercase or all-lowercase, or with\n each word capitalized.\n variant\n Sets the variant of the font.\n weight\n Sets the weight (or boldness) of the font.\n """\n\n def __init__(\n self,\n arg=None,\n color=None,\n family=None,\n lineposition=None,\n shadow=None,\n size=None,\n style=None,\n textcase=None,\n variant=None,\n weight=None,\n **kwargs,\n ):\n """\n Construct a new Tickfont object\n\n Sets the color bar's tick label font\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of :class:`plotly.graph_objs.indicator.gaug\n e.axis.Tickfont`\n color\n\n family\n HTML font family - the typeface that will be applied by\n the web browser. The web browser can only apply a font\n if it is available on the system where it runs. Provide\n multiple font families, separated by commas, to\n indicate the order in which to apply fonts if they\n aren't available.\n lineposition\n Sets the kind of decoration line(s) with text, such as\n an "under", "over" or "through" as well as combinations\n e.g. "under+over", etc.\n shadow\n Sets the shape and color of the shadow behind text.\n "auto" places minimal shadow and applies contrast text\n font color. See https://developer.mozilla.org/en-\n US/docs/Web/CSS/text-shadow for additional options.\n size\n\n style\n Sets whether a font should be styled with a normal or\n italic face from its family.\n textcase\n Sets capitalization of text. It can be used to make\n text appear in all-uppercase or all-lowercase, or with\n each word capitalized.\n variant\n Sets the variant of the font.\n weight\n Sets the weight (or boldness) of the font.\n\n Returns\n -------\n Tickfont\n """\n super().__init__("tickfont")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.indicator.gauge.axis.Tickfont\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.indicator.gauge.axis.Tickfont`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("color", arg, color)\n self._set_property("family", arg, family)\n self._set_property("lineposition", arg, lineposition)\n self._set_property("shadow", arg, shadow)\n self._set_property("size", arg, size)\n self._set_property("style", arg, style)\n self._set_property("textcase", arg, textcase)\n self._set_property("variant", arg, variant)\n self._set_property("weight", arg, weight)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n | .venv\Lib\site-packages\plotly\graph_objs\indicator\gauge\axis\_tickfont.py | _tickfont.py | Python | 9,939 | 0.95 | 0.10479 | 0.010526 | awesome-app | 26 | 2025-03-27T17:18:52.488684 | GPL-3.0 | false | c2017ee0806d1231d6710aea0435692e |
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType\nimport copy as _copy\n\n\nclass Tickformatstop(_BaseTraceHierarchyType):\n _parent_path_str = "indicator.gauge.axis"\n _path_str = "indicator.gauge.axis.tickformatstop"\n _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"}\n\n @property\n def dtickrange(self):\n """\n range [*min*, *max*], where "min", "max" - dtick values which\n describe some zoom level, it is possible to omit "min" or "max"\n value by passing "null"\n\n The 'dtickrange' property is an info array that may be specified as:\n\n * a list or tuple of 2 elements where:\n (0) The 'dtickrange[0]' property accepts values of any type\n (1) The 'dtickrange[1]' property accepts values of any type\n\n Returns\n -------\n list\n """\n return self["dtickrange"]\n\n @dtickrange.setter\n def dtickrange(self, val):\n self["dtickrange"] = val\n\n @property\n def enabled(self):\n """\n Determines whether or not this stop is used. If `false`, this\n stop is ignored even within its `dtickrange`.\n\n The 'enabled' property must be specified as a bool\n (either True, or False)\n\n Returns\n -------\n bool\n """\n return self["enabled"]\n\n @enabled.setter\n def enabled(self, val):\n self["enabled"] = val\n\n @property\n def name(self):\n """\n When used in a template, named items are created in the output\n figure in addition to any items the figure already has in this\n array. You can modify these items in the output figure by\n making your own item with `templateitemname` matching this\n `name` alongside your modifications (including `visible: false`\n or `enabled: false` to hide it). Has no effect outside of a\n template.\n\n The 'name' property is a string and must be specified as:\n - A string\n - A number that will be converted to a string\n\n Returns\n -------\n str\n """\n return self["name"]\n\n @name.setter\n def name(self, val):\n self["name"] = val\n\n @property\n def templateitemname(self):\n """\n Used to refer to a named item in this array in the template.\n Named items from the template will be created even without a\n matching item in the input figure, but you can modify one by\n making an item with `templateitemname` matching its `name`,\n alongside your modifications (including `visible: false` or\n `enabled: false` to hide it). If there is no template or no\n matching item, this item will be hidden unless you explicitly\n show it with `visible: true`.\n\n The 'templateitemname' property is a string and must be specified as:\n - A string\n - A number that will be converted to a string\n\n Returns\n -------\n str\n """\n return self["templateitemname"]\n\n @templateitemname.setter\n def templateitemname(self, val):\n self["templateitemname"] = val\n\n @property\n def value(self):\n """\n string - dtickformat for described zoom level, the same as\n "tickformat"\n\n The 'value' property is a string and must be specified as:\n - A string\n - A number that will be converted to a string\n\n Returns\n -------\n str\n """\n return self["value"]\n\n @value.setter\n def value(self, val):\n self["value"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n dtickrange\n range [*min*, *max*], where "min", "max" - dtick values\n which describe some zoom level, it is possible to omit\n "min" or "max" value by passing "null"\n enabled\n Determines whether or not this stop is used. If\n `false`, this stop is ignored even within its\n `dtickrange`.\n name\n When used in a template, named items are created in the\n output figure in addition to any items the figure\n already has in this array. You can modify these items\n in the output figure by making your own item with\n `templateitemname` matching this `name` alongside your\n modifications (including `visible: false` or `enabled:\n false` to hide it). Has no effect outside of a\n template.\n templateitemname\n Used to refer to a named item in this array in the\n template. Named items from the template will be created\n even without a matching item in the input figure, but\n you can modify one by making an item with\n `templateitemname` matching its `name`, alongside your\n modifications (including `visible: false` or `enabled:\n false` to hide it). If there is no template or no\n matching item, this item will be hidden unless you\n explicitly show it with `visible: true`.\n value\n string - dtickformat for described zoom level, the same\n as "tickformat"\n """\n\n def __init__(\n self,\n arg=None,\n dtickrange=None,\n enabled=None,\n name=None,\n templateitemname=None,\n value=None,\n **kwargs,\n ):\n """\n Construct a new Tickformatstop object\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of :class:`plotly.graph_objs.indicator.gaug\n e.axis.Tickformatstop`\n dtickrange\n range [*min*, *max*], where "min", "max" - dtick values\n which describe some zoom level, it is possible to omit\n "min" or "max" value by passing "null"\n enabled\n Determines whether or not this stop is used. If\n `false`, this stop is ignored even within its\n `dtickrange`.\n name\n When used in a template, named items are created in the\n output figure in addition to any items the figure\n already has in this array. You can modify these items\n in the output figure by making your own item with\n `templateitemname` matching this `name` alongside your\n modifications (including `visible: false` or `enabled:\n false` to hide it). Has no effect outside of a\n template.\n templateitemname\n Used to refer to a named item in this array in the\n template. Named items from the template will be created\n even without a matching item in the input figure, but\n you can modify one by making an item with\n `templateitemname` matching its `name`, alongside your\n modifications (including `visible: false` or `enabled:\n false` to hide it). If there is no template or no\n matching item, this item will be hidden unless you\n explicitly show it with `visible: true`.\n value\n string - dtickformat for described zoom level, the same\n as "tickformat"\n\n Returns\n -------\n Tickformatstop\n """\n super().__init__("tickformatstops")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.indicator.gauge.axis.Tickformatstop\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.indicator.gauge.axis.Tickformatstop`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("dtickrange", arg, dtickrange)\n self._set_property("enabled", arg, enabled)\n self._set_property("name", arg, name)\n self._set_property("templateitemname", arg, templateitemname)\n self._set_property("value", arg, value)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n | .venv\Lib\site-packages\plotly\graph_objs\indicator\gauge\axis\_tickformatstop.py | _tickformatstop.py | Python | 8,534 | 0.95 | 0.082988 | 0.019048 | react-lib | 840 | 2023-08-20T22:52:46.098717 | MIT | false | db53cb5b4dd4a20c44bd90c05532d8e6 |
import sys\nfrom typing import TYPE_CHECKING\n\nif TYPE_CHECKING:\n from ._tickfont import Tickfont\n from ._tickformatstop import Tickformatstop\nelse:\n from _plotly_utils.importers import relative_import\n\n __all__, __getattr__, __dir__ = relative_import(\n __name__, [], ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop"]\n )\n | .venv\Lib\site-packages\plotly\graph_objs\indicator\gauge\axis\__init__.py | __init__.py | Python | 350 | 0.85 | 0.083333 | 0 | awesome-app | 85 | 2023-11-29T16:16:09.450995 | GPL-3.0 | false | a6e49de295eea1d8b27c00a8874bca03 |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\indicator\gauge\axis\__pycache__\_tickfont.cpython-313.pyc | _tickfont.cpython-313.pyc | Other | 10,989 | 0.8 | 0.04918 | 0 | vue-tools | 313 | 2024-09-25T06:12:17.620472 | GPL-3.0 | false | 279d07b57a74a4e1c8b22b7322d0d15e |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\indicator\gauge\axis\__pycache__\_tickformatstop.cpython-313.pyc | _tickformatstop.cpython-313.pyc | Other | 9,315 | 0.8 | 0.024876 | 0.005348 | node-utils | 478 | 2023-12-15T02:32:18.784912 | Apache-2.0 | false | 955ec595fec07d613c672b591d8954d8 |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\indicator\gauge\axis\__pycache__\__init__.cpython-313.pyc | __init__.cpython-313.pyc | Other | 620 | 0.95 | 0 | 0 | awesome-app | 889 | 2025-02-21T13:49:04.525822 | MIT | false | 77e3682d9bf775a3e0ea3d0cc375a85f |
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType\nimport copy as _copy\n\n\nclass Line(_BaseTraceHierarchyType):\n _parent_path_str = "indicator.gauge.bar"\n _path_str = "indicator.gauge.bar.line"\n _valid_props = {"color", "width"}\n\n @property\n def color(self):\n """\n Sets the color of the line enclosing each sector.\n\n The 'color' property is a color and may be specified as:\n - A hex string (e.g. '#ff0000')\n - An rgb/rgba string (e.g. 'rgb(255,0,0)')\n - An hsl/hsla string (e.g. 'hsl(0,100%,50%)')\n - An hsv/hsva string (e.g. 'hsv(0,100%,100%)')\n - A named CSS color: see https://plotly.com/python/css-colors/ for a list\n\n Returns\n -------\n str\n """\n return self["color"]\n\n @color.setter\n def color(self, val):\n self["color"] = val\n\n @property\n def width(self):\n """\n Sets the width (in px) of the line enclosing each sector.\n\n The 'width' property is a number and may be specified as:\n - An int or float in the interval [0, inf]\n\n Returns\n -------\n int|float\n """\n return self["width"]\n\n @width.setter\n def width(self, val):\n self["width"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n color\n Sets the color of the line enclosing each sector.\n width\n Sets the width (in px) of the line enclosing each\n sector.\n """\n\n def __init__(self, arg=None, color=None, width=None, **kwargs):\n """\n Construct a new Line object\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of\n :class:`plotly.graph_objs.indicator.gauge.bar.Line`\n color\n Sets the color of the line enclosing each sector.\n width\n Sets the width (in px) of the line enclosing each\n sector.\n\n Returns\n -------\n Line\n """\n super().__init__("line")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.indicator.gauge.bar.Line\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.indicator.gauge.bar.Line`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("color", arg, color)\n self._set_property("width", arg, width)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n | .venv\Lib\site-packages\plotly\graph_objs\indicator\gauge\bar\_line.py | _line.py | Python | 3,078 | 0.95 | 0.113208 | 0.022727 | react-lib | 862 | 2024-05-15T10:32:28.631690 | Apache-2.0 | false | 26855053094a9384a2f439b690332342 |
import sys\nfrom typing import TYPE_CHECKING\n\nif TYPE_CHECKING:\n from ._line import Line\nelse:\n from _plotly_utils.importers import relative_import\n\n __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._line.Line"])\n | .venv\Lib\site-packages\plotly\graph_objs\indicator\gauge\bar\__init__.py | __init__.py | Python | 237 | 0.85 | 0.111111 | 0 | python-kit | 857 | 2024-02-20T15:04:04.005905 | Apache-2.0 | false | f588da998a6d694bb21b2be29a9f27bb |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\indicator\gauge\bar\__pycache__\_line.cpython-313.pyc | _line.cpython-313.pyc | Other | 3,922 | 0.8 | 0.033333 | 0 | node-utils | 187 | 2024-06-01T21:38:29.328726 | GPL-3.0 | false | d51d6bce26d91e20f045bb12d4e2f1bd |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\indicator\gauge\bar\__pycache__\__init__.cpython-313.pyc | __init__.cpython-313.pyc | Other | 505 | 0.85 | 0 | 0 | awesome-app | 939 | 2023-10-13T03:39:24.977096 | BSD-3-Clause | false | bee312665aad31de28e441cc0550101f |
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType\nimport copy as _copy\n\n\nclass Line(_BaseTraceHierarchyType):\n _parent_path_str = "indicator.gauge.step"\n _path_str = "indicator.gauge.step.line"\n _valid_props = {"color", "width"}\n\n @property\n def color(self):\n """\n Sets the color of the line enclosing each sector.\n\n The 'color' property is a color and may be specified as:\n - A hex string (e.g. '#ff0000')\n - An rgb/rgba string (e.g. 'rgb(255,0,0)')\n - An hsl/hsla string (e.g. 'hsl(0,100%,50%)')\n - An hsv/hsva string (e.g. 'hsv(0,100%,100%)')\n - A named CSS color: see https://plotly.com/python/css-colors/ for a list\n\n Returns\n -------\n str\n """\n return self["color"]\n\n @color.setter\n def color(self, val):\n self["color"] = val\n\n @property\n def width(self):\n """\n Sets the width (in px) of the line enclosing each sector.\n\n The 'width' property is a number and may be specified as:\n - An int or float in the interval [0, inf]\n\n Returns\n -------\n int|float\n """\n return self["width"]\n\n @width.setter\n def width(self, val):\n self["width"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n color\n Sets the color of the line enclosing each sector.\n width\n Sets the width (in px) of the line enclosing each\n sector.\n """\n\n def __init__(self, arg=None, color=None, width=None, **kwargs):\n """\n Construct a new Line object\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of\n :class:`plotly.graph_objs.indicator.gauge.step.Line`\n color\n Sets the color of the line enclosing each sector.\n width\n Sets the width (in px) of the line enclosing each\n sector.\n\n Returns\n -------\n Line\n """\n super().__init__("line")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.indicator.gauge.step.Line\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.indicator.gauge.step.Line`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("color", arg, color)\n self._set_property("width", arg, width)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n | .venv\Lib\site-packages\plotly\graph_objs\indicator\gauge\step\_line.py | _line.py | Python | 3,083 | 0.95 | 0.113208 | 0.022727 | vue-tools | 839 | 2023-09-13T05:31:11.344523 | Apache-2.0 | false | 6e45562e775996dafee2dacc7e3ccc95 |
import sys\nfrom typing import TYPE_CHECKING\n\nif TYPE_CHECKING:\n from ._line import Line\nelse:\n from _plotly_utils.importers import relative_import\n\n __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._line.Line"])\n | .venv\Lib\site-packages\plotly\graph_objs\indicator\gauge\step\__init__.py | __init__.py | Python | 237 | 0.85 | 0.111111 | 0 | awesome-app | 914 | 2023-12-04T23:50:38.311632 | MIT | false | f588da998a6d694bb21b2be29a9f27bb |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\indicator\gauge\step\__pycache__\_line.cpython-313.pyc | _line.cpython-313.pyc | Other | 3,928 | 0.8 | 0.033333 | 0 | python-kit | 15 | 2025-01-20T13:28:16.175679 | Apache-2.0 | false | 66b4adb6349c9580d73d239f1c9769c3 |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\indicator\gauge\step\__pycache__\__init__.cpython-313.pyc | __init__.cpython-313.pyc | Other | 506 | 0.85 | 0 | 0 | python-kit | 464 | 2024-05-02T18:59:07.289564 | MIT | false | bc010ab6642f1d796e16e826868cf8ed |
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType\nimport copy as _copy\n\n\nclass Line(_BaseTraceHierarchyType):\n _parent_path_str = "indicator.gauge.threshold"\n _path_str = "indicator.gauge.threshold.line"\n _valid_props = {"color", "width"}\n\n @property\n def color(self):\n """\n Sets the color of the threshold line.\n\n The 'color' property is a color and may be specified as:\n - A hex string (e.g. '#ff0000')\n - An rgb/rgba string (e.g. 'rgb(255,0,0)')\n - An hsl/hsla string (e.g. 'hsl(0,100%,50%)')\n - An hsv/hsva string (e.g. 'hsv(0,100%,100%)')\n - A named CSS color: see https://plotly.com/python/css-colors/ for a list\n\n Returns\n -------\n str\n """\n return self["color"]\n\n @color.setter\n def color(self, val):\n self["color"] = val\n\n @property\n def width(self):\n """\n Sets the width (in px) of the threshold line.\n\n The 'width' property is a number and may be specified as:\n - An int or float in the interval [0, inf]\n\n Returns\n -------\n int|float\n """\n return self["width"]\n\n @width.setter\n def width(self, val):\n self["width"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n color\n Sets the color of the threshold line.\n width\n Sets the width (in px) of the threshold line.\n """\n\n def __init__(self, arg=None, color=None, width=None, **kwargs):\n """\n Construct a new Line object\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of :class:`plotly.graph_objs.indicator.gaug\n e.threshold.Line`\n color\n Sets the color of the threshold line.\n width\n Sets the width (in px) of the threshold line.\n\n Returns\n -------\n Line\n """\n super().__init__("line")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.indicator.gauge.threshold.Line\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.indicator.gauge.threshold.Line`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("color", arg, color)\n self._set_property("width", arg, width)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n | .venv\Lib\site-packages\plotly\graph_objs\indicator\gauge\threshold\_line.py | _line.py | Python | 3,013 | 0.95 | 0.115385 | 0.023256 | awesome-app | 228 | 2024-01-08T08:53:29.905070 | BSD-3-Clause | false | be46d712bc207ddf7f8a707ba8767aa6 |
import sys\nfrom typing import TYPE_CHECKING\n\nif TYPE_CHECKING:\n from ._line import Line\nelse:\n from _plotly_utils.importers import relative_import\n\n __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._line.Line"])\n | .venv\Lib\site-packages\plotly\graph_objs\indicator\gauge\threshold\__init__.py | __init__.py | Python | 237 | 0.85 | 0.111111 | 0 | node-utils | 521 | 2023-08-09T03:49:21.698743 | BSD-3-Clause | false | f588da998a6d694bb21b2be29a9f27bb |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\indicator\gauge\threshold\__pycache__\_line.cpython-313.pyc | _line.cpython-313.pyc | Other | 3,871 | 0.8 | 0.034091 | 0 | python-kit | 762 | 2023-12-25T19:23:26.656583 | Apache-2.0 | false | 354b3d5b57e1fd015d9750534e505a99 |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\indicator\gauge\threshold\__pycache__\__init__.cpython-313.pyc | __init__.cpython-313.pyc | Other | 511 | 0.85 | 0 | 0 | vue-tools | 614 | 2024-09-30T08:33:35.739044 | BSD-3-Clause | false | 9dc4c7b0dbd0bafb9bf90a3754faba69 |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\indicator\gauge\__pycache__\_axis.cpython-313.pyc | _axis.cpython-313.pyc | Other | 40,441 | 0.8 | 0.101673 | 0.001401 | awesome-app | 556 | 2024-12-29T15:08:18.391067 | GPL-3.0 | false | 6c46f6d1951360882fd1268f2dd0592d |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\indicator\gauge\__pycache__\_bar.cpython-313.pyc | _bar.cpython-313.pyc | Other | 4,914 | 0.8 | 0.058824 | 0 | awesome-app | 967 | 2025-06-22T13:27:37.286402 | BSD-3-Clause | false | 8810780299feb71a45d9192580251ed3 |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\indicator\gauge\__pycache__\_step.cpython-313.pyc | _step.cpython-313.pyc | Other | 9,686 | 0.8 | 0.029703 | 0.005348 | node-utils | 579 | 2024-06-19T07:34:51.854162 | GPL-3.0 | false | 0926a625ab42ed024169f3d29551c7e0 |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\indicator\gauge\__pycache__\_threshold.cpython-313.pyc | _threshold.cpython-313.pyc | Other | 4,773 | 0.8 | 0.053191 | 0 | awesome-app | 150 | 2024-04-07T22:33:58.173452 | Apache-2.0 | false | ec486df53e22d931c7f9129c4c2ebe89 |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\indicator\gauge\__pycache__\__init__.cpython-313.pyc | __init__.cpython-313.pyc | Other | 824 | 0.95 | 0 | 0 | node-utils | 193 | 2023-12-17T06:31:09.788314 | MIT | false | fd21d260f40715df1d49c88308a0df06 |
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType\nimport copy as _copy\n\n\nclass Font(_BaseTraceHierarchyType):\n _parent_path_str = "indicator.legendgrouptitle"\n _path_str = "indicator.legendgrouptitle.font"\n _valid_props = {\n "color",\n "family",\n "lineposition",\n "shadow",\n "size",\n "style",\n "textcase",\n "variant",\n "weight",\n }\n\n @property\n def color(self):\n """\n The 'color' property is a color and may be specified as:\n - A hex string (e.g. '#ff0000')\n - An rgb/rgba string (e.g. 'rgb(255,0,0)')\n - An hsl/hsla string (e.g. 'hsl(0,100%,50%)')\n - An hsv/hsva string (e.g. 'hsv(0,100%,100%)')\n - A named CSS color: see https://plotly.com/python/css-colors/ for a list\n\n Returns\n -------\n str\n """\n return self["color"]\n\n @color.setter\n def color(self, val):\n self["color"] = val\n\n @property\n def family(self):\n """\n HTML font family - the typeface that will be applied by the web\n browser. The web browser can only apply a font if it is\n available on the system where it runs. Provide multiple font\n families, separated by commas, to indicate the order in which\n to apply fonts if they aren't available.\n\n The 'family' property is a string and must be specified as:\n - A non-empty string\n\n Returns\n -------\n str\n """\n return self["family"]\n\n @family.setter\n def family(self, val):\n self["family"] = val\n\n @property\n def lineposition(self):\n """\n Sets the kind of decoration line(s) with text, such as an\n "under", "over" or "through" as well as combinations e.g.\n "under+over", etc.\n\n The 'lineposition' property is a flaglist and may be specified\n as a string containing:\n - Any combination of ['under', 'over', 'through'] joined with '+' characters\n (e.g. 'under+over')\n OR exactly one of ['none'] (e.g. 'none')\n\n Returns\n -------\n Any\n """\n return self["lineposition"]\n\n @lineposition.setter\n def lineposition(self, val):\n self["lineposition"] = val\n\n @property\n def shadow(self):\n """\n Sets the shape and color of the shadow behind text. "auto"\n places minimal shadow and applies contrast text font color. See\n https://developer.mozilla.org/en-US/docs/Web/CSS/text-shadow\n for additional options.\n\n The 'shadow' property is a string and must be specified as:\n - A string\n - A number that will be converted to a string\n\n Returns\n -------\n str\n """\n return self["shadow"]\n\n @shadow.setter\n def shadow(self, val):\n self["shadow"] = val\n\n @property\n def size(self):\n """\n The 'size' property is a number and may be specified as:\n - An int or float in the interval [1, inf]\n\n Returns\n -------\n int|float\n """\n return self["size"]\n\n @size.setter\n def size(self, val):\n self["size"] = val\n\n @property\n def style(self):\n """\n Sets whether a font should be styled with a normal or italic\n face from its family.\n\n The 'style' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['normal', 'italic']\n\n Returns\n -------\n Any\n """\n return self["style"]\n\n @style.setter\n def style(self, val):\n self["style"] = val\n\n @property\n def textcase(self):\n """\n Sets capitalization of text. It can be used to make text appear\n in all-uppercase or all-lowercase, or with each word\n capitalized.\n\n The 'textcase' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['normal', 'word caps', 'upper', 'lower']\n\n Returns\n -------\n Any\n """\n return self["textcase"]\n\n @textcase.setter\n def textcase(self, val):\n self["textcase"] = val\n\n @property\n def variant(self):\n """\n Sets the variant of the font.\n\n The 'variant' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['normal', 'small-caps', 'all-small-caps',\n 'all-petite-caps', 'petite-caps', 'unicase']\n\n Returns\n -------\n Any\n """\n return self["variant"]\n\n @variant.setter\n def variant(self, val):\n self["variant"] = val\n\n @property\n def weight(self):\n """\n Sets the weight (or boldness) of the font.\n\n The 'weight' property is a integer and may be specified as:\n - An int (or float that will be cast to an int)\n in the interval [1, 1000]\n OR exactly one of ['normal', 'bold'] (e.g. 'bold')\n\n Returns\n -------\n int\n """\n return self["weight"]\n\n @weight.setter\n def weight(self, val):\n self["weight"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n color\n\n family\n HTML font family - the typeface that will be applied by\n the web browser. The web browser can only apply a font\n if it is available on the system where it runs. Provide\n multiple font families, separated by commas, to\n indicate the order in which to apply fonts if they\n aren't available.\n lineposition\n Sets the kind of decoration line(s) with text, such as\n an "under", "over" or "through" as well as combinations\n e.g. "under+over", etc.\n shadow\n Sets the shape and color of the shadow behind text.\n "auto" places minimal shadow and applies contrast text\n font color. See https://developer.mozilla.org/en-\n US/docs/Web/CSS/text-shadow for additional options.\n size\n\n style\n Sets whether a font should be styled with a normal or\n italic face from its family.\n textcase\n Sets capitalization of text. It can be used to make\n text appear in all-uppercase or all-lowercase, or with\n each word capitalized.\n variant\n Sets the variant of the font.\n weight\n Sets the weight (or boldness) of the font.\n """\n\n def __init__(\n self,\n arg=None,\n color=None,\n family=None,\n lineposition=None,\n shadow=None,\n size=None,\n style=None,\n textcase=None,\n variant=None,\n weight=None,\n **kwargs,\n ):\n """\n Construct a new Font object\n\n Sets this legend group's title font.\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of :class:`plotly.graph_objs.indicator.lege\n ndgrouptitle.Font`\n color\n\n family\n HTML font family - the typeface that will be applied by\n the web browser. The web browser can only apply a font\n if it is available on the system where it runs. Provide\n multiple font families, separated by commas, to\n indicate the order in which to apply fonts if they\n aren't available.\n lineposition\n Sets the kind of decoration line(s) with text, such as\n an "under", "over" or "through" as well as combinations\n e.g. "under+over", etc.\n shadow\n Sets the shape and color of the shadow behind text.\n "auto" places minimal shadow and applies contrast text\n font color. See https://developer.mozilla.org/en-\n US/docs/Web/CSS/text-shadow for additional options.\n size\n\n style\n Sets whether a font should be styled with a normal or\n italic face from its family.\n textcase\n Sets capitalization of text. It can be used to make\n text appear in all-uppercase or all-lowercase, or with\n each word capitalized.\n variant\n Sets the variant of the font.\n weight\n Sets the weight (or boldness) of the font.\n\n Returns\n -------\n Font\n """\n super().__init__("font")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.indicator.legendgrouptitle.Font\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.indicator.legendgrouptitle.Font`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("color", arg, color)\n self._set_property("family", arg, family)\n self._set_property("lineposition", arg, lineposition)\n self._set_property("shadow", arg, shadow)\n self._set_property("size", arg, size)\n self._set_property("style", arg, style)\n self._set_property("textcase", arg, textcase)\n self._set_property("variant", arg, variant)\n self._set_property("weight", arg, weight)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n | .venv\Lib\site-packages\plotly\graph_objs\indicator\legendgrouptitle\_font.py | _font.py | Python | 9,937 | 0.95 | 0.10479 | 0.010526 | vue-tools | 414 | 2024-11-23T09:22:11.549485 | BSD-3-Clause | false | 93f09da1bf52485dd9dd108996fb546f |
import sys\nfrom typing import TYPE_CHECKING\n\nif TYPE_CHECKING:\n from ._font import Font\nelse:\n from _plotly_utils.importers import relative_import\n\n __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"])\n | .venv\Lib\site-packages\plotly\graph_objs\indicator\legendgrouptitle\__init__.py | __init__.py | Python | 237 | 0.85 | 0.111111 | 0 | node-utils | 87 | 2024-09-08T00:31:44.246770 | BSD-3-Clause | false | 78f0039a1e574405772be52751197792 |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\indicator\legendgrouptitle\__pycache__\_font.cpython-313.pyc | _font.cpython-313.pyc | Other | 10,945 | 0.8 | 0.048583 | 0 | python-kit | 126 | 2025-03-30T04:28:05.531451 | MIT | false | ff6803cd59e60c5a258c82f3593be4dc |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\indicator\legendgrouptitle\__pycache__\__init__.cpython-313.pyc | __init__.cpython-313.pyc | Other | 512 | 0.85 | 0 | 0 | node-utils | 466 | 2025-01-02T11:04:25.186262 | MIT | false | 655c1af4e50a2f21745556427d3e9cc1 |
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType\nimport copy as _copy\n\n\nclass Font(_BaseTraceHierarchyType):\n _parent_path_str = "indicator.number"\n _path_str = "indicator.number.font"\n _valid_props = {\n "color",\n "family",\n "lineposition",\n "shadow",\n "size",\n "style",\n "textcase",\n "variant",\n "weight",\n }\n\n @property\n def color(self):\n """\n The 'color' property is a color and may be specified as:\n - A hex string (e.g. '#ff0000')\n - An rgb/rgba string (e.g. 'rgb(255,0,0)')\n - An hsl/hsla string (e.g. 'hsl(0,100%,50%)')\n - An hsv/hsva string (e.g. 'hsv(0,100%,100%)')\n - A named CSS color: see https://plotly.com/python/css-colors/ for a list\n\n Returns\n -------\n str\n """\n return self["color"]\n\n @color.setter\n def color(self, val):\n self["color"] = val\n\n @property\n def family(self):\n """\n HTML font family - the typeface that will be applied by the web\n browser. The web browser can only apply a font if it is\n available on the system where it runs. Provide multiple font\n families, separated by commas, to indicate the order in which\n to apply fonts if they aren't available.\n\n The 'family' property is a string and must be specified as:\n - A non-empty string\n\n Returns\n -------\n str\n """\n return self["family"]\n\n @family.setter\n def family(self, val):\n self["family"] = val\n\n @property\n def lineposition(self):\n """\n Sets the kind of decoration line(s) with text, such as an\n "under", "over" or "through" as well as combinations e.g.\n "under+over", etc.\n\n The 'lineposition' property is a flaglist and may be specified\n as a string containing:\n - Any combination of ['under', 'over', 'through'] joined with '+' characters\n (e.g. 'under+over')\n OR exactly one of ['none'] (e.g. 'none')\n\n Returns\n -------\n Any\n """\n return self["lineposition"]\n\n @lineposition.setter\n def lineposition(self, val):\n self["lineposition"] = val\n\n @property\n def shadow(self):\n """\n Sets the shape and color of the shadow behind text. "auto"\n places minimal shadow and applies contrast text font color. See\n https://developer.mozilla.org/en-US/docs/Web/CSS/text-shadow\n for additional options.\n\n The 'shadow' property is a string and must be specified as:\n - A string\n - A number that will be converted to a string\n\n Returns\n -------\n str\n """\n return self["shadow"]\n\n @shadow.setter\n def shadow(self, val):\n self["shadow"] = val\n\n @property\n def size(self):\n """\n The 'size' property is a number and may be specified as:\n - An int or float in the interval [1, inf]\n\n Returns\n -------\n int|float\n """\n return self["size"]\n\n @size.setter\n def size(self, val):\n self["size"] = val\n\n @property\n def style(self):\n """\n Sets whether a font should be styled with a normal or italic\n face from its family.\n\n The 'style' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['normal', 'italic']\n\n Returns\n -------\n Any\n """\n return self["style"]\n\n @style.setter\n def style(self, val):\n self["style"] = val\n\n @property\n def textcase(self):\n """\n Sets capitalization of text. It can be used to make text appear\n in all-uppercase or all-lowercase, or with each word\n capitalized.\n\n The 'textcase' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['normal', 'word caps', 'upper', 'lower']\n\n Returns\n -------\n Any\n """\n return self["textcase"]\n\n @textcase.setter\n def textcase(self, val):\n self["textcase"] = val\n\n @property\n def variant(self):\n """\n Sets the variant of the font.\n\n The 'variant' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['normal', 'small-caps', 'all-small-caps',\n 'all-petite-caps', 'petite-caps', 'unicase']\n\n Returns\n -------\n Any\n """\n return self["variant"]\n\n @variant.setter\n def variant(self, val):\n self["variant"] = val\n\n @property\n def weight(self):\n """\n Sets the weight (or boldness) of the font.\n\n The 'weight' property is a integer and may be specified as:\n - An int (or float that will be cast to an int)\n in the interval [1, 1000]\n OR exactly one of ['normal', 'bold'] (e.g. 'bold')\n\n Returns\n -------\n int\n """\n return self["weight"]\n\n @weight.setter\n def weight(self, val):\n self["weight"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n color\n\n family\n HTML font family - the typeface that will be applied by\n the web browser. The web browser can only apply a font\n if it is available on the system where it runs. Provide\n multiple font families, separated by commas, to\n indicate the order in which to apply fonts if they\n aren't available.\n lineposition\n Sets the kind of decoration line(s) with text, such as\n an "under", "over" or "through" as well as combinations\n e.g. "under+over", etc.\n shadow\n Sets the shape and color of the shadow behind text.\n "auto" places minimal shadow and applies contrast text\n font color. See https://developer.mozilla.org/en-\n US/docs/Web/CSS/text-shadow for additional options.\n size\n\n style\n Sets whether a font should be styled with a normal or\n italic face from its family.\n textcase\n Sets capitalization of text. It can be used to make\n text appear in all-uppercase or all-lowercase, or with\n each word capitalized.\n variant\n Sets the variant of the font.\n weight\n Sets the weight (or boldness) of the font.\n """\n\n def __init__(\n self,\n arg=None,\n color=None,\n family=None,\n lineposition=None,\n shadow=None,\n size=None,\n style=None,\n textcase=None,\n variant=None,\n weight=None,\n **kwargs,\n ):\n """\n Construct a new Font object\n\n Set the font used to display main number\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of\n :class:`plotly.graph_objs.indicator.number.Font`\n color\n\n family\n HTML font family - the typeface that will be applied by\n the web browser. The web browser can only apply a font\n if it is available on the system where it runs. Provide\n multiple font families, separated by commas, to\n indicate the order in which to apply fonts if they\n aren't available.\n lineposition\n Sets the kind of decoration line(s) with text, such as\n an "under", "over" or "through" as well as combinations\n e.g. "under+over", etc.\n shadow\n Sets the shape and color of the shadow behind text.\n "auto" places minimal shadow and applies contrast text\n font color. See https://developer.mozilla.org/en-\n US/docs/Web/CSS/text-shadow for additional options.\n size\n\n style\n Sets whether a font should be styled with a normal or\n italic face from its family.\n textcase\n Sets capitalization of text. It can be used to make\n text appear in all-uppercase or all-lowercase, or with\n each word capitalized.\n variant\n Sets the variant of the font.\n weight\n Sets the weight (or boldness) of the font.\n\n Returns\n -------\n Font\n """\n super().__init__("font")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.indicator.number.Font\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.indicator.number.Font`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("color", arg, color)\n self._set_property("family", arg, family)\n self._set_property("lineposition", arg, lineposition)\n self._set_property("shadow", arg, shadow)\n self._set_property("size", arg, size)\n self._set_property("style", arg, style)\n self._set_property("textcase", arg, textcase)\n self._set_property("variant", arg, variant)\n self._set_property("weight", arg, weight)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n | .venv\Lib\site-packages\plotly\graph_objs\indicator\number\_font.py | _font.py | Python | 9,890 | 0.95 | 0.10479 | 0.010526 | react-lib | 550 | 2024-10-23T00:52:55.993251 | MIT | false | 4f5a5a9464e5ffee376b2c3164a9bfb2 |
import sys\nfrom typing import TYPE_CHECKING\n\nif TYPE_CHECKING:\n from ._font import Font\nelse:\n from _plotly_utils.importers import relative_import\n\n __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"])\n | .venv\Lib\site-packages\plotly\graph_objs\indicator\number\__init__.py | __init__.py | Python | 237 | 0.85 | 0.111111 | 0 | awesome-app | 543 | 2024-11-30T03:43:50.752833 | Apache-2.0 | false | 78f0039a1e574405772be52751197792 |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\indicator\number\__pycache__\_font.cpython-313.pyc | _font.cpython-313.pyc | Other | 10,888 | 0.8 | 0.048583 | 0 | vue-tools | 339 | 2024-04-09T13:36:44.594227 | MIT | false | 18a6b5642091afa640af821163a8b445 |
\n\n | .venv\Lib\site-packages\plotly\graph_objs\indicator\number\__pycache__\__init__.cpython-313.pyc | __init__.cpython-313.pyc | Other | 502 | 0.85 | 0 | 0 | python-kit | 49 | 2023-09-14T12:59:08.913152 | Apache-2.0 | false | 2ce4d673095b4df95b34ddc850a8240c |
# --- THIS FILE IS AUTO-GENERATED ---\n# Modifications will be overwitten the next time code generation run.\n\nfrom plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType\nimport copy as _copy\n\n\nclass Font(_BaseTraceHierarchyType):\n _parent_path_str = "indicator.title"\n _path_str = "indicator.title.font"\n _valid_props = {\n "color",\n "family",\n "lineposition",\n "shadow",\n "size",\n "style",\n "textcase",\n "variant",\n "weight",\n }\n\n @property\n def color(self):\n """\n The 'color' property is a color and may be specified as:\n - A hex string (e.g. '#ff0000')\n - An rgb/rgba string (e.g. 'rgb(255,0,0)')\n - An hsl/hsla string (e.g. 'hsl(0,100%,50%)')\n - An hsv/hsva string (e.g. 'hsv(0,100%,100%)')\n - A named CSS color: see https://plotly.com/python/css-colors/ for a list\n\n Returns\n -------\n str\n """\n return self["color"]\n\n @color.setter\n def color(self, val):\n self["color"] = val\n\n @property\n def family(self):\n """\n HTML font family - the typeface that will be applied by the web\n browser. The web browser can only apply a font if it is\n available on the system where it runs. Provide multiple font\n families, separated by commas, to indicate the order in which\n to apply fonts if they aren't available.\n\n The 'family' property is a string and must be specified as:\n - A non-empty string\n\n Returns\n -------\n str\n """\n return self["family"]\n\n @family.setter\n def family(self, val):\n self["family"] = val\n\n @property\n def lineposition(self):\n """\n Sets the kind of decoration line(s) with text, such as an\n "under", "over" or "through" as well as combinations e.g.\n "under+over", etc.\n\n The 'lineposition' property is a flaglist and may be specified\n as a string containing:\n - Any combination of ['under', 'over', 'through'] joined with '+' characters\n (e.g. 'under+over')\n OR exactly one of ['none'] (e.g. 'none')\n\n Returns\n -------\n Any\n """\n return self["lineposition"]\n\n @lineposition.setter\n def lineposition(self, val):\n self["lineposition"] = val\n\n @property\n def shadow(self):\n """\n Sets the shape and color of the shadow behind text. "auto"\n places minimal shadow and applies contrast text font color. See\n https://developer.mozilla.org/en-US/docs/Web/CSS/text-shadow\n for additional options.\n\n The 'shadow' property is a string and must be specified as:\n - A string\n - A number that will be converted to a string\n\n Returns\n -------\n str\n """\n return self["shadow"]\n\n @shadow.setter\n def shadow(self, val):\n self["shadow"] = val\n\n @property\n def size(self):\n """\n The 'size' property is a number and may be specified as:\n - An int or float in the interval [1, inf]\n\n Returns\n -------\n int|float\n """\n return self["size"]\n\n @size.setter\n def size(self, val):\n self["size"] = val\n\n @property\n def style(self):\n """\n Sets whether a font should be styled with a normal or italic\n face from its family.\n\n The 'style' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['normal', 'italic']\n\n Returns\n -------\n Any\n """\n return self["style"]\n\n @style.setter\n def style(self, val):\n self["style"] = val\n\n @property\n def textcase(self):\n """\n Sets capitalization of text. It can be used to make text appear\n in all-uppercase or all-lowercase, or with each word\n capitalized.\n\n The 'textcase' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['normal', 'word caps', 'upper', 'lower']\n\n Returns\n -------\n Any\n """\n return self["textcase"]\n\n @textcase.setter\n def textcase(self, val):\n self["textcase"] = val\n\n @property\n def variant(self):\n """\n Sets the variant of the font.\n\n The 'variant' property is an enumeration that may be specified as:\n - One of the following enumeration values:\n ['normal', 'small-caps', 'all-small-caps',\n 'all-petite-caps', 'petite-caps', 'unicase']\n\n Returns\n -------\n Any\n """\n return self["variant"]\n\n @variant.setter\n def variant(self, val):\n self["variant"] = val\n\n @property\n def weight(self):\n """\n Sets the weight (or boldness) of the font.\n\n The 'weight' property is a integer and may be specified as:\n - An int (or float that will be cast to an int)\n in the interval [1, 1000]\n OR exactly one of ['normal', 'bold'] (e.g. 'bold')\n\n Returns\n -------\n int\n """\n return self["weight"]\n\n @weight.setter\n def weight(self, val):\n self["weight"] = val\n\n @property\n def _prop_descriptions(self):\n return """\\n color\n\n family\n HTML font family - the typeface that will be applied by\n the web browser. The web browser can only apply a font\n if it is available on the system where it runs. Provide\n multiple font families, separated by commas, to\n indicate the order in which to apply fonts if they\n aren't available.\n lineposition\n Sets the kind of decoration line(s) with text, such as\n an "under", "over" or "through" as well as combinations\n e.g. "under+over", etc.\n shadow\n Sets the shape and color of the shadow behind text.\n "auto" places minimal shadow and applies contrast text\n font color. See https://developer.mozilla.org/en-\n US/docs/Web/CSS/text-shadow for additional options.\n size\n\n style\n Sets whether a font should be styled with a normal or\n italic face from its family.\n textcase\n Sets capitalization of text. It can be used to make\n text appear in all-uppercase or all-lowercase, or with\n each word capitalized.\n variant\n Sets the variant of the font.\n weight\n Sets the weight (or boldness) of the font.\n """\n\n def __init__(\n self,\n arg=None,\n color=None,\n family=None,\n lineposition=None,\n shadow=None,\n size=None,\n style=None,\n textcase=None,\n variant=None,\n weight=None,\n **kwargs,\n ):\n """\n Construct a new Font object\n\n Set the font used to display the title\n\n Parameters\n ----------\n arg\n dict of properties compatible with this constructor or\n an instance of\n :class:`plotly.graph_objs.indicator.title.Font`\n color\n\n family\n HTML font family - the typeface that will be applied by\n the web browser. The web browser can only apply a font\n if it is available on the system where it runs. Provide\n multiple font families, separated by commas, to\n indicate the order in which to apply fonts if they\n aren't available.\n lineposition\n Sets the kind of decoration line(s) with text, such as\n an "under", "over" or "through" as well as combinations\n e.g. "under+over", etc.\n shadow\n Sets the shape and color of the shadow behind text.\n "auto" places minimal shadow and applies contrast text\n font color. See https://developer.mozilla.org/en-\n US/docs/Web/CSS/text-shadow for additional options.\n size\n\n style\n Sets whether a font should be styled with a normal or\n italic face from its family.\n textcase\n Sets capitalization of text. It can be used to make\n text appear in all-uppercase or all-lowercase, or with\n each word capitalized.\n variant\n Sets the variant of the font.\n weight\n Sets the weight (or boldness) of the font.\n\n Returns\n -------\n Font\n """\n super().__init__("font")\n if "_parent" in kwargs:\n self._parent = kwargs["_parent"]\n return\n\n if arg is None:\n arg = {}\n elif isinstance(arg, self.__class__):\n arg = arg.to_plotly_json()\n elif isinstance(arg, dict):\n arg = _copy.copy(arg)\n else:\n raise ValueError("""\\nThe first argument to the plotly.graph_objs.indicator.title.Font\nconstructor must be a dict or\nan instance of :class:`plotly.graph_objs.indicator.title.Font`""")\n\n self._skip_invalid = kwargs.pop("skip_invalid", False)\n self._validate = kwargs.pop("_validate", True)\n\n self._set_property("color", arg, color)\n self._set_property("family", arg, family)\n self._set_property("lineposition", arg, lineposition)\n self._set_property("shadow", arg, shadow)\n self._set_property("size", arg, size)\n self._set_property("style", arg, style)\n self._set_property("textcase", arg, textcase)\n self._set_property("variant", arg, variant)\n self._set_property("weight", arg, weight)\n self._process_kwargs(**dict(arg, **kwargs))\n self._skip_invalid = False\n | .venv\Lib\site-packages\plotly\graph_objs\indicator\title\_font.py | _font.py | Python | 9,883 | 0.95 | 0.10479 | 0.010526 | vue-tools | 427 | 2024-09-27T10:41:33.862663 | GPL-3.0 | false | 8bb9b202df8dfa15c3a56a93c1236bb0 |
import sys\nfrom typing import TYPE_CHECKING\n\nif TYPE_CHECKING:\n from ._font import Font\nelse:\n from _plotly_utils.importers import relative_import\n\n __all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"])\n | .venv\Lib\site-packages\plotly\graph_objs\indicator\title\__init__.py | __init__.py | Python | 237 | 0.85 | 0.111111 | 0 | awesome-app | 786 | 2023-07-18T14:36:18.753739 | Apache-2.0 | false | 78f0039a1e574405772be52751197792 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.