plotly.graph_objects.scattermap.hoverlabel package¶
-
class
plotly.graph_objects.scattermap.hoverlabel.Font(arg=None, color=None, family=None, lineposition=None, shadow=None, size=None, style=None, textcase=None, variant=None, weight=None, **kwargs)¶ Bases:
plotly.basedatatypes.BaseTraceHierarchyType-
property
color¶ - The âcolorâ property is a color and may be specified as a string in the following formats:
hex or short hex (e.g. â#d3d3d3â, â#d3dâ)
hex or short hex with alpha (e.g. â#d3d3d380â, â#d3d8â)
rgb (e.g. ârgb(255, 0, 0)â, ârgb(255 0 0)â)
rgba (e.g. ârgba(255, 0, 0, 0.5)â, ârgba(255 0 0 / 0.5)â)
hsl (e.g. âhsl(0, 100%, 50%)â, âhsl(0deg 100% 50%)â)
hsla (e.g. âhsla(0, 100%, 50%, 0.5)â, âhsla(0deg 100% 50% / 0.5)â)
hwb (e.g. âhwb(0 0% 100%)â)
lab/lch/oklab/oklch (e.g. âoklch(0.7 0.15 180)â)
color (e.g. âcolor(display-p3 1 0 0)â)
named colors (full list: https://www.w3.org/TR/css-color-4/#named-color)
Any other supported CSS 4 color format: https://www.w3.org/TR/css-color-4/
A list or array of any of the above
- Returns
- Return type
str|numpy.ndarray
-
property
family¶ HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they arenât available.
- The âfamilyâ property is a string and must be specified as:
A non-empty string
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
str|numpy.ndarray
-
property
lineposition¶ Sets the kind of decoration line(s) with text, such as an âunderâ, âoverâ or âthroughâ as well as combinations e.g. âunder+overâ, etc.
The âlinepositionâ property is a flaglist and may be specified as a string containing:
Any combination of [âunderâ, âoverâ, âthroughâ] joined with â+â characters (e.g. âunder+overâ) OR exactly one of [ânoneâ] (e.g. ânoneâ)
A list or array of the above
- Returns
- Return type
Any|numpy.ndarray
-
property
shadow¶ Sets the shape and color of the shadow behind text. âautoâ places minimal shadow and applies contrast text font color. See https://developer.mozilla.org/en-US/docs/Web/CSS/text-shadow for additional options.
- The âshadowâ property is a string and must be specified as:
A string
A number that will be converted to a string
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
str|numpy.ndarray
-
property
size¶ - The âsizeâ property is a number and may be specified as:
An int or float in the interval [1, inf]
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
int|float|numpy.ndarray
-
property
style¶ Sets whether a font should be styled with a normal or italic face from its family.
- The âstyleâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[ânormalâ, âitalicâ]
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
Any|numpy.ndarray
-
property
textcase¶ Sets capitalization of text. It can be used to make text appear in all-uppercase or all-lowercase, or with each word capitalized.
- The âtextcaseâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[ânormalâ, âword capsâ, âupperâ, âlowerâ]
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
Any|numpy.ndarray
-
property
variant¶ Sets the variant of the font.
- The âvariantâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[ânormalâ, âsmall-capsâ, âall-small-capsâ, âall-petite-capsâ, âpetite-capsâ, âunicaseâ]
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
Any|numpy.ndarray
-
property
weight¶ Sets the weight (or boldness) of the font.
- The âweightâ property is an integer and may be specified as:
An int (or float that will be cast to an int) in the interval [1, 1000] OR exactly one of [ânormalâ, âboldâ] (e.g. âboldâ)
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
int|numpy.ndarray
-
property
