Reset repository and upload final project (part 18)
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/shape/label/.___pycache__ +0 -0
- .venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/shape/label/.__font.py +0 -0
- .venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/shape/label/__init__.py +9 -0
- .venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/shape/label/_font.py +334 -0
- .venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/shape/legendgrouptitle/.___init__.py +0 -0
- .venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/shape/legendgrouptitle/.___pycache__ +0 -0
- .venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/shape/legendgrouptitle/.__font.py +0 -0
- .venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/shape/legendgrouptitle/__init__.py +9 -0
- .venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/shape/legendgrouptitle/_font.py +334 -0
- .venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/slider/.___init__.py +0 -0
- .venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/slider/.___pycache__ +0 -0
- .venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/slider/.__currentvalue.py +0 -0
- .venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/slider/.__font.py +0 -0
- .venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/slider/.__pad.py +0 -0
- .venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/slider/.__step.py +0 -0
- .venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/slider/.__transition.py +0 -0
- .venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/slider/._currentvalue +0 -0
- .venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/slider/__init__.py +24 -0
- .venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/slider/_currentvalue.py +220 -0
- .venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/slider/_font.py +334 -0
- .venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/slider/_pad.py +159 -0
- .venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/slider/_step.py +354 -0
- .venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/slider/_transition.py +109 -0
- .venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/slider/currentvalue/.___init__.py +0 -0
- .venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/slider/currentvalue/.___pycache__ +0 -0
- .venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/slider/currentvalue/.__font.py +0 -0
- .venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/slider/currentvalue/__init__.py +9 -0
- .venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/slider/currentvalue/_font.py +334 -0
- .venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/smith/.___init__.py +0 -0
- .venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/smith/.___pycache__ +0 -0
- .venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/smith/.__domain.py +0 -0
- .venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/smith/.__imaginaryaxis.py +0 -0
- .venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/smith/.__realaxis.py +0 -0
- .venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/smith/._imaginaryaxis +0 -0
- .venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/smith/._realaxis +0 -0
- .venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/smith/__init__.py +17 -0
- .venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/smith/_domain.py +170 -0
- .venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/smith/_imaginaryaxis.py +865 -0
- .venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/smith/_realaxis.py +922 -0
- .venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/smith/imaginaryaxis/.___init__.py +0 -0
- .venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/smith/imaginaryaxis/.___pycache__ +0 -0
- .venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/smith/imaginaryaxis/.__tickfont.py +0 -0
- .venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/smith/imaginaryaxis/__init__.py +11 -0
- .venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/smith/imaginaryaxis/_tickfont.py +334 -0
- .venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/smith/realaxis/.___init__.py +0 -0
- .venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/smith/realaxis/.___pycache__ +0 -0
- .venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/smith/realaxis/.__tickfont.py +0 -0
- .venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/smith/realaxis/__init__.py +11 -0
- .venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/smith/realaxis/_tickfont.py +334 -0
- .venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/template/.___init__.py +0 -0
.venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/shape/label/.___pycache__
ADDED
|
Binary file (4.1 kB). View file
|
|
|
.venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/shape/label/.__font.py
ADDED
|
Binary file (4.1 kB). View file
|
|
|
.venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/shape/label/__init__.py
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import sys
|
| 2 |
+
from typing import TYPE_CHECKING
|
| 3 |
+
|
| 4 |
+
if TYPE_CHECKING:
|
| 5 |
+
from ._font import Font
|
| 6 |
+
else:
|
| 7 |
+
from _plotly_utils.importers import relative_import
|
| 8 |
+
|
| 9 |
+
__all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"])
|
.venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/shape/label/_font.py
ADDED
|
@@ -0,0 +1,334 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# --- THIS FILE IS AUTO-GENERATED ---
|
| 2 |
+
# Modifications will be overwitten the next time code generation run.
|
| 3 |
+
|
| 4 |
+
from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType
|
| 5 |
+
import copy as _copy
|
| 6 |
+
|
| 7 |
+
|
| 8 |
+
class Font(_BaseLayoutHierarchyType):
|
| 9 |
+
_parent_path_str = "layout.shape.label"
|
| 10 |
+
_path_str = "layout.shape.label.font"
|
| 11 |
+
_valid_props = {
|
| 12 |
+
"color",
|
| 13 |
+
"family",
|
| 14 |
+
"lineposition",
|
| 15 |
+
"shadow",
|
| 16 |
+
"size",
|
| 17 |
+
"style",
|
| 18 |
+
"textcase",
|
| 19 |
+
"variant",
|
| 20 |
+
"weight",
|
| 21 |
+
}
|
| 22 |
+
|
| 23 |
+
@property
|
| 24 |
+
def color(self):
|
| 25 |
+
"""
|
| 26 |
+
The 'color' property is a color and may be specified as:
|
| 27 |
+
- A hex string (e.g. '#ff0000')
|
| 28 |
+
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
|
| 29 |
+
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
|
| 30 |
+
- An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
|
| 31 |
+
- A named CSS color: see https://plotly.com/python/css-colors/ for a list
|
| 32 |
+
|
| 33 |
+
Returns
|
| 34 |
+
-------
|
| 35 |
+
str
|
| 36 |
+
"""
|
| 37 |
+
return self["color"]
|
| 38 |
+
|
| 39 |
+
@color.setter
|
| 40 |
+
def color(self, val):
|
| 41 |
+
self["color"] = val
|
| 42 |
+
|
| 43 |
+
@property
|
| 44 |
+
def family(self):
|
| 45 |
+
"""
|
| 46 |
+
HTML font family - the typeface that will be applied by the web
|
| 47 |
+
browser. The web browser can only apply a font if it is
|
| 48 |
+
available on the system where it runs. Provide multiple font
|
| 49 |
+
families, separated by commas, to indicate the order in which
|
| 50 |
+
to apply fonts if they aren't available.
|
| 51 |
+
|
| 52 |
+
The 'family' property is a string and must be specified as:
|
| 53 |
+
- A non-empty string
|
| 54 |
+
|
| 55 |
+
Returns
|
| 56 |
+
-------
|
| 57 |
+
str
|
| 58 |
+
"""
|
| 59 |
+
return self["family"]
|
| 60 |
+
|
| 61 |
+
@family.setter
|
| 62 |
+
def family(self, val):
|
| 63 |
+
self["family"] = val
|
| 64 |
+
|
| 65 |
+
@property
|
| 66 |
+
def lineposition(self):
|
| 67 |
+
"""
|
| 68 |
+
Sets the kind of decoration line(s) with text, such as an
|
| 69 |
+
"under", "over" or "through" as well as combinations e.g.
|
| 70 |
+
"under+over", etc.
|
| 71 |
+
|
| 72 |
+
The 'lineposition' property is a flaglist and may be specified
|
| 73 |
+
as a string containing:
|
| 74 |
+
- Any combination of ['under', 'over', 'through'] joined with '+' characters
|
| 75 |
+
(e.g. 'under+over')
|
| 76 |
+
OR exactly one of ['none'] (e.g. 'none')
|
| 77 |
+
|
| 78 |
+
Returns
|
| 79 |
+
-------
|
| 80 |
+
Any
|
| 81 |
+
"""
|
| 82 |
+
return self["lineposition"]
|
| 83 |
+
|
| 84 |
+
@lineposition.setter
|
| 85 |
+
def lineposition(self, val):
|
| 86 |
+
self["lineposition"] = val
|
| 87 |
+
|
| 88 |
+
@property
|
| 89 |
+
def shadow(self):
|
| 90 |
+
"""
|
| 91 |
+
Sets the shape and color of the shadow behind text. "auto"
|
| 92 |
+
places minimal shadow and applies contrast text font color. See
|
| 93 |
+
https://developer.mozilla.org/en-US/docs/Web/CSS/text-shadow
|
| 94 |
+
for additional options.
|
| 95 |
+
|
| 96 |
+
The 'shadow' property is a string and must be specified as:
|
| 97 |
+
- A string
|
| 98 |
+
- A number that will be converted to a string
|
| 99 |
+
|
| 100 |
+
Returns
|
| 101 |
+
-------
|
| 102 |
+
str
|
| 103 |
+
"""
|
| 104 |
+
return self["shadow"]
|
| 105 |
+
|
| 106 |
+
@shadow.setter
|
| 107 |
+
def shadow(self, val):
|
| 108 |
+
self["shadow"] = val
|
| 109 |
+
|
| 110 |
+
@property
|
| 111 |
+
def size(self):
|
| 112 |
+
"""
|
| 113 |
+
The 'size' property is a number and may be specified as:
|
| 114 |
+
- An int or float in the interval [1, inf]
|
| 115 |
+
|
| 116 |
+
Returns
|
| 117 |
+
-------
|
| 118 |
+
int|float
|
| 119 |
+
"""
|
| 120 |
+
return self["size"]
|
| 121 |
+
|
| 122 |
+
@size.setter
|
| 123 |
+
def size(self, val):
|
| 124 |
+
self["size"] = val
|
| 125 |
+
|
| 126 |
+
@property
|
| 127 |
+
def style(self):
|
| 128 |
+
"""
|
| 129 |
+
Sets whether a font should be styled with a normal or italic
|
| 130 |
+
face from its family.
|
| 131 |
+
|
| 132 |
+
The 'style' property is an enumeration that may be specified as:
|
| 133 |
+
- One of the following enumeration values:
|
| 134 |
+
['normal', 'italic']
|
| 135 |
+
|
| 136 |
+
Returns
|
| 137 |
+
-------
|
| 138 |
+
Any
|
| 139 |
+
"""
|
| 140 |
+
return self["style"]
|
| 141 |
+
|
| 142 |
+
@style.setter
|
| 143 |
+
def style(self, val):
|
| 144 |
+
self["style"] = val
|
| 145 |
+
|
| 146 |
+
@property
|
| 147 |
+
def textcase(self):
|
| 148 |
+
"""
|
| 149 |
+
Sets capitalization of text. It can be used to make text appear
|
| 150 |
+
in all-uppercase or all-lowercase, or with each word
|
| 151 |
+
capitalized.
|
| 152 |
+
|
| 153 |
+
The 'textcase' property is an enumeration that may be specified as:
|
| 154 |
+
- One of the following enumeration values:
|
| 155 |
+
['normal', 'word caps', 'upper', 'lower']
|
| 156 |
+
|
| 157 |
+
Returns
|
| 158 |
+
-------
|
| 159 |
+
Any
|
| 160 |
+
"""
|
| 161 |
+
return self["textcase"]
|
| 162 |
+
|
| 163 |
+
@textcase.setter
|
| 164 |
+
def textcase(self, val):
|
| 165 |
+
self["textcase"] = val
|
| 166 |
+
|
| 167 |
+
@property
|
| 168 |
+
def variant(self):
|
| 169 |
+
"""
|
| 170 |
+
Sets the variant of the font.
|
| 171 |
+
|
| 172 |
+
The 'variant' property is an enumeration that may be specified as:
|
| 173 |
+
- One of the following enumeration values:
|
| 174 |
+
['normal', 'small-caps', 'all-small-caps',
|
| 175 |
+
'all-petite-caps', 'petite-caps', 'unicase']
|
| 176 |
+
|
| 177 |
+
Returns
|
| 178 |
+
-------
|
| 179 |
+
Any
|
| 180 |
+
"""
|
| 181 |
+
return self["variant"]
|
| 182 |
+
|
| 183 |
+
@variant.setter
|
| 184 |
+
def variant(self, val):
|
| 185 |
+
self["variant"] = val
|
| 186 |
+
|
| 187 |
+
@property
|
| 188 |
+
def weight(self):
|
| 189 |
+
"""
|
| 190 |
+
Sets the weight (or boldness) of the font.
|
| 191 |
+
|
| 192 |
+
The 'weight' property is a integer and may be specified as:
|
| 193 |
+
- An int (or float that will be cast to an int)
|
| 194 |
+
in the interval [1, 1000]
|
| 195 |
+
OR exactly one of ['normal', 'bold'] (e.g. 'bold')
|
| 196 |
+
|
| 197 |
+
Returns
|
| 198 |
+
-------
|
| 199 |
+
int
|
| 200 |
+
"""
|
| 201 |
+
return self["weight"]
|
| 202 |
+
|
| 203 |
+
@weight.setter
|
| 204 |
+
def weight(self, val):
|
| 205 |
+
self["weight"] = val
|
| 206 |
+
|
| 207 |
+
@property
|
| 208 |
+
def _prop_descriptions(self):
|
| 209 |
+
return """\
|
| 210 |
+
color
|
| 211 |
+
|
| 212 |
+
family
|
| 213 |
+
HTML font family - the typeface that will be applied by
|
| 214 |
+
the web browser. The web browser can only apply a font
|
| 215 |
+
if it is available on the system where it runs. Provide
|
| 216 |
+
multiple font families, separated by commas, to
|
| 217 |
+
indicate the order in which to apply fonts if they
|
| 218 |
+
aren't available.
|
| 219 |
+
lineposition
|
| 220 |
+
Sets the kind of decoration line(s) with text, such as
|
| 221 |
+
an "under", "over" or "through" as well as combinations
|
| 222 |
+
e.g. "under+over", etc.
|
| 223 |
+
shadow
|
| 224 |
+
Sets the shape and color of the shadow behind text.
|
| 225 |
+
"auto" places minimal shadow and applies contrast text
|
| 226 |
+
font color. See https://developer.mozilla.org/en-
|
| 227 |
+
US/docs/Web/CSS/text-shadow for additional options.
|
| 228 |
+
size
|
| 229 |
+
|
| 230 |
+
style
|
| 231 |
+
Sets whether a font should be styled with a normal or
|
| 232 |
+
italic face from its family.
|
| 233 |
+
textcase
|
| 234 |
+
Sets capitalization of text. It can be used to make
|
| 235 |
+
text appear in all-uppercase or all-lowercase, or with
|
| 236 |
+
each word capitalized.
|
| 237 |
+
variant
|
| 238 |
+
Sets the variant of the font.
|
| 239 |
+
weight
|
| 240 |
+
Sets the weight (or boldness) of the font.
|
| 241 |
+
"""
|
| 242 |
+
|
| 243 |
+
def __init__(
|
| 244 |
+
self,
|
| 245 |
+
arg=None,
|
| 246 |
+
color=None,
|
| 247 |
+
family=None,
|
| 248 |
+
lineposition=None,
|
| 249 |
+
shadow=None,
|
| 250 |
+
size=None,
|
| 251 |
+
style=None,
|
| 252 |
+
textcase=None,
|
| 253 |
+
variant=None,
|
| 254 |
+
weight=None,
|
| 255 |
+
**kwargs,
|
| 256 |
+
):
|
| 257 |
+
"""
|
| 258 |
+
Construct a new Font object
|
| 259 |
+
|
| 260 |
+
Sets the shape label text font.
|
| 261 |
+
|
| 262 |
+
Parameters
|
| 263 |
+
----------
|
| 264 |
+
arg
|
| 265 |
+
dict of properties compatible with this constructor or
|
| 266 |
+
an instance of
|
| 267 |
+
:class:`plotly.graph_objs.layout.shape.label.Font`
|
| 268 |
+
color
|
| 269 |
+
|
| 270 |
+
family
|
| 271 |
+
HTML font family - the typeface that will be applied by
|
| 272 |
+
the web browser. The web browser can only apply a font
|
| 273 |
+
if it is available on the system where it runs. Provide
|
| 274 |
+
multiple font families, separated by commas, to
|
| 275 |
+
indicate the order in which to apply fonts if they
|
| 276 |
+
aren't available.
|
| 277 |
+
lineposition
|
| 278 |
+
Sets the kind of decoration line(s) with text, such as
|
| 279 |
+
an "under", "over" or "through" as well as combinations
|
| 280 |
+
e.g. "under+over", etc.
|
| 281 |
+
shadow
|
| 282 |
+
Sets the shape and color of the shadow behind text.
|
| 283 |
+
"auto" places minimal shadow and applies contrast text
|
| 284 |
+
font color. See https://developer.mozilla.org/en-
|
| 285 |
+
US/docs/Web/CSS/text-shadow for additional options.
|
| 286 |
+
size
|
| 287 |
+
|
| 288 |
+
style
|
| 289 |
+
Sets whether a font should be styled with a normal or
|
| 290 |
+
italic face from its family.
|
| 291 |
+
textcase
|
| 292 |
+
Sets capitalization of text. It can be used to make
|
| 293 |
+
text appear in all-uppercase or all-lowercase, or with
|
| 294 |
+
each word capitalized.
|
| 295 |
+
variant
|
| 296 |
+
Sets the variant of the font.
|
| 297 |
+
weight
|
| 298 |
+
Sets the weight (or boldness) of the font.
|
| 299 |
+
|
| 300 |
+
Returns
|
| 301 |
+
-------
|
| 302 |
+
Font
|
| 303 |
+
"""
|
| 304 |
+
super().__init__("font")
|
| 305 |
+
if "_parent" in kwargs:
|
| 306 |
+
self._parent = kwargs["_parent"]
|
| 307 |
+
return
|
| 308 |
+
|
| 309 |
+
if arg is None:
|
| 310 |
+
arg = {}
|
| 311 |
+
elif isinstance(arg, self.__class__):
|
| 312 |
+
arg = arg.to_plotly_json()
|
| 313 |
+
elif isinstance(arg, dict):
|
| 314 |
+
arg = _copy.copy(arg)
|
| 315 |
+
else:
|
| 316 |
+
raise ValueError("""\
|
| 317 |
+
The first argument to the plotly.graph_objs.layout.shape.label.Font
|
| 318 |
+
constructor must be a dict or
|
| 319 |
+
an instance of :class:`plotly.graph_objs.layout.shape.label.Font`""")
|
| 320 |
+
|
| 321 |
+
self._skip_invalid = kwargs.pop("skip_invalid", False)
|
| 322 |
+
self._validate = kwargs.pop("_validate", True)
|
| 323 |
+
|
| 324 |
+
self._set_property("color", arg, color)
|
| 325 |
+
self._set_property("family", arg, family)
|
| 326 |
+
self._set_property("lineposition", arg, lineposition)
|
| 327 |
+
self._set_property("shadow", arg, shadow)
|
| 328 |
+
self._set_property("size", arg, size)
|
| 329 |
+
self._set_property("style", arg, style)
|
| 330 |
+
self._set_property("textcase", arg, textcase)
|
| 331 |
+
self._set_property("variant", arg, variant)
|
| 332 |
+
self._set_property("weight", arg, weight)
|
| 333 |
+
self._process_kwargs(**dict(arg, **kwargs))
|
| 334 |
+
self._skip_invalid = False
|
.venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/shape/legendgrouptitle/.___init__.py
ADDED
|
Binary file (4.1 kB). View file
|
|
|
.venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/shape/legendgrouptitle/.___pycache__
ADDED
|
Binary file (4.1 kB). View file
|
|
|
.venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/shape/legendgrouptitle/.__font.py
ADDED
|
Binary file (4.1 kB). View file
|
|
|
.venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/shape/legendgrouptitle/__init__.py
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import sys
|
| 2 |
+
from typing import TYPE_CHECKING
|
| 3 |
+
|
| 4 |
+
if TYPE_CHECKING:
|
| 5 |
+
from ._font import Font
|
| 6 |
+
else:
|
| 7 |
+
from _plotly_utils.importers import relative_import
|
| 8 |
+
|
| 9 |
+
__all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"])
|
.venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/shape/legendgrouptitle/_font.py
ADDED
|
@@ -0,0 +1,334 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# --- THIS FILE IS AUTO-GENERATED ---
|
| 2 |
+
# Modifications will be overwitten the next time code generation run.
|
| 3 |
+
|
| 4 |
+
from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType
|
| 5 |
+
import copy as _copy
|
| 6 |
+
|
| 7 |
+
|
| 8 |
+
class Font(_BaseLayoutHierarchyType):
|
| 9 |
+
_parent_path_str = "layout.shape.legendgrouptitle"
|
| 10 |
+
_path_str = "layout.shape.legendgrouptitle.font"
|
| 11 |
+
_valid_props = {
|
| 12 |
+
"color",
|
| 13 |
+
"family",
|
| 14 |
+
"lineposition",
|
| 15 |
+
"shadow",
|
| 16 |
+
"size",
|
| 17 |
+
"style",
|
| 18 |
+
"textcase",
|
| 19 |
+
"variant",
|
| 20 |
+
"weight",
|
| 21 |
+
}
|
| 22 |
+
|
| 23 |
+
@property
|
| 24 |
+
def color(self):
|
| 25 |
+
"""
|
| 26 |
+
The 'color' property is a color and may be specified as:
|
| 27 |
+
- A hex string (e.g. '#ff0000')
|
| 28 |
+
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
|
| 29 |
+
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
|
| 30 |
+
- An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
|
| 31 |
+
- A named CSS color: see https://plotly.com/python/css-colors/ for a list
|
| 32 |
+
|
| 33 |
+
Returns
|
| 34 |
+
-------
|
| 35 |
+
str
|
| 36 |
+
"""
|
| 37 |
+
return self["color"]
|
| 38 |
+
|
| 39 |
+
@color.setter
|
| 40 |
+
def color(self, val):
|
| 41 |
+
self["color"] = val
|
| 42 |
+
|
| 43 |
+
@property
|
| 44 |
+
def family(self):
|
| 45 |
+
"""
|
| 46 |
+
HTML font family - the typeface that will be applied by the web
|
| 47 |
+
browser. The web browser can only apply a font if it is
|
| 48 |
+
available on the system where it runs. Provide multiple font
|
| 49 |
+
families, separated by commas, to indicate the order in which
|
| 50 |
+
to apply fonts if they aren't available.
|
| 51 |
+
|
| 52 |
+
The 'family' property is a string and must be specified as:
|
| 53 |
+
- A non-empty string
|
| 54 |
+
|
| 55 |
+
Returns
|
| 56 |
+
-------
|
| 57 |
+
str
|
| 58 |
+
"""
|
| 59 |
+
return self["family"]
|
| 60 |
+
|
| 61 |
+
@family.setter
|
| 62 |
+
def family(self, val):
|
| 63 |
+
self["family"] = val
|
| 64 |
+
|
| 65 |
+
@property
|
| 66 |
+
def lineposition(self):
|
| 67 |
+
"""
|
| 68 |
+
Sets the kind of decoration line(s) with text, such as an
|
| 69 |
+
"under", "over" or "through" as well as combinations e.g.
|
| 70 |
+
"under+over", etc.
|
| 71 |
+
|
| 72 |
+
The 'lineposition' property is a flaglist and may be specified
|
| 73 |
+
as a string containing:
|
| 74 |
+
- Any combination of ['under', 'over', 'through'] joined with '+' characters
|
| 75 |
+
(e.g. 'under+over')
|
| 76 |
+
OR exactly one of ['none'] (e.g. 'none')
|
| 77 |
+
|
| 78 |
+
Returns
|
| 79 |
+
-------
|
| 80 |
+
Any
|
| 81 |
+
"""
|
| 82 |
+
return self["lineposition"]
|
| 83 |
+
|
| 84 |
+
@lineposition.setter
|
| 85 |
+
def lineposition(self, val):
|
| 86 |
+
self["lineposition"] = val
|
| 87 |
+
|
| 88 |
+
@property
|
| 89 |
+
def shadow(self):
|
| 90 |
+
"""
|
| 91 |
+
Sets the shape and color of the shadow behind text. "auto"
|
| 92 |
+
places minimal shadow and applies contrast text font color. See
|
| 93 |
+
https://developer.mozilla.org/en-US/docs/Web/CSS/text-shadow
|
| 94 |
+
for additional options.
|
| 95 |
+
|
| 96 |
+
The 'shadow' property is a string and must be specified as:
|
| 97 |
+
- A string
|
| 98 |
+
- A number that will be converted to a string
|
| 99 |
+
|
| 100 |
+
Returns
|
| 101 |
+
-------
|
| 102 |
+
str
|
| 103 |
+
"""
|
| 104 |
+
return self["shadow"]
|
| 105 |
+
|
| 106 |
+
@shadow.setter
|
| 107 |
+
def shadow(self, val):
|
| 108 |
+
self["shadow"] = val
|
| 109 |
+
|
| 110 |
+
@property
|
| 111 |
+
def size(self):
|
| 112 |
+
"""
|
| 113 |
+
The 'size' property is a number and may be specified as:
|
| 114 |
+
- An int or float in the interval [1, inf]
|
| 115 |
+
|
| 116 |
+
Returns
|
| 117 |
+
-------
|
| 118 |
+
int|float
|
| 119 |
+
"""
|
| 120 |
+
return self["size"]
|
| 121 |
+
|
| 122 |
+
@size.setter
|
| 123 |
+
def size(self, val):
|
| 124 |
+
self["size"] = val
|
| 125 |
+
|
| 126 |
+
@property
|
| 127 |
+
def style(self):
|
| 128 |
+
"""
|
| 129 |
+
Sets whether a font should be styled with a normal or italic
|
| 130 |
+
face from its family.
|
| 131 |
+
|
| 132 |
+
The 'style' property is an enumeration that may be specified as:
|
| 133 |
+
- One of the following enumeration values:
|
| 134 |
+
['normal', 'italic']
|
| 135 |
+
|
| 136 |
+
Returns
|
| 137 |
+
-------
|
| 138 |
+
Any
|
| 139 |
+
"""
|
| 140 |
+
return self["style"]
|
| 141 |
+
|
| 142 |
+
@style.setter
|
| 143 |
+
def style(self, val):
|
| 144 |
+
self["style"] = val
|
| 145 |
+
|
| 146 |
+
@property
|
| 147 |
+
def textcase(self):
|
| 148 |
+
"""
|
| 149 |
+
Sets capitalization of text. It can be used to make text appear
|
| 150 |
+
in all-uppercase or all-lowercase, or with each word
|
| 151 |
+
capitalized.
|
| 152 |
+
|
| 153 |
+
The 'textcase' property is an enumeration that may be specified as:
|
| 154 |
+
- One of the following enumeration values:
|
| 155 |
+
['normal', 'word caps', 'upper', 'lower']
|
| 156 |
+
|
| 157 |
+
Returns
|
| 158 |
+
-------
|
| 159 |
+
Any
|
| 160 |
+
"""
|
| 161 |
+
return self["textcase"]
|
| 162 |
+
|
| 163 |
+
@textcase.setter
|
| 164 |
+
def textcase(self, val):
|
| 165 |
+
self["textcase"] = val
|
| 166 |
+
|
| 167 |
+
@property
|
| 168 |
+
def variant(self):
|
| 169 |
+
"""
|
| 170 |
+
Sets the variant of the font.
|
| 171 |
+
|
| 172 |
+
The 'variant' property is an enumeration that may be specified as:
|
| 173 |
+
- One of the following enumeration values:
|
| 174 |
+
['normal', 'small-caps', 'all-small-caps',
|
| 175 |
+
'all-petite-caps', 'petite-caps', 'unicase']
|
| 176 |
+
|
| 177 |
+
Returns
|
| 178 |
+
-------
|
| 179 |
+
Any
|
| 180 |
+
"""
|
| 181 |
+
return self["variant"]
|
| 182 |
+
|
| 183 |
+
@variant.setter
|
| 184 |
+
def variant(self, val):
|
| 185 |
+
self["variant"] = val
|
| 186 |
+
|
| 187 |
+
@property
|
| 188 |
+
def weight(self):
|
| 189 |
+
"""
|
| 190 |
+
Sets the weight (or boldness) of the font.
|
| 191 |
+
|
| 192 |
+
The 'weight' property is a integer and may be specified as:
|
| 193 |
+
- An int (or float that will be cast to an int)
|
| 194 |
+
in the interval [1, 1000]
|
| 195 |
+
OR exactly one of ['normal', 'bold'] (e.g. 'bold')
|
| 196 |
+
|
| 197 |
+
Returns
|
| 198 |
+
-------
|
| 199 |
+
int
|
| 200 |
+
"""
|
| 201 |
+
return self["weight"]
|
| 202 |
+
|
| 203 |
+
@weight.setter
|
| 204 |
+
def weight(self, val):
|
| 205 |
+
self["weight"] = val
|
| 206 |
+
|
| 207 |
+
@property
|
| 208 |
+
def _prop_descriptions(self):
|
| 209 |
+
return """\
|
| 210 |
+
color
|
| 211 |
+
|
| 212 |
+
family
|
| 213 |
+
HTML font family - the typeface that will be applied by
|
| 214 |
+
the web browser. The web browser can only apply a font
|
| 215 |
+
if it is available on the system where it runs. Provide
|
| 216 |
+
multiple font families, separated by commas, to
|
| 217 |
+
indicate the order in which to apply fonts if they
|
| 218 |
+
aren't available.
|
| 219 |
+
lineposition
|
| 220 |
+
Sets the kind of decoration line(s) with text, such as
|
| 221 |
+
an "under", "over" or "through" as well as combinations
|
| 222 |
+
e.g. "under+over", etc.
|
| 223 |
+
shadow
|
| 224 |
+
Sets the shape and color of the shadow behind text.
|
| 225 |
+
"auto" places minimal shadow and applies contrast text
|
| 226 |
+
font color. See https://developer.mozilla.org/en-
|
| 227 |
+
US/docs/Web/CSS/text-shadow for additional options.
|
| 228 |
+
size
|
| 229 |
+
|
| 230 |
+
style
|
| 231 |
+
Sets whether a font should be styled with a normal or
|
| 232 |
+
italic face from its family.
|
| 233 |
+
textcase
|
| 234 |
+
Sets capitalization of text. It can be used to make
|
| 235 |
+
text appear in all-uppercase or all-lowercase, or with
|
| 236 |
+
each word capitalized.
|
| 237 |
+
variant
|
| 238 |
+
Sets the variant of the font.
|
| 239 |
+
weight
|
| 240 |
+
Sets the weight (or boldness) of the font.
|
| 241 |
+
"""
|
| 242 |
+
|
| 243 |
+
def __init__(
|
| 244 |
+
self,
|
| 245 |
+
arg=None,
|
| 246 |
+
color=None,
|
| 247 |
+
family=None,
|
| 248 |
+
lineposition=None,
|
| 249 |
+
shadow=None,
|
| 250 |
+
size=None,
|
| 251 |
+
style=None,
|
| 252 |
+
textcase=None,
|
| 253 |
+
variant=None,
|
| 254 |
+
weight=None,
|
| 255 |
+
**kwargs,
|
| 256 |
+
):
|
| 257 |
+
"""
|
| 258 |
+
Construct a new Font object
|
| 259 |
+
|
| 260 |
+
Sets this legend group's title font.
|
| 261 |
+
|
| 262 |
+
Parameters
|
| 263 |
+
----------
|
| 264 |
+
arg
|
| 265 |
+
dict of properties compatible with this constructor or
|
| 266 |
+
an instance of :class:`plotly.graph_objs.layout.shape.l
|
| 267 |
+
egendgrouptitle.Font`
|
| 268 |
+
color
|
| 269 |
+
|
| 270 |
+
family
|
| 271 |
+
HTML font family - the typeface that will be applied by
|
| 272 |
+
the web browser. The web browser can only apply a font
|
| 273 |
+
if it is available on the system where it runs. Provide
|
| 274 |
+
multiple font families, separated by commas, to
|
| 275 |
+
indicate the order in which to apply fonts if they
|
| 276 |
+
aren't available.
|
| 277 |
+
lineposition
|
| 278 |
+
Sets the kind of decoration line(s) with text, such as
|
| 279 |
+
an "under", "over" or "through" as well as combinations
|
| 280 |
+
e.g. "under+over", etc.
|
| 281 |
+
shadow
|
| 282 |
+
Sets the shape and color of the shadow behind text.
|
| 283 |
+
"auto" places minimal shadow and applies contrast text
|
| 284 |
+
font color. See https://developer.mozilla.org/en-
|
| 285 |
+
US/docs/Web/CSS/text-shadow for additional options.
|
| 286 |
+
size
|
| 287 |
+
|
| 288 |
+
style
|
| 289 |
+
Sets whether a font should be styled with a normal or
|
| 290 |
+
italic face from its family.
|
| 291 |
+
textcase
|
| 292 |
+
Sets capitalization of text. It can be used to make
|
| 293 |
+
text appear in all-uppercase or all-lowercase, or with
|
| 294 |
+
each word capitalized.
|
| 295 |
+
variant
|
| 296 |
+
Sets the variant of the font.
|
| 297 |
+
weight
|
| 298 |
+
Sets the weight (or boldness) of the font.
|
| 299 |
+
|
| 300 |
+
Returns
|
| 301 |
+
-------
|
| 302 |
+
Font
|
| 303 |
+
"""
|
| 304 |
+
super().__init__("font")
|
| 305 |
+
if "_parent" in kwargs:
|
| 306 |
+
self._parent = kwargs["_parent"]
|
| 307 |
+
return
|
| 308 |
+
|
| 309 |
+
if arg is None:
|
| 310 |
+
arg = {}
|
| 311 |
+
elif isinstance(arg, self.__class__):
|
| 312 |
+
arg = arg.to_plotly_json()
|
| 313 |
+
elif isinstance(arg, dict):
|
| 314 |
+
arg = _copy.copy(arg)
|
| 315 |
+
else:
|
| 316 |
+
raise ValueError("""\
|
| 317 |
+
The first argument to the plotly.graph_objs.layout.shape.legendgrouptitle.Font
|
| 318 |
+
constructor must be a dict or
|
| 319 |
+
an instance of :class:`plotly.graph_objs.layout.shape.legendgrouptitle.Font`""")
|
| 320 |
+
|
| 321 |
+
self._skip_invalid = kwargs.pop("skip_invalid", False)
|
| 322 |
+
self._validate = kwargs.pop("_validate", True)
|
| 323 |
+
|
| 324 |
+
self._set_property("color", arg, color)
|
| 325 |
+
self._set_property("family", arg, family)
|
| 326 |
+
self._set_property("lineposition", arg, lineposition)
|
| 327 |
+
self._set_property("shadow", arg, shadow)
|
| 328 |
+
self._set_property("size", arg, size)
|
| 329 |
+
self._set_property("style", arg, style)
|
| 330 |
+
self._set_property("textcase", arg, textcase)
|
| 331 |
+
self._set_property("variant", arg, variant)
|
| 332 |
+
self._set_property("weight", arg, weight)
|
| 333 |
+
self._process_kwargs(**dict(arg, **kwargs))
|
| 334 |
+
self._skip_invalid = False
|
.venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/slider/.___init__.py
ADDED
|
Binary file (4.1 kB). View file
|
|
|
.venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/slider/.___pycache__
ADDED
|
Binary file (4.1 kB). View file
|
|
|
.venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/slider/.__currentvalue.py
ADDED
|
Binary file (4.1 kB). View file
|
|
|
.venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/slider/.__font.py
ADDED
|
Binary file (4.1 kB). View file
|
|
|
.venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/slider/.__pad.py
ADDED
|
Binary file (4.1 kB). View file
|
|
|
.venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/slider/.__step.py
ADDED
|
Binary file (4.1 kB). View file
|
|
|
.venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/slider/.__transition.py
ADDED
|
Binary file (4.1 kB). View file
|
|
|
.venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/slider/._currentvalue
ADDED
|
Binary file (4.1 kB). View file
|
|
|
.venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/slider/__init__.py
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import sys
|
| 2 |
+
from typing import TYPE_CHECKING
|
| 3 |
+
|
| 4 |
+
if TYPE_CHECKING:
|
| 5 |
+
from ._currentvalue import Currentvalue
|
| 6 |
+
from ._font import Font
|
| 7 |
+
from ._pad import Pad
|
| 8 |
+
from ._step import Step
|
| 9 |
+
from ._transition import Transition
|
| 10 |
+
from . import currentvalue
|
| 11 |
+
else:
|
| 12 |
+
from _plotly_utils.importers import relative_import
|
| 13 |
+
|
| 14 |
+
__all__, __getattr__, __dir__ = relative_import(
|
| 15 |
+
__name__,
|
| 16 |
+
[".currentvalue"],
|
| 17 |
+
[
|
| 18 |
+
"._currentvalue.Currentvalue",
|
| 19 |
+
"._font.Font",
|
| 20 |
+
"._pad.Pad",
|
| 21 |
+
"._step.Step",
|
| 22 |
+
"._transition.Transition",
|
| 23 |
+
],
|
| 24 |
+
)
|
.venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/slider/_currentvalue.py
ADDED
|
@@ -0,0 +1,220 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# --- THIS FILE IS AUTO-GENERATED ---
|
| 2 |
+
# Modifications will be overwitten the next time code generation run.
|
| 3 |
+
|
| 4 |
+
from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType
|
| 5 |
+
import copy as _copy
|
| 6 |
+
|
| 7 |
+
|
| 8 |
+
class Currentvalue(_BaseLayoutHierarchyType):
|
| 9 |
+
_parent_path_str = "layout.slider"
|
| 10 |
+
_path_str = "layout.slider.currentvalue"
|
| 11 |
+
_valid_props = {"font", "offset", "prefix", "suffix", "visible", "xanchor"}
|
| 12 |
+
|
| 13 |
+
@property
|
| 14 |
+
def font(self):
|
| 15 |
+
"""
|
| 16 |
+
Sets the font of the current value label text.
|
| 17 |
+
|
| 18 |
+
The 'font' property is an instance of Font
|
| 19 |
+
that may be specified as:
|
| 20 |
+
- An instance of :class:`plotly.graph_objs.layout.slider.currentvalue.Font`
|
| 21 |
+
- A dict of string/value properties that will be passed
|
| 22 |
+
to the Font constructor
|
| 23 |
+
|
| 24 |
+
Returns
|
| 25 |
+
-------
|
| 26 |
+
plotly.graph_objs.layout.slider.currentvalue.Font
|
| 27 |
+
"""
|
| 28 |
+
return self["font"]
|
| 29 |
+
|
| 30 |
+
@font.setter
|
| 31 |
+
def font(self, val):
|
| 32 |
+
self["font"] = val
|
| 33 |
+
|
| 34 |
+
@property
|
| 35 |
+
def offset(self):
|
| 36 |
+
"""
|
| 37 |
+
The amount of space, in pixels, between the current value label
|
| 38 |
+
and the slider.
|
| 39 |
+
|
| 40 |
+
The 'offset' property is a number and may be specified as:
|
| 41 |
+
- An int or float
|
| 42 |
+
|
| 43 |
+
Returns
|
| 44 |
+
-------
|
| 45 |
+
int|float
|
| 46 |
+
"""
|
| 47 |
+
return self["offset"]
|
| 48 |
+
|
| 49 |
+
@offset.setter
|
| 50 |
+
def offset(self, val):
|
| 51 |
+
self["offset"] = val
|
| 52 |
+
|
| 53 |
+
@property
|
| 54 |
+
def prefix(self):
|
| 55 |
+
"""
|
| 56 |
+
When currentvalue.visible is true, this sets the prefix of the
|
| 57 |
+
label.
|
| 58 |
+
|
| 59 |
+
The 'prefix' property is a string and must be specified as:
|
| 60 |
+
- A string
|
| 61 |
+
- A number that will be converted to a string
|
| 62 |
+
|
| 63 |
+
Returns
|
| 64 |
+
-------
|
| 65 |
+
str
|
| 66 |
+
"""
|
| 67 |
+
return self["prefix"]
|
| 68 |
+
|
| 69 |
+
@prefix.setter
|
| 70 |
+
def prefix(self, val):
|
| 71 |
+
self["prefix"] = val
|
| 72 |
+
|
| 73 |
+
@property
|
| 74 |
+
def suffix(self):
|
| 75 |
+
"""
|
| 76 |
+
When currentvalue.visible is true, this sets the suffix of the
|
| 77 |
+
label.
|
| 78 |
+
|
| 79 |
+
The 'suffix' property is a string and must be specified as:
|
| 80 |
+
- A string
|
| 81 |
+
- A number that will be converted to a string
|
| 82 |
+
|
| 83 |
+
Returns
|
| 84 |
+
-------
|
| 85 |
+
str
|
| 86 |
+
"""
|
| 87 |
+
return self["suffix"]
|
| 88 |
+
|
| 89 |
+
@suffix.setter
|
| 90 |
+
def suffix(self, val):
|
| 91 |
+
self["suffix"] = val
|
| 92 |
+
|
| 93 |
+
@property
|
| 94 |
+
def visible(self):
|
| 95 |
+
"""
|
| 96 |
+
Shows the currently-selected value above the slider.
|
| 97 |
+
|
| 98 |
+
The 'visible' property is a boolean and must be specified as:
|
| 99 |
+
- A boolean value: True or False
|
| 100 |
+
|
| 101 |
+
Returns
|
| 102 |
+
-------
|
| 103 |
+
bool
|
| 104 |
+
"""
|
| 105 |
+
return self["visible"]
|
| 106 |
+
|
| 107 |
+
@visible.setter
|
| 108 |
+
def visible(self, val):
|
| 109 |
+
self["visible"] = val
|
| 110 |
+
|
| 111 |
+
@property
|
| 112 |
+
def xanchor(self):
|
| 113 |
+
"""
|
| 114 |
+
The alignment of the value readout relative to the length of
|
| 115 |
+
the slider.
|
| 116 |
+
|
| 117 |
+
The 'xanchor' property is an enumeration that may be specified as:
|
| 118 |
+
- One of the following enumeration values:
|
| 119 |
+
['left', 'center', 'right']
|
| 120 |
+
|
| 121 |
+
Returns
|
| 122 |
+
-------
|
| 123 |
+
Any
|
| 124 |
+
"""
|
| 125 |
+
return self["xanchor"]
|
| 126 |
+
|
| 127 |
+
@xanchor.setter
|
| 128 |
+
def xanchor(self, val):
|
| 129 |
+
self["xanchor"] = val
|
| 130 |
+
|
| 131 |
+
@property
|
| 132 |
+
def _prop_descriptions(self):
|
| 133 |
+
return """\
|
| 134 |
+
font
|
| 135 |
+
Sets the font of the current value label text.
|
| 136 |
+
offset
|
| 137 |
+
The amount of space, in pixels, between the current
|
| 138 |
+
value label and the slider.
|
| 139 |
+
prefix
|
| 140 |
+
When currentvalue.visible is true, this sets the prefix
|
| 141 |
+
of the label.
|
| 142 |
+
suffix
|
| 143 |
+
When currentvalue.visible is true, this sets the suffix
|
| 144 |
+
of the label.
|
| 145 |
+
visible
|
| 146 |
+
Shows the currently-selected value above the slider.
|
| 147 |
+
xanchor
|
| 148 |
+
The alignment of the value readout relative to the
|
| 149 |
+
length of the slider.
|
| 150 |
+
"""
|
| 151 |
+
|
| 152 |
+
def __init__(
|
| 153 |
+
self,
|
| 154 |
+
arg=None,
|
| 155 |
+
font=None,
|
| 156 |
+
offset=None,
|
| 157 |
+
prefix=None,
|
| 158 |
+
suffix=None,
|
| 159 |
+
visible=None,
|
| 160 |
+
xanchor=None,
|
| 161 |
+
**kwargs,
|
| 162 |
+
):
|
| 163 |
+
"""
|
| 164 |
+
Construct a new Currentvalue object
|
| 165 |
+
|
| 166 |
+
Parameters
|
| 167 |
+
----------
|
| 168 |
+
arg
|
| 169 |
+
dict of properties compatible with this constructor or
|
| 170 |
+
an instance of
|
| 171 |
+
:class:`plotly.graph_objs.layout.slider.Currentvalue`
|
| 172 |
+
font
|
| 173 |
+
Sets the font of the current value label text.
|
| 174 |
+
offset
|
| 175 |
+
The amount of space, in pixels, between the current
|
| 176 |
+
value label and the slider.
|
| 177 |
+
prefix
|
| 178 |
+
When currentvalue.visible is true, this sets the prefix
|
| 179 |
+
of the label.
|
| 180 |
+
suffix
|
| 181 |
+
When currentvalue.visible is true, this sets the suffix
|
| 182 |
+
of the label.
|
| 183 |
+
visible
|
| 184 |
+
Shows the currently-selected value above the slider.
|
| 185 |
+
xanchor
|
| 186 |
+
The alignment of the value readout relative to the
|
| 187 |
+
length of the slider.
|
| 188 |
+
|
| 189 |
+
Returns
|
| 190 |
+
-------
|
| 191 |
+
Currentvalue
|
| 192 |
+
"""
|
| 193 |
+
super().__init__("currentvalue")
|
| 194 |
+
if "_parent" in kwargs:
|
| 195 |
+
self._parent = kwargs["_parent"]
|
| 196 |
+
return
|
| 197 |
+
|
| 198 |
+
if arg is None:
|
| 199 |
+
arg = {}
|
| 200 |
+
elif isinstance(arg, self.__class__):
|
| 201 |
+
arg = arg.to_plotly_json()
|
| 202 |
+
elif isinstance(arg, dict):
|
| 203 |
+
arg = _copy.copy(arg)
|
| 204 |
+
else:
|
| 205 |
+
raise ValueError("""\
|
| 206 |
+
The first argument to the plotly.graph_objs.layout.slider.Currentvalue
|
| 207 |
+
constructor must be a dict or
|
| 208 |
+
an instance of :class:`plotly.graph_objs.layout.slider.Currentvalue`""")
|
| 209 |
+
|
| 210 |
+
self._skip_invalid = kwargs.pop("skip_invalid", False)
|
| 211 |
+
self._validate = kwargs.pop("_validate", True)
|
| 212 |
+
|
| 213 |
+
self._set_property("font", arg, font)
|
| 214 |
+
self._set_property("offset", arg, offset)
|
| 215 |
+
self._set_property("prefix", arg, prefix)
|
| 216 |
+
self._set_property("suffix", arg, suffix)
|
| 217 |
+
self._set_property("visible", arg, visible)
|
| 218 |
+
self._set_property("xanchor", arg, xanchor)
|
| 219 |
+
self._process_kwargs(**dict(arg, **kwargs))
|
| 220 |
+
self._skip_invalid = False
|
.venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/slider/_font.py
ADDED
|
@@ -0,0 +1,334 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# --- THIS FILE IS AUTO-GENERATED ---
|
| 2 |
+
# Modifications will be overwitten the next time code generation run.
|
| 3 |
+
|
| 4 |
+
from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType
|
| 5 |
+
import copy as _copy
|
| 6 |
+
|
| 7 |
+
|
| 8 |
+
class Font(_BaseLayoutHierarchyType):
|
| 9 |
+
_parent_path_str = "layout.slider"
|
| 10 |
+
_path_str = "layout.slider.font"
|
| 11 |
+
_valid_props = {
|
| 12 |
+
"color",
|
| 13 |
+
"family",
|
| 14 |
+
"lineposition",
|
| 15 |
+
"shadow",
|
| 16 |
+
"size",
|
| 17 |
+
"style",
|
| 18 |
+
"textcase",
|
| 19 |
+
"variant",
|
| 20 |
+
"weight",
|
| 21 |
+
}
|
| 22 |
+
|
| 23 |
+
@property
|
| 24 |
+
def color(self):
|
| 25 |
+
"""
|
| 26 |
+
The 'color' property is a color and may be specified as:
|
| 27 |
+
- A hex string (e.g. '#ff0000')
|
| 28 |
+
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
|
| 29 |
+
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
|
| 30 |
+
- An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
|
| 31 |
+
- A named CSS color: see https://plotly.com/python/css-colors/ for a list
|
| 32 |
+
|
| 33 |
+
Returns
|
| 34 |
+
-------
|
| 35 |
+
str
|
| 36 |
+
"""
|
| 37 |
+
return self["color"]
|
| 38 |
+
|
| 39 |
+
@color.setter
|
| 40 |
+
def color(self, val):
|
| 41 |
+
self["color"] = val
|
| 42 |
+
|
| 43 |
+
@property
|
| 44 |
+
def family(self):
|
| 45 |
+
"""
|
| 46 |
+
HTML font family - the typeface that will be applied by the web
|
| 47 |
+
browser. The web browser can only apply a font if it is
|
| 48 |
+
available on the system where it runs. Provide multiple font
|
| 49 |
+
families, separated by commas, to indicate the order in which
|
| 50 |
+
to apply fonts if they aren't available.
|
| 51 |
+
|
| 52 |
+
The 'family' property is a string and must be specified as:
|
| 53 |
+
- A non-empty string
|
| 54 |
+
|
| 55 |
+
Returns
|
| 56 |
+
-------
|
| 57 |
+
str
|
| 58 |
+
"""
|
| 59 |
+
return self["family"]
|
| 60 |
+
|
| 61 |
+
@family.setter
|
| 62 |
+
def family(self, val):
|
| 63 |
+
self["family"] = val
|
| 64 |
+
|
| 65 |
+
@property
|
| 66 |
+
def lineposition(self):
|
| 67 |
+
"""
|
| 68 |
+
Sets the kind of decoration line(s) with text, such as an
|
| 69 |
+
"under", "over" or "through" as well as combinations e.g.
|
| 70 |
+
"under+over", etc.
|
| 71 |
+
|
| 72 |
+
The 'lineposition' property is a flaglist and may be specified
|
| 73 |
+
as a string containing:
|
| 74 |
+
- Any combination of ['under', 'over', 'through'] joined with '+' characters
|
| 75 |
+
(e.g. 'under+over')
|
| 76 |
+
OR exactly one of ['none'] (e.g. 'none')
|
| 77 |
+
|
| 78 |
+
Returns
|
| 79 |
+
-------
|
| 80 |
+
Any
|
| 81 |
+
"""
|
| 82 |
+
return self["lineposition"]
|
| 83 |
+
|
| 84 |
+
@lineposition.setter
|
| 85 |
+
def lineposition(self, val):
|
| 86 |
+
self["lineposition"] = val
|
| 87 |
+
|
| 88 |
+
@property
|
| 89 |
+
def shadow(self):
|
| 90 |
+
"""
|
| 91 |
+
Sets the shape and color of the shadow behind text. "auto"
|
| 92 |
+
places minimal shadow and applies contrast text font color. See
|
| 93 |
+
https://developer.mozilla.org/en-US/docs/Web/CSS/text-shadow
|
| 94 |
+
for additional options.
|
| 95 |
+
|
| 96 |
+
The 'shadow' property is a string and must be specified as:
|
| 97 |
+
- A string
|
| 98 |
+
- A number that will be converted to a string
|
| 99 |
+
|
| 100 |
+
Returns
|
| 101 |
+
-------
|
| 102 |
+
str
|
| 103 |
+
"""
|
| 104 |
+
return self["shadow"]
|
| 105 |
+
|
| 106 |
+
@shadow.setter
|
| 107 |
+
def shadow(self, val):
|
| 108 |
+
self["shadow"] = val
|
| 109 |
+
|
| 110 |
+
@property
|
| 111 |
+
def size(self):
|
| 112 |
+
"""
|
| 113 |
+
The 'size' property is a number and may be specified as:
|
| 114 |
+
- An int or float in the interval [1, inf]
|
| 115 |
+
|
| 116 |
+
Returns
|
| 117 |
+
-------
|
| 118 |
+
int|float
|
| 119 |
+
"""
|
| 120 |
+
return self["size"]
|
| 121 |
+
|
| 122 |
+
@size.setter
|
| 123 |
+
def size(self, val):
|
| 124 |
+
self["size"] = val
|
| 125 |
+
|
| 126 |
+
@property
|
| 127 |
+
def style(self):
|
| 128 |
+
"""
|
| 129 |
+
Sets whether a font should be styled with a normal or italic
|
| 130 |
+
face from its family.
|
| 131 |
+
|
| 132 |
+
The 'style' property is an enumeration that may be specified as:
|
| 133 |
+
- One of the following enumeration values:
|
| 134 |
+
['normal', 'italic']
|
| 135 |
+
|
| 136 |
+
Returns
|
| 137 |
+
-------
|
| 138 |
+
Any
|
| 139 |
+
"""
|
| 140 |
+
return self["style"]
|
| 141 |
+
|
| 142 |
+
@style.setter
|
| 143 |
+
def style(self, val):
|
| 144 |
+
self["style"] = val
|
| 145 |
+
|
| 146 |
+
@property
|
| 147 |
+
def textcase(self):
|
| 148 |
+
"""
|
| 149 |
+
Sets capitalization of text. It can be used to make text appear
|
| 150 |
+
in all-uppercase or all-lowercase, or with each word
|
| 151 |
+
capitalized.
|
| 152 |
+
|
| 153 |
+
The 'textcase' property is an enumeration that may be specified as:
|
| 154 |
+
- One of the following enumeration values:
|
| 155 |
+
['normal', 'word caps', 'upper', 'lower']
|
| 156 |
+
|
| 157 |
+
Returns
|
| 158 |
+
-------
|
| 159 |
+
Any
|
| 160 |
+
"""
|
| 161 |
+
return self["textcase"]
|
| 162 |
+
|
| 163 |
+
@textcase.setter
|
| 164 |
+
def textcase(self, val):
|
| 165 |
+
self["textcase"] = val
|
| 166 |
+
|
| 167 |
+
@property
|
| 168 |
+
def variant(self):
|
| 169 |
+
"""
|
| 170 |
+
Sets the variant of the font.
|
| 171 |
+
|
| 172 |
+
The 'variant' property is an enumeration that may be specified as:
|
| 173 |
+
- One of the following enumeration values:
|
| 174 |
+
['normal', 'small-caps', 'all-small-caps',
|
| 175 |
+
'all-petite-caps', 'petite-caps', 'unicase']
|
| 176 |
+
|
| 177 |
+
Returns
|
| 178 |
+
-------
|
| 179 |
+
Any
|
| 180 |
+
"""
|
| 181 |
+
return self["variant"]
|
| 182 |
+
|
| 183 |
+
@variant.setter
|
| 184 |
+
def variant(self, val):
|
| 185 |
+
self["variant"] = val
|
| 186 |
+
|
| 187 |
+
@property
|
| 188 |
+
def weight(self):
|
| 189 |
+
"""
|
| 190 |
+
Sets the weight (or boldness) of the font.
|
| 191 |
+
|
| 192 |
+
The 'weight' property is a integer and may be specified as:
|
| 193 |
+
- An int (or float that will be cast to an int)
|
| 194 |
+
in the interval [1, 1000]
|
| 195 |
+
OR exactly one of ['normal', 'bold'] (e.g. 'bold')
|
| 196 |
+
|
| 197 |
+
Returns
|
| 198 |
+
-------
|
| 199 |
+
int
|
| 200 |
+
"""
|
| 201 |
+
return self["weight"]
|
| 202 |
+
|
| 203 |
+
@weight.setter
|
| 204 |
+
def weight(self, val):
|
| 205 |
+
self["weight"] = val
|
| 206 |
+
|
| 207 |
+
@property
|
| 208 |
+
def _prop_descriptions(self):
|
| 209 |
+
return """\
|
| 210 |
+
color
|
| 211 |
+
|
| 212 |
+
family
|
| 213 |
+
HTML font family - the typeface that will be applied by
|
| 214 |
+
the web browser. The web browser can only apply a font
|
| 215 |
+
if it is available on the system where it runs. Provide
|
| 216 |
+
multiple font families, separated by commas, to
|
| 217 |
+
indicate the order in which to apply fonts if they
|
| 218 |
+
aren't available.
|
| 219 |
+
lineposition
|
| 220 |
+
Sets the kind of decoration line(s) with text, such as
|
| 221 |
+
an "under", "over" or "through" as well as combinations
|
| 222 |
+
e.g. "under+over", etc.
|
| 223 |
+
shadow
|
| 224 |
+
Sets the shape and color of the shadow behind text.
|
| 225 |
+
"auto" places minimal shadow and applies contrast text
|
| 226 |
+
font color. See https://developer.mozilla.org/en-
|
| 227 |
+
US/docs/Web/CSS/text-shadow for additional options.
|
| 228 |
+
size
|
| 229 |
+
|
| 230 |
+
style
|
| 231 |
+
Sets whether a font should be styled with a normal or
|
| 232 |
+
italic face from its family.
|
| 233 |
+
textcase
|
| 234 |
+
Sets capitalization of text. It can be used to make
|
| 235 |
+
text appear in all-uppercase or all-lowercase, or with
|
| 236 |
+
each word capitalized.
|
| 237 |
+
variant
|
| 238 |
+
Sets the variant of the font.
|
| 239 |
+
weight
|
| 240 |
+
Sets the weight (or boldness) of the font.
|
| 241 |
+
"""
|
| 242 |
+
|
| 243 |
+
def __init__(
|
| 244 |
+
self,
|
| 245 |
+
arg=None,
|
| 246 |
+
color=None,
|
| 247 |
+
family=None,
|
| 248 |
+
lineposition=None,
|
| 249 |
+
shadow=None,
|
| 250 |
+
size=None,
|
| 251 |
+
style=None,
|
| 252 |
+
textcase=None,
|
| 253 |
+
variant=None,
|
| 254 |
+
weight=None,
|
| 255 |
+
**kwargs,
|
| 256 |
+
):
|
| 257 |
+
"""
|
| 258 |
+
Construct a new Font object
|
| 259 |
+
|
| 260 |
+
Sets the font of the slider step labels.
|
| 261 |
+
|
| 262 |
+
Parameters
|
| 263 |
+
----------
|
| 264 |
+
arg
|
| 265 |
+
dict of properties compatible with this constructor or
|
| 266 |
+
an instance of
|
| 267 |
+
:class:`plotly.graph_objs.layout.slider.Font`
|
| 268 |
+
color
|
| 269 |
+
|
| 270 |
+
family
|
| 271 |
+
HTML font family - the typeface that will be applied by
|
| 272 |
+
the web browser. The web browser can only apply a font
|
| 273 |
+
if it is available on the system where it runs. Provide
|
| 274 |
+
multiple font families, separated by commas, to
|
| 275 |
+
indicate the order in which to apply fonts if they
|
| 276 |
+
aren't available.
|
| 277 |
+
lineposition
|
| 278 |
+
Sets the kind of decoration line(s) with text, such as
|
| 279 |
+
an "under", "over" or "through" as well as combinations
|
| 280 |
+
e.g. "under+over", etc.
|
| 281 |
+
shadow
|
| 282 |
+
Sets the shape and color of the shadow behind text.
|
| 283 |
+
"auto" places minimal shadow and applies contrast text
|
| 284 |
+
font color. See https://developer.mozilla.org/en-
|
| 285 |
+
US/docs/Web/CSS/text-shadow for additional options.
|
| 286 |
+
size
|
| 287 |
+
|
| 288 |
+
style
|
| 289 |
+
Sets whether a font should be styled with a normal or
|
| 290 |
+
italic face from its family.
|
| 291 |
+
textcase
|
| 292 |
+
Sets capitalization of text. It can be used to make
|
| 293 |
+
text appear in all-uppercase or all-lowercase, or with
|
| 294 |
+
each word capitalized.
|
| 295 |
+
variant
|
| 296 |
+
Sets the variant of the font.
|
| 297 |
+
weight
|
| 298 |
+
Sets the weight (or boldness) of the font.
|
| 299 |
+
|
| 300 |
+
Returns
|
| 301 |
+
-------
|
| 302 |
+
Font
|
| 303 |
+
"""
|
| 304 |
+
super().__init__("font")
|
| 305 |
+
if "_parent" in kwargs:
|
| 306 |
+
self._parent = kwargs["_parent"]
|
| 307 |
+
return
|
| 308 |
+
|
| 309 |
+
if arg is None:
|
| 310 |
+
arg = {}
|
| 311 |
+
elif isinstance(arg, self.__class__):
|
| 312 |
+
arg = arg.to_plotly_json()
|
| 313 |
+
elif isinstance(arg, dict):
|
| 314 |
+
arg = _copy.copy(arg)
|
| 315 |
+
else:
|
| 316 |
+
raise ValueError("""\
|
| 317 |
+
The first argument to the plotly.graph_objs.layout.slider.Font
|
| 318 |
+
constructor must be a dict or
|
| 319 |
+
an instance of :class:`plotly.graph_objs.layout.slider.Font`""")
|
| 320 |
+
|
| 321 |
+
self._skip_invalid = kwargs.pop("skip_invalid", False)
|
| 322 |
+
self._validate = kwargs.pop("_validate", True)
|
| 323 |
+
|
| 324 |
+
self._set_property("color", arg, color)
|
| 325 |
+
self._set_property("family", arg, family)
|
| 326 |
+
self._set_property("lineposition", arg, lineposition)
|
| 327 |
+
self._set_property("shadow", arg, shadow)
|
| 328 |
+
self._set_property("size", arg, size)
|
| 329 |
+
self._set_property("style", arg, style)
|
| 330 |
+
self._set_property("textcase", arg, textcase)
|
| 331 |
+
self._set_property("variant", arg, variant)
|
| 332 |
+
self._set_property("weight", arg, weight)
|
| 333 |
+
self._process_kwargs(**dict(arg, **kwargs))
|
| 334 |
+
self._skip_invalid = False
|
.venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/slider/_pad.py
ADDED
|
@@ -0,0 +1,159 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# --- THIS FILE IS AUTO-GENERATED ---
|
| 2 |
+
# Modifications will be overwitten the next time code generation run.
|
| 3 |
+
|
| 4 |
+
from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType
|
| 5 |
+
import copy as _copy
|
| 6 |
+
|
| 7 |
+
|
| 8 |
+
class Pad(_BaseLayoutHierarchyType):
|
| 9 |
+
_parent_path_str = "layout.slider"
|
| 10 |
+
_path_str = "layout.slider.pad"
|
| 11 |
+
_valid_props = {"b", "l", "r", "t"}
|
| 12 |
+
|
| 13 |
+
@property
|
| 14 |
+
def b(self):
|
| 15 |
+
"""
|
| 16 |
+
The amount of padding (in px) along the bottom of the
|
| 17 |
+
component.
|
| 18 |
+
|
| 19 |
+
The 'b' property is a number and may be specified as:
|
| 20 |
+
- An int or float
|
| 21 |
+
|
| 22 |
+
Returns
|
| 23 |
+
-------
|
| 24 |
+
int|float
|
| 25 |
+
"""
|
| 26 |
+
return self["b"]
|
| 27 |
+
|
| 28 |
+
@b.setter
|
| 29 |
+
def b(self, val):
|
| 30 |
+
self["b"] = val
|
| 31 |
+
|
| 32 |
+
@property
|
| 33 |
+
def l(self):
|
| 34 |
+
"""
|
| 35 |
+
The amount of padding (in px) on the left side of the
|
| 36 |
+
component.
|
| 37 |
+
|
| 38 |
+
The 'l' property is a number and may be specified as:
|
| 39 |
+
- An int or float
|
| 40 |
+
|
| 41 |
+
Returns
|
| 42 |
+
-------
|
| 43 |
+
int|float
|
| 44 |
+
"""
|
| 45 |
+
return self["l"]
|
| 46 |
+
|
| 47 |
+
@l.setter
|
| 48 |
+
def l(self, val):
|
| 49 |
+
self["l"] = val
|
| 50 |
+
|
| 51 |
+
@property
|
| 52 |
+
def r(self):
|
| 53 |
+
"""
|
| 54 |
+
The amount of padding (in px) on the right side of the
|
| 55 |
+
component.
|
| 56 |
+
|
| 57 |
+
The 'r' property is a number and may be specified as:
|
| 58 |
+
- An int or float
|
| 59 |
+
|
| 60 |
+
Returns
|
| 61 |
+
-------
|
| 62 |
+
int|float
|
| 63 |
+
"""
|
| 64 |
+
return self["r"]
|
| 65 |
+
|
| 66 |
+
@r.setter
|
| 67 |
+
def r(self, val):
|
| 68 |
+
self["r"] = val
|
| 69 |
+
|
| 70 |
+
@property
|
| 71 |
+
def t(self):
|
| 72 |
+
"""
|
| 73 |
+
The amount of padding (in px) along the top of the component.
|
| 74 |
+
|
| 75 |
+
The 't' property is a number and may be specified as:
|
| 76 |
+
- An int or float
|
| 77 |
+
|
| 78 |
+
Returns
|
| 79 |
+
-------
|
| 80 |
+
int|float
|
| 81 |
+
"""
|
| 82 |
+
return self["t"]
|
| 83 |
+
|
| 84 |
+
@t.setter
|
| 85 |
+
def t(self, val):
|
| 86 |
+
self["t"] = val
|
| 87 |
+
|
| 88 |
+
@property
|
| 89 |
+
def _prop_descriptions(self):
|
| 90 |
+
return """\
|
| 91 |
+
b
|
| 92 |
+
The amount of padding (in px) along the bottom of the
|
| 93 |
+
component.
|
| 94 |
+
l
|
| 95 |
+
The amount of padding (in px) on the left side of the
|
| 96 |
+
component.
|
| 97 |
+
r
|
| 98 |
+
The amount of padding (in px) on the right side of the
|
| 99 |
+
component.
|
| 100 |
+
t
|
| 101 |
+
The amount of padding (in px) along the top of the
|
| 102 |
+
component.
|
| 103 |
+
"""
|
| 104 |
+
|
| 105 |
+
def __init__(self, arg=None, b=None, l=None, r=None, t=None, **kwargs):
|
| 106 |
+
"""
|
| 107 |
+
Construct a new Pad object
|
| 108 |
+
|
| 109 |
+
Set the padding of the slider component along each side.
|
| 110 |
+
|
| 111 |
+
Parameters
|
| 112 |
+
----------
|
| 113 |
+
arg
|
| 114 |
+
dict of properties compatible with this constructor or
|
| 115 |
+
an instance of
|
| 116 |
+
:class:`plotly.graph_objs.layout.slider.Pad`
|
| 117 |
+
b
|
| 118 |
+
The amount of padding (in px) along the bottom of the
|
| 119 |
+
component.
|
| 120 |
+
l
|
| 121 |
+
The amount of padding (in px) on the left side of the
|
| 122 |
+
component.
|
| 123 |
+
r
|
| 124 |
+
The amount of padding (in px) on the right side of the
|
| 125 |
+
component.
|
| 126 |
+
t
|
| 127 |
+
The amount of padding (in px) along the top of the
|
| 128 |
+
component.
|
| 129 |
+
|
| 130 |
+
Returns
|
| 131 |
+
-------
|
| 132 |
+
Pad
|
| 133 |
+
"""
|
| 134 |
+
super().__init__("pad")
|
| 135 |
+
if "_parent" in kwargs:
|
| 136 |
+
self._parent = kwargs["_parent"]
|
| 137 |
+
return
|
| 138 |
+
|
| 139 |
+
if arg is None:
|
| 140 |
+
arg = {}
|
| 141 |
+
elif isinstance(arg, self.__class__):
|
| 142 |
+
arg = arg.to_plotly_json()
|
| 143 |
+
elif isinstance(arg, dict):
|
| 144 |
+
arg = _copy.copy(arg)
|
| 145 |
+
else:
|
| 146 |
+
raise ValueError("""\
|
| 147 |
+
The first argument to the plotly.graph_objs.layout.slider.Pad
|
| 148 |
+
constructor must be a dict or
|
| 149 |
+
an instance of :class:`plotly.graph_objs.layout.slider.Pad`""")
|
| 150 |
+
|
| 151 |
+
self._skip_invalid = kwargs.pop("skip_invalid", False)
|
| 152 |
+
self._validate = kwargs.pop("_validate", True)
|
| 153 |
+
|
| 154 |
+
self._set_property("b", arg, b)
|
| 155 |
+
self._set_property("l", arg, l)
|
| 156 |
+
self._set_property("r", arg, r)
|
| 157 |
+
self._set_property("t", arg, t)
|
| 158 |
+
self._process_kwargs(**dict(arg, **kwargs))
|
| 159 |
+
self._skip_invalid = False
|
.venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/slider/_step.py
ADDED
|
@@ -0,0 +1,354 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# --- THIS FILE IS AUTO-GENERATED ---
|
| 2 |
+
# Modifications will be overwitten the next time code generation run.
|
| 3 |
+
|
| 4 |
+
from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType
|
| 5 |
+
import copy as _copy
|
| 6 |
+
|
| 7 |
+
|
| 8 |
+
class Step(_BaseLayoutHierarchyType):
|
| 9 |
+
_parent_path_str = "layout.slider"
|
| 10 |
+
_path_str = "layout.slider.step"
|
| 11 |
+
_valid_props = {
|
| 12 |
+
"args",
|
| 13 |
+
"execute",
|
| 14 |
+
"label",
|
| 15 |
+
"method",
|
| 16 |
+
"name",
|
| 17 |
+
"templateitemname",
|
| 18 |
+
"value",
|
| 19 |
+
"visible",
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
@property
|
| 23 |
+
def args(self):
|
| 24 |
+
"""
|
| 25 |
+
Sets the arguments values to be passed to the Plotly method set
|
| 26 |
+
in `method` on slide.
|
| 27 |
+
|
| 28 |
+
The 'args' property is an info array that may be specified as:
|
| 29 |
+
|
| 30 |
+
* a list or tuple of up to 3 elements where:
|
| 31 |
+
(0) The 'args[0]' property accepts values of any type
|
| 32 |
+
(1) The 'args[1]' property accepts values of any type
|
| 33 |
+
(2) The 'args[2]' property accepts values of any type
|
| 34 |
+
|
| 35 |
+
Returns
|
| 36 |
+
-------
|
| 37 |
+
list
|
| 38 |
+
"""
|
| 39 |
+
return self["args"]
|
| 40 |
+
|
| 41 |
+
@args.setter
|
| 42 |
+
def args(self, val):
|
| 43 |
+
self["args"] = val
|
| 44 |
+
|
| 45 |
+
@property
|
| 46 |
+
def execute(self):
|
| 47 |
+
"""
|
| 48 |
+
When true, the API method is executed. When false, all other
|
| 49 |
+
behaviors are the same and command execution is skipped. This
|
| 50 |
+
may be useful when hooking into, for example, the
|
| 51 |
+
`plotly_sliderchange` method and executing the API command
|
| 52 |
+
manually without losing the benefit of the slider automatically
|
| 53 |
+
binding to the state of the plot through the specification of
|
| 54 |
+
`method` and `args`.
|
| 55 |
+
|
| 56 |
+
The 'execute' property is a boolean and must be specified as:
|
| 57 |
+
- A boolean value: True or False
|
| 58 |
+
|
| 59 |
+
Returns
|
| 60 |
+
-------
|
| 61 |
+
bool
|
| 62 |
+
"""
|
| 63 |
+
return self["execute"]
|
| 64 |
+
|
| 65 |
+
@execute.setter
|
| 66 |
+
def execute(self, val):
|
| 67 |
+
self["execute"] = val
|
| 68 |
+
|
| 69 |
+
@property
|
| 70 |
+
def label(self):
|
| 71 |
+
"""
|
| 72 |
+
Sets the text label to appear on the slider
|
| 73 |
+
|
| 74 |
+
The 'label' property is a string and must be specified as:
|
| 75 |
+
- A string
|
| 76 |
+
- A number that will be converted to a string
|
| 77 |
+
|
| 78 |
+
Returns
|
| 79 |
+
-------
|
| 80 |
+
str
|
| 81 |
+
"""
|
| 82 |
+
return self["label"]
|
| 83 |
+
|
| 84 |
+
@label.setter
|
| 85 |
+
def label(self, val):
|
| 86 |
+
self["label"] = val
|
| 87 |
+
|
| 88 |
+
@property
|
| 89 |
+
def method(self):
|
| 90 |
+
"""
|
| 91 |
+
Sets the Plotly method to be called when the slider value is
|
| 92 |
+
changed. If the `skip` method is used, the API slider will
|
| 93 |
+
function as normal but will perform no API calls and will not
|
| 94 |
+
bind automatically to state updates. This may be used to create
|
| 95 |
+
a component interface and attach to slider events manually via
|
| 96 |
+
JavaScript.
|
| 97 |
+
|
| 98 |
+
The 'method' property is an enumeration that may be specified as:
|
| 99 |
+
- One of the following enumeration values:
|
| 100 |
+
['restyle', 'relayout', 'animate', 'update', 'skip']
|
| 101 |
+
|
| 102 |
+
Returns
|
| 103 |
+
-------
|
| 104 |
+
Any
|
| 105 |
+
"""
|
| 106 |
+
return self["method"]
|
| 107 |
+
|
| 108 |
+
@method.setter
|
| 109 |
+
def method(self, val):
|
| 110 |
+
self["method"] = val
|
| 111 |
+
|
| 112 |
+
@property
|
| 113 |
+
def name(self):
|
| 114 |
+
"""
|
| 115 |
+
When used in a template, named items are created in the output
|
| 116 |
+
figure in addition to any items the figure already has in this
|
| 117 |
+
array. You can modify these items in the output figure by
|
| 118 |
+
making your own item with `templateitemname` matching this
|
| 119 |
+
`name` alongside your modifications (including `visible: false`
|
| 120 |
+
or `enabled: false` to hide it). Has no effect outside of a
|
| 121 |
+
template.
|
| 122 |
+
|
| 123 |
+
The 'name' property is a string and must be specified as:
|
| 124 |
+
- A string
|
| 125 |
+
- A number that will be converted to a string
|
| 126 |
+
|
| 127 |
+
Returns
|
| 128 |
+
-------
|
| 129 |
+
str
|
| 130 |
+
"""
|
| 131 |
+
return self["name"]
|
| 132 |
+
|
| 133 |
+
@name.setter
|
| 134 |
+
def name(self, val):
|
| 135 |
+
self["name"] = val
|
| 136 |
+
|
| 137 |
+
@property
|
| 138 |
+
def templateitemname(self):
|
| 139 |
+
"""
|
| 140 |
+
Used to refer to a named item in this array in the template.
|
| 141 |
+
Named items from the template will be created even without a
|
| 142 |
+
matching item in the input figure, but you can modify one by
|
| 143 |
+
making an item with `templateitemname` matching its `name`,
|
| 144 |
+
alongside your modifications (including `visible: false` or
|
| 145 |
+
`enabled: false` to hide it). If there is no template or no
|
| 146 |
+
matching item, this item will be hidden unless you explicitly
|
| 147 |
+
show it with `visible: true`.
|
| 148 |
+
|
| 149 |
+
The 'templateitemname' property is a string and must be specified as:
|
| 150 |
+
- A string
|
| 151 |
+
- A number that will be converted to a string
|
| 152 |
+
|
| 153 |
+
Returns
|
| 154 |
+
-------
|
| 155 |
+
str
|
| 156 |
+
"""
|
| 157 |
+
return self["templateitemname"]
|
| 158 |
+
|
| 159 |
+
@templateitemname.setter
|
| 160 |
+
def templateitemname(self, val):
|
| 161 |
+
self["templateitemname"] = val
|
| 162 |
+
|
| 163 |
+
@property
|
| 164 |
+
def value(self):
|
| 165 |
+
"""
|
| 166 |
+
Sets the value of the slider step, used to refer to the step
|
| 167 |
+
programatically. Defaults to the slider label if not provided.
|
| 168 |
+
|
| 169 |
+
The 'value' property is a string and must be specified as:
|
| 170 |
+
- A string
|
| 171 |
+
- A number that will be converted to a string
|
| 172 |
+
|
| 173 |
+
Returns
|
| 174 |
+
-------
|
| 175 |
+
str
|
| 176 |
+
"""
|
| 177 |
+
return self["value"]
|
| 178 |
+
|
| 179 |
+
@value.setter
|
| 180 |
+
def value(self, val):
|
| 181 |
+
self["value"] = val
|
| 182 |
+
|
| 183 |
+
@property
|
| 184 |
+
def visible(self):
|
| 185 |
+
"""
|
| 186 |
+
Determines whether or not this step is included in the slider.
|
| 187 |
+
|
| 188 |
+
The 'visible' property is a boolean and must be specified as:
|
| 189 |
+
- A boolean value: True or False
|
| 190 |
+
|
| 191 |
+
Returns
|
| 192 |
+
-------
|
| 193 |
+
bool
|
| 194 |
+
"""
|
| 195 |
+
return self["visible"]
|
| 196 |
+
|
| 197 |
+
@visible.setter
|
| 198 |
+
def visible(self, val):
|
| 199 |
+
self["visible"] = val
|
| 200 |
+
|
| 201 |
+
@property
|
| 202 |
+
def _prop_descriptions(self):
|
| 203 |
+
return """\
|
| 204 |
+
args
|
| 205 |
+
Sets the arguments values to be passed to the Plotly
|
| 206 |
+
method set in `method` on slide.
|
| 207 |
+
execute
|
| 208 |
+
When true, the API method is executed. When false, all
|
| 209 |
+
other behaviors are the same and command execution is
|
| 210 |
+
skipped. This may be useful when hooking into, for
|
| 211 |
+
example, the `plotly_sliderchange` method and executing
|
| 212 |
+
the API command manually without losing the benefit of
|
| 213 |
+
the slider automatically binding to the state of the
|
| 214 |
+
plot through the specification of `method` and `args`.
|
| 215 |
+
label
|
| 216 |
+
Sets the text label to appear on the slider
|
| 217 |
+
method
|
| 218 |
+
Sets the Plotly method to be called when the slider
|
| 219 |
+
value is changed. If the `skip` method is used, the API
|
| 220 |
+
slider will function as normal but will perform no API
|
| 221 |
+
calls and will not bind automatically to state updates.
|
| 222 |
+
This may be used to create a component interface and
|
| 223 |
+
attach to slider events manually via JavaScript.
|
| 224 |
+
name
|
| 225 |
+
When used in a template, named items are created in the
|
| 226 |
+
output figure in addition to any items the figure
|
| 227 |
+
already has in this array. You can modify these items
|
| 228 |
+
in the output figure by making your own item with
|
| 229 |
+
`templateitemname` matching this `name` alongside your
|
| 230 |
+
modifications (including `visible: false` or `enabled:
|
| 231 |
+
false` to hide it). Has no effect outside of a
|
| 232 |
+
template.
|
| 233 |
+
templateitemname
|
| 234 |
+
Used to refer to a named item in this array in the
|
| 235 |
+
template. Named items from the template will be created
|
| 236 |
+
even without a matching item in the input figure, but
|
| 237 |
+
you can modify one by making an item with
|
| 238 |
+
`templateitemname` matching its `name`, alongside your
|
| 239 |
+
modifications (including `visible: false` or `enabled:
|
| 240 |
+
false` to hide it). If there is no template or no
|
| 241 |
+
matching item, this item will be hidden unless you
|
| 242 |
+
explicitly show it with `visible: true`.
|
| 243 |
+
value
|
| 244 |
+
Sets the value of the slider step, used to refer to the
|
| 245 |
+
step programatically. Defaults to the slider label if
|
| 246 |
+
not provided.
|
| 247 |
+
visible
|
| 248 |
+
Determines whether or not this step is included in the
|
| 249 |
+
slider.
|
| 250 |
+
"""
|
| 251 |
+
|
| 252 |
+
def __init__(
|
| 253 |
+
self,
|
| 254 |
+
arg=None,
|
| 255 |
+
args=None,
|
| 256 |
+
execute=None,
|
| 257 |
+
label=None,
|
| 258 |
+
method=None,
|
| 259 |
+
name=None,
|
| 260 |
+
templateitemname=None,
|
| 261 |
+
value=None,
|
| 262 |
+
visible=None,
|
| 263 |
+
**kwargs,
|
| 264 |
+
):
|
| 265 |
+
"""
|
| 266 |
+
Construct a new Step object
|
| 267 |
+
|
| 268 |
+
Parameters
|
| 269 |
+
----------
|
| 270 |
+
arg
|
| 271 |
+
dict of properties compatible with this constructor or
|
| 272 |
+
an instance of
|
| 273 |
+
:class:`plotly.graph_objs.layout.slider.Step`
|
| 274 |
+
args
|
| 275 |
+
Sets the arguments values to be passed to the Plotly
|
| 276 |
+
method set in `method` on slide.
|
| 277 |
+
execute
|
| 278 |
+
When true, the API method is executed. When false, all
|
| 279 |
+
other behaviors are the same and command execution is
|
| 280 |
+
skipped. This may be useful when hooking into, for
|
| 281 |
+
example, the `plotly_sliderchange` method and executing
|
| 282 |
+
the API command manually without losing the benefit of
|
| 283 |
+
the slider automatically binding to the state of the
|
| 284 |
+
plot through the specification of `method` and `args`.
|
| 285 |
+
label
|
| 286 |
+
Sets the text label to appear on the slider
|
| 287 |
+
method
|
| 288 |
+
Sets the Plotly method to be called when the slider
|
| 289 |
+
value is changed. If the `skip` method is used, the API
|
| 290 |
+
slider will function as normal but will perform no API
|
| 291 |
+
calls and will not bind automatically to state updates.
|
| 292 |
+
This may be used to create a component interface and
|
| 293 |
+
attach to slider events manually via JavaScript.
|
| 294 |
+
name
|
| 295 |
+
When used in a template, named items are created in the
|
| 296 |
+
output figure in addition to any items the figure
|
| 297 |
+
already has in this array. You can modify these items
|
| 298 |
+
in the output figure by making your own item with
|
| 299 |
+
`templateitemname` matching this `name` alongside your
|
| 300 |
+
modifications (including `visible: false` or `enabled:
|
| 301 |
+
false` to hide it). Has no effect outside of a
|
| 302 |
+
template.
|
| 303 |
+
templateitemname
|
| 304 |
+
Used to refer to a named item in this array in the
|
| 305 |
+
template. Named items from the template will be created
|
| 306 |
+
even without a matching item in the input figure, but
|
| 307 |
+
you can modify one by making an item with
|
| 308 |
+
`templateitemname` matching its `name`, alongside your
|
| 309 |
+
modifications (including `visible: false` or `enabled:
|
| 310 |
+
false` to hide it). If there is no template or no
|
| 311 |
+
matching item, this item will be hidden unless you
|
| 312 |
+
explicitly show it with `visible: true`.
|
| 313 |
+
value
|
| 314 |
+
Sets the value of the slider step, used to refer to the
|
| 315 |
+
step programatically. Defaults to the slider label if
|
| 316 |
+
not provided.
|
| 317 |
+
visible
|
| 318 |
+
Determines whether or not this step is included in the
|
| 319 |
+
slider.
|
| 320 |
+
|
| 321 |
+
Returns
|
| 322 |
+
-------
|
| 323 |
+
Step
|
| 324 |
+
"""
|
| 325 |
+
super().__init__("steps")
|
| 326 |
+
if "_parent" in kwargs:
|
| 327 |
+
self._parent = kwargs["_parent"]
|
| 328 |
+
return
|
| 329 |
+
|
| 330 |
+
if arg is None:
|
| 331 |
+
arg = {}
|
| 332 |
+
elif isinstance(arg, self.__class__):
|
| 333 |
+
arg = arg.to_plotly_json()
|
| 334 |
+
elif isinstance(arg, dict):
|
| 335 |
+
arg = _copy.copy(arg)
|
| 336 |
+
else:
|
| 337 |
+
raise ValueError("""\
|
| 338 |
+
The first argument to the plotly.graph_objs.layout.slider.Step
|
| 339 |
+
constructor must be a dict or
|
| 340 |
+
an instance of :class:`plotly.graph_objs.layout.slider.Step`""")
|
| 341 |
+
|
| 342 |
+
self._skip_invalid = kwargs.pop("skip_invalid", False)
|
| 343 |
+
self._validate = kwargs.pop("_validate", True)
|
| 344 |
+
|
| 345 |
+
self._set_property("args", arg, args)
|
| 346 |
+
self._set_property("execute", arg, execute)
|
| 347 |
+
self._set_property("label", arg, label)
|
| 348 |
+
self._set_property("method", arg, method)
|
| 349 |
+
self._set_property("name", arg, name)
|
| 350 |
+
self._set_property("templateitemname", arg, templateitemname)
|
| 351 |
+
self._set_property("value", arg, value)
|
| 352 |
+
self._set_property("visible", arg, visible)
|
| 353 |
+
self._process_kwargs(**dict(arg, **kwargs))
|
| 354 |
+
self._skip_invalid = False
|
.venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/slider/_transition.py
ADDED
|
@@ -0,0 +1,109 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# --- THIS FILE IS AUTO-GENERATED ---
|
| 2 |
+
# Modifications will be overwitten the next time code generation run.
|
| 3 |
+
|
| 4 |
+
from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType
|
| 5 |
+
import copy as _copy
|
| 6 |
+
|
| 7 |
+
|
| 8 |
+
class Transition(_BaseLayoutHierarchyType):
|
| 9 |
+
_parent_path_str = "layout.slider"
|
| 10 |
+
_path_str = "layout.slider.transition"
|
| 11 |
+
_valid_props = {"duration", "easing"}
|
| 12 |
+
|
| 13 |
+
@property
|
| 14 |
+
def duration(self):
|
| 15 |
+
"""
|
| 16 |
+
Sets the duration of the slider transition
|
| 17 |
+
|
| 18 |
+
The 'duration' property is a number and may be specified as:
|
| 19 |
+
- An int or float in the interval [0, inf]
|
| 20 |
+
|
| 21 |
+
Returns
|
| 22 |
+
-------
|
| 23 |
+
int|float
|
| 24 |
+
"""
|
| 25 |
+
return self["duration"]
|
| 26 |
+
|
| 27 |
+
@duration.setter
|
| 28 |
+
def duration(self, val):
|
| 29 |
+
self["duration"] = val
|
| 30 |
+
|
| 31 |
+
@property
|
| 32 |
+
def easing(self):
|
| 33 |
+
"""
|
| 34 |
+
Sets the easing function of the slider transition
|
| 35 |
+
|
| 36 |
+
The 'easing' property is an enumeration that may be specified as:
|
| 37 |
+
- One of the following enumeration values:
|
| 38 |
+
['linear', 'quad', 'cubic', 'sin', 'exp', 'circle',
|
| 39 |
+
'elastic', 'back', 'bounce', 'linear-in', 'quad-in',
|
| 40 |
+
'cubic-in', 'sin-in', 'exp-in', 'circle-in', 'elastic-in',
|
| 41 |
+
'back-in', 'bounce-in', 'linear-out', 'quad-out',
|
| 42 |
+
'cubic-out', 'sin-out', 'exp-out', 'circle-out',
|
| 43 |
+
'elastic-out', 'back-out', 'bounce-out', 'linear-in-out',
|
| 44 |
+
'quad-in-out', 'cubic-in-out', 'sin-in-out', 'exp-in-out',
|
| 45 |
+
'circle-in-out', 'elastic-in-out', 'back-in-out',
|
| 46 |
+
'bounce-in-out']
|
| 47 |
+
|
| 48 |
+
Returns
|
| 49 |
+
-------
|
| 50 |
+
Any
|
| 51 |
+
"""
|
| 52 |
+
return self["easing"]
|
| 53 |
+
|
| 54 |
+
@easing.setter
|
| 55 |
+
def easing(self, val):
|
| 56 |
+
self["easing"] = val
|
| 57 |
+
|
| 58 |
+
@property
|
| 59 |
+
def _prop_descriptions(self):
|
| 60 |
+
return """\
|
| 61 |
+
duration
|
| 62 |
+
Sets the duration of the slider transition
|
| 63 |
+
easing
|
| 64 |
+
Sets the easing function of the slider transition
|
| 65 |
+
"""
|
| 66 |
+
|
| 67 |
+
def __init__(self, arg=None, duration=None, easing=None, **kwargs):
|
| 68 |
+
"""
|
| 69 |
+
Construct a new Transition object
|
| 70 |
+
|
| 71 |
+
Parameters
|
| 72 |
+
----------
|
| 73 |
+
arg
|
| 74 |
+
dict of properties compatible with this constructor or
|
| 75 |
+
an instance of
|
| 76 |
+
:class:`plotly.graph_objs.layout.slider.Transition`
|
| 77 |
+
duration
|
| 78 |
+
Sets the duration of the slider transition
|
| 79 |
+
easing
|
| 80 |
+
Sets the easing function of the slider transition
|
| 81 |
+
|
| 82 |
+
Returns
|
| 83 |
+
-------
|
| 84 |
+
Transition
|
| 85 |
+
"""
|
| 86 |
+
super().__init__("transition")
|
| 87 |
+
if "_parent" in kwargs:
|
| 88 |
+
self._parent = kwargs["_parent"]
|
| 89 |
+
return
|
| 90 |
+
|
| 91 |
+
if arg is None:
|
| 92 |
+
arg = {}
|
| 93 |
+
elif isinstance(arg, self.__class__):
|
| 94 |
+
arg = arg.to_plotly_json()
|
| 95 |
+
elif isinstance(arg, dict):
|
| 96 |
+
arg = _copy.copy(arg)
|
| 97 |
+
else:
|
| 98 |
+
raise ValueError("""\
|
| 99 |
+
The first argument to the plotly.graph_objs.layout.slider.Transition
|
| 100 |
+
constructor must be a dict or
|
| 101 |
+
an instance of :class:`plotly.graph_objs.layout.slider.Transition`""")
|
| 102 |
+
|
| 103 |
+
self._skip_invalid = kwargs.pop("skip_invalid", False)
|
| 104 |
+
self._validate = kwargs.pop("_validate", True)
|
| 105 |
+
|
| 106 |
+
self._set_property("duration", arg, duration)
|
| 107 |
+
self._set_property("easing", arg, easing)
|
| 108 |
+
self._process_kwargs(**dict(arg, **kwargs))
|
| 109 |
+
self._skip_invalid = False
|
.venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/slider/currentvalue/.___init__.py
ADDED
|
Binary file (4.1 kB). View file
|
|
|
.venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/slider/currentvalue/.___pycache__
ADDED
|
Binary file (4.1 kB). View file
|
|
|
.venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/slider/currentvalue/.__font.py
ADDED
|
Binary file (4.1 kB). View file
|
|
|
.venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/slider/currentvalue/__init__.py
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import sys
|
| 2 |
+
from typing import TYPE_CHECKING
|
| 3 |
+
|
| 4 |
+
if TYPE_CHECKING:
|
| 5 |
+
from ._font import Font
|
| 6 |
+
else:
|
| 7 |
+
from _plotly_utils.importers import relative_import
|
| 8 |
+
|
| 9 |
+
__all__, __getattr__, __dir__ = relative_import(__name__, [], ["._font.Font"])
|
.venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/slider/currentvalue/_font.py
ADDED
|
@@ -0,0 +1,334 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# --- THIS FILE IS AUTO-GENERATED ---
|
| 2 |
+
# Modifications will be overwitten the next time code generation run.
|
| 3 |
+
|
| 4 |
+
from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType
|
| 5 |
+
import copy as _copy
|
| 6 |
+
|
| 7 |
+
|
| 8 |
+
class Font(_BaseLayoutHierarchyType):
|
| 9 |
+
_parent_path_str = "layout.slider.currentvalue"
|
| 10 |
+
_path_str = "layout.slider.currentvalue.font"
|
| 11 |
+
_valid_props = {
|
| 12 |
+
"color",
|
| 13 |
+
"family",
|
| 14 |
+
"lineposition",
|
| 15 |
+
"shadow",
|
| 16 |
+
"size",
|
| 17 |
+
"style",
|
| 18 |
+
"textcase",
|
| 19 |
+
"variant",
|
| 20 |
+
"weight",
|
| 21 |
+
}
|
| 22 |
+
|
| 23 |
+
@property
|
| 24 |
+
def color(self):
|
| 25 |
+
"""
|
| 26 |
+
The 'color' property is a color and may be specified as:
|
| 27 |
+
- A hex string (e.g. '#ff0000')
|
| 28 |
+
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
|
| 29 |
+
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
|
| 30 |
+
- An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
|
| 31 |
+
- A named CSS color: see https://plotly.com/python/css-colors/ for a list
|
| 32 |
+
|
| 33 |
+
Returns
|
| 34 |
+
-------
|
| 35 |
+
str
|
| 36 |
+
"""
|
| 37 |
+
return self["color"]
|
| 38 |
+
|
| 39 |
+
@color.setter
|
| 40 |
+
def color(self, val):
|
| 41 |
+
self["color"] = val
|
| 42 |
+
|
| 43 |
+
@property
|
| 44 |
+
def family(self):
|
| 45 |
+
"""
|
| 46 |
+
HTML font family - the typeface that will be applied by the web
|
| 47 |
+
browser. The web browser can only apply a font if it is
|
| 48 |
+
available on the system where it runs. Provide multiple font
|
| 49 |
+
families, separated by commas, to indicate the order in which
|
| 50 |
+
to apply fonts if they aren't available.
|
| 51 |
+
|
| 52 |
+
The 'family' property is a string and must be specified as:
|
| 53 |
+
- A non-empty string
|
| 54 |
+
|
| 55 |
+
Returns
|
| 56 |
+
-------
|
| 57 |
+
str
|
| 58 |
+
"""
|
| 59 |
+
return self["family"]
|
| 60 |
+
|
| 61 |
+
@family.setter
|
| 62 |
+
def family(self, val):
|
| 63 |
+
self["family"] = val
|
| 64 |
+
|
| 65 |
+
@property
|
| 66 |
+
def lineposition(self):
|
| 67 |
+
"""
|
| 68 |
+
Sets the kind of decoration line(s) with text, such as an
|
| 69 |
+
"under", "over" or "through" as well as combinations e.g.
|
| 70 |
+
"under+over", etc.
|
| 71 |
+
|
| 72 |
+
The 'lineposition' property is a flaglist and may be specified
|
| 73 |
+
as a string containing:
|
| 74 |
+
- Any combination of ['under', 'over', 'through'] joined with '+' characters
|
| 75 |
+
(e.g. 'under+over')
|
| 76 |
+
OR exactly one of ['none'] (e.g. 'none')
|
| 77 |
+
|
| 78 |
+
Returns
|
| 79 |
+
-------
|
| 80 |
+
Any
|
| 81 |
+
"""
|
| 82 |
+
return self["lineposition"]
|
| 83 |
+
|
| 84 |
+
@lineposition.setter
|
| 85 |
+
def lineposition(self, val):
|
| 86 |
+
self["lineposition"] = val
|
| 87 |
+
|
| 88 |
+
@property
|
| 89 |
+
def shadow(self):
|
| 90 |
+
"""
|
| 91 |
+
Sets the shape and color of the shadow behind text. "auto"
|
| 92 |
+
places minimal shadow and applies contrast text font color. See
|
| 93 |
+
https://developer.mozilla.org/en-US/docs/Web/CSS/text-shadow
|
| 94 |
+
for additional options.
|
| 95 |
+
|
| 96 |
+
The 'shadow' property is a string and must be specified as:
|
| 97 |
+
- A string
|
| 98 |
+
- A number that will be converted to a string
|
| 99 |
+
|
| 100 |
+
Returns
|
| 101 |
+
-------
|
| 102 |
+
str
|
| 103 |
+
"""
|
| 104 |
+
return self["shadow"]
|
| 105 |
+
|
| 106 |
+
@shadow.setter
|
| 107 |
+
def shadow(self, val):
|
| 108 |
+
self["shadow"] = val
|
| 109 |
+
|
| 110 |
+
@property
|
| 111 |
+
def size(self):
|
| 112 |
+
"""
|
| 113 |
+
The 'size' property is a number and may be specified as:
|
| 114 |
+
- An int or float in the interval [1, inf]
|
| 115 |
+
|
| 116 |
+
Returns
|
| 117 |
+
-------
|
| 118 |
+
int|float
|
| 119 |
+
"""
|
| 120 |
+
return self["size"]
|
| 121 |
+
|
| 122 |
+
@size.setter
|
| 123 |
+
def size(self, val):
|
| 124 |
+
self["size"] = val
|
| 125 |
+
|
| 126 |
+
@property
|
| 127 |
+
def style(self):
|
| 128 |
+
"""
|
| 129 |
+
Sets whether a font should be styled with a normal or italic
|
| 130 |
+
face from its family.
|
| 131 |
+
|
| 132 |
+
The 'style' property is an enumeration that may be specified as:
|
| 133 |
+
- One of the following enumeration values:
|
| 134 |
+
['normal', 'italic']
|
| 135 |
+
|
| 136 |
+
Returns
|
| 137 |
+
-------
|
| 138 |
+
Any
|
| 139 |
+
"""
|
| 140 |
+
return self["style"]
|
| 141 |
+
|
| 142 |
+
@style.setter
|
| 143 |
+
def style(self, val):
|
| 144 |
+
self["style"] = val
|
| 145 |
+
|
| 146 |
+
@property
|
| 147 |
+
def textcase(self):
|
| 148 |
+
"""
|
| 149 |
+
Sets capitalization of text. It can be used to make text appear
|
| 150 |
+
in all-uppercase or all-lowercase, or with each word
|
| 151 |
+
capitalized.
|
| 152 |
+
|
| 153 |
+
The 'textcase' property is an enumeration that may be specified as:
|
| 154 |
+
- One of the following enumeration values:
|
| 155 |
+
['normal', 'word caps', 'upper', 'lower']
|
| 156 |
+
|
| 157 |
+
Returns
|
| 158 |
+
-------
|
| 159 |
+
Any
|
| 160 |
+
"""
|
| 161 |
+
return self["textcase"]
|
| 162 |
+
|
| 163 |
+
@textcase.setter
|
| 164 |
+
def textcase(self, val):
|
| 165 |
+
self["textcase"] = val
|
| 166 |
+
|
| 167 |
+
@property
|
| 168 |
+
def variant(self):
|
| 169 |
+
"""
|
| 170 |
+
Sets the variant of the font.
|
| 171 |
+
|
| 172 |
+
The 'variant' property is an enumeration that may be specified as:
|
| 173 |
+
- One of the following enumeration values:
|
| 174 |
+
['normal', 'small-caps', 'all-small-caps',
|
| 175 |
+
'all-petite-caps', 'petite-caps', 'unicase']
|
| 176 |
+
|
| 177 |
+
Returns
|
| 178 |
+
-------
|
| 179 |
+
Any
|
| 180 |
+
"""
|
| 181 |
+
return self["variant"]
|
| 182 |
+
|
| 183 |
+
@variant.setter
|
| 184 |
+
def variant(self, val):
|
| 185 |
+
self["variant"] = val
|
| 186 |
+
|
| 187 |
+
@property
|
| 188 |
+
def weight(self):
|
| 189 |
+
"""
|
| 190 |
+
Sets the weight (or boldness) of the font.
|
| 191 |
+
|
| 192 |
+
The 'weight' property is a integer and may be specified as:
|
| 193 |
+
- An int (or float that will be cast to an int)
|
| 194 |
+
in the interval [1, 1000]
|
| 195 |
+
OR exactly one of ['normal', 'bold'] (e.g. 'bold')
|
| 196 |
+
|
| 197 |
+
Returns
|
| 198 |
+
-------
|
| 199 |
+
int
|
| 200 |
+
"""
|
| 201 |
+
return self["weight"]
|
| 202 |
+
|
| 203 |
+
@weight.setter
|
| 204 |
+
def weight(self, val):
|
| 205 |
+
self["weight"] = val
|
| 206 |
+
|
| 207 |
+
@property
|
| 208 |
+
def _prop_descriptions(self):
|
| 209 |
+
return """\
|
| 210 |
+
color
|
| 211 |
+
|
| 212 |
+
family
|
| 213 |
+
HTML font family - the typeface that will be applied by
|
| 214 |
+
the web browser. The web browser can only apply a font
|
| 215 |
+
if it is available on the system where it runs. Provide
|
| 216 |
+
multiple font families, separated by commas, to
|
| 217 |
+
indicate the order in which to apply fonts if they
|
| 218 |
+
aren't available.
|
| 219 |
+
lineposition
|
| 220 |
+
Sets the kind of decoration line(s) with text, such as
|
| 221 |
+
an "under", "over" or "through" as well as combinations
|
| 222 |
+
e.g. "under+over", etc.
|
| 223 |
+
shadow
|
| 224 |
+
Sets the shape and color of the shadow behind text.
|
| 225 |
+
"auto" places minimal shadow and applies contrast text
|
| 226 |
+
font color. See https://developer.mozilla.org/en-
|
| 227 |
+
US/docs/Web/CSS/text-shadow for additional options.
|
| 228 |
+
size
|
| 229 |
+
|
| 230 |
+
style
|
| 231 |
+
Sets whether a font should be styled with a normal or
|
| 232 |
+
italic face from its family.
|
| 233 |
+
textcase
|
| 234 |
+
Sets capitalization of text. It can be used to make
|
| 235 |
+
text appear in all-uppercase or all-lowercase, or with
|
| 236 |
+
each word capitalized.
|
| 237 |
+
variant
|
| 238 |
+
Sets the variant of the font.
|
| 239 |
+
weight
|
| 240 |
+
Sets the weight (or boldness) of the font.
|
| 241 |
+
"""
|
| 242 |
+
|
| 243 |
+
def __init__(
|
| 244 |
+
self,
|
| 245 |
+
arg=None,
|
| 246 |
+
color=None,
|
| 247 |
+
family=None,
|
| 248 |
+
lineposition=None,
|
| 249 |
+
shadow=None,
|
| 250 |
+
size=None,
|
| 251 |
+
style=None,
|
| 252 |
+
textcase=None,
|
| 253 |
+
variant=None,
|
| 254 |
+
weight=None,
|
| 255 |
+
**kwargs,
|
| 256 |
+
):
|
| 257 |
+
"""
|
| 258 |
+
Construct a new Font object
|
| 259 |
+
|
| 260 |
+
Sets the font of the current value label text.
|
| 261 |
+
|
| 262 |
+
Parameters
|
| 263 |
+
----------
|
| 264 |
+
arg
|
| 265 |
+
dict of properties compatible with this constructor or
|
| 266 |
+
an instance of :class:`plotly.graph_objs.layout.slider.
|
| 267 |
+
currentvalue.Font`
|
| 268 |
+
color
|
| 269 |
+
|
| 270 |
+
family
|
| 271 |
+
HTML font family - the typeface that will be applied by
|
| 272 |
+
the web browser. The web browser can only apply a font
|
| 273 |
+
if it is available on the system where it runs. Provide
|
| 274 |
+
multiple font families, separated by commas, to
|
| 275 |
+
indicate the order in which to apply fonts if they
|
| 276 |
+
aren't available.
|
| 277 |
+
lineposition
|
| 278 |
+
Sets the kind of decoration line(s) with text, such as
|
| 279 |
+
an "under", "over" or "through" as well as combinations
|
| 280 |
+
e.g. "under+over", etc.
|
| 281 |
+
shadow
|
| 282 |
+
Sets the shape and color of the shadow behind text.
|
| 283 |
+
"auto" places minimal shadow and applies contrast text
|
| 284 |
+
font color. See https://developer.mozilla.org/en-
|
| 285 |
+
US/docs/Web/CSS/text-shadow for additional options.
|
| 286 |
+
size
|
| 287 |
+
|
| 288 |
+
style
|
| 289 |
+
Sets whether a font should be styled with a normal or
|
| 290 |
+
italic face from its family.
|
| 291 |
+
textcase
|
| 292 |
+
Sets capitalization of text. It can be used to make
|
| 293 |
+
text appear in all-uppercase or all-lowercase, or with
|
| 294 |
+
each word capitalized.
|
| 295 |
+
variant
|
| 296 |
+
Sets the variant of the font.
|
| 297 |
+
weight
|
| 298 |
+
Sets the weight (or boldness) of the font.
|
| 299 |
+
|
| 300 |
+
Returns
|
| 301 |
+
-------
|
| 302 |
+
Font
|
| 303 |
+
"""
|
| 304 |
+
super().__init__("font")
|
| 305 |
+
if "_parent" in kwargs:
|
| 306 |
+
self._parent = kwargs["_parent"]
|
| 307 |
+
return
|
| 308 |
+
|
| 309 |
+
if arg is None:
|
| 310 |
+
arg = {}
|
| 311 |
+
elif isinstance(arg, self.__class__):
|
| 312 |
+
arg = arg.to_plotly_json()
|
| 313 |
+
elif isinstance(arg, dict):
|
| 314 |
+
arg = _copy.copy(arg)
|
| 315 |
+
else:
|
| 316 |
+
raise ValueError("""\
|
| 317 |
+
The first argument to the plotly.graph_objs.layout.slider.currentvalue.Font
|
| 318 |
+
constructor must be a dict or
|
| 319 |
+
an instance of :class:`plotly.graph_objs.layout.slider.currentvalue.Font`""")
|
| 320 |
+
|
| 321 |
+
self._skip_invalid = kwargs.pop("skip_invalid", False)
|
| 322 |
+
self._validate = kwargs.pop("_validate", True)
|
| 323 |
+
|
| 324 |
+
self._set_property("color", arg, color)
|
| 325 |
+
self._set_property("family", arg, family)
|
| 326 |
+
self._set_property("lineposition", arg, lineposition)
|
| 327 |
+
self._set_property("shadow", arg, shadow)
|
| 328 |
+
self._set_property("size", arg, size)
|
| 329 |
+
self._set_property("style", arg, style)
|
| 330 |
+
self._set_property("textcase", arg, textcase)
|
| 331 |
+
self._set_property("variant", arg, variant)
|
| 332 |
+
self._set_property("weight", arg, weight)
|
| 333 |
+
self._process_kwargs(**dict(arg, **kwargs))
|
| 334 |
+
self._skip_invalid = False
|
.venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/smith/.___init__.py
ADDED
|
Binary file (4.1 kB). View file
|
|
|
.venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/smith/.___pycache__
ADDED
|
Binary file (4.1 kB). View file
|
|
|
.venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/smith/.__domain.py
ADDED
|
Binary file (4.1 kB). View file
|
|
|
.venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/smith/.__imaginaryaxis.py
ADDED
|
Binary file (4.1 kB). View file
|
|
|
.venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/smith/.__realaxis.py
ADDED
|
Binary file (4.1 kB). View file
|
|
|
.venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/smith/._imaginaryaxis
ADDED
|
Binary file (4.1 kB). View file
|
|
|
.venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/smith/._realaxis
ADDED
|
Binary file (4.1 kB). View file
|
|
|
.venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/smith/__init__.py
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import sys
|
| 2 |
+
from typing import TYPE_CHECKING
|
| 3 |
+
|
| 4 |
+
if TYPE_CHECKING:
|
| 5 |
+
from ._domain import Domain
|
| 6 |
+
from ._imaginaryaxis import Imaginaryaxis
|
| 7 |
+
from ._realaxis import Realaxis
|
| 8 |
+
from . import imaginaryaxis
|
| 9 |
+
from . import realaxis
|
| 10 |
+
else:
|
| 11 |
+
from _plotly_utils.importers import relative_import
|
| 12 |
+
|
| 13 |
+
__all__, __getattr__, __dir__ = relative_import(
|
| 14 |
+
__name__,
|
| 15 |
+
[".imaginaryaxis", ".realaxis"],
|
| 16 |
+
["._domain.Domain", "._imaginaryaxis.Imaginaryaxis", "._realaxis.Realaxis"],
|
| 17 |
+
)
|
.venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/smith/_domain.py
ADDED
|
@@ -0,0 +1,170 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# --- THIS FILE IS AUTO-GENERATED ---
|
| 2 |
+
# Modifications will be overwitten the next time code generation run.
|
| 3 |
+
|
| 4 |
+
from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType
|
| 5 |
+
import copy as _copy
|
| 6 |
+
|
| 7 |
+
|
| 8 |
+
class Domain(_BaseLayoutHierarchyType):
|
| 9 |
+
_parent_path_str = "layout.smith"
|
| 10 |
+
_path_str = "layout.smith.domain"
|
| 11 |
+
_valid_props = {"column", "row", "x", "y"}
|
| 12 |
+
|
| 13 |
+
@property
|
| 14 |
+
def column(self):
|
| 15 |
+
"""
|
| 16 |
+
If there is a layout grid, use the domain for this column in
|
| 17 |
+
the grid for this smith subplot .
|
| 18 |
+
|
| 19 |
+
The 'column' property is a integer and may be specified as:
|
| 20 |
+
- An int (or float that will be cast to an int)
|
| 21 |
+
in the interval [0, 9223372036854775807]
|
| 22 |
+
|
| 23 |
+
Returns
|
| 24 |
+
-------
|
| 25 |
+
int
|
| 26 |
+
"""
|
| 27 |
+
return self["column"]
|
| 28 |
+
|
| 29 |
+
@column.setter
|
| 30 |
+
def column(self, val):
|
| 31 |
+
self["column"] = val
|
| 32 |
+
|
| 33 |
+
@property
|
| 34 |
+
def row(self):
|
| 35 |
+
"""
|
| 36 |
+
If there is a layout grid, use the domain for this row in the
|
| 37 |
+
grid for this smith subplot .
|
| 38 |
+
|
| 39 |
+
The 'row' property is a integer and may be specified as:
|
| 40 |
+
- An int (or float that will be cast to an int)
|
| 41 |
+
in the interval [0, 9223372036854775807]
|
| 42 |
+
|
| 43 |
+
Returns
|
| 44 |
+
-------
|
| 45 |
+
int
|
| 46 |
+
"""
|
| 47 |
+
return self["row"]
|
| 48 |
+
|
| 49 |
+
@row.setter
|
| 50 |
+
def row(self, val):
|
| 51 |
+
self["row"] = val
|
| 52 |
+
|
| 53 |
+
@property
|
| 54 |
+
def x(self):
|
| 55 |
+
"""
|
| 56 |
+
Sets the horizontal domain of this smith subplot (in plot
|
| 57 |
+
fraction).
|
| 58 |
+
|
| 59 |
+
The 'x' property is an info array that may be specified as:
|
| 60 |
+
|
| 61 |
+
* a list or tuple of 2 elements where:
|
| 62 |
+
(0) The 'x[0]' property is a number and may be specified as:
|
| 63 |
+
- An int or float in the interval [0, 1]
|
| 64 |
+
(1) The 'x[1]' property is a number and may be specified as:
|
| 65 |
+
- An int or float in the interval [0, 1]
|
| 66 |
+
|
| 67 |
+
Returns
|
| 68 |
+
-------
|
| 69 |
+
list
|
| 70 |
+
"""
|
| 71 |
+
return self["x"]
|
| 72 |
+
|
| 73 |
+
@x.setter
|
| 74 |
+
def x(self, val):
|
| 75 |
+
self["x"] = val
|
| 76 |
+
|
| 77 |
+
@property
|
| 78 |
+
def y(self):
|
| 79 |
+
"""
|
| 80 |
+
Sets the vertical domain of this smith subplot (in plot
|
| 81 |
+
fraction).
|
| 82 |
+
|
| 83 |
+
The 'y' property is an info array that may be specified as:
|
| 84 |
+
|
| 85 |
+
* a list or tuple of 2 elements where:
|
| 86 |
+
(0) The 'y[0]' property is a number and may be specified as:
|
| 87 |
+
- An int or float in the interval [0, 1]
|
| 88 |
+
(1) The 'y[1]' property is a number and may be specified as:
|
| 89 |
+
- An int or float in the interval [0, 1]
|
| 90 |
+
|
| 91 |
+
Returns
|
| 92 |
+
-------
|
| 93 |
+
list
|
| 94 |
+
"""
|
| 95 |
+
return self["y"]
|
| 96 |
+
|
| 97 |
+
@y.setter
|
| 98 |
+
def y(self, val):
|
| 99 |
+
self["y"] = val
|
| 100 |
+
|
| 101 |
+
@property
|
| 102 |
+
def _prop_descriptions(self):
|
| 103 |
+
return """\
|
| 104 |
+
column
|
| 105 |
+
If there is a layout grid, use the domain for this
|
| 106 |
+
column in the grid for this smith subplot .
|
| 107 |
+
row
|
| 108 |
+
If there is a layout grid, use the domain for this row
|
| 109 |
+
in the grid for this smith subplot .
|
| 110 |
+
x
|
| 111 |
+
Sets the horizontal domain of this smith subplot (in
|
| 112 |
+
plot fraction).
|
| 113 |
+
y
|
| 114 |
+
Sets the vertical domain of this smith subplot (in plot
|
| 115 |
+
fraction).
|
| 116 |
+
"""
|
| 117 |
+
|
| 118 |
+
def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs):
|
| 119 |
+
"""
|
| 120 |
+
Construct a new Domain object
|
| 121 |
+
|
| 122 |
+
Parameters
|
| 123 |
+
----------
|
| 124 |
+
arg
|
| 125 |
+
dict of properties compatible with this constructor or
|
| 126 |
+
an instance of
|
| 127 |
+
:class:`plotly.graph_objs.layout.smith.Domain`
|
| 128 |
+
column
|
| 129 |
+
If there is a layout grid, use the domain for this
|
| 130 |
+
column in the grid for this smith subplot .
|
| 131 |
+
row
|
| 132 |
+
If there is a layout grid, use the domain for this row
|
| 133 |
+
in the grid for this smith subplot .
|
| 134 |
+
x
|
| 135 |
+
Sets the horizontal domain of this smith subplot (in
|
| 136 |
+
plot fraction).
|
| 137 |
+
y
|
| 138 |
+
Sets the vertical domain of this smith subplot (in plot
|
| 139 |
+
fraction).
|
| 140 |
+
|
| 141 |
+
Returns
|
| 142 |
+
-------
|
| 143 |
+
Domain
|
| 144 |
+
"""
|
| 145 |
+
super().__init__("domain")
|
| 146 |
+
if "_parent" in kwargs:
|
| 147 |
+
self._parent = kwargs["_parent"]
|
| 148 |
+
return
|
| 149 |
+
|
| 150 |
+
if arg is None:
|
| 151 |
+
arg = {}
|
| 152 |
+
elif isinstance(arg, self.__class__):
|
| 153 |
+
arg = arg.to_plotly_json()
|
| 154 |
+
elif isinstance(arg, dict):
|
| 155 |
+
arg = _copy.copy(arg)
|
| 156 |
+
else:
|
| 157 |
+
raise ValueError("""\
|
| 158 |
+
The first argument to the plotly.graph_objs.layout.smith.Domain
|
| 159 |
+
constructor must be a dict or
|
| 160 |
+
an instance of :class:`plotly.graph_objs.layout.smith.Domain`""")
|
| 161 |
+
|
| 162 |
+
self._skip_invalid = kwargs.pop("skip_invalid", False)
|
| 163 |
+
self._validate = kwargs.pop("_validate", True)
|
| 164 |
+
|
| 165 |
+
self._set_property("column", arg, column)
|
| 166 |
+
self._set_property("row", arg, row)
|
| 167 |
+
self._set_property("x", arg, x)
|
| 168 |
+
self._set_property("y", arg, y)
|
| 169 |
+
self._process_kwargs(**dict(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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# --- THIS FILE IS AUTO-GENERATED ---
|
| 2 |
+
# Modifications will be overwitten the next time code generation run.
|
| 3 |
+
|
| 4 |
+
from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType
|
| 5 |
+
import copy as _copy
|
| 6 |
+
|
| 7 |
+
|
| 8 |
+
class Imaginaryaxis(_BaseLayoutHierarchyType):
|
| 9 |
+
_parent_path_str = "layout.smith"
|
| 10 |
+
_path_str = "layout.smith.imaginaryaxis"
|
| 11 |
+
_valid_props = {
|
| 12 |
+
"color",
|
| 13 |
+
"gridcolor",
|
| 14 |
+
"griddash",
|
| 15 |
+
"gridwidth",
|
| 16 |
+
"hoverformat",
|
| 17 |
+
"labelalias",
|
| 18 |
+
"layer",
|
| 19 |
+
"linecolor",
|
| 20 |
+
"linewidth",
|
| 21 |
+
"showgrid",
|
| 22 |
+
"showline",
|
| 23 |
+
"showticklabels",
|
| 24 |
+
"showtickprefix",
|
| 25 |
+
"showticksuffix",
|
| 26 |
+
"tickcolor",
|
| 27 |
+
"tickfont",
|
| 28 |
+
"tickformat",
|
| 29 |
+
"ticklen",
|
| 30 |
+
"tickprefix",
|
| 31 |
+
"ticks",
|
| 32 |
+
"ticksuffix",
|
| 33 |
+
"tickvals",
|
| 34 |
+
"tickvalssrc",
|
| 35 |
+
"tickwidth",
|
| 36 |
+
"visible",
|
| 37 |
+
}
|
| 38 |
+
|
| 39 |
+
@property
|
| 40 |
+
def color(self):
|
| 41 |
+
"""
|
| 42 |
+
Sets default for all colors associated with this axis all at
|
| 43 |
+
once: line, font, tick, and grid colors. Grid color is
|
| 44 |
+
lightened by blending this with the plot background Individual
|
| 45 |
+
pieces can override this.
|
| 46 |
+
|
| 47 |
+
The 'color' property is a color and may be specified as:
|
| 48 |
+
- A hex string (e.g. '#ff0000')
|
| 49 |
+
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
|
| 50 |
+
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
|
| 51 |
+
- An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
|
| 52 |
+
- A named CSS color: see https://plotly.com/python/css-colors/ for a list
|
| 53 |
+
|
| 54 |
+
Returns
|
| 55 |
+
-------
|
| 56 |
+
str
|
| 57 |
+
"""
|
| 58 |
+
return self["color"]
|
| 59 |
+
|
| 60 |
+
@color.setter
|
| 61 |
+
def color(self, val):
|
| 62 |
+
self["color"] = val
|
| 63 |
+
|
| 64 |
+
@property
|
| 65 |
+
def gridcolor(self):
|
| 66 |
+
"""
|
| 67 |
+
Sets the color of the grid lines.
|
| 68 |
+
|
| 69 |
+
The 'gridcolor' property is a color and may be specified as:
|
| 70 |
+
- A hex string (e.g. '#ff0000')
|
| 71 |
+
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
|
| 72 |
+
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
|
| 73 |
+
- An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
|
| 74 |
+
- A named CSS color: see https://plotly.com/python/css-colors/ for a list
|
| 75 |
+
|
| 76 |
+
Returns
|
| 77 |
+
-------
|
| 78 |
+
str
|
| 79 |
+
"""
|
| 80 |
+
return self["gridcolor"]
|
| 81 |
+
|
| 82 |
+
@gridcolor.setter
|
| 83 |
+
def gridcolor(self, val):
|
| 84 |
+
self["gridcolor"] = val
|
| 85 |
+
|
| 86 |
+
@property
|
| 87 |
+
def griddash(self):
|
| 88 |
+
"""
|
| 89 |
+
Sets the dash style of lines. Set to a dash type string
|
| 90 |
+
("solid", "dot", "dash", "longdash", "dashdot", or
|
| 91 |
+
"longdashdot") or a dash length list in px (eg
|
| 92 |
+
"5px,10px,2px,2px").
|
| 93 |
+
|
| 94 |
+
The 'griddash' property is an enumeration that may be specified as:
|
| 95 |
+
- One of the following dash styles:
|
| 96 |
+
['solid', 'dot', 'dash', 'longdash', 'dashdot', 'longdashdot']
|
| 97 |
+
- A string containing a dash length list in pixels or percentages
|
| 98 |
+
(e.g. '5px 10px 2px 2px', '5, 10, 2, 2', '10% 20% 40%', etc.)
|
| 99 |
+
|
| 100 |
+
Returns
|
| 101 |
+
-------
|
| 102 |
+
str
|
| 103 |
+
"""
|
| 104 |
+
return self["griddash"]
|
| 105 |
+
|
| 106 |
+
@griddash.setter
|
| 107 |
+
def griddash(self, val):
|
| 108 |
+
self["griddash"] = val
|
| 109 |
+
|
| 110 |
+
@property
|
| 111 |
+
def gridwidth(self):
|
| 112 |
+
"""
|
| 113 |
+
Sets the width (in px) of the grid lines.
|
| 114 |
+
|
| 115 |
+
The 'gridwidth' property is a number and may be specified as:
|
| 116 |
+
- An int or float in the interval [0, inf]
|
| 117 |
+
|
| 118 |
+
Returns
|
| 119 |
+
-------
|
| 120 |
+
int|float
|
| 121 |
+
"""
|
| 122 |
+
return self["gridwidth"]
|
| 123 |
+
|
| 124 |
+
@gridwidth.setter
|
| 125 |
+
def gridwidth(self, val):
|
| 126 |
+
self["gridwidth"] = val
|
| 127 |
+
|
| 128 |
+
@property
|
| 129 |
+
def hoverformat(self):
|
| 130 |
+
"""
|
| 131 |
+
Sets the hover text formatting rule using d3 formatting mini-
|
| 132 |
+
languages which are very similar to those in Python. For
|
| 133 |
+
numbers, see:
|
| 134 |
+
https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for
|
| 135 |
+
dates see: https://github.com/d3/d3-time-
|
| 136 |
+
format/tree/v2.2.3#locale_format. We add two items to d3's date
|
| 137 |
+
formatter: "%h" for half of the year as a decimal number as
|
| 138 |
+
well as "%{n}f" for fractional seconds with n digits. For
|
| 139 |
+
example, *2016-10-13 09:15:23.456* with tickformat
|
| 140 |
+
"%H~%M~%S.%2f" would display "09~15~23.46"
|
| 141 |
+
|
| 142 |
+
The 'hoverformat' property is a string and must be specified as:
|
| 143 |
+
- A string
|
| 144 |
+
- A number that will be converted to a string
|
| 145 |
+
|
| 146 |
+
Returns
|
| 147 |
+
-------
|
| 148 |
+
str
|
| 149 |
+
"""
|
| 150 |
+
return self["hoverformat"]
|
| 151 |
+
|
| 152 |
+
@hoverformat.setter
|
| 153 |
+
def hoverformat(self, val):
|
| 154 |
+
self["hoverformat"] = val
|
| 155 |
+
|
| 156 |
+
@property
|
| 157 |
+
def labelalias(self):
|
| 158 |
+
"""
|
| 159 |
+
Replacement text for specific tick or hover labels. For example
|
| 160 |
+
using {US: 'USA', CA: 'Canada'} changes US to USA and CA to
|
| 161 |
+
Canada. The labels we would have shown must match the keys
|
| 162 |
+
exactly, after adding any tickprefix or ticksuffix. For
|
| 163 |
+
negative numbers the minus sign symbol used (U+2212) is wider
|
| 164 |
+
than the regular ascii dash. That means you need to use −1
|
| 165 |
+
instead of -1. labelalias can be used with any axis type, and
|
| 166 |
+
both keys (if needed) and values (if desired) can include html-
|
| 167 |
+
like tags or MathJax.
|
| 168 |
+
|
| 169 |
+
The 'labelalias' property accepts values of any type
|
| 170 |
+
|
| 171 |
+
Returns
|
| 172 |
+
-------
|
| 173 |
+
Any
|
| 174 |
+
"""
|
| 175 |
+
return self["labelalias"]
|
| 176 |
+
|
| 177 |
+
@labelalias.setter
|
| 178 |
+
def labelalias(self, val):
|
| 179 |
+
self["labelalias"] = val
|
| 180 |
+
|
| 181 |
+
@property
|
| 182 |
+
def layer(self):
|
| 183 |
+
"""
|
| 184 |
+
Sets the layer on which this axis is displayed. If *above
|
| 185 |
+
traces*, this axis is displayed above all the subplot's traces
|
| 186 |
+
If *below traces*, this axis is displayed below all the
|
| 187 |
+
subplot's traces, but above the grid lines. Useful when used
|
| 188 |
+
together with scatter-like traces with `cliponaxis` set to
|
| 189 |
+
False to show markers and/or text nodes above this axis.
|
| 190 |
+
|
| 191 |
+
The 'layer' property is an enumeration that may be specified as:
|
| 192 |
+
- One of the following enumeration values:
|
| 193 |
+
['above traces', 'below traces']
|
| 194 |
+
|
| 195 |
+
Returns
|
| 196 |
+
-------
|
| 197 |
+
Any
|
| 198 |
+
"""
|
| 199 |
+
return self["layer"]
|
| 200 |
+
|
| 201 |
+
@layer.setter
|
| 202 |
+
def layer(self, val):
|
| 203 |
+
self["layer"] = val
|
| 204 |
+
|
| 205 |
+
@property
|
| 206 |
+
def linecolor(self):
|
| 207 |
+
"""
|
| 208 |
+
Sets the axis line color.
|
| 209 |
+
|
| 210 |
+
The 'linecolor' property is a color and may be specified as:
|
| 211 |
+
- A hex string (e.g. '#ff0000')
|
| 212 |
+
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
|
| 213 |
+
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
|
| 214 |
+
- An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
|
| 215 |
+
- A named CSS color: see https://plotly.com/python/css-colors/ for a list
|
| 216 |
+
|
| 217 |
+
Returns
|
| 218 |
+
-------
|
| 219 |
+
str
|
| 220 |
+
"""
|
| 221 |
+
return self["linecolor"]
|
| 222 |
+
|
| 223 |
+
@linecolor.setter
|
| 224 |
+
def linecolor(self, val):
|
| 225 |
+
self["linecolor"] = val
|
| 226 |
+
|
| 227 |
+
@property
|
| 228 |
+
def linewidth(self):
|
| 229 |
+
"""
|
| 230 |
+
Sets the width (in px) of the axis line.
|
| 231 |
+
|
| 232 |
+
The 'linewidth' property is a number and may be specified as:
|
| 233 |
+
- An int or float in the interval [0, inf]
|
| 234 |
+
|
| 235 |
+
Returns
|
| 236 |
+
-------
|
| 237 |
+
int|float
|
| 238 |
+
"""
|
| 239 |
+
return self["linewidth"]
|
| 240 |
+
|
| 241 |
+
@linewidth.setter
|
| 242 |
+
def linewidth(self, val):
|
| 243 |
+
self["linewidth"] = val
|
| 244 |
+
|
| 245 |
+
@property
|
| 246 |
+
def showgrid(self):
|
| 247 |
+
"""
|
| 248 |
+
Determines whether or not grid lines are drawn. If True, the
|
| 249 |
+
grid lines are drawn at every tick mark.
|
| 250 |
+
|
| 251 |
+
The 'showgrid' property is a boolean and must be specified as:
|
| 252 |
+
- A boolean value: True or False
|
| 253 |
+
|
| 254 |
+
Returns
|
| 255 |
+
-------
|
| 256 |
+
bool
|
| 257 |
+
"""
|
| 258 |
+
return self["showgrid"]
|
| 259 |
+
|
| 260 |
+
@showgrid.setter
|
| 261 |
+
def showgrid(self, val):
|
| 262 |
+
self["showgrid"] = val
|
| 263 |
+
|
| 264 |
+
@property
|
| 265 |
+
def showline(self):
|
| 266 |
+
"""
|
| 267 |
+
Determines whether or not a line bounding this axis is drawn.
|
| 268 |
+
|
| 269 |
+
The 'showline' property is a boolean and must be specified as:
|
| 270 |
+
- A boolean value: True or False
|
| 271 |
+
|
| 272 |
+
Returns
|
| 273 |
+
-------
|
| 274 |
+
bool
|
| 275 |
+
"""
|
| 276 |
+
return self["showline"]
|
| 277 |
+
|
| 278 |
+
@showline.setter
|
| 279 |
+
def showline(self, val):
|
| 280 |
+
self["showline"] = val
|
| 281 |
+
|
| 282 |
+
@property
|
| 283 |
+
def showticklabels(self):
|
| 284 |
+
"""
|
| 285 |
+
Determines whether or not the tick labels are drawn.
|
| 286 |
+
|
| 287 |
+
The 'showticklabels' property is a boolean and must be specified as:
|
| 288 |
+
- A boolean value: True or False
|
| 289 |
+
|
| 290 |
+
Returns
|
| 291 |
+
-------
|
| 292 |
+
bool
|
| 293 |
+
"""
|
| 294 |
+
return self["showticklabels"]
|
| 295 |
+
|
| 296 |
+
@showticklabels.setter
|
| 297 |
+
def showticklabels(self, val):
|
| 298 |
+
self["showticklabels"] = val
|
| 299 |
+
|
| 300 |
+
@property
|
| 301 |
+
def showtickprefix(self):
|
| 302 |
+
"""
|
| 303 |
+
If "all", all tick labels are displayed with a prefix. If
|
| 304 |
+
"first", only the first tick is displayed with a prefix. If
|
| 305 |
+
"last", only the last tick is displayed with a suffix. If
|
| 306 |
+
"none", tick prefixes are hidden.
|
| 307 |
+
|
| 308 |
+
The 'showtickprefix' property is an enumeration that may be specified as:
|
| 309 |
+
- One of the following enumeration values:
|
| 310 |
+
['all', 'first', 'last', 'none']
|
| 311 |
+
|
| 312 |
+
Returns
|
| 313 |
+
-------
|
| 314 |
+
Any
|
| 315 |
+
"""
|
| 316 |
+
return self["showtickprefix"]
|
| 317 |
+
|
| 318 |
+
@showtickprefix.setter
|
| 319 |
+
def showtickprefix(self, val):
|
| 320 |
+
self["showtickprefix"] = val
|
| 321 |
+
|
| 322 |
+
@property
|
| 323 |
+
def showticksuffix(self):
|
| 324 |
+
"""
|
| 325 |
+
Same as `showtickprefix` but for tick suffixes.
|
| 326 |
+
|
| 327 |
+
The 'showticksuffix' property is an enumeration that may be specified as:
|
| 328 |
+
- One of the following enumeration values:
|
| 329 |
+
['all', 'first', 'last', 'none']
|
| 330 |
+
|
| 331 |
+
Returns
|
| 332 |
+
-------
|
| 333 |
+
Any
|
| 334 |
+
"""
|
| 335 |
+
return self["showticksuffix"]
|
| 336 |
+
|
| 337 |
+
@showticksuffix.setter
|
| 338 |
+
def showticksuffix(self, val):
|
| 339 |
+
self["showticksuffix"] = val
|
| 340 |
+
|
| 341 |
+
@property
|
| 342 |
+
def tickcolor(self):
|
| 343 |
+
"""
|
| 344 |
+
Sets the tick color.
|
| 345 |
+
|
| 346 |
+
The 'tickcolor' property is a color and may be specified as:
|
| 347 |
+
- A hex string (e.g. '#ff0000')
|
| 348 |
+
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
|
| 349 |
+
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
|
| 350 |
+
- An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
|
| 351 |
+
- A named CSS color: see https://plotly.com/python/css-colors/ for a list
|
| 352 |
+
|
| 353 |
+
Returns
|
| 354 |
+
-------
|
| 355 |
+
str
|
| 356 |
+
"""
|
| 357 |
+
return self["tickcolor"]
|
| 358 |
+
|
| 359 |
+
@tickcolor.setter
|
| 360 |
+
def tickcolor(self, val):
|
| 361 |
+
self["tickcolor"] = val
|
| 362 |
+
|
| 363 |
+
@property
|
| 364 |
+
def tickfont(self):
|
| 365 |
+
"""
|
| 366 |
+
Sets the tick font.
|
| 367 |
+
|
| 368 |
+
The 'tickfont' property is an instance of Tickfont
|
| 369 |
+
that may be specified as:
|
| 370 |
+
- An instance of :class:`plotly.graph_objs.layout.smith.imaginaryaxis.Tickfont`
|
| 371 |
+
- A dict of string/value properties that will be passed
|
| 372 |
+
to the Tickfont constructor
|
| 373 |
+
|
| 374 |
+
Returns
|
| 375 |
+
-------
|
| 376 |
+
plotly.graph_objs.layout.smith.imaginaryaxis.Tickfont
|
| 377 |
+
"""
|
| 378 |
+
return self["tickfont"]
|
| 379 |
+
|
| 380 |
+
@tickfont.setter
|
| 381 |
+
def tickfont(self, val):
|
| 382 |
+
self["tickfont"] = val
|
| 383 |
+
|
| 384 |
+
@property
|
| 385 |
+
def tickformat(self):
|
| 386 |
+
"""
|
| 387 |
+
Sets the tick label formatting rule using d3 formatting mini-
|
| 388 |
+
languages which are very similar to those in Python. For
|
| 389 |
+
numbers, see:
|
| 390 |
+
https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for
|
| 391 |
+
dates see: https://github.com/d3/d3-time-
|
| 392 |
+
format/tree/v2.2.3#locale_format. We add two items to d3's date
|
| 393 |
+
formatter: "%h" for half of the year as a decimal number as
|
| 394 |
+
well as "%{n}f" for fractional seconds with n digits. For
|
| 395 |
+
example, *2016-10-13 09:15:23.456* with tickformat
|
| 396 |
+
"%H~%M~%S.%2f" would display "09~15~23.46"
|
| 397 |
+
|
| 398 |
+
The 'tickformat' property is a string and must be specified as:
|
| 399 |
+
- A string
|
| 400 |
+
- A number that will be converted to a string
|
| 401 |
+
|
| 402 |
+
Returns
|
| 403 |
+
-------
|
| 404 |
+
str
|
| 405 |
+
"""
|
| 406 |
+
return self["tickformat"]
|
| 407 |
+
|
| 408 |
+
@tickformat.setter
|
| 409 |
+
def tickformat(self, val):
|
| 410 |
+
self["tickformat"] = val
|
| 411 |
+
|
| 412 |
+
@property
|
| 413 |
+
def ticklen(self):
|
| 414 |
+
"""
|
| 415 |
+
Sets the tick length (in px).
|
| 416 |
+
|
| 417 |
+
The 'ticklen' property is a number and may be specified as:
|
| 418 |
+
- An int or float in the interval [0, inf]
|
| 419 |
+
|
| 420 |
+
Returns
|
| 421 |
+
-------
|
| 422 |
+
int|float
|
| 423 |
+
"""
|
| 424 |
+
return self["ticklen"]
|
| 425 |
+
|
| 426 |
+
@ticklen.setter
|
| 427 |
+
def ticklen(self, val):
|
| 428 |
+
self["ticklen"] = val
|
| 429 |
+
|
| 430 |
+
@property
|
| 431 |
+
def tickprefix(self):
|
| 432 |
+
"""
|
| 433 |
+
Sets a tick label prefix.
|
| 434 |
+
|
| 435 |
+
The 'tickprefix' property is a string and must be specified as:
|
| 436 |
+
- A string
|
| 437 |
+
- A number that will be converted to a string
|
| 438 |
+
|
| 439 |
+
Returns
|
| 440 |
+
-------
|
| 441 |
+
str
|
| 442 |
+
"""
|
| 443 |
+
return self["tickprefix"]
|
| 444 |
+
|
| 445 |
+
@tickprefix.setter
|
| 446 |
+
def tickprefix(self, val):
|
| 447 |
+
self["tickprefix"] = val
|
| 448 |
+
|
| 449 |
+
@property
|
| 450 |
+
def ticks(self):
|
| 451 |
+
"""
|
| 452 |
+
Determines whether ticks are drawn or not. If "", this axis'
|
| 453 |
+
ticks are not drawn. If "outside" ("inside"), this axis' are
|
| 454 |
+
drawn outside (inside) the axis lines.
|
| 455 |
+
|
| 456 |
+
The 'ticks' property is an enumeration that may be specified as:
|
| 457 |
+
- One of the following enumeration values:
|
| 458 |
+
['outside', 'inside', '']
|
| 459 |
+
|
| 460 |
+
Returns
|
| 461 |
+
-------
|
| 462 |
+
Any
|
| 463 |
+
"""
|
| 464 |
+
return self["ticks"]
|
| 465 |
+
|
| 466 |
+
@ticks.setter
|
| 467 |
+
def ticks(self, val):
|
| 468 |
+
self["ticks"] = val
|
| 469 |
+
|
| 470 |
+
@property
|
| 471 |
+
def ticksuffix(self):
|
| 472 |
+
"""
|
| 473 |
+
Sets a tick label suffix.
|
| 474 |
+
|
| 475 |
+
The 'ticksuffix' property is a string and must be specified as:
|
| 476 |
+
- A string
|
| 477 |
+
- A number that will be converted to a string
|
| 478 |
+
|
| 479 |
+
Returns
|
| 480 |
+
-------
|
| 481 |
+
str
|
| 482 |
+
"""
|
| 483 |
+
return self["ticksuffix"]
|
| 484 |
+
|
| 485 |
+
@ticksuffix.setter
|
| 486 |
+
def ticksuffix(self, val):
|
| 487 |
+
self["ticksuffix"] = val
|
| 488 |
+
|
| 489 |
+
@property
|
| 490 |
+
def tickvals(self):
|
| 491 |
+
"""
|
| 492 |
+
Sets the values at which ticks on this axis appear. Defaults to
|
| 493 |
+
`realaxis.tickvals` plus the same as negatives and zero.
|
| 494 |
+
|
| 495 |
+
The 'tickvals' property is an array that may be specified as a tuple,
|
| 496 |
+
list, numpy array, or pandas Series
|
| 497 |
+
|
| 498 |
+
Returns
|
| 499 |
+
-------
|
| 500 |
+
numpy.ndarray
|
| 501 |
+
"""
|
| 502 |
+
return self["tickvals"]
|
| 503 |
+
|
| 504 |
+
@tickvals.setter
|
| 505 |
+
def tickvals(self, val):
|
| 506 |
+
self["tickvals"] = val
|
| 507 |
+
|
| 508 |
+
@property
|
| 509 |
+
def tickvalssrc(self):
|
| 510 |
+
"""
|
| 511 |
+
Sets the source reference on Chart Studio Cloud for `tickvals`.
|
| 512 |
+
|
| 513 |
+
The 'tickvalssrc' property must be specified as a string or
|
| 514 |
+
as a plotly.grid_objs.Column object
|
| 515 |
+
|
| 516 |
+
Returns
|
| 517 |
+
-------
|
| 518 |
+
str
|
| 519 |
+
"""
|
| 520 |
+
return self["tickvalssrc"]
|
| 521 |
+
|
| 522 |
+
@tickvalssrc.setter
|
| 523 |
+
def tickvalssrc(self, val):
|
| 524 |
+
self["tickvalssrc"] = val
|
| 525 |
+
|
| 526 |
+
@property
|
| 527 |
+
def tickwidth(self):
|
| 528 |
+
"""
|
| 529 |
+
Sets the tick width (in px).
|
| 530 |
+
|
| 531 |
+
The 'tickwidth' property is a number and may be specified as:
|
| 532 |
+
- An int or float in the interval [0, inf]
|
| 533 |
+
|
| 534 |
+
Returns
|
| 535 |
+
-------
|
| 536 |
+
int|float
|
| 537 |
+
"""
|
| 538 |
+
return self["tickwidth"]
|
| 539 |
+
|
| 540 |
+
@tickwidth.setter
|
| 541 |
+
def tickwidth(self, val):
|
| 542 |
+
self["tickwidth"] = val
|
| 543 |
+
|
| 544 |
+
@property
|
| 545 |
+
def visible(self):
|
| 546 |
+
"""
|
| 547 |
+
A single toggle to hide the axis while preserving interaction
|
| 548 |
+
like dragging. Default is true when a cheater plot is present
|
| 549 |
+
on the axis, otherwise false
|
| 550 |
+
|
| 551 |
+
The 'visible' property is a boolean and must be specified as:
|
| 552 |
+
- A boolean value: True or False
|
| 553 |
+
|
| 554 |
+
Returns
|
| 555 |
+
-------
|
| 556 |
+
bool
|
| 557 |
+
"""
|
| 558 |
+
return self["visible"]
|
| 559 |
+
|
| 560 |
+
@visible.setter
|
| 561 |
+
def visible(self, val):
|
| 562 |
+
self["visible"] = val
|
| 563 |
+
|
| 564 |
+
@property
|
| 565 |
+
def _prop_descriptions(self):
|
| 566 |
+
return """\
|
| 567 |
+
color
|
| 568 |
+
Sets default for all colors associated with this axis
|
| 569 |
+
all at once: line, font, tick, and grid colors. Grid
|
| 570 |
+
color is lightened by blending this with the plot
|
| 571 |
+
background Individual pieces can override this.
|
| 572 |
+
gridcolor
|
| 573 |
+
Sets the color of the grid lines.
|
| 574 |
+
griddash
|
| 575 |
+
Sets the dash style of lines. Set to a dash type string
|
| 576 |
+
("solid", "dot", "dash", "longdash", "dashdot", or
|
| 577 |
+
"longdashdot") or a dash length list in px (eg
|
| 578 |
+
"5px,10px,2px,2px").
|
| 579 |
+
gridwidth
|
| 580 |
+
Sets the width (in px) of the grid lines.
|
| 581 |
+
hoverformat
|
| 582 |
+
Sets the hover text formatting rule using d3 formatting
|
| 583 |
+
mini-languages which are very similar to those in
|
| 584 |
+
Python. For numbers, see:
|
| 585 |
+
https://github.com/d3/d3-format/tree/v1.4.5#d3-format.
|
| 586 |
+
And for dates see: https://github.com/d3/d3-time-
|
| 587 |
+
format/tree/v2.2.3#locale_format. We add two items to
|
| 588 |
+
d3's date formatter: "%h" for half of the year as a
|
| 589 |
+
decimal number as well as "%{n}f" for fractional
|
| 590 |
+
seconds with n digits. For example, *2016-10-13
|
| 591 |
+
09:15:23.456* with tickformat "%H~%M~%S.%2f" would
|
| 592 |
+
display "09~15~23.46"
|
| 593 |
+
labelalias
|
| 594 |
+
Replacement text for specific tick or hover labels. For
|
| 595 |
+
example using {US: 'USA', CA: 'Canada'} changes US to
|
| 596 |
+
USA and CA to Canada. The labels we would have shown
|
| 597 |
+
must match the keys exactly, after adding any
|
| 598 |
+
tickprefix or ticksuffix. For negative numbers the
|
| 599 |
+
minus sign symbol used (U+2212) is wider than the
|
| 600 |
+
regular ascii dash. That means you need to use −1
|
| 601 |
+
instead of -1. labelalias can be used with any axis
|
| 602 |
+
type, and both keys (if needed) and values (if desired)
|
| 603 |
+
can include html-like tags or MathJax.
|
| 604 |
+
layer
|
| 605 |
+
Sets the layer on which this axis is displayed. If
|
| 606 |
+
*above traces*, this axis is displayed above all the
|
| 607 |
+
subplot's traces If *below traces*, this axis is
|
| 608 |
+
displayed below all the subplot's traces, but above the
|
| 609 |
+
grid lines. Useful when used together with scatter-like
|
| 610 |
+
traces with `cliponaxis` set to False to show markers
|
| 611 |
+
and/or text nodes above this axis.
|
| 612 |
+
linecolor
|
| 613 |
+
Sets the axis line color.
|
| 614 |
+
linewidth
|
| 615 |
+
Sets the width (in px) of the axis line.
|
| 616 |
+
showgrid
|
| 617 |
+
Determines whether or not grid lines are drawn. If
|
| 618 |
+
True, the grid lines are drawn at every tick mark.
|
| 619 |
+
showline
|
| 620 |
+
Determines whether or not a line bounding this axis is
|
| 621 |
+
drawn.
|
| 622 |
+
showticklabels
|
| 623 |
+
Determines whether or not the tick labels are drawn.
|
| 624 |
+
showtickprefix
|
| 625 |
+
If "all", all tick labels are displayed with a prefix.
|
| 626 |
+
If "first", only the first tick is displayed with a
|
| 627 |
+
prefix. If "last", only the last tick is displayed with
|
| 628 |
+
a suffix. If "none", tick prefixes are hidden.
|
| 629 |
+
showticksuffix
|
| 630 |
+
Same as `showtickprefix` but for tick suffixes.
|
| 631 |
+
tickcolor
|
| 632 |
+
Sets the tick color.
|
| 633 |
+
tickfont
|
| 634 |
+
Sets the tick font.
|
| 635 |
+
tickformat
|
| 636 |
+
Sets the tick label formatting rule using d3 formatting
|
| 637 |
+
mini-languages which are very similar to those in
|
| 638 |
+
Python. For numbers, see:
|
| 639 |
+
https://github.com/d3/d3-format/tree/v1.4.5#d3-format.
|
| 640 |
+
And for dates see: https://github.com/d3/d3-time-
|
| 641 |
+
format/tree/v2.2.3#locale_format. We add two items to
|
| 642 |
+
d3's date formatter: "%h" for half of the year as a
|
| 643 |
+
decimal number as well as "%{n}f" for fractional
|
| 644 |
+
seconds with n digits. For example, *2016-10-13
|
| 645 |
+
09:15:23.456* with tickformat "%H~%M~%S.%2f" would
|
| 646 |
+
display "09~15~23.46"
|
| 647 |
+
ticklen
|
| 648 |
+
Sets the tick length (in px).
|
| 649 |
+
tickprefix
|
| 650 |
+
Sets a tick label prefix.
|
| 651 |
+
ticks
|
| 652 |
+
Determines whether ticks are drawn or not. If "", this
|
| 653 |
+
axis' ticks are not drawn. If "outside" ("inside"),
|
| 654 |
+
this axis' are drawn outside (inside) the axis lines.
|
| 655 |
+
ticksuffix
|
| 656 |
+
Sets a tick label suffix.
|
| 657 |
+
tickvals
|
| 658 |
+
Sets the values at which ticks on this axis appear.
|
| 659 |
+
Defaults to `realaxis.tickvals` plus the same as
|
| 660 |
+
negatives and zero.
|
| 661 |
+
tickvalssrc
|
| 662 |
+
Sets the source reference on Chart Studio Cloud for
|
| 663 |
+
`tickvals`.
|
| 664 |
+
tickwidth
|
| 665 |
+
Sets the tick width (in px).
|
| 666 |
+
visible
|
| 667 |
+
A single toggle to hide the axis while preserving
|
| 668 |
+
interaction like dragging. Default is true when a
|
| 669 |
+
cheater plot is present on the axis, otherwise false
|
| 670 |
+
"""
|
| 671 |
+
|
| 672 |
+
def __init__(
|
| 673 |
+
self,
|
| 674 |
+
arg=None,
|
| 675 |
+
color=None,
|
| 676 |
+
gridcolor=None,
|
| 677 |
+
griddash=None,
|
| 678 |
+
gridwidth=None,
|
| 679 |
+
hoverformat=None,
|
| 680 |
+
labelalias=None,
|
| 681 |
+
layer=None,
|
| 682 |
+
linecolor=None,
|
| 683 |
+
linewidth=None,
|
| 684 |
+
showgrid=None,
|
| 685 |
+
showline=None,
|
| 686 |
+
showticklabels=None,
|
| 687 |
+
showtickprefix=None,
|
| 688 |
+
showticksuffix=None,
|
| 689 |
+
tickcolor=None,
|
| 690 |
+
tickfont=None,
|
| 691 |
+
tickformat=None,
|
| 692 |
+
ticklen=None,
|
| 693 |
+
tickprefix=None,
|
| 694 |
+
ticks=None,
|
| 695 |
+
ticksuffix=None,
|
| 696 |
+
tickvals=None,
|
| 697 |
+
tickvalssrc=None,
|
| 698 |
+
tickwidth=None,
|
| 699 |
+
visible=None,
|
| 700 |
+
**kwargs,
|
| 701 |
+
):
|
| 702 |
+
"""
|
| 703 |
+
Construct a new Imaginaryaxis object
|
| 704 |
+
|
| 705 |
+
Parameters
|
| 706 |
+
----------
|
| 707 |
+
arg
|
| 708 |
+
dict of properties compatible with this constructor or
|
| 709 |
+
an instance of
|
| 710 |
+
:class:`plotly.graph_objs.layout.smith.Imaginaryaxis`
|
| 711 |
+
color
|
| 712 |
+
Sets default for all colors associated with this axis
|
| 713 |
+
all at once: line, font, tick, and grid colors. Grid
|
| 714 |
+
color is lightened by blending this with the plot
|
| 715 |
+
background Individual pieces can override this.
|
| 716 |
+
gridcolor
|
| 717 |
+
Sets the color of the grid lines.
|
| 718 |
+
griddash
|
| 719 |
+
Sets the dash style of lines. Set to a dash type string
|
| 720 |
+
("solid", "dot", "dash", "longdash", "dashdot", or
|
| 721 |
+
"longdashdot") or a dash length list in px (eg
|
| 722 |
+
"5px,10px,2px,2px").
|
| 723 |
+
gridwidth
|
| 724 |
+
Sets the width (in px) of the grid lines.
|
| 725 |
+
hoverformat
|
| 726 |
+
Sets the hover text formatting rule using d3 formatting
|
| 727 |
+
mini-languages which are very similar to those in
|
| 728 |
+
Python. For numbers, see:
|
| 729 |
+
https://github.com/d3/d3-format/tree/v1.4.5#d3-format.
|
| 730 |
+
And for dates see: https://github.com/d3/d3-time-
|
| 731 |
+
format/tree/v2.2.3#locale_format. We add two items to
|
| 732 |
+
d3's date formatter: "%h" for half of the year as a
|
| 733 |
+
decimal number as well as "%{n}f" for fractional
|
| 734 |
+
seconds with n digits. For example, *2016-10-13
|
| 735 |
+
09:15:23.456* with tickformat "%H~%M~%S.%2f" would
|
| 736 |
+
display "09~15~23.46"
|
| 737 |
+
labelalias
|
| 738 |
+
Replacement text for specific tick or hover labels. For
|
| 739 |
+
example using {US: 'USA', CA: 'Canada'} changes US to
|
| 740 |
+
USA and CA to Canada. The labels we would have shown
|
| 741 |
+
must match the keys exactly, after adding any
|
| 742 |
+
tickprefix or ticksuffix. For negative numbers the
|
| 743 |
+
minus sign symbol used (U+2212) is wider than the
|
| 744 |
+
regular ascii dash. That means you need to use −1
|
| 745 |
+
instead of -1. labelalias can be used with any axis
|
| 746 |
+
type, and both keys (if needed) and values (if desired)
|
| 747 |
+
can include html-like tags or MathJax.
|
| 748 |
+
layer
|
| 749 |
+
Sets the layer on which this axis is displayed. If
|
| 750 |
+
*above traces*, this axis is displayed above all the
|
| 751 |
+
subplot's traces If *below traces*, this axis is
|
| 752 |
+
displayed below all the subplot's traces, but above the
|
| 753 |
+
grid lines. Useful when used together with scatter-like
|
| 754 |
+
traces with `cliponaxis` set to False to show markers
|
| 755 |
+
and/or text nodes above this axis.
|
| 756 |
+
linecolor
|
| 757 |
+
Sets the axis line color.
|
| 758 |
+
linewidth
|
| 759 |
+
Sets the width (in px) of the axis line.
|
| 760 |
+
showgrid
|
| 761 |
+
Determines whether or not grid lines are drawn. If
|
| 762 |
+
True, the grid lines are drawn at every tick mark.
|
| 763 |
+
showline
|
| 764 |
+
Determines whether or not a line bounding this axis is
|
| 765 |
+
drawn.
|
| 766 |
+
showticklabels
|
| 767 |
+
Determines whether or not the tick labels are drawn.
|
| 768 |
+
showtickprefix
|
| 769 |
+
If "all", all tick labels are displayed with a prefix.
|
| 770 |
+
If "first", only the first tick is displayed with a
|
| 771 |
+
prefix. If "last", only the last tick is displayed with
|
| 772 |
+
a suffix. If "none", tick prefixes are hidden.
|
| 773 |
+
showticksuffix
|
| 774 |
+
Same as `showtickprefix` but for tick suffixes.
|
| 775 |
+
tickcolor
|
| 776 |
+
Sets the tick color.
|
| 777 |
+
tickfont
|
| 778 |
+
Sets the tick font.
|
| 779 |
+
tickformat
|
| 780 |
+
Sets the tick label formatting rule using d3 formatting
|
| 781 |
+
mini-languages which are very similar to those in
|
| 782 |
+
Python. For numbers, see:
|
| 783 |
+
https://github.com/d3/d3-format/tree/v1.4.5#d3-format.
|
| 784 |
+
And for dates see: https://github.com/d3/d3-time-
|
| 785 |
+
format/tree/v2.2.3#locale_format. We add two items to
|
| 786 |
+
d3's date formatter: "%h" for half of the year as a
|
| 787 |
+
decimal number as well as "%{n}f" for fractional
|
| 788 |
+
seconds with n digits. For example, *2016-10-13
|
| 789 |
+
09:15:23.456* with tickformat "%H~%M~%S.%2f" would
|
| 790 |
+
display "09~15~23.46"
|
| 791 |
+
ticklen
|
| 792 |
+
Sets the tick length (in px).
|
| 793 |
+
tickprefix
|
| 794 |
+
Sets a tick label prefix.
|
| 795 |
+
ticks
|
| 796 |
+
Determines whether ticks are drawn or not. If "", this
|
| 797 |
+
axis' ticks are not drawn. If "outside" ("inside"),
|
| 798 |
+
this axis' are drawn outside (inside) the axis lines.
|
| 799 |
+
ticksuffix
|
| 800 |
+
Sets a tick label suffix.
|
| 801 |
+
tickvals
|
| 802 |
+
Sets the values at which ticks on this axis appear.
|
| 803 |
+
Defaults to `realaxis.tickvals` plus the same as
|
| 804 |
+
negatives and zero.
|
| 805 |
+
tickvalssrc
|
| 806 |
+
Sets the source reference on Chart Studio Cloud for
|
| 807 |
+
`tickvals`.
|
| 808 |
+
tickwidth
|
| 809 |
+
Sets the tick width (in px).
|
| 810 |
+
visible
|
| 811 |
+
A single toggle to hide the axis while preserving
|
| 812 |
+
interaction like dragging. Default is true when a
|
| 813 |
+
cheater plot is present on the axis, otherwise false
|
| 814 |
+
|
| 815 |
+
Returns
|
| 816 |
+
-------
|
| 817 |
+
Imaginaryaxis
|
| 818 |
+
"""
|
| 819 |
+
super().__init__("imaginaryaxis")
|
| 820 |
+
if "_parent" in kwargs:
|
| 821 |
+
self._parent = kwargs["_parent"]
|
| 822 |
+
return
|
| 823 |
+
|
| 824 |
+
if arg is None:
|
| 825 |
+
arg = {}
|
| 826 |
+
elif isinstance(arg, self.__class__):
|
| 827 |
+
arg = arg.to_plotly_json()
|
| 828 |
+
elif isinstance(arg, dict):
|
| 829 |
+
arg = _copy.copy(arg)
|
| 830 |
+
else:
|
| 831 |
+
raise ValueError("""\
|
| 832 |
+
The first argument to the plotly.graph_objs.layout.smith.Imaginaryaxis
|
| 833 |
+
constructor must be a dict or
|
| 834 |
+
an instance of :class:`plotly.graph_objs.layout.smith.Imaginaryaxis`""")
|
| 835 |
+
|
| 836 |
+
self._skip_invalid = kwargs.pop("skip_invalid", False)
|
| 837 |
+
self._validate = kwargs.pop("_validate", True)
|
| 838 |
+
|
| 839 |
+
self._set_property("color", arg, color)
|
| 840 |
+
self._set_property("gridcolor", arg, gridcolor)
|
| 841 |
+
self._set_property("griddash", arg, griddash)
|
| 842 |
+
self._set_property("gridwidth", arg, gridwidth)
|
| 843 |
+
self._set_property("hoverformat", arg, hoverformat)
|
| 844 |
+
self._set_property("labelalias", arg, labelalias)
|
| 845 |
+
self._set_property("layer", arg, layer)
|
| 846 |
+
self._set_property("linecolor", arg, linecolor)
|
| 847 |
+
self._set_property("linewidth", arg, linewidth)
|
| 848 |
+
self._set_property("showgrid", arg, showgrid)
|
| 849 |
+
self._set_property("showline", arg, showline)
|
| 850 |
+
self._set_property("showticklabels", arg, showticklabels)
|
| 851 |
+
self._set_property("showtickprefix", arg, showtickprefix)
|
| 852 |
+
self._set_property("showticksuffix", arg, showticksuffix)
|
| 853 |
+
self._set_property("tickcolor", arg, tickcolor)
|
| 854 |
+
self._set_property("tickfont", arg, tickfont)
|
| 855 |
+
self._set_property("tickformat", arg, tickformat)
|
| 856 |
+
self._set_property("ticklen", arg, ticklen)
|
| 857 |
+
self._set_property("tickprefix", arg, tickprefix)
|
| 858 |
+
self._set_property("ticks", arg, ticks)
|
| 859 |
+
self._set_property("ticksuffix", arg, ticksuffix)
|
| 860 |
+
self._set_property("tickvals", arg, tickvals)
|
| 861 |
+
self._set_property("tickvalssrc", arg, tickvalssrc)
|
| 862 |
+
self._set_property("tickwidth", arg, tickwidth)
|
| 863 |
+
self._set_property("visible", arg, visible)
|
| 864 |
+
self._process_kwargs(**dict(arg, **kwargs))
|
| 865 |
+
self._skip_invalid = False
|
.venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/smith/_realaxis.py
ADDED
|
@@ -0,0 +1,922 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# --- THIS FILE IS AUTO-GENERATED ---
|
| 2 |
+
# Modifications will be overwitten the next time code generation run.
|
| 3 |
+
|
| 4 |
+
from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType
|
| 5 |
+
import copy as _copy
|
| 6 |
+
|
| 7 |
+
|
| 8 |
+
class Realaxis(_BaseLayoutHierarchyType):
|
| 9 |
+
_parent_path_str = "layout.smith"
|
| 10 |
+
_path_str = "layout.smith.realaxis"
|
| 11 |
+
_valid_props = {
|
| 12 |
+
"color",
|
| 13 |
+
"gridcolor",
|
| 14 |
+
"griddash",
|
| 15 |
+
"gridwidth",
|
| 16 |
+
"hoverformat",
|
| 17 |
+
"labelalias",
|
| 18 |
+
"layer",
|
| 19 |
+
"linecolor",
|
| 20 |
+
"linewidth",
|
| 21 |
+
"showgrid",
|
| 22 |
+
"showline",
|
| 23 |
+
"showticklabels",
|
| 24 |
+
"showtickprefix",
|
| 25 |
+
"showticksuffix",
|
| 26 |
+
"side",
|
| 27 |
+
"tickangle",
|
| 28 |
+
"tickcolor",
|
| 29 |
+
"tickfont",
|
| 30 |
+
"tickformat",
|
| 31 |
+
"ticklen",
|
| 32 |
+
"tickprefix",
|
| 33 |
+
"ticks",
|
| 34 |
+
"ticksuffix",
|
| 35 |
+
"tickvals",
|
| 36 |
+
"tickvalssrc",
|
| 37 |
+
"tickwidth",
|
| 38 |
+
"visible",
|
| 39 |
+
}
|
| 40 |
+
|
| 41 |
+
@property
|
| 42 |
+
def color(self):
|
| 43 |
+
"""
|
| 44 |
+
Sets default for all colors associated with this axis all at
|
| 45 |
+
once: line, font, tick, and grid colors. Grid color is
|
| 46 |
+
lightened by blending this with the plot background Individual
|
| 47 |
+
pieces can override this.
|
| 48 |
+
|
| 49 |
+
The 'color' property is a color and may be specified as:
|
| 50 |
+
- A hex string (e.g. '#ff0000')
|
| 51 |
+
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
|
| 52 |
+
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
|
| 53 |
+
- An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
|
| 54 |
+
- A named CSS color: see https://plotly.com/python/css-colors/ for a list
|
| 55 |
+
|
| 56 |
+
Returns
|
| 57 |
+
-------
|
| 58 |
+
str
|
| 59 |
+
"""
|
| 60 |
+
return self["color"]
|
| 61 |
+
|
| 62 |
+
@color.setter
|
| 63 |
+
def color(self, val):
|
| 64 |
+
self["color"] = val
|
| 65 |
+
|
| 66 |
+
@property
|
| 67 |
+
def gridcolor(self):
|
| 68 |
+
"""
|
| 69 |
+
Sets the color of the grid lines.
|
| 70 |
+
|
| 71 |
+
The 'gridcolor' property is a color and may be specified as:
|
| 72 |
+
- A hex string (e.g. '#ff0000')
|
| 73 |
+
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
|
| 74 |
+
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
|
| 75 |
+
- An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
|
| 76 |
+
- A named CSS color: see https://plotly.com/python/css-colors/ for a list
|
| 77 |
+
|
| 78 |
+
Returns
|
| 79 |
+
-------
|
| 80 |
+
str
|
| 81 |
+
"""
|
| 82 |
+
return self["gridcolor"]
|
| 83 |
+
|
| 84 |
+
@gridcolor.setter
|
| 85 |
+
def gridcolor(self, val):
|
| 86 |
+
self["gridcolor"] = val
|
| 87 |
+
|
| 88 |
+
@property
|
| 89 |
+
def griddash(self):
|
| 90 |
+
"""
|
| 91 |
+
Sets the dash style of lines. Set to a dash type string
|
| 92 |
+
("solid", "dot", "dash", "longdash", "dashdot", or
|
| 93 |
+
"longdashdot") or a dash length list in px (eg
|
| 94 |
+
"5px,10px,2px,2px").
|
| 95 |
+
|
| 96 |
+
The 'griddash' property is an enumeration that may be specified as:
|
| 97 |
+
- One of the following dash styles:
|
| 98 |
+
['solid', 'dot', 'dash', 'longdash', 'dashdot', 'longdashdot']
|
| 99 |
+
- A string containing a dash length list in pixels or percentages
|
| 100 |
+
(e.g. '5px 10px 2px 2px', '5, 10, 2, 2', '10% 20% 40%', etc.)
|
| 101 |
+
|
| 102 |
+
Returns
|
| 103 |
+
-------
|
| 104 |
+
str
|
| 105 |
+
"""
|
| 106 |
+
return self["griddash"]
|
| 107 |
+
|
| 108 |
+
@griddash.setter
|
| 109 |
+
def griddash(self, val):
|
| 110 |
+
self["griddash"] = val
|
| 111 |
+
|
| 112 |
+
@property
|
| 113 |
+
def gridwidth(self):
|
| 114 |
+
"""
|
| 115 |
+
Sets the width (in px) of the grid lines.
|
| 116 |
+
|
| 117 |
+
The 'gridwidth' property is a number and may be specified as:
|
| 118 |
+
- An int or float in the interval [0, inf]
|
| 119 |
+
|
| 120 |
+
Returns
|
| 121 |
+
-------
|
| 122 |
+
int|float
|
| 123 |
+
"""
|
| 124 |
+
return self["gridwidth"]
|
| 125 |
+
|
| 126 |
+
@gridwidth.setter
|
| 127 |
+
def gridwidth(self, val):
|
| 128 |
+
self["gridwidth"] = val
|
| 129 |
+
|
| 130 |
+
@property
|
| 131 |
+
def hoverformat(self):
|
| 132 |
+
"""
|
| 133 |
+
Sets the hover text formatting rule using d3 formatting mini-
|
| 134 |
+
languages which are very similar to those in Python. For
|
| 135 |
+
numbers, see:
|
| 136 |
+
https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for
|
| 137 |
+
dates see: https://github.com/d3/d3-time-
|
| 138 |
+
format/tree/v2.2.3#locale_format. We add two items to d3's date
|
| 139 |
+
formatter: "%h" for half of the year as a decimal number as
|
| 140 |
+
well as "%{n}f" for fractional seconds with n digits. For
|
| 141 |
+
example, *2016-10-13 09:15:23.456* with tickformat
|
| 142 |
+
"%H~%M~%S.%2f" would display "09~15~23.46"
|
| 143 |
+
|
| 144 |
+
The 'hoverformat' property is a string and must be specified as:
|
| 145 |
+
- A string
|
| 146 |
+
- A number that will be converted to a string
|
| 147 |
+
|
| 148 |
+
Returns
|
| 149 |
+
-------
|
| 150 |
+
str
|
| 151 |
+
"""
|
| 152 |
+
return self["hoverformat"]
|
| 153 |
+
|
| 154 |
+
@hoverformat.setter
|
| 155 |
+
def hoverformat(self, val):
|
| 156 |
+
self["hoverformat"] = val
|
| 157 |
+
|
| 158 |
+
@property
|
| 159 |
+
def labelalias(self):
|
| 160 |
+
"""
|
| 161 |
+
Replacement text for specific tick or hover labels. For example
|
| 162 |
+
using {US: 'USA', CA: 'Canada'} changes US to USA and CA to
|
| 163 |
+
Canada. The labels we would have shown must match the keys
|
| 164 |
+
exactly, after adding any tickprefix or ticksuffix. For
|
| 165 |
+
negative numbers the minus sign symbol used (U+2212) is wider
|
| 166 |
+
than the regular ascii dash. That means you need to use −1
|
| 167 |
+
instead of -1. labelalias can be used with any axis type, and
|
| 168 |
+
both keys (if needed) and values (if desired) can include html-
|
| 169 |
+
like tags or MathJax.
|
| 170 |
+
|
| 171 |
+
The 'labelalias' property accepts values of any type
|
| 172 |
+
|
| 173 |
+
Returns
|
| 174 |
+
-------
|
| 175 |
+
Any
|
| 176 |
+
"""
|
| 177 |
+
return self["labelalias"]
|
| 178 |
+
|
| 179 |
+
@labelalias.setter
|
| 180 |
+
def labelalias(self, val):
|
| 181 |
+
self["labelalias"] = val
|
| 182 |
+
|
| 183 |
+
@property
|
| 184 |
+
def layer(self):
|
| 185 |
+
"""
|
| 186 |
+
Sets the layer on which this axis is displayed. If *above
|
| 187 |
+
traces*, this axis is displayed above all the subplot's traces
|
| 188 |
+
If *below traces*, this axis is displayed below all the
|
| 189 |
+
subplot's traces, but above the grid lines. Useful when used
|
| 190 |
+
together with scatter-like traces with `cliponaxis` set to
|
| 191 |
+
False to show markers and/or text nodes above this axis.
|
| 192 |
+
|
| 193 |
+
The 'layer' property is an enumeration that may be specified as:
|
| 194 |
+
- One of the following enumeration values:
|
| 195 |
+
['above traces', 'below traces']
|
| 196 |
+
|
| 197 |
+
Returns
|
| 198 |
+
-------
|
| 199 |
+
Any
|
| 200 |
+
"""
|
| 201 |
+
return self["layer"]
|
| 202 |
+
|
| 203 |
+
@layer.setter
|
| 204 |
+
def layer(self, val):
|
| 205 |
+
self["layer"] = val
|
| 206 |
+
|
| 207 |
+
@property
|
| 208 |
+
def linecolor(self):
|
| 209 |
+
"""
|
| 210 |
+
Sets the axis line color.
|
| 211 |
+
|
| 212 |
+
The 'linecolor' property is a color and may be specified as:
|
| 213 |
+
- A hex string (e.g. '#ff0000')
|
| 214 |
+
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
|
| 215 |
+
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
|
| 216 |
+
- An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
|
| 217 |
+
- A named CSS color: see https://plotly.com/python/css-colors/ for a list
|
| 218 |
+
|
| 219 |
+
Returns
|
| 220 |
+
-------
|
| 221 |
+
str
|
| 222 |
+
"""
|
| 223 |
+
return self["linecolor"]
|
| 224 |
+
|
| 225 |
+
@linecolor.setter
|
| 226 |
+
def linecolor(self, val):
|
| 227 |
+
self["linecolor"] = val
|
| 228 |
+
|
| 229 |
+
@property
|
| 230 |
+
def linewidth(self):
|
| 231 |
+
"""
|
| 232 |
+
Sets the width (in px) of the axis line.
|
| 233 |
+
|
| 234 |
+
The 'linewidth' property is a number and may be specified as:
|
| 235 |
+
- An int or float in the interval [0, inf]
|
| 236 |
+
|
| 237 |
+
Returns
|
| 238 |
+
-------
|
| 239 |
+
int|float
|
| 240 |
+
"""
|
| 241 |
+
return self["linewidth"]
|
| 242 |
+
|
| 243 |
+
@linewidth.setter
|
| 244 |
+
def linewidth(self, val):
|
| 245 |
+
self["linewidth"] = val
|
| 246 |
+
|
| 247 |
+
@property
|
| 248 |
+
def showgrid(self):
|
| 249 |
+
"""
|
| 250 |
+
Determines whether or not grid lines are drawn. If True, the
|
| 251 |
+
grid lines are drawn at every tick mark.
|
| 252 |
+
|
| 253 |
+
The 'showgrid' property is a boolean and must be specified as:
|
| 254 |
+
- A boolean value: True or False
|
| 255 |
+
|
| 256 |
+
Returns
|
| 257 |
+
-------
|
| 258 |
+
bool
|
| 259 |
+
"""
|
| 260 |
+
return self["showgrid"]
|
| 261 |
+
|
| 262 |
+
@showgrid.setter
|
| 263 |
+
def showgrid(self, val):
|
| 264 |
+
self["showgrid"] = val
|
| 265 |
+
|
| 266 |
+
@property
|
| 267 |
+
def showline(self):
|
| 268 |
+
"""
|
| 269 |
+
Determines whether or not a line bounding this axis is drawn.
|
| 270 |
+
|
| 271 |
+
The 'showline' property is a boolean and must be specified as:
|
| 272 |
+
- A boolean value: True or False
|
| 273 |
+
|
| 274 |
+
Returns
|
| 275 |
+
-------
|
| 276 |
+
bool
|
| 277 |
+
"""
|
| 278 |
+
return self["showline"]
|
| 279 |
+
|
| 280 |
+
@showline.setter
|
| 281 |
+
def showline(self, val):
|
| 282 |
+
self["showline"] = val
|
| 283 |
+
|
| 284 |
+
@property
|
| 285 |
+
def showticklabels(self):
|
| 286 |
+
"""
|
| 287 |
+
Determines whether or not the tick labels are drawn.
|
| 288 |
+
|
| 289 |
+
The 'showticklabels' property is a boolean and must be specified as:
|
| 290 |
+
- A boolean value: True or False
|
| 291 |
+
|
| 292 |
+
Returns
|
| 293 |
+
-------
|
| 294 |
+
bool
|
| 295 |
+
"""
|
| 296 |
+
return self["showticklabels"]
|
| 297 |
+
|
| 298 |
+
@showticklabels.setter
|
| 299 |
+
def showticklabels(self, val):
|
| 300 |
+
self["showticklabels"] = val
|
| 301 |
+
|
| 302 |
+
@property
|
| 303 |
+
def showtickprefix(self):
|
| 304 |
+
"""
|
| 305 |
+
If "all", all tick labels are displayed with a prefix. If
|
| 306 |
+
"first", only the first tick is displayed with a prefix. If
|
| 307 |
+
"last", only the last tick is displayed with a suffix. If
|
| 308 |
+
"none", tick prefixes are hidden.
|
| 309 |
+
|
| 310 |
+
The 'showtickprefix' property is an enumeration that may be specified as:
|
| 311 |
+
- One of the following enumeration values:
|
| 312 |
+
['all', 'first', 'last', 'none']
|
| 313 |
+
|
| 314 |
+
Returns
|
| 315 |
+
-------
|
| 316 |
+
Any
|
| 317 |
+
"""
|
| 318 |
+
return self["showtickprefix"]
|
| 319 |
+
|
| 320 |
+
@showtickprefix.setter
|
| 321 |
+
def showtickprefix(self, val):
|
| 322 |
+
self["showtickprefix"] = val
|
| 323 |
+
|
| 324 |
+
@property
|
| 325 |
+
def showticksuffix(self):
|
| 326 |
+
"""
|
| 327 |
+
Same as `showtickprefix` but for tick suffixes.
|
| 328 |
+
|
| 329 |
+
The 'showticksuffix' property is an enumeration that may be specified as:
|
| 330 |
+
- One of the following enumeration values:
|
| 331 |
+
['all', 'first', 'last', 'none']
|
| 332 |
+
|
| 333 |
+
Returns
|
| 334 |
+
-------
|
| 335 |
+
Any
|
| 336 |
+
"""
|
| 337 |
+
return self["showticksuffix"]
|
| 338 |
+
|
| 339 |
+
@showticksuffix.setter
|
| 340 |
+
def showticksuffix(self, val):
|
| 341 |
+
self["showticksuffix"] = val
|
| 342 |
+
|
| 343 |
+
@property
|
| 344 |
+
def side(self):
|
| 345 |
+
"""
|
| 346 |
+
Determines on which side of real axis line the tick and tick
|
| 347 |
+
labels appear.
|
| 348 |
+
|
| 349 |
+
The 'side' property is an enumeration that may be specified as:
|
| 350 |
+
- One of the following enumeration values:
|
| 351 |
+
['top', 'bottom']
|
| 352 |
+
|
| 353 |
+
Returns
|
| 354 |
+
-------
|
| 355 |
+
Any
|
| 356 |
+
"""
|
| 357 |
+
return self["side"]
|
| 358 |
+
|
| 359 |
+
@side.setter
|
| 360 |
+
def side(self, val):
|
| 361 |
+
self["side"] = val
|
| 362 |
+
|
| 363 |
+
@property
|
| 364 |
+
def tickangle(self):
|
| 365 |
+
"""
|
| 366 |
+
Sets the angle of the tick labels with respect to the
|
| 367 |
+
horizontal. For example, a `tickangle` of -90 draws the tick
|
| 368 |
+
labels vertically.
|
| 369 |
+
|
| 370 |
+
The 'tickangle' property is a angle (in degrees) that may be
|
| 371 |
+
specified as a number between -180 and 180.
|
| 372 |
+
Numeric values outside this range are converted to the equivalent value
|
| 373 |
+
(e.g. 270 is converted to -90).
|
| 374 |
+
|
| 375 |
+
Returns
|
| 376 |
+
-------
|
| 377 |
+
int|float
|
| 378 |
+
"""
|
| 379 |
+
return self["tickangle"]
|
| 380 |
+
|
| 381 |
+
@tickangle.setter
|
| 382 |
+
def tickangle(self, val):
|
| 383 |
+
self["tickangle"] = val
|
| 384 |
+
|
| 385 |
+
@property
|
| 386 |
+
def tickcolor(self):
|
| 387 |
+
"""
|
| 388 |
+
Sets the tick color.
|
| 389 |
+
|
| 390 |
+
The 'tickcolor' property is a color and may be specified as:
|
| 391 |
+
- A hex string (e.g. '#ff0000')
|
| 392 |
+
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
|
| 393 |
+
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
|
| 394 |
+
- An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
|
| 395 |
+
- A named CSS color: see https://plotly.com/python/css-colors/ for a list
|
| 396 |
+
|
| 397 |
+
Returns
|
| 398 |
+
-------
|
| 399 |
+
str
|
| 400 |
+
"""
|
| 401 |
+
return self["tickcolor"]
|
| 402 |
+
|
| 403 |
+
@tickcolor.setter
|
| 404 |
+
def tickcolor(self, val):
|
| 405 |
+
self["tickcolor"] = val
|
| 406 |
+
|
| 407 |
+
@property
|
| 408 |
+
def tickfont(self):
|
| 409 |
+
"""
|
| 410 |
+
Sets the tick font.
|
| 411 |
+
|
| 412 |
+
The 'tickfont' property is an instance of Tickfont
|
| 413 |
+
that may be specified as:
|
| 414 |
+
- An instance of :class:`plotly.graph_objs.layout.smith.realaxis.Tickfont`
|
| 415 |
+
- A dict of string/value properties that will be passed
|
| 416 |
+
to the Tickfont constructor
|
| 417 |
+
|
| 418 |
+
Returns
|
| 419 |
+
-------
|
| 420 |
+
plotly.graph_objs.layout.smith.realaxis.Tickfont
|
| 421 |
+
"""
|
| 422 |
+
return self["tickfont"]
|
| 423 |
+
|
| 424 |
+
@tickfont.setter
|
| 425 |
+
def tickfont(self, val):
|
| 426 |
+
self["tickfont"] = val
|
| 427 |
+
|
| 428 |
+
@property
|
| 429 |
+
def tickformat(self):
|
| 430 |
+
"""
|
| 431 |
+
Sets the tick label formatting rule using d3 formatting mini-
|
| 432 |
+
languages which are very similar to those in Python. For
|
| 433 |
+
numbers, see:
|
| 434 |
+
https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for
|
| 435 |
+
dates see: https://github.com/d3/d3-time-
|
| 436 |
+
format/tree/v2.2.3#locale_format. We add two items to d3's date
|
| 437 |
+
formatter: "%h" for half of the year as a decimal number as
|
| 438 |
+
well as "%{n}f" for fractional seconds with n digits. For
|
| 439 |
+
example, *2016-10-13 09:15:23.456* with tickformat
|
| 440 |
+
"%H~%M~%S.%2f" would display "09~15~23.46"
|
| 441 |
+
|
| 442 |
+
The 'tickformat' property is a string and must be specified as:
|
| 443 |
+
- A string
|
| 444 |
+
- A number that will be converted to a string
|
| 445 |
+
|
| 446 |
+
Returns
|
| 447 |
+
-------
|
| 448 |
+
str
|
| 449 |
+
"""
|
| 450 |
+
return self["tickformat"]
|
| 451 |
+
|
| 452 |
+
@tickformat.setter
|
| 453 |
+
def tickformat(self, val):
|
| 454 |
+
self["tickformat"] = val
|
| 455 |
+
|
| 456 |
+
@property
|
| 457 |
+
def ticklen(self):
|
| 458 |
+
"""
|
| 459 |
+
Sets the tick length (in px).
|
| 460 |
+
|
| 461 |
+
The 'ticklen' property is a number and may be specified as:
|
| 462 |
+
- An int or float in the interval [0, inf]
|
| 463 |
+
|
| 464 |
+
Returns
|
| 465 |
+
-------
|
| 466 |
+
int|float
|
| 467 |
+
"""
|
| 468 |
+
return self["ticklen"]
|
| 469 |
+
|
| 470 |
+
@ticklen.setter
|
| 471 |
+
def ticklen(self, val):
|
| 472 |
+
self["ticklen"] = val
|
| 473 |
+
|
| 474 |
+
@property
|
| 475 |
+
def tickprefix(self):
|
| 476 |
+
"""
|
| 477 |
+
Sets a tick label prefix.
|
| 478 |
+
|
| 479 |
+
The 'tickprefix' property is a string and must be specified as:
|
| 480 |
+
- A string
|
| 481 |
+
- A number that will be converted to a string
|
| 482 |
+
|
| 483 |
+
Returns
|
| 484 |
+
-------
|
| 485 |
+
str
|
| 486 |
+
"""
|
| 487 |
+
return self["tickprefix"]
|
| 488 |
+
|
| 489 |
+
@tickprefix.setter
|
| 490 |
+
def tickprefix(self, val):
|
| 491 |
+
self["tickprefix"] = val
|
| 492 |
+
|
| 493 |
+
@property
|
| 494 |
+
def ticks(self):
|
| 495 |
+
"""
|
| 496 |
+
Determines whether ticks are drawn or not. If "", this axis'
|
| 497 |
+
ticks are not drawn. If "top" ("bottom"), this axis' are drawn
|
| 498 |
+
above (below) the axis line.
|
| 499 |
+
|
| 500 |
+
The 'ticks' property is an enumeration that may be specified as:
|
| 501 |
+
- One of the following enumeration values:
|
| 502 |
+
['top', 'bottom', '']
|
| 503 |
+
|
| 504 |
+
Returns
|
| 505 |
+
-------
|
| 506 |
+
Any
|
| 507 |
+
"""
|
| 508 |
+
return self["ticks"]
|
| 509 |
+
|
| 510 |
+
@ticks.setter
|
| 511 |
+
def ticks(self, val):
|
| 512 |
+
self["ticks"] = val
|
| 513 |
+
|
| 514 |
+
@property
|
| 515 |
+
def ticksuffix(self):
|
| 516 |
+
"""
|
| 517 |
+
Sets a tick label suffix.
|
| 518 |
+
|
| 519 |
+
The 'ticksuffix' property is a string and must be specified as:
|
| 520 |
+
- A string
|
| 521 |
+
- A number that will be converted to a string
|
| 522 |
+
|
| 523 |
+
Returns
|
| 524 |
+
-------
|
| 525 |
+
str
|
| 526 |
+
"""
|
| 527 |
+
return self["ticksuffix"]
|
| 528 |
+
|
| 529 |
+
@ticksuffix.setter
|
| 530 |
+
def ticksuffix(self, val):
|
| 531 |
+
self["ticksuffix"] = val
|
| 532 |
+
|
| 533 |
+
@property
|
| 534 |
+
def tickvals(self):
|
| 535 |
+
"""
|
| 536 |
+
Sets the values at which ticks on this axis appear.
|
| 537 |
+
|
| 538 |
+
The 'tickvals' property is an array that may be specified as a tuple,
|
| 539 |
+
list, numpy array, or pandas Series
|
| 540 |
+
|
| 541 |
+
Returns
|
| 542 |
+
-------
|
| 543 |
+
numpy.ndarray
|
| 544 |
+
"""
|
| 545 |
+
return self["tickvals"]
|
| 546 |
+
|
| 547 |
+
@tickvals.setter
|
| 548 |
+
def tickvals(self, val):
|
| 549 |
+
self["tickvals"] = val
|
| 550 |
+
|
| 551 |
+
@property
|
| 552 |
+
def tickvalssrc(self):
|
| 553 |
+
"""
|
| 554 |
+
Sets the source reference on Chart Studio Cloud for `tickvals`.
|
| 555 |
+
|
| 556 |
+
The 'tickvalssrc' property must be specified as a string or
|
| 557 |
+
as a plotly.grid_objs.Column object
|
| 558 |
+
|
| 559 |
+
Returns
|
| 560 |
+
-------
|
| 561 |
+
str
|
| 562 |
+
"""
|
| 563 |
+
return self["tickvalssrc"]
|
| 564 |
+
|
| 565 |
+
@tickvalssrc.setter
|
| 566 |
+
def tickvalssrc(self, val):
|
| 567 |
+
self["tickvalssrc"] = val
|
| 568 |
+
|
| 569 |
+
@property
|
| 570 |
+
def tickwidth(self):
|
| 571 |
+
"""
|
| 572 |
+
Sets the tick width (in px).
|
| 573 |
+
|
| 574 |
+
The 'tickwidth' property is a number and may be specified as:
|
| 575 |
+
- An int or float in the interval [0, inf]
|
| 576 |
+
|
| 577 |
+
Returns
|
| 578 |
+
-------
|
| 579 |
+
int|float
|
| 580 |
+
"""
|
| 581 |
+
return self["tickwidth"]
|
| 582 |
+
|
| 583 |
+
@tickwidth.setter
|
| 584 |
+
def tickwidth(self, val):
|
| 585 |
+
self["tickwidth"] = val
|
| 586 |
+
|
| 587 |
+
@property
|
| 588 |
+
def visible(self):
|
| 589 |
+
"""
|
| 590 |
+
A single toggle to hide the axis while preserving interaction
|
| 591 |
+
like dragging. Default is true when a cheater plot is present
|
| 592 |
+
on the axis, otherwise false
|
| 593 |
+
|
| 594 |
+
The 'visible' property is a boolean and must be specified as:
|
| 595 |
+
- A boolean value: True or False
|
| 596 |
+
|
| 597 |
+
Returns
|
| 598 |
+
-------
|
| 599 |
+
bool
|
| 600 |
+
"""
|
| 601 |
+
return self["visible"]
|
| 602 |
+
|
| 603 |
+
@visible.setter
|
| 604 |
+
def visible(self, val):
|
| 605 |
+
self["visible"] = val
|
| 606 |
+
|
| 607 |
+
@property
|
| 608 |
+
def _prop_descriptions(self):
|
| 609 |
+
return """\
|
| 610 |
+
color
|
| 611 |
+
Sets default for all colors associated with this axis
|
| 612 |
+
all at once: line, font, tick, and grid colors. Grid
|
| 613 |
+
color is lightened by blending this with the plot
|
| 614 |
+
background Individual pieces can override this.
|
| 615 |
+
gridcolor
|
| 616 |
+
Sets the color of the grid lines.
|
| 617 |
+
griddash
|
| 618 |
+
Sets the dash style of lines. Set to a dash type string
|
| 619 |
+
("solid", "dot", "dash", "longdash", "dashdot", or
|
| 620 |
+
"longdashdot") or a dash length list in px (eg
|
| 621 |
+
"5px,10px,2px,2px").
|
| 622 |
+
gridwidth
|
| 623 |
+
Sets the width (in px) of the grid lines.
|
| 624 |
+
hoverformat
|
| 625 |
+
Sets the hover text formatting rule using d3 formatting
|
| 626 |
+
mini-languages which are very similar to those in
|
| 627 |
+
Python. For numbers, see:
|
| 628 |
+
https://github.com/d3/d3-format/tree/v1.4.5#d3-format.
|
| 629 |
+
And for dates see: https://github.com/d3/d3-time-
|
| 630 |
+
format/tree/v2.2.3#locale_format. We add two items to
|
| 631 |
+
d3's date formatter: "%h" for half of the year as a
|
| 632 |
+
decimal number as well as "%{n}f" for fractional
|
| 633 |
+
seconds with n digits. For example, *2016-10-13
|
| 634 |
+
09:15:23.456* with tickformat "%H~%M~%S.%2f" would
|
| 635 |
+
display "09~15~23.46"
|
| 636 |
+
labelalias
|
| 637 |
+
Replacement text for specific tick or hover labels. For
|
| 638 |
+
example using {US: 'USA', CA: 'Canada'} changes US to
|
| 639 |
+
USA and CA to Canada. The labels we would have shown
|
| 640 |
+
must match the keys exactly, after adding any
|
| 641 |
+
tickprefix or ticksuffix. For negative numbers the
|
| 642 |
+
minus sign symbol used (U+2212) is wider than the
|
| 643 |
+
regular ascii dash. That means you need to use −1
|
| 644 |
+
instead of -1. labelalias can be used with any axis
|
| 645 |
+
type, and both keys (if needed) and values (if desired)
|
| 646 |
+
can include html-like tags or MathJax.
|
| 647 |
+
layer
|
| 648 |
+
Sets the layer on which this axis is displayed. If
|
| 649 |
+
*above traces*, this axis is displayed above all the
|
| 650 |
+
subplot's traces If *below traces*, this axis is
|
| 651 |
+
displayed below all the subplot's traces, but above the
|
| 652 |
+
grid lines. Useful when used together with scatter-like
|
| 653 |
+
traces with `cliponaxis` set to False to show markers
|
| 654 |
+
and/or text nodes above this axis.
|
| 655 |
+
linecolor
|
| 656 |
+
Sets the axis line color.
|
| 657 |
+
linewidth
|
| 658 |
+
Sets the width (in px) of the axis line.
|
| 659 |
+
showgrid
|
| 660 |
+
Determines whether or not grid lines are drawn. If
|
| 661 |
+
True, the grid lines are drawn at every tick mark.
|
| 662 |
+
showline
|
| 663 |
+
Determines whether or not a line bounding this axis is
|
| 664 |
+
drawn.
|
| 665 |
+
showticklabels
|
| 666 |
+
Determines whether or not the tick labels are drawn.
|
| 667 |
+
showtickprefix
|
| 668 |
+
If "all", all tick labels are displayed with a prefix.
|
| 669 |
+
If "first", only the first tick is displayed with a
|
| 670 |
+
prefix. If "last", only the last tick is displayed with
|
| 671 |
+
a suffix. If "none", tick prefixes are hidden.
|
| 672 |
+
showticksuffix
|
| 673 |
+
Same as `showtickprefix` but for tick suffixes.
|
| 674 |
+
side
|
| 675 |
+
Determines on which side of real axis line the tick and
|
| 676 |
+
tick labels appear.
|
| 677 |
+
tickangle
|
| 678 |
+
Sets the angle of the tick labels with respect to the
|
| 679 |
+
horizontal. For example, a `tickangle` of -90 draws the
|
| 680 |
+
tick labels vertically.
|
| 681 |
+
tickcolor
|
| 682 |
+
Sets the tick color.
|
| 683 |
+
tickfont
|
| 684 |
+
Sets the tick font.
|
| 685 |
+
tickformat
|
| 686 |
+
Sets the tick label formatting rule using d3 formatting
|
| 687 |
+
mini-languages which are very similar to those in
|
| 688 |
+
Python. For numbers, see:
|
| 689 |
+
https://github.com/d3/d3-format/tree/v1.4.5#d3-format.
|
| 690 |
+
And for dates see: https://github.com/d3/d3-time-
|
| 691 |
+
format/tree/v2.2.3#locale_format. We add two items to
|
| 692 |
+
d3's date formatter: "%h" for half of the year as a
|
| 693 |
+
decimal number as well as "%{n}f" for fractional
|
| 694 |
+
seconds with n digits. For example, *2016-10-13
|
| 695 |
+
09:15:23.456* with tickformat "%H~%M~%S.%2f" would
|
| 696 |
+
display "09~15~23.46"
|
| 697 |
+
ticklen
|
| 698 |
+
Sets the tick length (in px).
|
| 699 |
+
tickprefix
|
| 700 |
+
Sets a tick label prefix.
|
| 701 |
+
ticks
|
| 702 |
+
Determines whether ticks are drawn or not. If "", this
|
| 703 |
+
axis' ticks are not drawn. If "top" ("bottom"), this
|
| 704 |
+
axis' are drawn above (below) the axis line.
|
| 705 |
+
ticksuffix
|
| 706 |
+
Sets a tick label suffix.
|
| 707 |
+
tickvals
|
| 708 |
+
Sets the values at which ticks on this axis appear.
|
| 709 |
+
tickvalssrc
|
| 710 |
+
Sets the source reference on Chart Studio Cloud for
|
| 711 |
+
`tickvals`.
|
| 712 |
+
tickwidth
|
| 713 |
+
Sets the tick width (in px).
|
| 714 |
+
visible
|
| 715 |
+
A single toggle to hide the axis while preserving
|
| 716 |
+
interaction like dragging. Default is true when a
|
| 717 |
+
cheater plot is present on the axis, otherwise false
|
| 718 |
+
"""
|
| 719 |
+
|
| 720 |
+
def __init__(
|
| 721 |
+
self,
|
| 722 |
+
arg=None,
|
| 723 |
+
color=None,
|
| 724 |
+
gridcolor=None,
|
| 725 |
+
griddash=None,
|
| 726 |
+
gridwidth=None,
|
| 727 |
+
hoverformat=None,
|
| 728 |
+
labelalias=None,
|
| 729 |
+
layer=None,
|
| 730 |
+
linecolor=None,
|
| 731 |
+
linewidth=None,
|
| 732 |
+
showgrid=None,
|
| 733 |
+
showline=None,
|
| 734 |
+
showticklabels=None,
|
| 735 |
+
showtickprefix=None,
|
| 736 |
+
showticksuffix=None,
|
| 737 |
+
side=None,
|
| 738 |
+
tickangle=None,
|
| 739 |
+
tickcolor=None,
|
| 740 |
+
tickfont=None,
|
| 741 |
+
tickformat=None,
|
| 742 |
+
ticklen=None,
|
| 743 |
+
tickprefix=None,
|
| 744 |
+
ticks=None,
|
| 745 |
+
ticksuffix=None,
|
| 746 |
+
tickvals=None,
|
| 747 |
+
tickvalssrc=None,
|
| 748 |
+
tickwidth=None,
|
| 749 |
+
visible=None,
|
| 750 |
+
**kwargs,
|
| 751 |
+
):
|
| 752 |
+
"""
|
| 753 |
+
Construct a new Realaxis object
|
| 754 |
+
|
| 755 |
+
Parameters
|
| 756 |
+
----------
|
| 757 |
+
arg
|
| 758 |
+
dict of properties compatible with this constructor or
|
| 759 |
+
an instance of
|
| 760 |
+
:class:`plotly.graph_objs.layout.smith.Realaxis`
|
| 761 |
+
color
|
| 762 |
+
Sets default for all colors associated with this axis
|
| 763 |
+
all at once: line, font, tick, and grid colors. Grid
|
| 764 |
+
color is lightened by blending this with the plot
|
| 765 |
+
background Individual pieces can override this.
|
| 766 |
+
gridcolor
|
| 767 |
+
Sets the color of the grid lines.
|
| 768 |
+
griddash
|
| 769 |
+
Sets the dash style of lines. Set to a dash type string
|
| 770 |
+
("solid", "dot", "dash", "longdash", "dashdot", or
|
| 771 |
+
"longdashdot") or a dash length list in px (eg
|
| 772 |
+
"5px,10px,2px,2px").
|
| 773 |
+
gridwidth
|
| 774 |
+
Sets the width (in px) of the grid lines.
|
| 775 |
+
hoverformat
|
| 776 |
+
Sets the hover text formatting rule using d3 formatting
|
| 777 |
+
mini-languages which are very similar to those in
|
| 778 |
+
Python. For numbers, see:
|
| 779 |
+
https://github.com/d3/d3-format/tree/v1.4.5#d3-format.
|
| 780 |
+
And for dates see: https://github.com/d3/d3-time-
|
| 781 |
+
format/tree/v2.2.3#locale_format. We add two items to
|
| 782 |
+
d3's date formatter: "%h" for half of the year as a
|
| 783 |
+
decimal number as well as "%{n}f" for fractional
|
| 784 |
+
seconds with n digits. For example, *2016-10-13
|
| 785 |
+
09:15:23.456* with tickformat "%H~%M~%S.%2f" would
|
| 786 |
+
display "09~15~23.46"
|
| 787 |
+
labelalias
|
| 788 |
+
Replacement text for specific tick or hover labels. For
|
| 789 |
+
example using {US: 'USA', CA: 'Canada'} changes US to
|
| 790 |
+
USA and CA to Canada. The labels we would have shown
|
| 791 |
+
must match the keys exactly, after adding any
|
| 792 |
+
tickprefix or ticksuffix. For negative numbers the
|
| 793 |
+
minus sign symbol used (U+2212) is wider than the
|
| 794 |
+
regular ascii dash. That means you need to use −1
|
| 795 |
+
instead of -1. labelalias can be used with any axis
|
| 796 |
+
type, and both keys (if needed) and values (if desired)
|
| 797 |
+
can include html-like tags or MathJax.
|
| 798 |
+
layer
|
| 799 |
+
Sets the layer on which this axis is displayed. If
|
| 800 |
+
*above traces*, this axis is displayed above all the
|
| 801 |
+
subplot's traces If *below traces*, this axis is
|
| 802 |
+
displayed below all the subplot's traces, but above the
|
| 803 |
+
grid lines. Useful when used together with scatter-like
|
| 804 |
+
traces with `cliponaxis` set to False to show markers
|
| 805 |
+
and/or text nodes above this axis.
|
| 806 |
+
linecolor
|
| 807 |
+
Sets the axis line color.
|
| 808 |
+
linewidth
|
| 809 |
+
Sets the width (in px) of the axis line.
|
| 810 |
+
showgrid
|
| 811 |
+
Determines whether or not grid lines are drawn. If
|
| 812 |
+
True, the grid lines are drawn at every tick mark.
|
| 813 |
+
showline
|
| 814 |
+
Determines whether or not a line bounding this axis is
|
| 815 |
+
drawn.
|
| 816 |
+
showticklabels
|
| 817 |
+
Determines whether or not the tick labels are drawn.
|
| 818 |
+
showtickprefix
|
| 819 |
+
If "all", all tick labels are displayed with a prefix.
|
| 820 |
+
If "first", only the first tick is displayed with a
|
| 821 |
+
prefix. If "last", only the last tick is displayed with
|
| 822 |
+
a suffix. If "none", tick prefixes are hidden.
|
| 823 |
+
showticksuffix
|
| 824 |
+
Same as `showtickprefix` but for tick suffixes.
|
| 825 |
+
side
|
| 826 |
+
Determines on which side of real axis line the tick and
|
| 827 |
+
tick labels appear.
|
| 828 |
+
tickangle
|
| 829 |
+
Sets the angle of the tick labels with respect to the
|
| 830 |
+
horizontal. For example, a `tickangle` of -90 draws the
|
| 831 |
+
tick labels vertically.
|
| 832 |
+
tickcolor
|
| 833 |
+
Sets the tick color.
|
| 834 |
+
tickfont
|
| 835 |
+
Sets the tick font.
|
| 836 |
+
tickformat
|
| 837 |
+
Sets the tick label formatting rule using d3 formatting
|
| 838 |
+
mini-languages which are very similar to those in
|
| 839 |
+
Python. For numbers, see:
|
| 840 |
+
https://github.com/d3/d3-format/tree/v1.4.5#d3-format.
|
| 841 |
+
And for dates see: https://github.com/d3/d3-time-
|
| 842 |
+
format/tree/v2.2.3#locale_format. We add two items to
|
| 843 |
+
d3's date formatter: "%h" for half of the year as a
|
| 844 |
+
decimal number as well as "%{n}f" for fractional
|
| 845 |
+
seconds with n digits. For example, *2016-10-13
|
| 846 |
+
09:15:23.456* with tickformat "%H~%M~%S.%2f" would
|
| 847 |
+
display "09~15~23.46"
|
| 848 |
+
ticklen
|
| 849 |
+
Sets the tick length (in px).
|
| 850 |
+
tickprefix
|
| 851 |
+
Sets a tick label prefix.
|
| 852 |
+
ticks
|
| 853 |
+
Determines whether ticks are drawn or not. If "", this
|
| 854 |
+
axis' ticks are not drawn. If "top" ("bottom"), this
|
| 855 |
+
axis' are drawn above (below) the axis line.
|
| 856 |
+
ticksuffix
|
| 857 |
+
Sets a tick label suffix.
|
| 858 |
+
tickvals
|
| 859 |
+
Sets the values at which ticks on this axis appear.
|
| 860 |
+
tickvalssrc
|
| 861 |
+
Sets the source reference on Chart Studio Cloud for
|
| 862 |
+
`tickvals`.
|
| 863 |
+
tickwidth
|
| 864 |
+
Sets the tick width (in px).
|
| 865 |
+
visible
|
| 866 |
+
A single toggle to hide the axis while preserving
|
| 867 |
+
interaction like dragging. Default is true when a
|
| 868 |
+
cheater plot is present on the axis, otherwise false
|
| 869 |
+
|
| 870 |
+
Returns
|
| 871 |
+
-------
|
| 872 |
+
Realaxis
|
| 873 |
+
"""
|
| 874 |
+
super().__init__("realaxis")
|
| 875 |
+
if "_parent" in kwargs:
|
| 876 |
+
self._parent = kwargs["_parent"]
|
| 877 |
+
return
|
| 878 |
+
|
| 879 |
+
if arg is None:
|
| 880 |
+
arg = {}
|
| 881 |
+
elif isinstance(arg, self.__class__):
|
| 882 |
+
arg = arg.to_plotly_json()
|
| 883 |
+
elif isinstance(arg, dict):
|
| 884 |
+
arg = _copy.copy(arg)
|
| 885 |
+
else:
|
| 886 |
+
raise ValueError("""\
|
| 887 |
+
The first argument to the plotly.graph_objs.layout.smith.Realaxis
|
| 888 |
+
constructor must be a dict or
|
| 889 |
+
an instance of :class:`plotly.graph_objs.layout.smith.Realaxis`""")
|
| 890 |
+
|
| 891 |
+
self._skip_invalid = kwargs.pop("skip_invalid", False)
|
| 892 |
+
self._validate = kwargs.pop("_validate", True)
|
| 893 |
+
|
| 894 |
+
self._set_property("color", arg, color)
|
| 895 |
+
self._set_property("gridcolor", arg, gridcolor)
|
| 896 |
+
self._set_property("griddash", arg, griddash)
|
| 897 |
+
self._set_property("gridwidth", arg, gridwidth)
|
| 898 |
+
self._set_property("hoverformat", arg, hoverformat)
|
| 899 |
+
self._set_property("labelalias", arg, labelalias)
|
| 900 |
+
self._set_property("layer", arg, layer)
|
| 901 |
+
self._set_property("linecolor", arg, linecolor)
|
| 902 |
+
self._set_property("linewidth", arg, linewidth)
|
| 903 |
+
self._set_property("showgrid", arg, showgrid)
|
| 904 |
+
self._set_property("showline", arg, showline)
|
| 905 |
+
self._set_property("showticklabels", arg, showticklabels)
|
| 906 |
+
self._set_property("showtickprefix", arg, showtickprefix)
|
| 907 |
+
self._set_property("showticksuffix", arg, showticksuffix)
|
| 908 |
+
self._set_property("side", arg, side)
|
| 909 |
+
self._set_property("tickangle", arg, tickangle)
|
| 910 |
+
self._set_property("tickcolor", arg, tickcolor)
|
| 911 |
+
self._set_property("tickfont", arg, tickfont)
|
| 912 |
+
self._set_property("tickformat", arg, tickformat)
|
| 913 |
+
self._set_property("ticklen", arg, ticklen)
|
| 914 |
+
self._set_property("tickprefix", arg, tickprefix)
|
| 915 |
+
self._set_property("ticks", arg, ticks)
|
| 916 |
+
self._set_property("ticksuffix", arg, ticksuffix)
|
| 917 |
+
self._set_property("tickvals", arg, tickvals)
|
| 918 |
+
self._set_property("tickvalssrc", arg, tickvalssrc)
|
| 919 |
+
self._set_property("tickwidth", arg, tickwidth)
|
| 920 |
+
self._set_property("visible", arg, visible)
|
| 921 |
+
self._process_kwargs(**dict(arg, **kwargs))
|
| 922 |
+
self._skip_invalid = False
|
.venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/smith/imaginaryaxis/.___init__.py
ADDED
|
Binary file (4.1 kB). View file
|
|
|
.venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/smith/imaginaryaxis/.___pycache__
ADDED
|
Binary file (4.1 kB). View file
|
|
|
.venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/smith/imaginaryaxis/.__tickfont.py
ADDED
|
Binary file (4.1 kB). View file
|
|
|
.venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/smith/imaginaryaxis/__init__.py
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import sys
|
| 2 |
+
from typing import TYPE_CHECKING
|
| 3 |
+
|
| 4 |
+
if TYPE_CHECKING:
|
| 5 |
+
from ._tickfont import Tickfont
|
| 6 |
+
else:
|
| 7 |
+
from _plotly_utils.importers import relative_import
|
| 8 |
+
|
| 9 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# --- THIS FILE IS AUTO-GENERATED ---
|
| 2 |
+
# Modifications will be overwitten the next time code generation run.
|
| 3 |
+
|
| 4 |
+
from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType
|
| 5 |
+
import copy as _copy
|
| 6 |
+
|
| 7 |
+
|
| 8 |
+
class Tickfont(_BaseLayoutHierarchyType):
|
| 9 |
+
_parent_path_str = "layout.smith.imaginaryaxis"
|
| 10 |
+
_path_str = "layout.smith.imaginaryaxis.tickfont"
|
| 11 |
+
_valid_props = {
|
| 12 |
+
"color",
|
| 13 |
+
"family",
|
| 14 |
+
"lineposition",
|
| 15 |
+
"shadow",
|
| 16 |
+
"size",
|
| 17 |
+
"style",
|
| 18 |
+
"textcase",
|
| 19 |
+
"variant",
|
| 20 |
+
"weight",
|
| 21 |
+
}
|
| 22 |
+
|
| 23 |
+
@property
|
| 24 |
+
def color(self):
|
| 25 |
+
"""
|
| 26 |
+
The 'color' property is a color and may be specified as:
|
| 27 |
+
- A hex string (e.g. '#ff0000')
|
| 28 |
+
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
|
| 29 |
+
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
|
| 30 |
+
- An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
|
| 31 |
+
- A named CSS color: see https://plotly.com/python/css-colors/ for a list
|
| 32 |
+
|
| 33 |
+
Returns
|
| 34 |
+
-------
|
| 35 |
+
str
|
| 36 |
+
"""
|
| 37 |
+
return self["color"]
|
| 38 |
+
|
| 39 |
+
@color.setter
|
| 40 |
+
def color(self, val):
|
| 41 |
+
self["color"] = val
|
| 42 |
+
|
| 43 |
+
@property
|
| 44 |
+
def family(self):
|
| 45 |
+
"""
|
| 46 |
+
HTML font family - the typeface that will be applied by the web
|
| 47 |
+
browser. The web browser can only apply a font if it is
|
| 48 |
+
available on the system where it runs. Provide multiple font
|
| 49 |
+
families, separated by commas, to indicate the order in which
|
| 50 |
+
to apply fonts if they aren't available.
|
| 51 |
+
|
| 52 |
+
The 'family' property is a string and must be specified as:
|
| 53 |
+
- A non-empty string
|
| 54 |
+
|
| 55 |
+
Returns
|
| 56 |
+
-------
|
| 57 |
+
str
|
| 58 |
+
"""
|
| 59 |
+
return self["family"]
|
| 60 |
+
|
| 61 |
+
@family.setter
|
| 62 |
+
def family(self, val):
|
| 63 |
+
self["family"] = val
|
| 64 |
+
|
| 65 |
+
@property
|
| 66 |
+
def lineposition(self):
|
| 67 |
+
"""
|
| 68 |
+
Sets the kind of decoration line(s) with text, such as an
|
| 69 |
+
"under", "over" or "through" as well as combinations e.g.
|
| 70 |
+
"under+over", etc.
|
| 71 |
+
|
| 72 |
+
The 'lineposition' property is a flaglist and may be specified
|
| 73 |
+
as a string containing:
|
| 74 |
+
- Any combination of ['under', 'over', 'through'] joined with '+' characters
|
| 75 |
+
(e.g. 'under+over')
|
| 76 |
+
OR exactly one of ['none'] (e.g. 'none')
|
| 77 |
+
|
| 78 |
+
Returns
|
| 79 |
+
-------
|
| 80 |
+
Any
|
| 81 |
+
"""
|
| 82 |
+
return self["lineposition"]
|
| 83 |
+
|
| 84 |
+
@lineposition.setter
|
| 85 |
+
def lineposition(self, val):
|
| 86 |
+
self["lineposition"] = val
|
| 87 |
+
|
| 88 |
+
@property
|
| 89 |
+
def shadow(self):
|
| 90 |
+
"""
|
| 91 |
+
Sets the shape and color of the shadow behind text. "auto"
|
| 92 |
+
places minimal shadow and applies contrast text font color. See
|
| 93 |
+
https://developer.mozilla.org/en-US/docs/Web/CSS/text-shadow
|
| 94 |
+
for additional options.
|
| 95 |
+
|
| 96 |
+
The 'shadow' property is a string and must be specified as:
|
| 97 |
+
- A string
|
| 98 |
+
- A number that will be converted to a string
|
| 99 |
+
|
| 100 |
+
Returns
|
| 101 |
+
-------
|
| 102 |
+
str
|
| 103 |
+
"""
|
| 104 |
+
return self["shadow"]
|
| 105 |
+
|
| 106 |
+
@shadow.setter
|
| 107 |
+
def shadow(self, val):
|
| 108 |
+
self["shadow"] = val
|
| 109 |
+
|
| 110 |
+
@property
|
| 111 |
+
def size(self):
|
| 112 |
+
"""
|
| 113 |
+
The 'size' property is a number and may be specified as:
|
| 114 |
+
- An int or float in the interval [1, inf]
|
| 115 |
+
|
| 116 |
+
Returns
|
| 117 |
+
-------
|
| 118 |
+
int|float
|
| 119 |
+
"""
|
| 120 |
+
return self["size"]
|
| 121 |
+
|
| 122 |
+
@size.setter
|
| 123 |
+
def size(self, val):
|
| 124 |
+
self["size"] = val
|
| 125 |
+
|
| 126 |
+
@property
|
| 127 |
+
def style(self):
|
| 128 |
+
"""
|
| 129 |
+
Sets whether a font should be styled with a normal or italic
|
| 130 |
+
face from its family.
|
| 131 |
+
|
| 132 |
+
The 'style' property is an enumeration that may be specified as:
|
| 133 |
+
- One of the following enumeration values:
|
| 134 |
+
['normal', 'italic']
|
| 135 |
+
|
| 136 |
+
Returns
|
| 137 |
+
-------
|
| 138 |
+
Any
|
| 139 |
+
"""
|
| 140 |
+
return self["style"]
|
| 141 |
+
|
| 142 |
+
@style.setter
|
| 143 |
+
def style(self, val):
|
| 144 |
+
self["style"] = val
|
| 145 |
+
|
| 146 |
+
@property
|
| 147 |
+
def textcase(self):
|
| 148 |
+
"""
|
| 149 |
+
Sets capitalization of text. It can be used to make text appear
|
| 150 |
+
in all-uppercase or all-lowercase, or with each word
|
| 151 |
+
capitalized.
|
| 152 |
+
|
| 153 |
+
The 'textcase' property is an enumeration that may be specified as:
|
| 154 |
+
- One of the following enumeration values:
|
| 155 |
+
['normal', 'word caps', 'upper', 'lower']
|
| 156 |
+
|
| 157 |
+
Returns
|
| 158 |
+
-------
|
| 159 |
+
Any
|
| 160 |
+
"""
|
| 161 |
+
return self["textcase"]
|
| 162 |
+
|
| 163 |
+
@textcase.setter
|
| 164 |
+
def textcase(self, val):
|
| 165 |
+
self["textcase"] = val
|
| 166 |
+
|
| 167 |
+
@property
|
| 168 |
+
def variant(self):
|
| 169 |
+
"""
|
| 170 |
+
Sets the variant of the font.
|
| 171 |
+
|
| 172 |
+
The 'variant' property is an enumeration that may be specified as:
|
| 173 |
+
- One of the following enumeration values:
|
| 174 |
+
['normal', 'small-caps', 'all-small-caps',
|
| 175 |
+
'all-petite-caps', 'petite-caps', 'unicase']
|
| 176 |
+
|
| 177 |
+
Returns
|
| 178 |
+
-------
|
| 179 |
+
Any
|
| 180 |
+
"""
|
| 181 |
+
return self["variant"]
|
| 182 |
+
|
| 183 |
+
@variant.setter
|
| 184 |
+
def variant(self, val):
|
| 185 |
+
self["variant"] = val
|
| 186 |
+
|
| 187 |
+
@property
|
| 188 |
+
def weight(self):
|
| 189 |
+
"""
|
| 190 |
+
Sets the weight (or boldness) of the font.
|
| 191 |
+
|
| 192 |
+
The 'weight' property is a integer and may be specified as:
|
| 193 |
+
- An int (or float that will be cast to an int)
|
| 194 |
+
in the interval [1, 1000]
|
| 195 |
+
OR exactly one of ['normal', 'bold'] (e.g. 'bold')
|
| 196 |
+
|
| 197 |
+
Returns
|
| 198 |
+
-------
|
| 199 |
+
int
|
| 200 |
+
"""
|
| 201 |
+
return self["weight"]
|
| 202 |
+
|
| 203 |
+
@weight.setter
|
| 204 |
+
def weight(self, val):
|
| 205 |
+
self["weight"] = val
|
| 206 |
+
|
| 207 |
+
@property
|
| 208 |
+
def _prop_descriptions(self):
|
| 209 |
+
return """\
|
| 210 |
+
color
|
| 211 |
+
|
| 212 |
+
family
|
| 213 |
+
HTML font family - the typeface that will be applied by
|
| 214 |
+
the web browser. The web browser can only apply a font
|
| 215 |
+
if it is available on the system where it runs. Provide
|
| 216 |
+
multiple font families, separated by commas, to
|
| 217 |
+
indicate the order in which to apply fonts if they
|
| 218 |
+
aren't available.
|
| 219 |
+
lineposition
|
| 220 |
+
Sets the kind of decoration line(s) with text, such as
|
| 221 |
+
an "under", "over" or "through" as well as combinations
|
| 222 |
+
e.g. "under+over", etc.
|
| 223 |
+
shadow
|
| 224 |
+
Sets the shape and color of the shadow behind text.
|
| 225 |
+
"auto" places minimal shadow and applies contrast text
|
| 226 |
+
font color. See https://developer.mozilla.org/en-
|
| 227 |
+
US/docs/Web/CSS/text-shadow for additional options.
|
| 228 |
+
size
|
| 229 |
+
|
| 230 |
+
style
|
| 231 |
+
Sets whether a font should be styled with a normal or
|
| 232 |
+
italic face from its family.
|
| 233 |
+
textcase
|
| 234 |
+
Sets capitalization of text. It can be used to make
|
| 235 |
+
text appear in all-uppercase or all-lowercase, or with
|
| 236 |
+
each word capitalized.
|
| 237 |
+
variant
|
| 238 |
+
Sets the variant of the font.
|
| 239 |
+
weight
|
| 240 |
+
Sets the weight (or boldness) of the font.
|
| 241 |
+
"""
|
| 242 |
+
|
| 243 |
+
def __init__(
|
| 244 |
+
self,
|
| 245 |
+
arg=None,
|
| 246 |
+
color=None,
|
| 247 |
+
family=None,
|
| 248 |
+
lineposition=None,
|
| 249 |
+
shadow=None,
|
| 250 |
+
size=None,
|
| 251 |
+
style=None,
|
| 252 |
+
textcase=None,
|
| 253 |
+
variant=None,
|
| 254 |
+
weight=None,
|
| 255 |
+
**kwargs,
|
| 256 |
+
):
|
| 257 |
+
"""
|
| 258 |
+
Construct a new Tickfont object
|
| 259 |
+
|
| 260 |
+
Sets the tick font.
|
| 261 |
+
|
| 262 |
+
Parameters
|
| 263 |
+
----------
|
| 264 |
+
arg
|
| 265 |
+
dict of properties compatible with this constructor or
|
| 266 |
+
an instance of :class:`plotly.graph_objs.layout.smith.i
|
| 267 |
+
maginaryaxis.Tickfont`
|
| 268 |
+
color
|
| 269 |
+
|
| 270 |
+
family
|
| 271 |
+
HTML font family - the typeface that will be applied by
|
| 272 |
+
the web browser. The web browser can only apply a font
|
| 273 |
+
if it is available on the system where it runs. Provide
|
| 274 |
+
multiple font families, separated by commas, to
|
| 275 |
+
indicate the order in which to apply fonts if they
|
| 276 |
+
aren't available.
|
| 277 |
+
lineposition
|
| 278 |
+
Sets the kind of decoration line(s) with text, such as
|
| 279 |
+
an "under", "over" or "through" as well as combinations
|
| 280 |
+
e.g. "under+over", etc.
|
| 281 |
+
shadow
|
| 282 |
+
Sets the shape and color of the shadow behind text.
|
| 283 |
+
"auto" places minimal shadow and applies contrast text
|
| 284 |
+
font color. See https://developer.mozilla.org/en-
|
| 285 |
+
US/docs/Web/CSS/text-shadow for additional options.
|
| 286 |
+
size
|
| 287 |
+
|
| 288 |
+
style
|
| 289 |
+
Sets whether a font should be styled with a normal or
|
| 290 |
+
italic face from its family.
|
| 291 |
+
textcase
|
| 292 |
+
Sets capitalization of text. It can be used to make
|
| 293 |
+
text appear in all-uppercase or all-lowercase, or with
|
| 294 |
+
each word capitalized.
|
| 295 |
+
variant
|
| 296 |
+
Sets the variant of the font.
|
| 297 |
+
weight
|
| 298 |
+
Sets the weight (or boldness) of the font.
|
| 299 |
+
|
| 300 |
+
Returns
|
| 301 |
+
-------
|
| 302 |
+
Tickfont
|
| 303 |
+
"""
|
| 304 |
+
super().__init__("tickfont")
|
| 305 |
+
if "_parent" in kwargs:
|
| 306 |
+
self._parent = kwargs["_parent"]
|
| 307 |
+
return
|
| 308 |
+
|
| 309 |
+
if arg is None:
|
| 310 |
+
arg = {}
|
| 311 |
+
elif isinstance(arg, self.__class__):
|
| 312 |
+
arg = arg.to_plotly_json()
|
| 313 |
+
elif isinstance(arg, dict):
|
| 314 |
+
arg = _copy.copy(arg)
|
| 315 |
+
else:
|
| 316 |
+
raise ValueError("""\
|
| 317 |
+
The first argument to the plotly.graph_objs.layout.smith.imaginaryaxis.Tickfont
|
| 318 |
+
constructor must be a dict or
|
| 319 |
+
an instance of :class:`plotly.graph_objs.layout.smith.imaginaryaxis.Tickfont`""")
|
| 320 |
+
|
| 321 |
+
self._skip_invalid = kwargs.pop("skip_invalid", False)
|
| 322 |
+
self._validate = kwargs.pop("_validate", True)
|
| 323 |
+
|
| 324 |
+
self._set_property("color", arg, color)
|
| 325 |
+
self._set_property("family", arg, family)
|
| 326 |
+
self._set_property("lineposition", arg, lineposition)
|
| 327 |
+
self._set_property("shadow", arg, shadow)
|
| 328 |
+
self._set_property("size", arg, size)
|
| 329 |
+
self._set_property("style", arg, style)
|
| 330 |
+
self._set_property("textcase", arg, textcase)
|
| 331 |
+
self._set_property("variant", arg, variant)
|
| 332 |
+
self._set_property("weight", arg, weight)
|
| 333 |
+
self._process_kwargs(**dict(arg, **kwargs))
|
| 334 |
+
self._skip_invalid = False
|
.venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/smith/realaxis/.___init__.py
ADDED
|
Binary file (4.1 kB). View file
|
|
|
.venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/smith/realaxis/.___pycache__
ADDED
|
Binary file (4.1 kB). View file
|
|
|
.venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/smith/realaxis/.__tickfont.py
ADDED
|
Binary file (4.1 kB). View file
|
|
|
.venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/smith/realaxis/__init__.py
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import sys
|
| 2 |
+
from typing import TYPE_CHECKING
|
| 3 |
+
|
| 4 |
+
if TYPE_CHECKING:
|
| 5 |
+
from ._tickfont import Tickfont
|
| 6 |
+
else:
|
| 7 |
+
from _plotly_utils.importers import relative_import
|
| 8 |
+
|
| 9 |
+
__all__, __getattr__, __dir__ = relative_import(
|
| 10 |
+
__name__, [], ["._tickfont.Tickfont"]
|
| 11 |
+
)
|
.venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/smith/realaxis/_tickfont.py
ADDED
|
@@ -0,0 +1,334 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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es import BaseLayoutHierarchyType as _BaseLayoutHierarchyType
|
| 5 |
+
import copy as _copy
|
| 6 |
+
|
| 7 |
+
|
| 8 |
+
class Tickfont(_BaseLayoutHierarchyType):
|
| 9 |
+
_parent_path_str = "layout.smith.realaxis"
|
| 10 |
+
_path_str = "layout.smith.realaxis.tickfont"
|
| 11 |
+
_valid_props = {
|
| 12 |
+
"color",
|
| 13 |
+
"family",
|
| 14 |
+
"lineposition",
|
| 15 |
+
"shadow",
|
| 16 |
+
"size",
|
| 17 |
+
"style",
|
| 18 |
+
"textcase",
|
| 19 |
+
"variant",
|
| 20 |
+
"weight",
|
| 21 |
+
}
|
| 22 |
+
|
| 23 |
+
@property
|
| 24 |
+
def color(self):
|
| 25 |
+
"""
|
| 26 |
+
The 'color' property is a color and may be specified as:
|
| 27 |
+
- A hex string (e.g. '#ff0000')
|
| 28 |
+
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
|
| 29 |
+
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
|
| 30 |
+
- An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
|
| 31 |
+
- A named CSS color: see https://plotly.com/python/css-colors/ for a list
|
| 32 |
+
|
| 33 |
+
Returns
|
| 34 |
+
-------
|
| 35 |
+
str
|
| 36 |
+
"""
|
| 37 |
+
return self["color"]
|
| 38 |
+
|
| 39 |
+
@color.setter
|
| 40 |
+
def color(self, val):
|
| 41 |
+
self["color"] = val
|
| 42 |
+
|
| 43 |
+
@property
|
| 44 |
+
def family(self):
|
| 45 |
+
"""
|
| 46 |
+
HTML font family - the typeface that will be applied by the web
|
| 47 |
+
browser. The web browser can only apply a font if it is
|
| 48 |
+
available on the system where it runs. Provide multiple font
|
| 49 |
+
families, separated by commas, to indicate the order in which
|
| 50 |
+
to apply fonts if they aren't available.
|
| 51 |
+
|
| 52 |
+
The 'family' property is a string and must be specified as:
|
| 53 |
+
- A non-empty string
|
| 54 |
+
|
| 55 |
+
Returns
|
| 56 |
+
-------
|
| 57 |
+
str
|
| 58 |
+
"""
|
| 59 |
+
return self["family"]
|
| 60 |
+
|
| 61 |
+
@family.setter
|
| 62 |
+
def family(self, val):
|
| 63 |
+
self["family"] = val
|
| 64 |
+
|
| 65 |
+
@property
|
| 66 |
+
def lineposition(self):
|
| 67 |
+
"""
|
| 68 |
+
Sets the kind of decoration line(s) with text, such as an
|
| 69 |
+
"under", "over" or "through" as well as combinations e.g.
|
| 70 |
+
"under+over", etc.
|
| 71 |
+
|
| 72 |
+
The 'lineposition' property is a flaglist and may be specified
|
| 73 |
+
as a string containing:
|
| 74 |
+
- Any combination of ['under', 'over', 'through'] joined with '+' characters
|
| 75 |
+
(e.g. 'under+over')
|
| 76 |
+
OR exactly one of ['none'] (e.g. 'none')
|
| 77 |
+
|
| 78 |
+
Returns
|
| 79 |
+
-------
|
| 80 |
+
Any
|
| 81 |
+
"""
|
| 82 |
+
return self["lineposition"]
|
| 83 |
+
|
| 84 |
+
@lineposition.setter
|
| 85 |
+
def lineposition(self, val):
|
| 86 |
+
self["lineposition"] = val
|
| 87 |
+
|
| 88 |
+
@property
|
| 89 |
+
def shadow(self):
|
| 90 |
+
"""
|
| 91 |
+
Sets the shape and color of the shadow behind text. "auto"
|
| 92 |
+
places minimal shadow and applies contrast text font color. See
|
| 93 |
+
https://developer.mozilla.org/en-US/docs/Web/CSS/text-shadow
|
| 94 |
+
for additional options.
|
| 95 |
+
|
| 96 |
+
The 'shadow' property is a string and must be specified as:
|
| 97 |
+
- A string
|
| 98 |
+
- A number that will be converted to a string
|
| 99 |
+
|
| 100 |
+
Returns
|
| 101 |
+
-------
|
| 102 |
+
str
|
| 103 |
+
"""
|
| 104 |
+
return self["shadow"]
|
| 105 |
+
|
| 106 |
+
@shadow.setter
|
| 107 |
+
def shadow(self, val):
|
| 108 |
+
self["shadow"] = val
|
| 109 |
+
|
| 110 |
+
@property
|
| 111 |
+
def size(self):
|
| 112 |
+
"""
|
| 113 |
+
The 'size' property is a number and may be specified as:
|
| 114 |
+
- An int or float in the interval [1, inf]
|
| 115 |
+
|
| 116 |
+
Returns
|
| 117 |
+
-------
|
| 118 |
+
int|float
|
| 119 |
+
"""
|
| 120 |
+
return self["size"]
|
| 121 |
+
|
| 122 |
+
@size.setter
|
| 123 |
+
def size(self, val):
|
| 124 |
+
self["size"] = val
|
| 125 |
+
|
| 126 |
+
@property
|
| 127 |
+
def style(self):
|
| 128 |
+
"""
|
| 129 |
+
Sets whether a font should be styled with a normal or italic
|
| 130 |
+
face from its family.
|
| 131 |
+
|
| 132 |
+
The 'style' property is an enumeration that may be specified as:
|
| 133 |
+
- One of the following enumeration values:
|
| 134 |
+
['normal', 'italic']
|
| 135 |
+
|
| 136 |
+
Returns
|
| 137 |
+
-------
|
| 138 |
+
Any
|
| 139 |
+
"""
|
| 140 |
+
return self["style"]
|
| 141 |
+
|
| 142 |
+
@style.setter
|
| 143 |
+
def style(self, val):
|
| 144 |
+
self["style"] = val
|
| 145 |
+
|
| 146 |
+
@property
|
| 147 |
+
def textcase(self):
|
| 148 |
+
"""
|
| 149 |
+
Sets capitalization of text. It can be used to make text appear
|
| 150 |
+
in all-uppercase or all-lowercase, or with each word
|
| 151 |
+
capitalized.
|
| 152 |
+
|
| 153 |
+
The 'textcase' property is an enumeration that may be specified as:
|
| 154 |
+
- One of the following enumeration values:
|
| 155 |
+
['normal', 'word caps', 'upper', 'lower']
|
| 156 |
+
|
| 157 |
+
Returns
|
| 158 |
+
-------
|
| 159 |
+
Any
|
| 160 |
+
"""
|
| 161 |
+
return self["textcase"]
|
| 162 |
+
|
| 163 |
+
@textcase.setter
|
| 164 |
+
def textcase(self, val):
|
| 165 |
+
self["textcase"] = val
|
| 166 |
+
|
| 167 |
+
@property
|
| 168 |
+
def variant(self):
|
| 169 |
+
"""
|
| 170 |
+
Sets the variant of the font.
|
| 171 |
+
|
| 172 |
+
The 'variant' property is an enumeration that may be specified as:
|
| 173 |
+
- One of the following enumeration values:
|
| 174 |
+
['normal', 'small-caps', 'all-small-caps',
|
| 175 |
+
'all-petite-caps', 'petite-caps', 'unicase']
|
| 176 |
+
|
| 177 |
+
Returns
|
| 178 |
+
-------
|
| 179 |
+
Any
|
| 180 |
+
"""
|
| 181 |
+
return self["variant"]
|
| 182 |
+
|
| 183 |
+
@variant.setter
|
| 184 |
+
def variant(self, val):
|
| 185 |
+
self["variant"] = val
|
| 186 |
+
|
| 187 |
+
@property
|
| 188 |
+
def weight(self):
|
| 189 |
+
"""
|
| 190 |
+
Sets the weight (or boldness) of the font.
|
| 191 |
+
|
| 192 |
+
The 'weight' property is a integer and may be specified as:
|
| 193 |
+
- An int (or float that will be cast to an int)
|
| 194 |
+
in the interval [1, 1000]
|
| 195 |
+
OR exactly one of ['normal', 'bold'] (e.g. 'bold')
|
| 196 |
+
|
| 197 |
+
Returns
|
| 198 |
+
-------
|
| 199 |
+
int
|
| 200 |
+
"""
|
| 201 |
+
return self["weight"]
|
| 202 |
+
|
| 203 |
+
@weight.setter
|
| 204 |
+
def weight(self, val):
|
| 205 |
+
self["weight"] = val
|
| 206 |
+
|
| 207 |
+
@property
|
| 208 |
+
def _prop_descriptions(self):
|
| 209 |
+
return """\
|
| 210 |
+
color
|
| 211 |
+
|
| 212 |
+
family
|
| 213 |
+
HTML font family - the typeface that will be applied by
|
| 214 |
+
the web browser. The web browser can only apply a font
|
| 215 |
+
if it is available on the system where it runs. Provide
|
| 216 |
+
multiple font families, separated by commas, to
|
| 217 |
+
indicate the order in which to apply fonts if they
|
| 218 |
+
aren't available.
|
| 219 |
+
lineposition
|
| 220 |
+
Sets the kind of decoration line(s) with text, such as
|
| 221 |
+
an "under", "over" or "through" as well as combinations
|
| 222 |
+
e.g. "under+over", etc.
|
| 223 |
+
shadow
|
| 224 |
+
Sets the shape and color of the shadow behind text.
|
| 225 |
+
"auto" places minimal shadow and applies contrast text
|
| 226 |
+
font color. See https://developer.mozilla.org/en-
|
| 227 |
+
US/docs/Web/CSS/text-shadow for additional options.
|
| 228 |
+
size
|
| 229 |
+
|
| 230 |
+
style
|
| 231 |
+
Sets whether a font should be styled with a normal or
|
| 232 |
+
italic face from its family.
|
| 233 |
+
textcase
|
| 234 |
+
Sets capitalization of text. It can be used to make
|
| 235 |
+
text appear in all-uppercase or all-lowercase, or with
|
| 236 |
+
each word capitalized.
|
| 237 |
+
variant
|
| 238 |
+
Sets the variant of the font.
|
| 239 |
+
weight
|
| 240 |
+
Sets the weight (or boldness) of the font.
|
| 241 |
+
"""
|
| 242 |
+
|
| 243 |
+
def __init__(
|
| 244 |
+
self,
|
| 245 |
+
arg=None,
|
| 246 |
+
color=None,
|
| 247 |
+
family=None,
|
| 248 |
+
lineposition=None,
|
| 249 |
+
shadow=None,
|
| 250 |
+
size=None,
|
| 251 |
+
style=None,
|
| 252 |
+
textcase=None,
|
| 253 |
+
variant=None,
|
| 254 |
+
weight=None,
|
| 255 |
+
**kwargs,
|
| 256 |
+
):
|
| 257 |
+
"""
|
| 258 |
+
Construct a new Tickfont object
|
| 259 |
+
|
| 260 |
+
Sets the tick font.
|
| 261 |
+
|
| 262 |
+
Parameters
|
| 263 |
+
----------
|
| 264 |
+
arg
|
| 265 |
+
dict of properties compatible with this constructor or
|
| 266 |
+
an instance of :class:`plotly.graph_objs.layout.smith.r
|
| 267 |
+
ealaxis.Tickfont`
|
| 268 |
+
color
|
| 269 |
+
|
| 270 |
+
family
|
| 271 |
+
HTML font family - the typeface that will be applied by
|
| 272 |
+
the web browser. The web browser can only apply a font
|
| 273 |
+
if it is available on the system where it runs. Provide
|
| 274 |
+
multiple font families, separated by commas, to
|
| 275 |
+
indicate the order in which to apply fonts if they
|
| 276 |
+
aren't available.
|
| 277 |
+
lineposition
|
| 278 |
+
Sets the kind of decoration line(s) with text, such as
|
| 279 |
+
an "under", "over" or "through" as well as combinations
|
| 280 |
+
e.g. "under+over", etc.
|
| 281 |
+
shadow
|
| 282 |
+
Sets the shape and color of the shadow behind text.
|
| 283 |
+
"auto" places minimal shadow and applies contrast text
|
| 284 |
+
font color. See https://developer.mozilla.org/en-
|
| 285 |
+
US/docs/Web/CSS/text-shadow for additional options.
|
| 286 |
+
size
|
| 287 |
+
|
| 288 |
+
style
|
| 289 |
+
Sets whether a font should be styled with a normal or
|
| 290 |
+
italic face from its family.
|
| 291 |
+
textcase
|
| 292 |
+
Sets capitalization of text. It can be used to make
|
| 293 |
+
text appear in all-uppercase or all-lowercase, or with
|
| 294 |
+
each word capitalized.
|
| 295 |
+
variant
|
| 296 |
+
Sets the variant of the font.
|
| 297 |
+
weight
|
| 298 |
+
Sets the weight (or boldness) of the font.
|
| 299 |
+
|
| 300 |
+
Returns
|
| 301 |
+
-------
|
| 302 |
+
Tickfont
|
| 303 |
+
"""
|
| 304 |
+
super().__init__("tickfont")
|
| 305 |
+
if "_parent" in kwargs:
|
| 306 |
+
self._parent = kwargs["_parent"]
|
| 307 |
+
return
|
| 308 |
+
|
| 309 |
+
if arg is None:
|
| 310 |
+
arg = {}
|
| 311 |
+
elif isinstance(arg, self.__class__):
|
| 312 |
+
arg = arg.to_plotly_json()
|
| 313 |
+
elif isinstance(arg, dict):
|
| 314 |
+
arg = _copy.copy(arg)
|
| 315 |
+
else:
|
| 316 |
+
raise ValueError("""\
|
| 317 |
+
The first argument to the plotly.graph_objs.layout.smith.realaxis.Tickfont
|
| 318 |
+
constructor must be a dict or
|
| 319 |
+
an instance of :class:`plotly.graph_objs.layout.smith.realaxis.Tickfont`""")
|
| 320 |
+
|
| 321 |
+
self._skip_invalid = kwargs.pop("skip_invalid", False)
|
| 322 |
+
self._validate = kwargs.pop("_validate", True)
|
| 323 |
+
|
| 324 |
+
self._set_property("color", arg, color)
|
| 325 |
+
self._set_property("family", arg, family)
|
| 326 |
+
self._set_property("lineposition", arg, lineposition)
|
| 327 |
+
self._set_property("shadow", arg, shadow)
|
| 328 |
+
self._set_property("size", arg, size)
|
| 329 |
+
self._set_property("style", arg, style)
|
| 330 |
+
self._set_property("textcase", arg, textcase)
|
| 331 |
+
self._set_property("variant", arg, variant)
|
| 332 |
+
self._set_property("weight", arg, weight)
|
| 333 |
+
self._process_kwargs(**dict(arg, **kwargs))
|
| 334 |
+
self._skip_invalid = False
|
.venv_haddock/lib/python3.12/site-packages/plotly/graph_objs/layout/template/.___init__.py
ADDED
|
Binary file (4.1 kB). View file
|
|
|