lets-plot 4.5.0rc2__cp311-cp311-macosx_11_0_arm64.whl → 4.5.2__cp311-cp311-macosx_11_0_arm64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of lets-plot might be problematic. Click here for more details.
- lets_plot/__init__.py +1 -1
- lets_plot/_version.py +1 -1
- lets_plot/bistro/corr.py +6 -1
- lets_plot/bistro/joint.py +7 -2
- lets_plot/bistro/qq.py +10 -5
- lets_plot/bistro/residual.py +6 -1
- lets_plot/bistro/waterfall.py +8 -6
- lets_plot/package_data/lets-plot.min.js +1 -1
- lets_plot/plot/annotation.py +1 -1
- lets_plot/plot/expand_limits_.py +5 -5
- lets_plot/plot/facet.py +2 -2
- lets_plot/plot/geom.py +314 -123
- lets_plot/plot/geom_function_.py +8 -2
- lets_plot/plot/geom_livemap_.py +32 -0
- lets_plot/plot/ggtb_.py +6 -3
- lets_plot/plot/scale.py +40 -40
- lets_plot/plot/scale_colormap_mpl.py +3 -3
- lets_plot/plot/scale_identity_.py +11 -19
- lets_plot/plot/scale_position.py +14 -14
- lets_plot/plot/series_meta.py +9 -3
- lets_plot/plot/stat.py +24 -0
- lets_plot/plot/theme_.py +8 -5
- lets_plot/plot/tooltip.py +1 -1
- lets_plot/tilesets.py +4 -69
- {lets_plot-4.5.0rc2.dist-info → lets_plot-4.5.2.dist-info}/METADATA +33 -18
- {lets_plot-4.5.0rc2.dist-info → lets_plot-4.5.2.dist-info}/RECORD +30 -30
- {lets_plot-4.5.0rc2.dist-info → lets_plot-4.5.2.dist-info}/WHEEL +1 -1
- lets_plot_kotlin_bridge.cpython-311-darwin.so +0 -0
- {lets_plot-4.5.0rc2.dist-info → lets_plot-4.5.2.dist-info}/LICENSE +0 -0
- {lets_plot-4.5.0rc2.dist-info → lets_plot-4.5.2.dist-info}/top_level.txt +0 -0
lets_plot/plot/geom_function_.py
CHANGED
|
@@ -114,6 +114,7 @@ def geom_function(mapping=None, *, data=None, stat=None, geom=None, position=Non
|
|
|
114
114
|
tooltips : `layer_tooltips`
|
|
115
115
|
Result of the call to the `layer_tooltips()` function.
|
|
116
116
|
Specify appearance, style and content.
|
|
117
|
+
Set tooltips='none' to hide tooltips from the layer.
|
|
117
118
|
fun : function
|
|
118
119
|
A function of one variable in Python syntax.
|
|
119
120
|
xlim : list of float, default=[0.0, 1.0]
|
|
@@ -139,10 +140,15 @@ def geom_function(mapping=None, *, data=None, stat=None, geom=None, position=Non
|
|
|
139
140
|
|
|
140
141
|
- x : x-axis value.
|
|
141
142
|
- alpha : transparency level of a layer. Accept values between 0 and 1.
|
|
142
|
-
- color (colour) : color of the geometry. For more info see https://lets-plot.org/python/pages/aesthetics.html#color-and-fill.
|
|
143
|
-
- linetype : type of the line. Accept codes or names (0 = 'blank', 1 = 'solid', 2 = 'dashed', 3 = 'dotted', 4 = 'dotdash', 5 = 'longdash', 6 = 'twodash'), a hex string (up to 8 digits for dash-gap lengths), or a list pattern [offset, [dash, gap, ...]] / [dash, gap, ...]. For more info see https://lets-plot.org/python/pages/aesthetics.html#line-types.
|
|
143
|
+
- color (colour) : color of the geometry. For more info see `Color and Fill <https://lets-plot.org/python/pages/aesthetics.html#color-and-fill>`__.
|
|
144
|
+
- linetype : type of the line. Accept codes or names (0 = 'blank', 1 = 'solid', 2 = 'dashed', 3 = 'dotted', 4 = 'dotdash', 5 = 'longdash', 6 = 'twodash'), a hex string (up to 8 digits for dash-gap lengths), or a list pattern [offset, [dash, gap, ...]] / [dash, gap, ...]. For more info see `Line Types <https://lets-plot.org/python/pages/aesthetics.html#line-types>`__.
|
|
144
145
|
- size : line width.
|
|
145
146
|
|
|
147
|
+
----
|
|
148
|
+
|
|
149
|
+
To hide axis tooltips, set 'blank' or the result of `element_blank()`
|
|
150
|
+
to the `axis_tooltip`, `axis_tooltip_x` or `axis_tooltip_y` parameter of the `theme()`.
|
|
151
|
+
|
|
146
152
|
Examples
|
|
147
153
|
--------
|
|
148
154
|
.. jupyter-execute::
|
lets_plot/plot/geom_livemap_.py
CHANGED
|
@@ -205,6 +205,7 @@ def _prepare_tiles(tiles: Optional[Union[str, dict]]) -> Optional[dict]:
|
|
|
205
205
|
|
|
206
206
|
if isinstance(tiles, dict):
|
|
207
207
|
if tiles.get(MAPTILES_KIND) == TILES_RASTER_ZXY:
|
|
208
|
+
_warn_deprecated_tiles(tiles)
|
|
208
209
|
return {
|
|
209
210
|
OPTIONS_MAPTILES_KIND: TILES_RASTER_ZXY,
|
|
210
211
|
OPTIONS_MAPTILES_URL: tiles[MAPTILES_URL],
|
|
@@ -240,6 +241,7 @@ def _prepare_tiles(tiles: Optional[Union[str, dict]]) -> Optional[dict]:
|
|
|
240
241
|
raise ValueError('URL for tiles service is not set')
|
|
241
242
|
|
|
242
243
|
if get_global_val(MAPTILES_KIND) == TILES_RASTER_ZXY:
|
|
244
|
+
_warn_deprecated_tiles(None)
|
|
243
245
|
return {
|
|
244
246
|
OPTIONS_MAPTILES_KIND: TILES_RASTER_ZXY,
|
|
245
247
|
OPTIONS_MAPTILES_URL: get_global_val(MAPTILES_URL),
|
|
@@ -269,6 +271,36 @@ def _prepare_tiles(tiles: Optional[Union[str, dict]]) -> Optional[dict]:
|
|
|
269
271
|
raise ValueError('Tile provider is not set.')
|
|
270
272
|
|
|
271
273
|
|
|
274
|
+
def _warn_deprecated_tiles(tiles: Union[dict, None]):
|
|
275
|
+
# TODO: Remove this warning in future releases.
|
|
276
|
+
|
|
277
|
+
if tiles is None:
|
|
278
|
+
maptiles_url = get_global_val(MAPTILES_URL)
|
|
279
|
+
else:
|
|
280
|
+
maptiles_url = tiles[MAPTILES_URL]
|
|
281
|
+
|
|
282
|
+
if not isinstance(maptiles_url, str):
|
|
283
|
+
return
|
|
284
|
+
if not maptiles_url.startswith("https://cartocdn_[abc].global.ssl.fastly.net/"):
|
|
285
|
+
return
|
|
286
|
+
if 'base-midnight' not in maptiles_url and 'base-antique' not in maptiles_url and 'base-flatblue' not in maptiles_url:
|
|
287
|
+
return
|
|
288
|
+
|
|
289
|
+
if tiles is None:
|
|
290
|
+
if not has_global_value(MAPTILES_ATTRIBUTION):
|
|
291
|
+
return
|
|
292
|
+
maptiles_attribution = get_global_val(MAPTILES_ATTRIBUTION)
|
|
293
|
+
else:
|
|
294
|
+
maptiles_attribution = tiles[MAPTILES_ATTRIBUTION]
|
|
295
|
+
|
|
296
|
+
if not isinstance(maptiles_attribution, str):
|
|
297
|
+
return
|
|
298
|
+
if not maptiles_attribution.endswith('map data: <a href="https://www.openstreetmap.org/copyright">© OpenStreetMap contributors</a> <a href="https://carto.com/attributions#basemaps">© CARTO</a>, <a href="https://carto.com/attributions">© CARTO</a>'):
|
|
299
|
+
return
|
|
300
|
+
|
|
301
|
+
print(f"WARN: The tileset is no longer available and the corresponding constant will be removed in future releases.")
|
|
302
|
+
|
|
303
|
+
|
|
272
304
|
def _prepare_location(location: Union[str, List[float]]) -> Optional[dict]:
|
|
273
305
|
if location is None:
|
|
274
306
|
return None
|
lets_plot/plot/ggtb_.py
CHANGED
|
@@ -17,6 +17,7 @@ def ggtb() -> FeatureSpec:
|
|
|
17
17
|
in and out, regardless of the selected tool.
|
|
18
18
|
|
|
19
19
|
The toolbar includes:
|
|
20
|
+
|
|
20
21
|
- Pan: Drag to move the plot.
|
|
21
22
|
- Rubber-band zoom: Drag to define a rectangular area to zoom into.
|
|
22
23
|
- Center-point zoom: Drag up or down to zoom in or out from a center point.
|
|
@@ -26,6 +27,7 @@ def ggtb() -> FeatureSpec:
|
|
|
26
27
|
regardless of whether a tool is selected or not.
|
|
27
28
|
|
|
28
29
|
Limitations:
|
|
30
|
+
|
|
29
31
|
- The toolbar does not work with interactive maps.
|
|
30
32
|
- The toolbar is not compatible with GGBunch.
|
|
31
33
|
- The toolbar cannot be used with plots using a polar coordinate system.
|
|
@@ -39,15 +41,16 @@ def ggtb() -> FeatureSpec:
|
|
|
39
41
|
--------
|
|
40
42
|
.. jupyter-execute::
|
|
41
43
|
:linenos:
|
|
42
|
-
:emphasize-lines:
|
|
44
|
+
:emphasize-lines: 8
|
|
43
45
|
|
|
44
46
|
import numpy as np
|
|
45
47
|
from lets_plot import *
|
|
46
48
|
LetsPlot.setup_html()
|
|
47
49
|
x = np.linspace(-2 * np.pi, 2 * np.pi, 100)
|
|
48
50
|
y = np.sin(x)
|
|
49
|
-
|
|
50
|
-
|
|
51
|
+
ggplot({'x': x, 'y': y}, aes(x='x', y='y')) + \\
|
|
52
|
+
geom_point() + \\
|
|
53
|
+
ggtb()
|
|
51
54
|
|
|
52
55
|
"""
|
|
53
56
|
return FeatureSpec(kind='ggtoolbar', name=None)
|
lets_plot/plot/scale.py
CHANGED
|
@@ -56,7 +56,7 @@ def scale_shape(solid=True, name=None, breaks=None, labels=None, lablim=None, li
|
|
|
56
56
|
- 'Num {}' -> 'Num 12.456789'
|
|
57
57
|
- 'TTL: {.2f}$' -> 'TTL: 12.45$'
|
|
58
58
|
|
|
59
|
-
For more info see https://lets-plot.org/python/pages/formats.html.
|
|
59
|
+
For more info see `Formatting <https://lets-plot.org/python/pages/formats.html>`__.
|
|
60
60
|
|
|
61
61
|
Returns
|
|
62
62
|
-------
|
|
@@ -143,7 +143,7 @@ def scale_manual(aesthetic, values, *,
|
|
|
143
143
|
- 'Num {}' -> 'Num 12.456789'
|
|
144
144
|
- 'TTL: {.2f}$' -> 'TTL: 12.45$'
|
|
145
145
|
|
|
146
|
-
For more info see https://lets-plot.org/python/pages/formats.html.
|
|
146
|
+
For more info see `Formatting <https://lets-plot.org/python/pages/formats.html>`__.
|
|
147
147
|
|
|
148
148
|
Returns
|
|
149
149
|
-------
|
|
@@ -239,7 +239,7 @@ def scale_color_manual(values, name=None, breaks=None, labels=None, lablim=None,
|
|
|
239
239
|
- 'Num {}' -> 'Num 12.456789'
|
|
240
240
|
- 'TTL: {.2f}$' -> 'TTL: 12.45$'
|
|
241
241
|
|
|
242
|
-
For more info see https://lets-plot.org/python/pages/formats.html.
|
|
242
|
+
For more info see `Formatting <https://lets-plot.org/python/pages/formats.html>`__.
|
|
243
243
|
|
|
244
244
|
Returns
|
|
245
245
|
-------
|
|
@@ -314,7 +314,7 @@ def scale_fill_manual(values, name=None, breaks=None, labels=None, lablim=None,
|
|
|
314
314
|
- 'Num {}' -> 'Num 12.456789'
|
|
315
315
|
- 'TTL: {.2f}$' -> 'TTL: 12.45$'
|
|
316
316
|
|
|
317
|
-
For more info see https://lets-plot.org/python/pages/formats.html.
|
|
317
|
+
For more info see `Formatting <https://lets-plot.org/python/pages/formats.html>`__.
|
|
318
318
|
|
|
319
319
|
Returns
|
|
320
320
|
-------
|
|
@@ -387,7 +387,7 @@ def scale_size_manual(values, name=None, breaks=None, labels=None, lablim=None,
|
|
|
387
387
|
- 'Num {}' -> 'Num 12.456789'
|
|
388
388
|
- 'TTL: {.2f}$' -> 'TTL: 12.45$'
|
|
389
389
|
|
|
390
|
-
For more info see https://lets-plot.org/python/pages/formats.html.
|
|
390
|
+
For more info see `Formatting <https://lets-plot.org/python/pages/formats.html>`__.
|
|
391
391
|
|
|
392
392
|
Returns
|
|
393
393
|
-------
|
|
@@ -462,7 +462,7 @@ def scale_shape_manual(values, name=None, breaks=None, labels=None, lablim=None,
|
|
|
462
462
|
- 'Num {}' -> 'Num 12.456789'
|
|
463
463
|
- 'TTL: {.2f}$' -> 'TTL: 12.45$'
|
|
464
464
|
|
|
465
|
-
For more info see https://lets-plot.org/python/pages/formats.html.
|
|
465
|
+
For more info see `Formatting <https://lets-plot.org/python/pages/formats.html>`__.
|
|
466
466
|
|
|
467
467
|
Returns
|
|
468
468
|
-------
|
|
@@ -537,7 +537,7 @@ def scale_linetype_manual(values, name=None, breaks=None, labels=None, lablim=No
|
|
|
537
537
|
- 'Num {}' -> 'Num 12.456789'
|
|
538
538
|
- 'TTL: {.2f}$' -> 'TTL: 12.45$'
|
|
539
539
|
|
|
540
|
-
For more info see https://lets-plot.org/python/pages/formats.html.
|
|
540
|
+
For more info see `Formatting <https://lets-plot.org/python/pages/formats.html>`__.
|
|
541
541
|
|
|
542
542
|
Returns
|
|
543
543
|
-------
|
|
@@ -613,7 +613,7 @@ def scale_alpha_manual(values, name=None, breaks=None, labels=None, lablim=None,
|
|
|
613
613
|
- 'Num {}' -> 'Num 12.456789'
|
|
614
614
|
- 'TTL: {.2f}$' -> 'TTL: 12.45$'
|
|
615
615
|
|
|
616
|
-
For more info see https://lets-plot.org/python/pages/formats.html.
|
|
616
|
+
For more info see `Formatting <https://lets-plot.org/python/pages/formats.html>`__.
|
|
617
617
|
|
|
618
618
|
Returns
|
|
619
619
|
-------
|
|
@@ -706,7 +706,7 @@ def scale_continuous(aesthetic, *,
|
|
|
706
706
|
- 'Num {}' -> 'Num 12.456789'
|
|
707
707
|
- 'TTL: {.2f}$' -> 'TTL: 12.45$'
|
|
708
708
|
|
|
709
|
-
For more info see https://lets-plot.org/python/pages/formats.html.
|
|
709
|
+
For more info see `Formatting <https://lets-plot.org/python/pages/formats.html>`__.
|
|
710
710
|
scale_mapper_kind : {'identity', 'color_gradient', 'color_gradient2', 'color_gradientn', 'color_hue', 'color_grey', 'color_brewer', 'color_cmap', 'size_area'}
|
|
711
711
|
The type of the scale.
|
|
712
712
|
If None (the default) and the scale is color, then 'color_gradient' will be used.
|
|
@@ -793,7 +793,7 @@ def scale_fill_continuous(name=None, breaks=None, labels=None, lablim=None,
|
|
|
793
793
|
- 'Num {}' -> 'Num 12.456789'
|
|
794
794
|
- 'TTL: {.2f}$' -> 'TTL: 12.45$'
|
|
795
795
|
|
|
796
|
-
For more info see https://lets-plot.org/python/pages/formats.html.
|
|
796
|
+
For more info see `Formatting <https://lets-plot.org/python/pages/formats.html>`__.
|
|
797
797
|
scale_mapper_kind : {'color_gradient', 'color_gradient2', 'color_gradientn', 'color_hue', 'color_grey', 'color_brewer', 'color_cmap'}
|
|
798
798
|
The type of color scale.
|
|
799
799
|
If None (the default), then 'color_gradient' will be used.
|
|
@@ -872,7 +872,7 @@ def scale_color_continuous(name=None, breaks=None, labels=None, lablim=None, lim
|
|
|
872
872
|
- 'Num {}' -> 'Num 12.456789'
|
|
873
873
|
- 'TTL: {.2f}$' -> 'TTL: 12.45$'
|
|
874
874
|
|
|
875
|
-
For more info see https://lets-plot.org/python/pages/formats.html.
|
|
875
|
+
For more info see `Formatting <https://lets-plot.org/python/pages/formats.html>`__.
|
|
876
876
|
scale_mapper_kind : {'color_gradient', 'color_gradient2', 'color_gradientn', 'color_hue', 'color_grey', 'color_brewer', 'color_cmap'}
|
|
877
877
|
The type of color scale.
|
|
878
878
|
If None (the default), then 'color_gradient' will be used.
|
|
@@ -959,7 +959,7 @@ def scale_gradient(aesthetic, *,
|
|
|
959
959
|
- 'Num {}' -> 'Num 12.456789'
|
|
960
960
|
- 'TTL: {.2f}$' -> 'TTL: 12.45$'
|
|
961
961
|
|
|
962
|
-
For more info see https://lets-plot.org/python/pages/formats.html.
|
|
962
|
+
For more info see `Formatting <https://lets-plot.org/python/pages/formats.html>`__.
|
|
963
963
|
|
|
964
964
|
Returns
|
|
965
965
|
-------
|
|
@@ -1042,7 +1042,7 @@ def scale_fill_gradient(low=None, high=None, name=None, breaks=None, labels=None
|
|
|
1042
1042
|
- 'Num {}' -> 'Num 12.456789'
|
|
1043
1043
|
- 'TTL: {.2f}$' -> 'TTL: 12.45$'
|
|
1044
1044
|
|
|
1045
|
-
For more info see https://lets-plot.org/python/pages/formats.html.
|
|
1045
|
+
For more info see `Formatting <https://lets-plot.org/python/pages/formats.html>`__.
|
|
1046
1046
|
|
|
1047
1047
|
Returns
|
|
1048
1048
|
-------
|
|
@@ -1122,7 +1122,7 @@ def scale_color_gradient(low=None, high=None, name=None, breaks=None, labels=Non
|
|
|
1122
1122
|
- 'Num {}' -> 'Num 12.456789'
|
|
1123
1123
|
- 'TTL: {.2f}$' -> 'TTL: 12.45$'
|
|
1124
1124
|
|
|
1125
|
-
For more info see https://lets-plot.org/python/pages/formats.html.
|
|
1125
|
+
For more info see `Formatting <https://lets-plot.org/python/pages/formats.html>`__.
|
|
1126
1126
|
|
|
1127
1127
|
Returns
|
|
1128
1128
|
-------
|
|
@@ -1209,7 +1209,7 @@ def scale_gradient2(aesthetic, *,
|
|
|
1209
1209
|
- 'Num {}' -> 'Num 12.456789'
|
|
1210
1210
|
- 'TTL: {.2f}$' -> 'TTL: 12.45$'
|
|
1211
1211
|
|
|
1212
|
-
For more info see https://lets-plot.org/python/pages/formats.html.
|
|
1212
|
+
For more info see `Formatting <https://lets-plot.org/python/pages/formats.html>`__.
|
|
1213
1213
|
|
|
1214
1214
|
Returns
|
|
1215
1215
|
-------
|
|
@@ -1297,7 +1297,7 @@ def scale_fill_gradient2(low=None, mid=None, high=None, midpoint=0, name=None, b
|
|
|
1297
1297
|
- 'Num {}' -> 'Num 12.456789'
|
|
1298
1298
|
- 'TTL: {.2f}$' -> 'TTL: 12.45$'
|
|
1299
1299
|
|
|
1300
|
-
For more info see https://lets-plot.org/python/pages/formats.html.
|
|
1300
|
+
For more info see `Formatting <https://lets-plot.org/python/pages/formats.html>`__.
|
|
1301
1301
|
|
|
1302
1302
|
Returns
|
|
1303
1303
|
-------
|
|
@@ -1382,7 +1382,7 @@ def scale_color_gradient2(low=None, mid=None, high=None, midpoint=0, name=None,
|
|
|
1382
1382
|
- 'Num {}' -> 'Num 12.456789'
|
|
1383
1383
|
- 'TTL: {.2f}$' -> 'TTL: 12.45$'
|
|
1384
1384
|
|
|
1385
|
-
For more info see https://lets-plot.org/python/pages/formats.html.
|
|
1385
|
+
For more info see `Formatting <https://lets-plot.org/python/pages/formats.html>`__.
|
|
1386
1386
|
|
|
1387
1387
|
Returns
|
|
1388
1388
|
-------
|
|
@@ -1464,7 +1464,7 @@ def scale_gradientn(aesthetic, *,
|
|
|
1464
1464
|
- 'Num {}' -> 'Num 12.456789'
|
|
1465
1465
|
- 'TTL: {.2f}$' -> 'TTL: 12.45$'
|
|
1466
1466
|
|
|
1467
|
-
For more info see https://lets-plot.org/python/pages/formats.html.
|
|
1467
|
+
For more info see `Formatting <https://lets-plot.org/python/pages/formats.html>`__.
|
|
1468
1468
|
|
|
1469
1469
|
Returns
|
|
1470
1470
|
-------
|
|
@@ -1546,7 +1546,7 @@ def scale_color_gradientn(colors=None, name=None, breaks=None, labels=None, labl
|
|
|
1546
1546
|
- 'Num {}' -> 'Num 12.456789'
|
|
1547
1547
|
- 'TTL: {.2f}$' -> 'TTL: 12.45$'
|
|
1548
1548
|
|
|
1549
|
-
For more info see https://lets-plot.org/python/pages/formats.html.
|
|
1549
|
+
For more info see `Formatting <https://lets-plot.org/python/pages/formats.html>`__.
|
|
1550
1550
|
|
|
1551
1551
|
Returns
|
|
1552
1552
|
-------
|
|
@@ -1625,7 +1625,7 @@ def scale_fill_gradientn(colors=None, name=None, breaks=None, labels=None, labli
|
|
|
1625
1625
|
- 'Num {}' -> 'Num 12.456789'
|
|
1626
1626
|
- 'TTL: {.2f}$' -> 'TTL: 12.45$'
|
|
1627
1627
|
|
|
1628
|
-
For more info see https://lets-plot.org/python/pages/formats.html.
|
|
1628
|
+
For more info see `Formatting <https://lets-plot.org/python/pages/formats.html>`__.
|
|
1629
1629
|
|
|
1630
1630
|
Returns
|
|
1631
1631
|
-------
|
|
@@ -1713,7 +1713,7 @@ def scale_hue(aesthetic, *,
|
|
|
1713
1713
|
- 'Num {}' -> 'Num 12.456789'
|
|
1714
1714
|
- 'TTL: {.2f}$' -> 'TTL: 12.45$'
|
|
1715
1715
|
|
|
1716
|
-
For more info see https://lets-plot.org/python/pages/formats.html.
|
|
1716
|
+
For more info see `Formatting <https://lets-plot.org/python/pages/formats.html>`__.
|
|
1717
1717
|
|
|
1718
1718
|
Returns
|
|
1719
1719
|
-------
|
|
@@ -1803,7 +1803,7 @@ def scale_fill_hue(h=None, c=None, l=None, h_start=None, direction=None, name=No
|
|
|
1803
1803
|
- 'Num {}' -> 'Num 12.456789'
|
|
1804
1804
|
- 'TTL: {.2f}$' -> 'TTL: 12.45$'
|
|
1805
1805
|
|
|
1806
|
-
For more info see https://lets-plot.org/python/pages/formats.html.
|
|
1806
|
+
For more info see `Formatting <https://lets-plot.org/python/pages/formats.html>`__.
|
|
1807
1807
|
|
|
1808
1808
|
Returns
|
|
1809
1809
|
-------
|
|
@@ -1889,7 +1889,7 @@ def scale_color_hue(h=None, c=None, l=None, h_start=None, direction=None, name=N
|
|
|
1889
1889
|
- 'Num {}' -> 'Num 12.456789'
|
|
1890
1890
|
- 'TTL: {.2f}$' -> 'TTL: 12.45$'
|
|
1891
1891
|
|
|
1892
|
-
For more info see https://lets-plot.org/python/pages/formats.html.
|
|
1892
|
+
For more info see `Formatting <https://lets-plot.org/python/pages/formats.html>`__.
|
|
1893
1893
|
|
|
1894
1894
|
Returns
|
|
1895
1895
|
-------
|
|
@@ -1973,7 +1973,7 @@ def scale_discrete(aesthetic, *,
|
|
|
1973
1973
|
- 'Num {}' -> 'Num 12.456789'
|
|
1974
1974
|
- 'TTL: {.2f}$' -> 'TTL: 12.45$'
|
|
1975
1975
|
|
|
1976
|
-
For more info see https://lets-plot.org/python/pages/formats.html.
|
|
1976
|
+
For more info see `Formatting <https://lets-plot.org/python/pages/formats.html>`__.
|
|
1977
1977
|
scale_mapper_kind : {'identity', 'color_gradient', 'color_gradient2', 'color_gradientn', 'color_hue', 'color_grey', 'color_brewer', 'color_cmap', 'size_area'}
|
|
1978
1978
|
The type of the scale.
|
|
1979
1979
|
If None (the default) and the scale is color, then 'color_brewer' will be used.
|
|
@@ -2062,7 +2062,7 @@ def scale_fill_discrete(direction=None,
|
|
|
2062
2062
|
- 'Num {}' -> 'Num 12.456789'
|
|
2063
2063
|
- 'TTL: {.2f}$' -> 'TTL: 12.45$'
|
|
2064
2064
|
|
|
2065
|
-
For more info see https://lets-plot.org/python/pages/formats.html.
|
|
2065
|
+
For more info see `Formatting <https://lets-plot.org/python/pages/formats.html>`__.
|
|
2066
2066
|
scale_mapper_kind : {'color_gradient', 'color_gradient2', 'color_gradientn', 'color_hue', 'color_grey', 'color_brewer', 'color_cmap'}
|
|
2067
2067
|
The type of color scale.
|
|
2068
2068
|
If None (the default), then 'color_brewer' will be used.
|
|
@@ -2144,7 +2144,7 @@ def scale_color_discrete(direction=None,
|
|
|
2144
2144
|
- 'Num {}' -> 'Num 12.456789'
|
|
2145
2145
|
- 'TTL: {.2f}$' -> 'TTL: 12.45$'
|
|
2146
2146
|
|
|
2147
|
-
For more info see https://lets-plot.org/python/pages/formats.html.
|
|
2147
|
+
For more info see `Formatting <https://lets-plot.org/python/pages/formats.html>`__.
|
|
2148
2148
|
scale_mapper_kind : {'color_gradient', 'color_gradient2', 'color_gradientn', 'color_hue', 'color_grey', 'color_brewer', 'color_cmap'}
|
|
2149
2149
|
The type of color scale.
|
|
2150
2150
|
If None (the default), then 'color_brewer' will be used.
|
|
@@ -2231,7 +2231,7 @@ def scale_grey(aesthetic, *,
|
|
|
2231
2231
|
- 'Num {}' -> 'Num 12.456789'
|
|
2232
2232
|
- 'TTL: {.2f}$' -> 'TTL: 12.45$'
|
|
2233
2233
|
|
|
2234
|
-
For more info see https://lets-plot.org/python/pages/formats.html.
|
|
2234
|
+
For more info see `Formatting <https://lets-plot.org/python/pages/formats.html>`__.
|
|
2235
2235
|
|
|
2236
2236
|
Returns
|
|
2237
2237
|
-------
|
|
@@ -2316,7 +2316,7 @@ def scale_fill_grey(start=None, end=None, name=None, breaks=None, labels=None, l
|
|
|
2316
2316
|
- 'Num {}' -> 'Num 12.456789'
|
|
2317
2317
|
- 'TTL: {.2f}$' -> 'TTL: 12.45$'
|
|
2318
2318
|
|
|
2319
|
-
For more info see https://lets-plot.org/python/pages/formats.html.
|
|
2319
|
+
For more info see `Formatting <https://lets-plot.org/python/pages/formats.html>`__.
|
|
2320
2320
|
|
|
2321
2321
|
Returns
|
|
2322
2322
|
-------
|
|
@@ -2396,7 +2396,7 @@ def scale_color_grey(start=None, end=None, name=None, breaks=None, labels=None,
|
|
|
2396
2396
|
- 'Num {}' -> 'Num 12.456789'
|
|
2397
2397
|
- 'TTL: {.2f}$' -> 'TTL: 12.45$'
|
|
2398
2398
|
|
|
2399
|
-
For more info see https://lets-plot.org/python/pages/formats.html.
|
|
2399
|
+
For more info see `Formatting <https://lets-plot.org/python/pages/formats.html>`__.
|
|
2400
2400
|
|
|
2401
2401
|
Returns
|
|
2402
2402
|
-------
|
|
@@ -2504,7 +2504,7 @@ def scale_brewer(aesthetic, *,
|
|
|
2504
2504
|
- 'Num {}' -> 'Num 12.456789'
|
|
2505
2505
|
- 'TTL: {.2f}$' -> 'TTL: 12.45$'
|
|
2506
2506
|
|
|
2507
|
-
For more info see https://lets-plot.org/python/pages/formats.html.
|
|
2507
|
+
For more info see `Formatting <https://lets-plot.org/python/pages/formats.html>`__.
|
|
2508
2508
|
|
|
2509
2509
|
Returns
|
|
2510
2510
|
-------
|
|
@@ -2607,7 +2607,7 @@ def scale_fill_brewer(type=None, palette=None, direction=None, name=None, breaks
|
|
|
2607
2607
|
- 'Num {}' -> 'Num 12.456789'
|
|
2608
2608
|
- 'TTL: {.2f}$' -> 'TTL: 12.45$'
|
|
2609
2609
|
|
|
2610
|
-
For more info see https://lets-plot.org/python/pages/formats.html.
|
|
2610
|
+
For more info see `Formatting <https://lets-plot.org/python/pages/formats.html>`__.
|
|
2611
2611
|
|
|
2612
2612
|
Returns
|
|
2613
2613
|
-------
|
|
@@ -2707,7 +2707,7 @@ def scale_color_brewer(type=None, palette=None, direction=None, name=None, break
|
|
|
2707
2707
|
- 'Num {}' -> 'Num 12.456789'
|
|
2708
2708
|
- 'TTL: {.2f}$' -> 'TTL: 12.45$'
|
|
2709
2709
|
|
|
2710
|
-
For more info see https://lets-plot.org/python/pages/formats.html.
|
|
2710
|
+
For more info see `Formatting <https://lets-plot.org/python/pages/formats.html>`__.
|
|
2711
2711
|
|
|
2712
2712
|
Returns
|
|
2713
2713
|
-------
|
|
@@ -2824,7 +2824,7 @@ def scale_viridis(aesthetic, *,
|
|
|
2824
2824
|
- 'Num {}' -> 'Num 12.456789'
|
|
2825
2825
|
- 'TTL: {.2f}$' -> 'TTL: 12.45$'
|
|
2826
2826
|
|
|
2827
|
-
For more info see https://lets-plot.org/python/pages/formats.html.
|
|
2827
|
+
For more info see `Formatting <https://lets-plot.org/python/pages/formats.html>`__.
|
|
2828
2828
|
|
|
2829
2829
|
Returns
|
|
2830
2830
|
-------
|
|
@@ -2933,7 +2933,7 @@ def scale_fill_viridis(alpha=None, begin=None, end=None, direction=None, option=
|
|
|
2933
2933
|
- 'Num {}' -> 'Num 12.456789'
|
|
2934
2934
|
- 'TTL: {.2f}$' -> 'TTL: 12.45$'
|
|
2935
2935
|
|
|
2936
|
-
For more info see https://lets-plot.org/python/pages/formats.html.
|
|
2936
|
+
For more info see `Formatting <https://lets-plot.org/python/pages/formats.html>`__.
|
|
2937
2937
|
|
|
2938
2938
|
Returns
|
|
2939
2939
|
-------
|
|
@@ -3037,7 +3037,7 @@ def scale_color_viridis(alpha=None, begin=None, end=None, direction=None, option
|
|
|
3037
3037
|
- 'Num {}' -> 'Num 12.456789'
|
|
3038
3038
|
- 'TTL: {.2f}$' -> 'TTL: 12.45$'
|
|
3039
3039
|
|
|
3040
|
-
For more info see https://lets-plot.org/python/pages/formats.html.
|
|
3040
|
+
For more info see `Formatting <https://lets-plot.org/python/pages/formats.html>`__.
|
|
3041
3041
|
|
|
3042
3042
|
Returns
|
|
3043
3043
|
-------
|
|
@@ -3116,7 +3116,7 @@ def scale_alpha(range=None, name=None, breaks=None, labels=None, lablim=None, li
|
|
|
3116
3116
|
- 'Num {}' -> 'Num 12.456789'
|
|
3117
3117
|
- 'TTL: {.2f}$' -> 'TTL: 12.45$'
|
|
3118
3118
|
|
|
3119
|
-
For more info see https://lets-plot.org/python/pages/formats.html.
|
|
3119
|
+
For more info see `Formatting <https://lets-plot.org/python/pages/formats.html>`__.
|
|
3120
3120
|
|
|
3121
3121
|
Returns
|
|
3122
3122
|
-------
|
|
@@ -3190,7 +3190,7 @@ def scale_size(range=None, name=None, breaks=None, labels=None, lablim=None, lim
|
|
|
3190
3190
|
- 'Num {}' -> 'Num 12.456789'
|
|
3191
3191
|
- 'TTL: {.2f}$' -> 'TTL: 12.45$'
|
|
3192
3192
|
|
|
3193
|
-
For more info see https://lets-plot.org/python/pages/formats.html.
|
|
3193
|
+
For more info see `Formatting <https://lets-plot.org/python/pages/formats.html>`__.
|
|
3194
3194
|
|
|
3195
3195
|
Returns
|
|
3196
3196
|
-------
|
|
@@ -3265,7 +3265,7 @@ def scale_size_area(max_size=None, name=None, breaks=None, labels=None, lablim=N
|
|
|
3265
3265
|
- 'Num {}' -> 'Num 12.456789'
|
|
3266
3266
|
- 'TTL: {.2f}$' -> 'TTL: 12.45$'
|
|
3267
3267
|
|
|
3268
|
-
For more info see https://lets-plot.org/python/pages/formats.html.
|
|
3268
|
+
For more info see `Formatting <https://lets-plot.org/python/pages/formats.html>`__.
|
|
3269
3269
|
|
|
3270
3270
|
Returns
|
|
3271
3271
|
-------
|
|
@@ -3345,7 +3345,7 @@ def scale_linewidth(range=None, name=None, breaks=None, labels=None, lablim=None
|
|
|
3345
3345
|
- 'Num {}' -> 'Num 12.456789'
|
|
3346
3346
|
- 'TTL: {.2f}$' -> 'TTL: 12.45$'
|
|
3347
3347
|
|
|
3348
|
-
For more info see https://lets-plot.org/python/pages/formats.html.
|
|
3348
|
+
For more info see `Formatting <https://lets-plot.org/python/pages/formats.html>`__.
|
|
3349
3349
|
|
|
3350
3350
|
Returns
|
|
3351
3351
|
-------
|
|
@@ -3419,7 +3419,7 @@ def scale_stroke(range=None, name=None, breaks=None, labels=None, lablim=None, l
|
|
|
3419
3419
|
- 'Num {}' -> 'Num 12.456789'
|
|
3420
3420
|
- 'TTL: {.2f}$' -> 'TTL: 12.45$'
|
|
3421
3421
|
|
|
3422
|
-
For more info see https://lets-plot.org/python/pages/formats.html.
|
|
3422
|
+
For more info see `Formatting <https://lets-plot.org/python/pages/formats.html>`__.
|
|
3423
3423
|
|
|
3424
3424
|
Returns
|
|
3425
3425
|
-------
|
|
@@ -93,7 +93,7 @@ def scale_cmapmpl(aesthetic, *,
|
|
|
93
93
|
- 'Num {}' -> 'Num 12.456789'
|
|
94
94
|
- 'TTL: {.2f}$' -> 'TTL: 12.45$'
|
|
95
95
|
|
|
96
|
-
For more info see https://lets-plot.org/python/pages/formats.html.
|
|
96
|
+
For more info see `Formatting <https://lets-plot.org/python/pages/formats.html>`__.
|
|
97
97
|
|
|
98
98
|
Returns
|
|
99
99
|
-------
|
|
@@ -176,7 +176,7 @@ def scale_fill_cmapmpl(cmap, *,
|
|
|
176
176
|
- 'Num {}' -> 'Num 12.456789'
|
|
177
177
|
- 'TTL: {.2f}$' -> 'TTL: 12.45$'
|
|
178
178
|
|
|
179
|
-
For more info see https://lets-plot.org/python/pages/formats.html.
|
|
179
|
+
For more info see `Formatting <https://lets-plot.org/python/pages/formats.html>`__.
|
|
180
180
|
|
|
181
181
|
Returns
|
|
182
182
|
-------
|
|
@@ -255,7 +255,7 @@ def scale_color_cmapmpl(cmap, *,
|
|
|
255
255
|
- 'Num {}' -> 'Num 12.456789'
|
|
256
256
|
- 'TTL: {.2f}$' -> 'TTL: 12.45$'
|
|
257
257
|
|
|
258
|
-
For more info see https://lets-plot.org/python/pages/formats.html.
|
|
258
|
+
For more info see `Formatting <https://lets-plot.org/python/pages/formats.html>`__.
|
|
259
259
|
|
|
260
260
|
Returns
|
|
261
261
|
-------
|
|
@@ -54,7 +54,7 @@ def scale_identity(aesthetic, *,
|
|
|
54
54
|
- 'Num {}' -> 'Num 12.456789'
|
|
55
55
|
- 'TTL: {.2f}$' -> 'TTL: 12.45$'
|
|
56
56
|
|
|
57
|
-
For more info see https://lets-plot.org/python/pages/formats.html.
|
|
57
|
+
For more info see `Formatting <https://lets-plot.org/python/pages/formats.html>`__.
|
|
58
58
|
|
|
59
59
|
Returns
|
|
60
60
|
-------
|
|
@@ -124,7 +124,7 @@ def scale_color_identity(name=None, breaks=None, labels=None, lablim=None, limit
|
|
|
124
124
|
- 'Num {}' -> 'Num 12.456789'
|
|
125
125
|
- 'TTL: {.2f}$' -> 'TTL: 12.45$'
|
|
126
126
|
|
|
127
|
-
For more info see https://lets-plot.org/python/pages/formats.html.
|
|
127
|
+
For more info see `Formatting <https://lets-plot.org/python/pages/formats.html>`__.
|
|
128
128
|
|
|
129
129
|
Returns
|
|
130
130
|
-------
|
|
@@ -133,11 +133,7 @@ def scale_color_identity(name=None, breaks=None, labels=None, lablim=None, limit
|
|
|
133
133
|
|
|
134
134
|
Notes
|
|
135
135
|
-----
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
- names of colors (e.g. 'green'),
|
|
139
|
-
- hex codes of colors (e.g. 'x00ff00'),
|
|
140
|
-
- css colors (e.g. 'rgb(0, 255, 0)').
|
|
136
|
+
For more info about input data format, see `Color and Fill <https://lets-plot.org/python/pages/aesthetics.html#color-and-fill>`__.
|
|
141
137
|
|
|
142
138
|
Examples
|
|
143
139
|
--------
|
|
@@ -197,7 +193,7 @@ def scale_fill_identity(name=None, breaks=None, labels=None, lablim=None, limits
|
|
|
197
193
|
- 'Num {}' -> 'Num 12.456789'
|
|
198
194
|
- 'TTL: {.2f}$' -> 'TTL: 12.45$'
|
|
199
195
|
|
|
200
|
-
For more info see https://lets-plot.org/python/pages/formats.html.
|
|
196
|
+
For more info see `Formatting <https://lets-plot.org/python/pages/formats.html>`__.
|
|
201
197
|
|
|
202
198
|
Returns
|
|
203
199
|
-------
|
|
@@ -206,11 +202,7 @@ def scale_fill_identity(name=None, breaks=None, labels=None, lablim=None, limits
|
|
|
206
202
|
|
|
207
203
|
Notes
|
|
208
204
|
-----
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
- names of colors (e.g. 'green'),
|
|
212
|
-
- hex codes of colors (e.g. 'x00ff00'),
|
|
213
|
-
- css colors (e.g. 'rgb(0, 255, 0)').
|
|
205
|
+
For more info about input data format, see `Color and Fill <https://lets-plot.org/python/pages/aesthetics.html#color-and-fill>`__.
|
|
214
206
|
|
|
215
207
|
Examples
|
|
216
208
|
--------
|
|
@@ -270,7 +262,7 @@ def scale_shape_identity(name=None, breaks=None, labels=None, lablim=None, limit
|
|
|
270
262
|
- 'Num {}' -> 'Num 12.456789'
|
|
271
263
|
- 'TTL: {.2f}$' -> 'TTL: 12.45$'
|
|
272
264
|
|
|
273
|
-
For more info see https://lets-plot.org/python/pages/formats.html.
|
|
265
|
+
For more info see `Formatting <https://lets-plot.org/python/pages/formats.html>`__.
|
|
274
266
|
|
|
275
267
|
Returns
|
|
276
268
|
-------
|
|
@@ -343,7 +335,7 @@ def scale_linetype_identity(name=None, breaks=None, labels=None, lablim=None, li
|
|
|
343
335
|
- 'Num {}' -> 'Num 12.456789'
|
|
344
336
|
- 'TTL: {.2f}$' -> 'TTL: 12.45$'
|
|
345
337
|
|
|
346
|
-
For more info see https://lets-plot.org/python/pages/formats.html.
|
|
338
|
+
For more info see `Formatting <https://lets-plot.org/python/pages/formats.html>`__.
|
|
347
339
|
|
|
348
340
|
Returns
|
|
349
341
|
-------
|
|
@@ -419,7 +411,7 @@ def scale_alpha_identity(name=None, breaks=None, labels=None, lablim=None, limit
|
|
|
419
411
|
- 'Num {}' -> 'Num 12.456789'
|
|
420
412
|
- 'TTL: {.2f}$' -> 'TTL: 12.45$'
|
|
421
413
|
|
|
422
|
-
For more info see https://lets-plot.org/python/pages/formats.html.
|
|
414
|
+
For more info see `Formatting <https://lets-plot.org/python/pages/formats.html>`__.
|
|
423
415
|
|
|
424
416
|
Returns
|
|
425
417
|
-------
|
|
@@ -489,7 +481,7 @@ def scale_size_identity(name=None, breaks=None, labels=None, lablim=None, limits
|
|
|
489
481
|
- 'Num {}' -> 'Num 12.456789'
|
|
490
482
|
- 'TTL: {.2f}$' -> 'TTL: 12.45$'
|
|
491
483
|
|
|
492
|
-
For more info see https://lets-plot.org/python/pages/formats.html.
|
|
484
|
+
For more info see `Formatting <https://lets-plot.org/python/pages/formats.html>`__.
|
|
493
485
|
|
|
494
486
|
Returns
|
|
495
487
|
-------
|
|
@@ -559,7 +551,7 @@ def scale_linewidth_identity(name=None, breaks=None, labels=None, lablim=None, l
|
|
|
559
551
|
- 'Num {}' -> 'Num 12.456789'
|
|
560
552
|
- 'TTL: {.2f}$' -> 'TTL: 12.45$'
|
|
561
553
|
|
|
562
|
-
For more info see https://lets-plot.org/python/pages/formats.html.
|
|
554
|
+
For more info see `Formatting <https://lets-plot.org/python/pages/formats.html>`__.
|
|
563
555
|
|
|
564
556
|
Returns
|
|
565
557
|
-------
|
|
@@ -627,7 +619,7 @@ def scale_stroke_identity(name=None, breaks=None, labels=None, lablim=None, limi
|
|
|
627
619
|
- 'Num {}' -> 'Num 12.456789'
|
|
628
620
|
- 'TTL: {.2f}$' -> 'TTL: 12.45$'
|
|
629
621
|
|
|
630
|
-
For more info see https://lets-plot.org/python/pages/formats.html.
|
|
622
|
+
For more info see `Formatting <https://lets-plot.org/python/pages/formats.html>`__.
|
|
631
623
|
|
|
632
624
|
Returns
|
|
633
625
|
-------
|