lets-plot 4.3.2__cp38-cp38-win_amd64.whl → 4.4.0__cp38-cp38-win_amd64.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.

Files changed (37) hide show
  1. lets_plot/__init__.py +6 -4
  2. lets_plot/_type_utils.py +8 -0
  3. lets_plot/_version.py +1 -1
  4. lets_plot/bistro/__init__.py +3 -1
  5. lets_plot/bistro/corr.py +3 -3
  6. lets_plot/bistro/im.py +1 -1
  7. lets_plot/bistro/qq.py +2 -0
  8. lets_plot/bistro/residual.py +8 -3
  9. lets_plot/bistro/waterfall.py +243 -0
  10. lets_plot/geo_data/to_geo_data_frame.py +5 -1
  11. lets_plot/mapping.py +6 -7
  12. lets_plot/package_data/lets-plot.min.js +1 -1
  13. lets_plot/plot/__init__.py +5 -1
  14. lets_plot/plot/annotation.py +2 -4
  15. lets_plot/plot/coord.py +1 -2
  16. lets_plot/plot/core.py +27 -34
  17. lets_plot/plot/geom.py +473 -122
  18. lets_plot/plot/geom_function_.py +7 -2
  19. lets_plot/plot/geom_imshow_.py +1 -1
  20. lets_plot/plot/geom_livemap_.py +15 -5
  21. lets_plot/plot/ggtb_.py +11 -0
  22. lets_plot/plot/guide.py +94 -8
  23. lets_plot/plot/label.py +30 -6
  24. lets_plot/plot/marginal_layer.py +1 -2
  25. lets_plot/plot/plot.py +4 -2
  26. lets_plot/plot/scale_colormap_mpl.py +295 -0
  27. lets_plot/plot/series_meta.py +123 -0
  28. lets_plot/plot/stat.py +2 -4
  29. lets_plot/plot/theme_.py +12 -0
  30. lets_plot/plot/tooltip.py +24 -24
  31. lets_plot/plot/util.py +106 -113
  32. {lets_plot-4.3.2.dist-info → lets_plot-4.4.0.dist-info}/METADATA +167 -192
  33. {lets_plot-4.3.2.dist-info → lets_plot-4.4.0.dist-info}/RECORD +37 -33
  34. {lets_plot-4.3.2.dist-info → lets_plot-4.4.0.dist-info}/WHEEL +1 -1
  35. lets_plot_kotlin_bridge.cp38-win_amd64.pyd +0 -0
  36. {lets_plot-4.3.2.dist-info → lets_plot-4.4.0.dist-info}/LICENSE +0 -0
  37. {lets_plot-4.3.2.dist-info → lets_plot-4.4.0.dist-info}/top_level.txt +0 -0
lets_plot/plot/geom.py CHANGED
@@ -5,7 +5,7 @@
5
5
  from lets_plot.geo_data_internals.utils import is_geocoder
6
6
 
7
7
  from .core import FeatureSpec, LayerSpec
8
- from .util import as_annotated_data, is_geo_data_frame, geo_data_frame_to_crs, get_geo_data_frame_meta
8
+ from .util import as_annotated_data, is_geo_data_frame, geo_data_frame_to_crs, get_geo_data_frame_meta, key_int2str
9
9
 
10
10
  #
11
11
  # Geoms, short for geometric objects, describe the type of plot ggplot will produce.
@@ -18,6 +18,7 @@ __all__ = ['geom_point', 'geom_path', 'geom_line',
18
18
  'geom_contour',
19
19
  'geom_contourf', 'geom_polygon', 'geom_map',
20
20
  'geom_abline', 'geom_hline', 'geom_vline',
21
+ 'geom_band',
21
22
  'geom_boxplot', 'geom_violin', 'geom_ydotplot',
22
23
  'geom_area_ridges',
23
24
  'geom_ribbon', 'geom_area', 'geom_density',
@@ -29,7 +30,8 @@ __all__ = ['geom_point', 'geom_path', 'geom_line',
29
30
  'geom_count']
30
31
 
31
32
 
32
- def geom_point(mapping=None, *, data=None, stat=None, position=None, show_legend=None, sampling=None, tooltips=None,
33
+ def geom_point(mapping=None, *, data=None, stat=None, position=None, show_legend=None, manual_key=None, sampling=None,
34
+ tooltips=None,
33
35
  map=None, map_join=None, use_crs=None,
34
36
  size_unit=None,
35
37
  color_by=None, fill_by=None,
@@ -60,6 +62,9 @@ def geom_point(mapping=None, *, data=None, stat=None, position=None, show_legend
60
62
  'stack' or 'identity', or the result of calling a position adjustment function (e.g., `position_dodge()` etc.).
61
63
  show_legend : bool, default=True
62
64
  False - do not show legend for this layer.
65
+ manual_key : str or `layer_key`
66
+ The key to show in the manual legend.
67
+ Specify text for the legend label or advanced settings using the `layer_key()` function.
63
68
  sampling : `FeatureSpec`
64
69
  Result of the call to the `sampling_xxx()` function.
65
70
  To prevent any sampling for this layer pass value "none" (string "none").
@@ -109,17 +114,18 @@ def geom_point(mapping=None, *, data=None, stat=None, position=None, show_legend
109
114
  - alpha : transparency level of the point. Accept values between 0 and 1.
110
115
  - color (colour) : color of the geometry. String in the following formats: RGB/RGBA (e.g. "rgb(0, 0, 255)"); HEX (e.g. "#0000FF"); color name (e.g. "red"); role name ("pen", "paper" or "brush").
111
116
  - fill : fill color. Is applied only to the points of shapes having inner area. String in the following formats: RGB/RGBA (e.g. "rgb(0, 0, 255)"); HEX (e.g. "#0000FF"); color name (e.g. "red"); role name ("pen", "paper" or "brush").
112
- - shape : shape of the point, an integer from 0 to 25.
117
+ - shape : shape of the point, an integer from 0 to 25. For more info see https://lets-plot.org/python/pages/aesthetics.html#point-shapes.
118
+ - angle : rotation angle of the point shape, in degrees.
113
119
  - size : size of the point.
114
120
  - stroke : width of the shape border. Applied only to the shapes having border.
115
121
 
116
- |
122
+ ----
117
123
 
118
124
  The `data` and `map` parameters of `GeoDataFrame` type support shapes `Point` and `MultiPoint`.
119
125
 
120
126
  The `map` parameter of `Geocoder` type implicitly invokes `centroids()` function.
121
127
 
122
- |
128
+ ----
123
129
 
124
130
  The conventions for the values of `map_join` parameter are as follows:
125
131
 
@@ -198,6 +204,7 @@ def geom_point(mapping=None, *, data=None, stat=None, position=None, show_legend
198
204
  stat=stat,
199
205
  position=position,
200
206
  show_legend=show_legend,
207
+ manual_key=manual_key,
201
208
  sampling=sampling,
202
209
  tooltips=tooltips,
203
210
  map=map, map_join=map_join, use_crs=use_crs,
@@ -206,7 +213,8 @@ def geom_point(mapping=None, *, data=None, stat=None, position=None, show_legend
206
213
  **other_args)
207
214
 
208
215
 
209
- def geom_path(mapping=None, *, data=None, stat=None, position=None, show_legend=None, sampling=None, tooltips=None,
216
+ def geom_path(mapping=None, *, data=None, stat=None, position=None, show_legend=None, manual_key=None, sampling=None,
217
+ tooltips=None,
210
218
  map=None, map_join=None, use_crs=None,
211
219
  flat=None, geodesic=None,
212
220
  color_by=None,
@@ -236,6 +244,9 @@ def geom_path(mapping=None, *, data=None, stat=None, position=None, show_legend=
236
244
  'stack' or 'identity', or the result of calling a position adjustment function (e.g., `position_dodge()` etc.).
237
245
  show_legend : bool, default=True
238
246
  False - do not show legend for this layer.
247
+ manual_key : str or `layer_key`
248
+ The key to show in the manual legend.
249
+ Specify text for the legend label or advanced settings using the `layer_key()` function.
239
250
  sampling : `FeatureSpec`
240
251
  Result of the call to the `sampling_xxx()` function.
241
252
  To prevent any sampling for this layer pass value "none" (string "none").
@@ -282,14 +293,14 @@ def geom_path(mapping=None, *, data=None, stat=None, position=None, show_legend=
282
293
  - y : y-axis value.
283
294
  - alpha : transparency level of a layer. Accept values between 0 and 1.
284
295
  - color (colour) : color of the geometry. String in the following formats: RGB/RGBA (e.g. "rgb(0, 0, 255)"); HEX (e.g. "#0000FF"); color name (e.g. "red"); role name ("pen", "paper" or "brush").
285
- - linetype : type of the line. Codes and names: 0 = 'blank', 1 = 'solid', 2 = 'dashed', 3 = 'dotted', 4 = 'dotdash', 5 = 'longdash', 6 = 'twodash'.
296
+ - linetype : type of the line. Codes and names: 0 = 'blank', 1 = 'solid', 2 = 'dashed', 3 = 'dotted', 4 = 'dotdash', 5 = 'longdash', 6 = 'twodash'. For more info see https://lets-plot.org/python/pages/aesthetics.html#line-types.
286
297
  - size : line width.
287
298
 
288
- |
299
+ ----
289
300
 
290
301
  The `data` and `map` parameters of `GeoDataFrame` type support shapes `LineString` and `MultiLineString`.
291
302
 
292
- |
303
+ ----
293
304
 
294
305
  The conventions for the values of `map_join` parameter are as follows.
295
306
 
@@ -376,6 +387,7 @@ def geom_path(mapping=None, *, data=None, stat=None, position=None, show_legend=
376
387
  stat=stat,
377
388
  position=position,
378
389
  show_legend=show_legend,
390
+ manual_key=manual_key,
379
391
  sampling=sampling,
380
392
  tooltips=tooltips,
381
393
  map=map, map_join=map_join, use_crs=use_crs,
@@ -384,7 +396,8 @@ def geom_path(mapping=None, *, data=None, stat=None, position=None, show_legend=
384
396
  **other_args)
385
397
 
386
398
 
387
- def geom_line(mapping=None, *, data=None, stat=None, position=None, show_legend=None, sampling=None, tooltips=None,
399
+ def geom_line(mapping=None, *, data=None, stat=None, position=None, show_legend=None, manual_key=None, sampling=None,
400
+ tooltips=None,
388
401
  color_by=None,
389
402
  **other_args):
390
403
  """
@@ -414,6 +427,9 @@ def geom_line(mapping=None, *, data=None, stat=None, position=None, show_legend=
414
427
  'stack' or 'identity', or the result of calling a position adjustment function (e.g., `position_dodge()` etc.).
415
428
  show_legend : bool, default=True
416
429
  False - do not show legend for this layer.
430
+ manual_key : str or `layer_key`
431
+ The key to show in the manual legend.
432
+ Specify text for the legend label or advanced settings using the `layer_key()` function.
417
433
  sampling : `FeatureSpec`
418
434
  Result of the call to the `sampling_xxx()` function.
419
435
  To prevent any sampling for this layer pass value "none" (string "none").
@@ -444,7 +460,7 @@ def geom_line(mapping=None, *, data=None, stat=None, position=None, show_legend=
444
460
  - y : y-axis value.
445
461
  - alpha : transparency level of a layer. Accept values between 0 and 1.
446
462
  - color (colour) : color of the geometry. String in the following formats: RGB/RGBA (e.g. "rgb(0, 0, 255)"); HEX (e.g. "#0000FF"); color name (e.g. "red"); role name ("pen", "paper" or "brush").
447
- - linetype : type of the line. Codes and names: 0 = 'blank', 1 = 'solid', 2 = 'dashed', 3 = 'dotted', 4 = 'dotdash', 5 = 'longdash', 6 = 'twodash'.
463
+ - linetype : type of the line. Codes and names: 0 = 'blank', 1 = 'solid', 2 = 'dashed', 3 = 'dotted', 4 = 'dotdash', 5 = 'longdash', 6 = 'twodash'. For more info see https://lets-plot.org/python/pages/aesthetics.html#line-types.
448
464
  - size : line width.
449
465
 
450
466
  Examples
@@ -487,13 +503,15 @@ def geom_line(mapping=None, *, data=None, stat=None, position=None, show_legend=
487
503
  stat=stat,
488
504
  position=position,
489
505
  show_legend=show_legend,
506
+ manual_key=manual_key,
490
507
  sampling=sampling,
491
508
  tooltips=tooltips,
492
509
  color_by=color_by,
493
510
  **other_args)
494
511
 
495
512
 
496
- def geom_smooth(mapping=None, *, data=None, stat=None, position=None, show_legend=None, sampling=None, tooltips=None,
513
+ def geom_smooth(mapping=None, *, data=None, stat=None, position=None, show_legend=None, manual_key=None, sampling=None,
514
+ tooltips=None,
497
515
  orientation=None,
498
516
  method=None,
499
517
  n=None,
@@ -530,6 +548,9 @@ def geom_smooth(mapping=None, *, data=None, stat=None, position=None, show_legen
530
548
  'stack' or 'identity', or the result of calling a position adjustment function (e.g., `position_dodge()` etc.).
531
549
  show_legend : bool, default=True
532
550
  False - do not show legend for this layer.
551
+ manual_key : str or `layer_key`
552
+ The key to show in the manual legend.
553
+ Specify text for the legend label or advanced settings using the `layer_key()` function.
533
554
  sampling : `FeatureSpec`
534
555
  Result of the call to the `sampling_xxx()` function.
535
556
  To prevent any sampling for this layer pass value "none" (string "none").
@@ -592,7 +613,7 @@ def geom_smooth(mapping=None, *, data=None, stat=None, position=None, show_legen
592
613
  - alpha : transparency level of a layer. Accept values between 0 and 1.
593
614
  - color (colour) : color of the geometry. String in the following formats: RGB/RGBA (e.g. "rgb(0, 0, 255)"); HEX (e.g. "#0000FF"); color name (e.g. "red"); role name ("pen", "paper" or "brush").
594
615
  - fill : fill color for the confidence interval around the line. String in the following formats: RGB/RGBA (e.g. "rgb(0, 0, 255)"); HEX (e.g. "#0000FF"); color name (e.g. "red"); role name ("pen", "paper" or "brush").
595
- - linetype : type of the line of conditional mean line. Codes and names: 0 = 'blank', 1 = 'solid', 2 = 'dashed', 3 = 'dotted', 4 = 'dotdash', 5 = 'longdash', 6 = 'twodash'.
616
+ - linetype : type of the line of conditional mean line. Codes and names: 0 = 'blank', 1 = 'solid', 2 = 'dashed', 3 = 'dotted', 4 = 'dotdash', 5 = 'longdash', 6 = 'twodash'. For more info see https://lets-plot.org/python/pages/aesthetics.html#line-types.
596
617
  - size : line width. Define line width for conditional mean and confidence bounds lines.
597
618
 
598
619
  Examples
@@ -656,6 +677,7 @@ def geom_smooth(mapping=None, *, data=None, stat=None, position=None, show_legen
656
677
  stat=stat,
657
678
  position=position,
658
679
  show_legend=show_legend,
680
+ manual_key=manual_key,
659
681
  sampling=sampling,
660
682
  tooltips=tooltips,
661
683
  orientation=orientation,
@@ -671,7 +693,7 @@ def geom_smooth(mapping=None, *, data=None, stat=None, position=None, show_legen
671
693
  **other_args)
672
694
 
673
695
 
674
- def geom_bar(mapping=None, *, data=None, stat=None, position=None, show_legend=None, sampling=None,
696
+ def geom_bar(mapping=None, *, data=None, stat=None, position=None, show_legend=None, manual_key=None, sampling=None,
675
697
  tooltips=None, labels=None,
676
698
  orientation=None,
677
699
  color_by=None, fill_by=None,
@@ -702,6 +724,9 @@ def geom_bar(mapping=None, *, data=None, stat=None, position=None, show_legend=N
702
724
  'stack' or 'identity', or the result of calling a position adjustment function (e.g., `position_dodge()` etc.).
703
725
  show_legend : bool, default=True
704
726
  False - do not show legend for this layer.
727
+ manual_key : str or `layer_key`
728
+ The key to show in the manual legend.
729
+ Specify text for the legend label or advanced settings using the `layer_key()` function.
705
730
  sampling : `FeatureSpec`
706
731
  Result of the call to the `sampling_xxx()` function.
707
732
  To prevent any sampling for this layer pass value "none" (string "none").
@@ -813,6 +838,7 @@ def geom_bar(mapping=None, *, data=None, stat=None, position=None, show_legend=N
813
838
  stat=stat,
814
839
  position=position,
815
840
  show_legend=show_legend,
841
+ manual_key=manual_key,
816
842
  sampling=sampling,
817
843
  tooltips=tooltips,
818
844
  labels=labels,
@@ -821,7 +847,8 @@ def geom_bar(mapping=None, *, data=None, stat=None, position=None, show_legend=N
821
847
  **other_args)
822
848
 
823
849
 
824
- def geom_histogram(mapping=None, *, data=None, stat=None, position=None, show_legend=None, sampling=None,
850
+ def geom_histogram(mapping=None, *, data=None, stat=None, position=None, show_legend=None, manual_key=None,
851
+ sampling=None, threshold=None,
825
852
  tooltips=None, labels=None,
826
853
  orientation=None,
827
854
  bins=None,
@@ -856,9 +883,15 @@ def geom_histogram(mapping=None, *, data=None, stat=None, position=None, show_le
856
883
  'stack' or 'identity', or the result of calling a position adjustment function (e.g., `position_dodge()` etc.).
857
884
  show_legend : bool, default=True
858
885
  False - do not show legend for this layer.
886
+ manual_key : str or `layer_key`
887
+ The key to show in the manual legend.
888
+ Specify text for the legend label or advanced settings using the `layer_key()` function.
859
889
  sampling : `FeatureSpec`
860
890
  Result of the call to the `sampling_xxx()` function.
861
891
  To prevent any sampling for this layer pass value "none" (string "none").
892
+ threshold : float, default=None
893
+ If a bin's `..count..` is less than the threshold, the bin will be removed.
894
+ Dropping empty bins is particularly useful for faceted plots with free scales.
862
895
  tooltips : `layer_tooltips`
863
896
  Result of the call to the `layer_tooltips()` function.
864
897
  Specify appearance, style and content.
@@ -964,7 +997,9 @@ def geom_histogram(mapping=None, *, data=None, stat=None, position=None, show_le
964
997
  stat=stat,
965
998
  position=position,
966
999
  show_legend=show_legend,
1000
+ manual_key=manual_key,
967
1001
  sampling=sampling,
1002
+ threshold=threshold,
968
1003
  tooltips=tooltips,
969
1004
  labels=labels,
970
1005
  orientation=orientation,
@@ -976,7 +1011,7 @@ def geom_histogram(mapping=None, *, data=None, stat=None, position=None, show_le
976
1011
  **other_args)
977
1012
 
978
1013
 
979
- def geom_dotplot(mapping=None, *, data=None, show_legend=None, sampling=None, tooltips=None,
1014
+ def geom_dotplot(mapping=None, *, data=None, show_legend=None, manual_key=None, sampling=None, tooltips=None,
980
1015
  binwidth=None,
981
1016
  bins=None,
982
1017
  method=None,
@@ -1003,6 +1038,9 @@ def geom_dotplot(mapping=None, *, data=None, show_legend=None, sampling=None, to
1003
1038
  is inherited from the plot data as specified in the call to ggplot.
1004
1039
  show_legend : bool, default=True
1005
1040
  False - do not show legend for this layer.
1041
+ manual_key : str or `layer_key`
1042
+ The key to show in the manual legend.
1043
+ Specify text for the legend label or advanced settings using the `layer_key()` function.
1006
1044
  sampling : `FeatureSpec`
1007
1045
  Result of the call to the `sampling_xxx()` function.
1008
1046
  To prevent any sampling for this layer pass value "none" (string "none").
@@ -1118,6 +1156,7 @@ def geom_dotplot(mapping=None, *, data=None, show_legend=None, sampling=None, to
1118
1156
  stat=None,
1119
1157
  position=None,
1120
1158
  show_legend=show_legend,
1159
+ manual_key=manual_key,
1121
1160
  sampling=sampling,
1122
1161
  tooltips=tooltips,
1123
1162
  binwidth=binwidth,
@@ -1133,14 +1172,20 @@ def geom_dotplot(mapping=None, *, data=None, show_legend=None, sampling=None, to
1133
1172
  **other_args)
1134
1173
 
1135
1174
 
1136
- def geom_bin2d(mapping=None, *, data=None, stat=None, position=None, show_legend=None, sampling=None, tooltips=None,
1175
+ def geom_bin2d(mapping=None, *, data=None, stat=None, position=None, show_legend=None, manual_key=None, sampling=None,
1176
+ tooltips=None,
1137
1177
  bins=None,
1138
1178
  binwidth=None,
1139
1179
  drop=None,
1140
1180
  color_by=None, fill_by=None,
1141
1181
  **other_args):
1142
1182
  """
1143
- Divides the plane into a grid and color the bins by the count of cases in them.
1183
+ Apply a rectangular grid to the plane, count observations in each cell (bin) of the grid,
1184
+ and map the count to the fill color of the cell (tile).
1185
+
1186
+ By default, this geom uses `coord_fixed()`.
1187
+ However, this may not be the best choice when the values on the X/Y axis have significantly different magnitudes.
1188
+ In such cases, try using `coord_cartesian()`.
1144
1189
 
1145
1190
  Parameters
1146
1191
  ----------
@@ -1159,6 +1204,9 @@ def geom_bin2d(mapping=None, *, data=None, stat=None, position=None, show_legend
1159
1204
  'stack' or 'identity', or the result of calling a position adjustment function (e.g., `position_dodge()` etc.).
1160
1205
  show_legend : bool, default=True
1161
1206
  False - do not show legend for this layer.
1207
+ manual_key : str or `layer_key`
1208
+ The key to show in the manual legend.
1209
+ Specify text for the legend label or advanced settings using the `layer_key()` function.
1162
1210
  sampling : `FeatureSpec`
1163
1211
  Result of the call to the `sampling_xxx()` function.
1164
1212
  To prevent any sampling for this layer pass value "none" (string "none").
@@ -1189,8 +1237,6 @@ def geom_bin2d(mapping=None, *, data=None, stat=None, position=None, show_legend
1189
1237
 
1190
1238
  Notes
1191
1239
  -----
1192
- `geom_bin2d()` applies rectangular grid to the plane then counts observation
1193
- in each cell of the grid (bin). Uses `geom_tile()` to display counts as a tile fill-color.
1194
1240
 
1195
1241
  Computed variables:
1196
1242
 
@@ -1286,6 +1332,7 @@ def geom_bin2d(mapping=None, *, data=None, stat=None, position=None, show_legend
1286
1332
  stat=stat,
1287
1333
  position=position,
1288
1334
  show_legend=show_legend,
1335
+ manual_key=manual_key,
1289
1336
  sampling=sampling,
1290
1337
  tooltips=tooltips,
1291
1338
  bins=bins,
@@ -1295,7 +1342,8 @@ def geom_bin2d(mapping=None, *, data=None, stat=None, position=None, show_legend
1295
1342
  **other_args)
1296
1343
 
1297
1344
 
1298
- def geom_tile(mapping=None, *, data=None, stat=None, position=None, show_legend=None, sampling=None, tooltips=None,
1345
+ def geom_tile(mapping=None, *, data=None, stat=None, position=None, show_legend=None, manual_key=None, sampling=None,
1346
+ tooltips=None,
1299
1347
  color_by=None, fill_by=None,
1300
1348
  **other_args):
1301
1349
  """
@@ -1318,6 +1366,9 @@ def geom_tile(mapping=None, *, data=None, stat=None, position=None, show_legend=
1318
1366
  'stack' or 'identity', or the result of calling a position adjustment function (e.g., `position_dodge()` etc.).
1319
1367
  show_legend : bool, default=True
1320
1368
  False - do not show legend for this layer.
1369
+ manual_key : str or `layer_key`
1370
+ The key to show in the manual legend.
1371
+ Specify text for the legend label or advanced settings using the `layer_key()` function.
1321
1372
  sampling : `FeatureSpec`
1322
1373
  Result of the call to the `sampling_xxx()` function.
1323
1374
  To prevent any sampling for this layer pass value "none" (string "none").
@@ -1351,7 +1402,7 @@ def geom_tile(mapping=None, *, data=None, stat=None, position=None, show_legend=
1351
1402
  - size : line width, default=0 (i.e. tiles outline initially is not visible).
1352
1403
  - width : width of a tile. Typically range between 0 and 1. Values that are greater than 1 lead to overlapping of the tiles.
1353
1404
  - height : height of a tile. Typically range between 0 and 1. Values that are greater than 1 lead to overlapping of the tiles.
1354
- - linetype : type of the line of tile's border. Codes and names: 0 = 'blank', 1 = 'solid', 2 = 'dashed', 3 = 'dotted', 4 = 'dotdash', 5 = 'longdash', 6 = 'twodash'.
1405
+ - linetype : type of the line of tile's border. Codes and names: 0 = 'blank', 1 = 'solid', 2 = 'dashed', 3 = 'dotted', 4 = 'dotdash', 5 = 'longdash', 6 = 'twodash'. For more info see https://lets-plot.org/python/pages/aesthetics.html#line-types.
1355
1406
 
1356
1407
  Examples
1357
1408
  --------
@@ -1426,13 +1477,15 @@ def geom_tile(mapping=None, *, data=None, stat=None, position=None, show_legend=
1426
1477
  stat=stat,
1427
1478
  position=position,
1428
1479
  show_legend=show_legend,
1480
+ manual_key=manual_key,
1429
1481
  sampling=sampling,
1430
1482
  tooltips=tooltips,
1431
1483
  color_by=color_by, fill_by=fill_by,
1432
1484
  **other_args)
1433
1485
 
1434
1486
 
1435
- def geom_raster(mapping=None, *, data=None, stat=None, position=None, show_legend=None, sampling=None, fill_by=None,
1487
+ def geom_raster(mapping=None, *, data=None, stat=None, position=None, show_legend=None, manual_key=None, sampling=None,
1488
+ fill_by=None,
1436
1489
  **other_args):
1437
1490
  """
1438
1491
  Display rectangles with x, y values mapped to the center of the tile.
@@ -1456,6 +1509,9 @@ def geom_raster(mapping=None, *, data=None, stat=None, position=None, show_legen
1456
1509
  'stack' or 'identity', or the result of calling a position adjustment function (e.g., `position_dodge()` etc.).
1457
1510
  show_legend : bool, default=True
1458
1511
  False - do not show legend for this layer.
1512
+ manual_key : str or `layer_key`
1513
+ The key to show in the manual legend.
1514
+ Specify text for the legend label or advanced settings using the `layer_key()` function.
1459
1515
  sampling : `FeatureSpec`
1460
1516
  Result of the call to the `sampling_xxx()` function.
1461
1517
  To prevent any sampling for this layer pass value "none" (string "none").
@@ -1513,12 +1569,14 @@ def geom_raster(mapping=None, *, data=None, stat=None, position=None, show_legen
1513
1569
  stat=stat,
1514
1570
  position=position,
1515
1571
  show_legend=show_legend,
1572
+ manual_key=manual_key,
1516
1573
  sampling=sampling,
1517
1574
  fill_by=fill_by,
1518
1575
  **other_args)
1519
1576
 
1520
1577
 
1521
- def geom_errorbar(mapping=None, *, data=None, stat=None, position=None, show_legend=None, sampling=None, tooltips=None,
1578
+ def geom_errorbar(mapping=None, *, data=None, stat=None, position=None, show_legend=None, manual_key=None,
1579
+ sampling=None, tooltips=None,
1522
1580
  color_by=None,
1523
1581
  **other_args):
1524
1582
  """
@@ -1546,6 +1604,9 @@ def geom_errorbar(mapping=None, *, data=None, stat=None, position=None, show_leg
1546
1604
  'stack' or 'identity', or the result of calling a position adjustment function (e.g., `position_dodge()` etc.).
1547
1605
  show_legend : bool, default=True
1548
1606
  False - do not show legend for this layer.
1607
+ manual_key : str or `layer_key`
1608
+ The key to show in the manual legend.
1609
+ Specify text for the legend label or advanced settings using the `layer_key()` function.
1549
1610
  sampling : `FeatureSpec`
1550
1611
  Result of the call to the `sampling_xxx()` function.
1551
1612
  To prevent any sampling for this layer pass value "none" (string "none").
@@ -1579,7 +1640,7 @@ def geom_errorbar(mapping=None, *, data=None, stat=None, position=None, show_leg
1579
1640
  - color (colour) : color of the geometry lines. String in the following formats: RGB/RGBA (e.g. "rgb(0, 0, 255)"); HEX (e.g. "#0000FF"); color name (e.g. "red"); role name ("pen", "paper" or "brush").
1580
1641
  - size : line width. Define bar line width.
1581
1642
  - width or height : size of the whiskers of vertical or horizontal bar, respectively. Typically range between 0 and 1. Values that are greater than 1 lead to overlapping of the bars.
1582
- - linetype : type of the line. Codes and names: 0 = 'blank', 1 = 'solid', 2 = 'dashed', 3 = 'dotted', 4 = 'dotdash', 5 = 'longdash', 6 = 'twodash'.
1643
+ - linetype : type of the line. Codes and names: 0 = 'blank', 1 = 'solid', 2 = 'dashed', 3 = 'dotted', 4 = 'dotdash', 5 = 'longdash', 6 = 'twodash'. For more info see https://lets-plot.org/python/pages/aesthetics.html#line-types.
1583
1644
 
1584
1645
  Examples
1585
1646
  --------
@@ -1644,13 +1705,15 @@ def geom_errorbar(mapping=None, *, data=None, stat=None, position=None, show_leg
1644
1705
  stat=stat,
1645
1706
  position=position,
1646
1707
  show_legend=show_legend,
1708
+ manual_key=manual_key,
1647
1709
  sampling=sampling,
1648
1710
  tooltips=tooltips,
1649
1711
  color_by=color_by,
1650
1712
  **other_args)
1651
1713
 
1652
1714
 
1653
- def geom_crossbar(mapping=None, *, data=None, stat=None, position=None, show_legend=None, sampling=None, tooltips=None,
1715
+ def geom_crossbar(mapping=None, *, data=None, stat=None, position=None, show_legend=None, manual_key=None,
1716
+ sampling=None, tooltips=None,
1654
1717
  fatten=None,
1655
1718
  color_by=None, fill_by=None,
1656
1719
  **other_args):
@@ -1679,6 +1742,9 @@ def geom_crossbar(mapping=None, *, data=None, stat=None, position=None, show_leg
1679
1742
  'stack' or 'identity', or the result of calling a position adjustment function (e.g., `position_dodge()` etc.).
1680
1743
  show_legend : bool, default=True
1681
1744
  False - do not show legend for this layer.
1745
+ manual_key : str or `layer_key`
1746
+ The key to show in the manual legend.
1747
+ Specify text for the legend label or advanced settings using the `layer_key()` function.
1682
1748
  sampling : `FeatureSpec`
1683
1749
  Result of the call to the `sampling_xxx()` function.
1684
1750
  To prevent any sampling for this layer pass value "none" (string "none").
@@ -1719,7 +1785,7 @@ def geom_crossbar(mapping=None, *, data=None, stat=None, position=None, show_leg
1719
1785
  - fill : fill color. String in the following formats: RGB/RGBA (e.g. "rgb(0, 0, 255)"); HEX (e.g. "#0000FF"); color name (e.g. "red"); role name ("pen", "paper" or "brush").
1720
1786
  - size : lines width.
1721
1787
  - width : width of a bar. Typically range between 0 and 1. Values that are greater than 1 lead to overlapping of the bars.
1722
- - linetype : type of the line. Codes and names: 0 = 'blank', 1 = 'solid', 2 = 'dashed', 3 = 'dotted', 4 = 'dotdash', 5 = 'longdash', 6 = 'twodash'.
1788
+ - linetype : type of the line. Codes and names: 0 = 'blank', 1 = 'solid', 2 = 'dashed', 3 = 'dotted', 4 = 'dotdash', 5 = 'longdash', 6 = 'twodash'. For more info see https://lets-plot.org/python/pages/aesthetics.html#line-types.
1723
1789
 
1724
1790
  Examples
1725
1791
  --------
@@ -1773,6 +1839,7 @@ def geom_crossbar(mapping=None, *, data=None, stat=None, position=None, show_leg
1773
1839
  stat=stat,
1774
1840
  position=position,
1775
1841
  show_legend=show_legend,
1842
+ manual_key=manual_key,
1776
1843
  sampling=sampling,
1777
1844
  tooltips=tooltips,
1778
1845
  fatten=fatten,
@@ -1780,7 +1847,8 @@ def geom_crossbar(mapping=None, *, data=None, stat=None, position=None, show_leg
1780
1847
  **other_args)
1781
1848
 
1782
1849
 
1783
- def geom_pointrange(mapping=None, *, data=None, stat=None, position=None, show_legend=None, sampling=None,
1850
+ def geom_pointrange(mapping=None, *, data=None, stat=None, position=None, show_legend=None, manual_key=None,
1851
+ sampling=None,
1784
1852
  tooltips=None,
1785
1853
  fatten=None,
1786
1854
  color_by=None, fill_by=None,
@@ -1810,6 +1878,9 @@ def geom_pointrange(mapping=None, *, data=None, stat=None, position=None, show_l
1810
1878
  'stack' or 'identity', or the result of calling a position adjustment function (e.g., `position_dodge()` etc.).
1811
1879
  show_legend : bool, default=True
1812
1880
  False - do not show legend for this layer.
1881
+ manual_key : str or `layer_key`
1882
+ The key to show in the manual legend.
1883
+ Specify text for the legend label or advanced settings using the `layer_key()` function.
1813
1884
  sampling : `FeatureSpec`
1814
1885
  Result of the call to the `sampling_xxx()` function.
1815
1886
  To prevent any sampling for this layer pass value "none" (string "none").
@@ -1849,8 +1920,8 @@ def geom_pointrange(mapping=None, *, data=None, stat=None, position=None, show_l
1849
1920
  - color (colour) : color of the geometry lines. String in the following formats: RGB/RGBA (e.g. "rgb(0, 0, 255)"); HEX (e.g. "#0000FF"); color name (e.g. "red"); role name ("pen", "paper" or "brush").
1850
1921
  - fill : fill color. String in the following formats: RGB/RGBA (e.g. "rgb(0, 0, 255)"); HEX (e.g. "#0000FF"); color name (e.g. "red"); role name ("pen", "paper" or "brush").
1851
1922
  - size : size of mid-point.
1852
- - linetype : type of the line. Codes and names: 0 = 'blank', 1 = 'solid', 2 = 'dashed', 3 = 'dotted', 4 = 'dotdash', 5 = 'longdash', 6 = 'twodash'.
1853
- - shape : shape of the mid-point, an integer from 0 to 25.
1923
+ - linetype : type of the line. Codes and names: 0 = 'blank', 1 = 'solid', 2 = 'dashed', 3 = 'dotted', 4 = 'dotdash', 5 = 'longdash', 6 = 'twodash'. For more info see https://lets-plot.org/python/pages/aesthetics.html#line-types.
1924
+ - shape : shape of the mid-point, an integer from 0 to 25. For more info see https://lets-plot.org/python/pages/aesthetics.html#point-shapes.
1854
1925
  - stroke : width of the shape border. Applied only to the shapes having border.
1855
1926
  - linewidth : line width.
1856
1927
 
@@ -1901,6 +1972,7 @@ def geom_pointrange(mapping=None, *, data=None, stat=None, position=None, show_l
1901
1972
  stat=stat,
1902
1973
  position=position,
1903
1974
  show_legend=show_legend,
1975
+ manual_key=manual_key,
1904
1976
  sampling=sampling,
1905
1977
  tooltips=tooltips,
1906
1978
  fatten=fatten,
@@ -1908,7 +1980,8 @@ def geom_pointrange(mapping=None, *, data=None, stat=None, position=None, show_l
1908
1980
  **other_args)
1909
1981
 
1910
1982
 
1911
- def geom_linerange(mapping=None, *, data=None, stat=None, position=None, show_legend=None, sampling=None, tooltips=None,
1983
+ def geom_linerange(mapping=None, *, data=None, stat=None, position=None, show_legend=None, manual_key=None,
1984
+ sampling=None, tooltips=None,
1912
1985
  color_by=None,
1913
1986
  **other_args):
1914
1987
  """
@@ -1936,6 +2009,9 @@ def geom_linerange(mapping=None, *, data=None, stat=None, position=None, show_le
1936
2009
  'stack' or 'identity', or the result of calling a position adjustment function (e.g., `position_dodge()` etc.).
1937
2010
  show_legend : bool, default=True
1938
2011
  False - do not show legend for this layer.
2012
+ manual_key : str or `layer_key`
2013
+ The key to show in the manual legend.
2014
+ Specify text for the legend label or advanced settings using the `layer_key()` function.
1939
2015
  sampling : `FeatureSpec`
1940
2016
  Result of the call to the `sampling_xxx()` function.
1941
2017
  To prevent any sampling for this layer pass value "none" (string "none").
@@ -1968,7 +2044,7 @@ def geom_linerange(mapping=None, *, data=None, stat=None, position=None, show_le
1968
2044
  - alpha : transparency level of a layer. Accept values between 0 and 1.
1969
2045
  - color (colour) : color of the geometry lines. String in the following formats: RGB/RGBA (e.g. "rgb(0, 0, 255)"); HEX (e.g. "#0000FF"); color name (e.g. "red"); role name ("pen", "paper" or "brush").
1970
2046
  - size : line width.
1971
- - linetype : type of the line. Codes and names: 0 = 'blank', 1 = 'solid', 2 = 'dashed', 3 = 'dotted', 4 = 'dotdash', 5 = 'longdash', 6 = 'twodash'.
2047
+ - linetype : type of the line. Codes and names: 0 = 'blank', 1 = 'solid', 2 = 'dashed', 3 = 'dotted', 4 = 'dotdash', 5 = 'longdash', 6 = 'twodash'. For more info see https://lets-plot.org/python/pages/aesthetics.html#line-types.
1972
2048
 
1973
2049
  Examples
1974
2050
  --------
@@ -2017,13 +2093,15 @@ def geom_linerange(mapping=None, *, data=None, stat=None, position=None, show_le
2017
2093
  stat=stat,
2018
2094
  position=position,
2019
2095
  show_legend=show_legend,
2096
+ manual_key=manual_key,
2020
2097
  sampling=sampling,
2021
2098
  tooltips=tooltips,
2022
2099
  color_by=color_by,
2023
2100
  **other_args)
2024
2101
 
2025
2102
 
2026
- def geom_contour(mapping=None, *, data=None, stat=None, position=None, show_legend=None, sampling=None, tooltips=None,
2103
+ def geom_contour(mapping=None, *, data=None, stat=None, position=None, show_legend=None, manual_key=None, sampling=None,
2104
+ tooltips=None,
2027
2105
  bins=None,
2028
2106
  binwidth=None,
2029
2107
  color_by=None,
@@ -2048,6 +2126,9 @@ def geom_contour(mapping=None, *, data=None, stat=None, position=None, show_lege
2048
2126
  'stack' or 'identity', or the result of calling a position adjustment function (e.g., `position_dodge()` etc.).
2049
2127
  show_legend : bool, default=True
2050
2128
  False - do not show legend for this layer.
2129
+ manual_key : str or `layer_key`
2130
+ The key to show in the manual legend.
2131
+ Specify text for the legend label or advanced settings using the `layer_key()` function.
2051
2132
  sampling : `FeatureSpec`
2052
2133
  Result of the call to the `sampling_xxx()` function.
2053
2134
  To prevent any sampling for this layer pass value "none" (string "none").
@@ -2087,7 +2168,7 @@ def geom_contour(mapping=None, *, data=None, stat=None, position=None, show_lege
2087
2168
  - alpha : transparency level of a layer. Accept values between 0 and 1.
2088
2169
  - color (colour) : color of the geometry lines. String in the following formats: RGB/RGBA (e.g. "rgb(0, 0, 255)"); HEX (e.g. "#0000FF"); color name (e.g. "red"); role name ("pen", "paper" or "brush").
2089
2170
  - size : lines width.
2090
- - linetype : type of the line. Codes and names: 0 = 'blank', 1 = 'solid', 2 = 'dashed', 3 = 'dotted', 4 = 'dotdash', 5 = 'longdash', 6 = 'twodash'.
2171
+ - linetype : type of the line. Codes and names: 0 = 'blank', 1 = 'solid', 2 = 'dashed', 3 = 'dotted', 4 = 'dotdash', 5 = 'longdash', 6 = 'twodash'. For more info see https://lets-plot.org/python/pages/aesthetics.html#line-types.
2091
2172
 
2092
2173
  Examples
2093
2174
  --------
@@ -2155,6 +2236,7 @@ def geom_contour(mapping=None, *, data=None, stat=None, position=None, show_lege
2155
2236
  stat=stat,
2156
2237
  position=position,
2157
2238
  show_legend=show_legend,
2239
+ manual_key=manual_key,
2158
2240
  sampling=sampling,
2159
2241
  tooltips=tooltips,
2160
2242
  bins=bins, binwidth=binwidth,
@@ -2162,7 +2244,8 @@ def geom_contour(mapping=None, *, data=None, stat=None, position=None, show_lege
2162
2244
  **other_args)
2163
2245
 
2164
2246
 
2165
- def geom_contourf(mapping=None, *, data=None, stat=None, position=None, show_legend=None, sampling=None, tooltips=None,
2247
+ def geom_contourf(mapping=None, *, data=None, stat=None, position=None, show_legend=None, manual_key=None,
2248
+ sampling=None, tooltips=None,
2166
2249
  bins=None,
2167
2250
  binwidth=None,
2168
2251
  color_by=None, fill_by=None,
@@ -2187,6 +2270,9 @@ def geom_contourf(mapping=None, *, data=None, stat=None, position=None, show_leg
2187
2270
  'stack' or 'identity', or the result of calling a position adjustment function (e.g., `position_dodge()` etc.).
2188
2271
  show_legend : bool, default=True
2189
2272
  False - do not show legend for this layer.
2273
+ manual_key : str or `layer_key`
2274
+ The key to show in the manual legend.
2275
+ Specify text for the legend label or advanced settings using the `layer_key()` function.
2190
2276
  sampling : `FeatureSpec`
2191
2277
  Result of the call to the `sampling_xxx()` function.
2192
2278
  To prevent any sampling for this layer pass value "none" (string "none").
@@ -2295,6 +2381,7 @@ def geom_contourf(mapping=None, *, data=None, stat=None, position=None, show_leg
2295
2381
  stat=stat,
2296
2382
  position=position,
2297
2383
  show_legend=show_legend,
2384
+ manual_key=manual_key,
2298
2385
  sampling=sampling,
2299
2386
  tooltips=tooltips,
2300
2387
  bins=bins,
@@ -2303,7 +2390,8 @@ def geom_contourf(mapping=None, *, data=None, stat=None, position=None, show_leg
2303
2390
  **other_args)
2304
2391
 
2305
2392
 
2306
- def geom_polygon(mapping=None, *, data=None, stat=None, position=None, show_legend=None, sampling=None, tooltips=None,
2393
+ def geom_polygon(mapping=None, *, data=None, stat=None, position=None, show_legend=None, manual_key=None, sampling=None,
2394
+ tooltips=None,
2307
2395
  map=None, map_join=None, use_crs=None,
2308
2396
  color_by=None, fill_by=None,
2309
2397
  **other_args):
@@ -2327,6 +2415,9 @@ def geom_polygon(mapping=None, *, data=None, stat=None, position=None, show_lege
2327
2415
  'stack' or 'identity', or the result of calling a position adjustment function (e.g., `position_dodge()` etc.).
2328
2416
  show_legend : bool, default=True
2329
2417
  False - do not show legend for this layer.
2418
+ manual_key : str or `layer_key`
2419
+ The key to show in the manual legend.
2420
+ Specify text for the legend label or advanced settings using the `layer_key()` function.
2330
2421
  sampling : `FeatureSpec`
2331
2422
  Result of the call to the `sampling_xxx()` function.
2332
2423
  To prevent any sampling for this layer pass value "none" (string "none").
@@ -2372,15 +2463,15 @@ def geom_polygon(mapping=None, *, data=None, stat=None, position=None, show_lege
2372
2463
  - color (colour) : color of the geometry lines. String in the following formats: RGB/RGBA (e.g. "rgb(0, 0, 255)"); HEX (e.g. "#0000FF"); color name (e.g. "red"); role name ("pen", "paper" or "brush").
2373
2464
  - fill : fill color. String in the following formats: RGB/RGBA (e.g. "rgb(0, 0, 255)"); HEX (e.g. "#0000FF"); color name (e.g. "red"); role name ("pen", "paper" or "brush").
2374
2465
  - size : line width.
2375
- - linetype : type of the line. Codes and names: 0 = 'blank', 1 = 'solid', 2 = 'dashed', 3 = 'dotted', 4 = 'dotdash', 5 = 'longdash', 6 = 'twodash'.
2466
+ - linetype : type of the line. Codes and names: 0 = 'blank', 1 = 'solid', 2 = 'dashed', 3 = 'dotted', 4 = 'dotdash', 5 = 'longdash', 6 = 'twodash'. For more info see https://lets-plot.org/python/pages/aesthetics.html#line-types.
2376
2467
 
2377
- |
2468
+ ----
2378
2469
 
2379
2470
  The `data` and `map` parameters of `GeoDataFrame` type support shapes `Polygon` and `MultiPolygon`.
2380
2471
 
2381
2472
  The `map` parameter of `Geocoder` type implicitly invokes `boundaries()` function.
2382
2473
 
2383
- |
2474
+ ----
2384
2475
 
2385
2476
  The conventions for the values of `map_join` parameter are as follows:
2386
2477
 
@@ -2473,6 +2564,7 @@ def geom_polygon(mapping=None, *, data=None, stat=None, position=None, show_lege
2473
2564
  stat=stat,
2474
2565
  position=position,
2475
2566
  show_legend=show_legend,
2567
+ manual_key=manual_key,
2476
2568
  sampling=sampling,
2477
2569
  tooltips=tooltips,
2478
2570
  map=map, map_join=map_join, use_crs=use_crs,
@@ -2480,7 +2572,8 @@ def geom_polygon(mapping=None, *, data=None, stat=None, position=None, show_lege
2480
2572
  **other_args)
2481
2573
 
2482
2574
 
2483
- def geom_map(mapping=None, *, data=None, stat=None, position=None, show_legend=None, sampling=None, tooltips=None,
2575
+ def geom_map(mapping=None, *, data=None, stat=None, position=None, show_legend=None, manual_key=None, sampling=None,
2576
+ tooltips=None,
2484
2577
  map=None, map_join=None, use_crs=None,
2485
2578
  color_by=None, fill_by=None,
2486
2579
  **other_args):
@@ -2509,6 +2602,9 @@ def geom_map(mapping=None, *, data=None, stat=None, position=None, show_legend=N
2509
2602
  'stack' or 'identity', or the result of calling a position adjustment function (e.g., `position_dodge()` etc.).
2510
2603
  show_legend : bool, default=True
2511
2604
  False - do not show legend for this layer.
2605
+ manual_key : str or `layer_key`
2606
+ The key to show in the manual legend.
2607
+ Specify text for the legend label or advanced settings using the `layer_key()` function.
2512
2608
  sampling : `FeatureSpec`
2513
2609
  Result of the call to the `sampling_xxx()` function.
2514
2610
  To prevent any sampling for this layer pass value "none" (string "none").
@@ -2553,15 +2649,15 @@ def geom_map(mapping=None, *, data=None, stat=None, position=None, show_legend=N
2553
2649
  - color (colour) : color of the geometry lines. String in the following formats: RGB/RGBA (e.g. "rgb(0, 0, 255)"); HEX (e.g. "#0000FF"); color name (e.g. "red"); role name ("pen", "paper" or "brush").
2554
2650
  - fill : fill color. String in the following formats: RGB/RGBA (e.g. "rgb(0, 0, 255)"); HEX (e.g. "#0000FF"); color name (e.g. "red"); role name ("pen", "paper" or "brush").
2555
2651
  - size : line width.
2556
- - linetype : type of the line. Codes and names: 0 = 'blank', 1 = 'solid', 2 = 'dashed', 3 = 'dotted', 4 = 'dotdash', 5 = 'longdash', 6 = 'twodash'.
2652
+ - linetype : type of the line. Codes and names: 0 = 'blank', 1 = 'solid', 2 = 'dashed', 3 = 'dotted', 4 = 'dotdash', 5 = 'longdash', 6 = 'twodash'. For more info see https://lets-plot.org/python/pages/aesthetics.html#line-types.
2557
2653
 
2558
- |
2654
+ ----
2559
2655
 
2560
2656
  The `data` and `map` parameters of `GeoDataFrame` type support shapes `Polygon` and `MultiPolygon`.
2561
2657
 
2562
2658
  The `map` parameter of `Geocoder` type implicitly invokes `boundaries()` function.
2563
2659
 
2564
- |
2660
+ ----
2565
2661
 
2566
2662
  The conventions for the values of `map_join` parameter are as follows.
2567
2663
 
@@ -2640,6 +2736,7 @@ def geom_map(mapping=None, *, data=None, stat=None, position=None, show_legend=N
2640
2736
  stat=stat,
2641
2737
  position=position,
2642
2738
  show_legend=show_legend,
2739
+ manual_key=manual_key,
2643
2740
  sampling=sampling,
2644
2741
  tooltips=tooltips,
2645
2742
  map=map, map_join=map_join, use_crs=use_crs,
@@ -2647,7 +2744,7 @@ def geom_map(mapping=None, *, data=None, stat=None, position=None, show_legend=N
2647
2744
  **other_args)
2648
2745
 
2649
2746
 
2650
- def geom_abline(mapping=None, *, data=None, stat=None, position=None, show_legend=None, sampling=None,
2747
+ def geom_abline(mapping=None, *, data=None, stat=None, position=None, show_legend=None, manual_key=None, sampling=None,
2651
2748
  slope=None,
2652
2749
  intercept=None,
2653
2750
  color_by=None,
@@ -2672,6 +2769,9 @@ def geom_abline(mapping=None, *, data=None, stat=None, position=None, show_legen
2672
2769
  'stack' or 'identity', or the result of calling a position adjustment function (e.g., `position_dodge()` etc.).
2673
2770
  show_legend : bool, default=True
2674
2771
  False - do not show legend for this layer.
2772
+ manual_key : str or `layer_key`
2773
+ The key to show in the manual legend.
2774
+ Specify text for the legend label or advanced settings using the `layer_key()` function.
2675
2775
  sampling : `FeatureSpec`
2676
2776
  Result of the call to the `sampling_xxx()` function.
2677
2777
  To prevent any sampling for this layer pass value "none" (string "none").
@@ -2703,7 +2803,7 @@ def geom_abline(mapping=None, *, data=None, stat=None, position=None, show_legen
2703
2803
  - alpha : transparency level of a layer. Accept values between 0 and 1.
2704
2804
  - color (colour) : color of the geometry lines. String in the following formats: RGB/RGBA (e.g. "rgb(0, 0, 255)"); HEX (e.g. "#0000FF"); color name (e.g. "red"); role name ("pen", "paper" or "brush").
2705
2805
  - size : lines width.
2706
- - linetype : type of the line. Codes and names: 0 = 'blank', 1 = 'solid', 2 = 'dashed', 3 = 'dotted', 4 = 'dotdash', 5 = 'longdash', 6 = 'twodash'.
2806
+ - linetype : type of the line. Codes and names: 0 = 'blank', 1 = 'solid', 2 = 'dashed', 3 = 'dotted', 4 = 'dotdash', 5 = 'longdash', 6 = 'twodash'. For more info see https://lets-plot.org/python/pages/aesthetics.html#line-types.
2707
2807
 
2708
2808
  Examples
2709
2809
  --------
@@ -2749,6 +2849,7 @@ def geom_abline(mapping=None, *, data=None, stat=None, position=None, show_legen
2749
2849
  stat=stat,
2750
2850
  position=position,
2751
2851
  show_legend=show_legend,
2852
+ manual_key=manual_key,
2752
2853
  sampling=sampling,
2753
2854
  slope=slope,
2754
2855
  intercept=intercept,
@@ -2756,7 +2857,120 @@ def geom_abline(mapping=None, *, data=None, stat=None, position=None, show_legen
2756
2857
  **other_args)
2757
2858
 
2758
2859
 
2759
- def geom_hline(mapping=None, *, data=None, stat=None, position=None, show_legend=None, sampling=None, tooltips=None,
2860
+ def geom_band(mapping=None, *, data=None, stat=None, position=None, show_legend=None, sampling=None,
2861
+ tooltips=None,
2862
+ color_by=None, fill_by=None,
2863
+ **other_args):
2864
+ """
2865
+ Add a straight vertical or horizontal band to the plot.
2866
+
2867
+ Parameters
2868
+ ----------
2869
+ mapping : `FeatureSpec`
2870
+ Set of aesthetic mappings created by `aes()` function.
2871
+ Aesthetic mappings describe the way that variables in the data are
2872
+ mapped to plot "aesthetics".
2873
+ data : dict or Pandas or Polars `DataFrame`
2874
+ The data to be displayed in this layer. If None, the default, the data
2875
+ is inherited from the plot data as specified in the call to ggplot.
2876
+ stat : str, default='identity'
2877
+ The statistical transformation to use on the data for this layer, as a string.
2878
+ position : str or `FeatureSpec`, default='identity'
2879
+ Position adjustment.
2880
+ Either a position adjustment name: 'dodge', 'dodgev', 'jitter', 'nudge', 'jitterdodge', 'fill',
2881
+ 'stack' or 'identity', or the result of calling a position adjustment function (e.g., `position_dodge()` etc.).
2882
+ show_legend : bool, default=True
2883
+ False - do not show legend for this layer.
2884
+ sampling : `FeatureSpec`
2885
+ Result of the call to the `sampling_xxx()` function.
2886
+ To prevent any sampling for this layer pass value "none" (string "none").
2887
+ tooltips : `layer_tooltips`
2888
+ Result of the call to the `layer_tooltips()` function.
2889
+ Specify appearance, style and content.
2890
+ color_by : {'fill', 'color', 'paint_a', 'paint_b', 'paint_c'}, default='color'
2891
+ Define the color aesthetic for the geometry.
2892
+ fill_by : {'fill', 'color', 'paint_a', 'paint_b', 'paint_c'}, default='fill'
2893
+ Define the fill aesthetic for the geometry.
2894
+ other_args
2895
+ Other arguments passed on to the layer.
2896
+ These are often aesthetics settings used to set an aesthetic to a fixed value,
2897
+ like color='red', fill='blue', size=3 or shape=21.
2898
+ They may also be parameters to the paired geom/stat.
2899
+
2900
+ Returns
2901
+ -------
2902
+ `LayerSpec`
2903
+ Geom object specification.
2904
+
2905
+ Notes
2906
+ -----
2907
+ `geom_band()` understands the following aesthetics mappings:
2908
+
2909
+ - xmin : x-axis value.
2910
+ - xmax : x-axis value.
2911
+ - ymin : y-axis value.
2912
+ - ymax : y-axis value.
2913
+ - alpha : transparency level of a layer. Accept values between 0 and 1.
2914
+ - color (colour) : color of the geometry lines. String in the following formats: RGB/RGBA (e.g. "rgb(0, 0, 255)"); HEX (e.g. "#0000FF"); color name (e.g. "red"); role name ("pen", "paper" or "brush").
2915
+ - fill : fill color. String in the following formats: RGB/RGBA (e.g. "rgb(0, 0, 255)"); HEX (e.g. "#0000FF"); color name (e.g. "red"); role name ("pen", "paper" or "brush").
2916
+ - size : lines width.
2917
+ - linetype : type of the line. Codes and names: 0 = 'blank', 1 = 'solid', 2 = 'dashed', 3 = 'dotted', 4 = 'dotdash', 5 = 'longdash', 6 = 'twodash'. For more info see https://lets-plot.org/python/pages/aesthetics.html#line-types.
2918
+
2919
+ Examples
2920
+ --------
2921
+ .. jupyter-execute::
2922
+ :linenos:
2923
+ :emphasize-lines: 3
2924
+
2925
+ from lets_plot import *
2926
+ LetsPlot.setup_html()
2927
+ ggplot() + geom_band(xmin=-1, xmax=1)
2928
+
2929
+ |
2930
+
2931
+ .. jupyter-execute::
2932
+ :linenos:
2933
+ :emphasize-lines: 16-19
2934
+
2935
+ from lets_plot import *
2936
+ LetsPlot.setup_html()
2937
+ n = 11
2938
+ w = 5
2939
+ color = "orange"
2940
+ xdata = {
2941
+ "xmin": list(range(0, w * n, w)),
2942
+ "xmax": list(range(1, w * n + 1, w)),
2943
+ }
2944
+ ydata = {
2945
+ "ymin": [0, 10],
2946
+ "ymax": [10, 15],
2947
+ "color": [color, "white"],
2948
+ }
2949
+ ggplot() + \\
2950
+ geom_band(aes(xmin="xmin", xmax="xmax"), data=xdata, \\
2951
+ size=0, fill=color, tooltips='none') + \\
2952
+ geom_band(aes(ymin="ymin", ymax="ymax", fill="color"), data=ydata, \\
2953
+ size=0, tooltips='none') + \\
2954
+ scale_fill_identity() + \\
2955
+ coord_polar(xlim=[0, w * n], ylim=[0, 25]) + \\
2956
+ theme_void()
2957
+
2958
+ """
2959
+ return _geom('band',
2960
+ mapping=mapping,
2961
+ data=data,
2962
+ stat=stat,
2963
+ position=position,
2964
+ show_legend=show_legend,
2965
+ sampling=sampling,
2966
+ tooltips=tooltips,
2967
+ color_by=color_by,
2968
+ fill_by=fill_by,
2969
+ **other_args)
2970
+
2971
+
2972
+ def geom_hline(mapping=None, *, data=None, stat=None, position=None, show_legend=None, manual_key=None, sampling=None,
2973
+ tooltips=None,
2760
2974
  yintercept=None,
2761
2975
  color_by=None,
2762
2976
  **other_args):
@@ -2780,6 +2994,9 @@ def geom_hline(mapping=None, *, data=None, stat=None, position=None, show_legend
2780
2994
  'stack' or 'identity', or the result of calling a position adjustment function (e.g., `position_dodge()` etc.).
2781
2995
  show_legend : bool, default=True
2782
2996
  False - do not show legend for this layer.
2997
+ manual_key : str or `layer_key`
2998
+ The key to show in the manual legend.
2999
+ Specify text for the legend label or advanced settings using the `layer_key()` function.
2783
3000
  sampling : `FeatureSpec`
2784
3001
  Result of the call to the `sampling_xxx()` function.
2785
3002
  To prevent any sampling for this layer pass value "none" (string "none").
@@ -2809,7 +3026,7 @@ def geom_hline(mapping=None, *, data=None, stat=None, position=None, show_legend
2809
3026
  - alpha : transparency level of a layer. Accept values between 0 and 1.
2810
3027
  - color (colour) : color of the geometry lines. String in the following formats: RGB/RGBA (e.g. "rgb(0, 0, 255)"); HEX (e.g. "#0000FF"); color name (e.g. "red"); role name ("pen", "paper" or "brush").
2811
3028
  - size : line width.
2812
- - linetype : type of the line. Codes and names: 0 = 'blank', 1 = 'solid', 2 = 'dashed', 3 = 'dotted', 4 = 'dotdash', 5 = 'longdash', 6 = 'twodash'.
3029
+ - linetype : type of the line. Codes and names: 0 = 'blank', 1 = 'solid', 2 = 'dashed', 3 = 'dotted', 4 = 'dotdash', 5 = 'longdash', 6 = 'twodash'. For more info see https://lets-plot.org/python/pages/aesthetics.html#line-types.
2813
3030
 
2814
3031
  Examples
2815
3032
  --------
@@ -2864,6 +3081,7 @@ def geom_hline(mapping=None, *, data=None, stat=None, position=None, show_legend
2864
3081
  stat=stat,
2865
3082
  position=position,
2866
3083
  show_legend=show_legend,
3084
+ manual_key=manual_key,
2867
3085
  sampling=sampling,
2868
3086
  tooltips=tooltips,
2869
3087
  yintercept=yintercept,
@@ -2871,7 +3089,8 @@ def geom_hline(mapping=None, *, data=None, stat=None, position=None, show_legend
2871
3089
  **other_args)
2872
3090
 
2873
3091
 
2874
- def geom_vline(mapping=None, *, data=None, stat=None, position=None, show_legend=None, sampling=None, tooltips=None,
3092
+ def geom_vline(mapping=None, *, data=None, stat=None, position=None, show_legend=None, manual_key=None, sampling=None,
3093
+ tooltips=None,
2875
3094
  xintercept=None,
2876
3095
  color_by=None,
2877
3096
  **other_args):
@@ -2895,6 +3114,9 @@ def geom_vline(mapping=None, *, data=None, stat=None, position=None, show_legend
2895
3114
  'stack' or 'identity', or the result of calling a position adjustment function (e.g., `position_dodge()` etc.).
2896
3115
  show_legend : bool, default=True
2897
3116
  False - do not show legend for this layer.
3117
+ manual_key : str or `layer_key`
3118
+ The key to show in the manual legend.
3119
+ Specify text for the legend label or advanced settings using the `layer_key()` function.
2898
3120
  sampling : `FeatureSpec`
2899
3121
  Result of the call to the `sampling_xxx()` function.
2900
3122
  To prevent any sampling for this layer pass value "none" (string "none").
@@ -2924,7 +3146,7 @@ def geom_vline(mapping=None, *, data=None, stat=None, position=None, show_legend
2924
3146
  - alpha : transparency level of a layer. Accept values between 0 and 1.
2925
3147
  - color (colour) : color of the geometry lines. String in the following formats: RGB/RGBA (e.g. "rgb(0, 0, 255)"); HEX (e.g. "#0000FF"); color name (e.g. "red"); role name ("pen", "paper" or "brush").
2926
3148
  - size : lines width.
2927
- - linetype : type of the line. Codes and names: 0 = 'blank', 1 = 'solid', 2 = 'dashed', 3 = 'dotted', 4 = 'dotdash', 5 = 'longdash', 6 = 'twodash'.
3149
+ - linetype : type of the line. Codes and names: 0 = 'blank', 1 = 'solid', 2 = 'dashed', 3 = 'dotted', 4 = 'dotdash', 5 = 'longdash', 6 = 'twodash'. For more info see https://lets-plot.org/python/pages/aesthetics.html#line-types.
2928
3150
 
2929
3151
  Examples
2930
3152
  --------
@@ -2979,6 +3201,7 @@ def geom_vline(mapping=None, *, data=None, stat=None, position=None, show_legend
2979
3201
  stat=stat,
2980
3202
  position=position,
2981
3203
  show_legend=show_legend,
3204
+ manual_key=manual_key,
2982
3205
  sampling=sampling,
2983
3206
  tooltips=tooltips,
2984
3207
  xintercept=xintercept,
@@ -2986,7 +3209,7 @@ def geom_vline(mapping=None, *, data=None, stat=None, position=None, show_legend
2986
3209
  **other_args)
2987
3210
 
2988
3211
 
2989
- def geom_boxplot(mapping=None, *, data=None, stat=None, position=None, show_legend=None, tooltips=None,
3212
+ def geom_boxplot(mapping=None, *, data=None, stat=None, position=None, show_legend=None, manual_key=None, tooltips=None,
2990
3213
  orientation=None,
2991
3214
  fatten=None,
2992
3215
  outlier_alpha=None, outlier_color=None, outlier_fill=None,
@@ -3017,6 +3240,9 @@ def geom_boxplot(mapping=None, *, data=None, stat=None, position=None, show_lege
3017
3240
  'stack' or 'identity', or the result of calling a position adjustment function (e.g., `position_dodge()` etc.).
3018
3241
  show_legend : bool, default=True
3019
3242
  False - do not show legend for this layer.
3243
+ manual_key : str or `layer_key`
3244
+ The key to show in the manual legend.
3245
+ Specify text for the legend label or advanced settings using the `layer_key()` function.
3020
3246
  tooltips : `layer_tooltips`
3021
3247
  Result of the call to the `layer_tooltips()` function.
3022
3248
  Specify appearance, style and content.
@@ -3081,7 +3307,7 @@ def geom_boxplot(mapping=None, *, data=None, stat=None, position=None, show_lege
3081
3307
  - color (colour) : color of the geometry lines. String in the following formats: RGB/RGBA (e.g. "rgb(0, 0, 255)"); HEX (e.g. "#0000FF"); color name (e.g. "red"); role name ("pen", "paper" or "brush").
3082
3308
  - fill : fill color. String in the following formats: RGB/RGBA (e.g. "rgb(0, 0, 255)"); HEX (e.g. "#0000FF"); color name (e.g. "red"); role name ("pen", "paper" or "brush").
3083
3309
  - size : lines width.
3084
- - linetype : type of the line of border. Codes and names: 0 = 'blank', 1 = 'solid', 2 = 'dashed', 3 = 'dotted', 4 = 'dotdash', 5 = 'longdash', 6 = 'twodash'.
3310
+ - linetype : type of the line of border. Codes and names: 0 = 'blank', 1 = 'solid', 2 = 'dashed', 3 = 'dotted', 4 = 'dotdash', 5 = 'longdash', 6 = 'twodash'. For more info see https://lets-plot.org/python/pages/aesthetics.html#line-types.
3085
3311
  - width : width of boxplot. Typically ranges between 0 and 1. Values that are greater than 1 lead to overlapping of the boxes.
3086
3312
 
3087
3313
  Examples
@@ -3168,6 +3394,7 @@ def geom_boxplot(mapping=None, *, data=None, stat=None, position=None, show_lege
3168
3394
  stat=stat,
3169
3395
  position=position,
3170
3396
  show_legend=show_legend,
3397
+ manual_key=manual_key,
3171
3398
  sampling=None,
3172
3399
  tooltips=tooltips,
3173
3400
  orientation=orientation,
@@ -3200,7 +3427,8 @@ def geom_boxplot(mapping=None, *, data=None, stat=None, position=None, show_lege
3200
3427
  return boxplot_layer
3201
3428
 
3202
3429
 
3203
- def geom_violin(mapping=None, *, data=None, stat=None, position=None, show_legend=None, sampling=None, tooltips=None,
3430
+ def geom_violin(mapping=None, *, data=None, stat=None, position=None, show_legend=None, manual_key=None, sampling=None,
3431
+ tooltips=None,
3204
3432
  orientation=None,
3205
3433
  show_half=None,
3206
3434
  quantiles=None, quantile_lines=None,
@@ -3227,6 +3455,9 @@ def geom_violin(mapping=None, *, data=None, stat=None, position=None, show_legen
3227
3455
  'stack' or 'identity', or the result of calling a position adjustment function (e.g., `position_dodge()` etc.).
3228
3456
  show_legend : bool, default=True
3229
3457
  False - do not show legend for this layer.
3458
+ manual_key : str or `layer_key`
3459
+ The key to show in the manual legend.
3460
+ Specify text for the legend label or advanced settings using the `layer_key()` function.
3230
3461
  sampling : `FeatureSpec`
3231
3462
  Result of the call to the `sampling_xxx()` function.
3232
3463
  To prevent any sampling for this layer pass value "none" (string "none").
@@ -3300,7 +3531,7 @@ def geom_violin(mapping=None, *, data=None, stat=None, position=None, show_legen
3300
3531
  - color (colour) : color of the geometry lines. String in the following formats: RGB/RGBA (e.g. "rgb(0, 0, 255)"); HEX (e.g. "#0000FF"); color name (e.g. "red"); role name ("pen", "paper" or "brush").
3301
3532
  - fill : fill color. String in the following formats: RGB/RGBA (e.g. "rgb(0, 0, 255)"); HEX (e.g. "#0000FF"); color name (e.g. "red"); role name ("pen", "paper" or "brush").
3302
3533
  - size : lines width.
3303
- - linetype : type of the line of border. Codes and names: 0 = 'blank', 1 = 'solid', 2 = 'dashed', 3 = 'dotted', 4 = 'dotdash', 5 = 'longdash', 6 = 'twodash'.
3534
+ - linetype : type of the line of border. Codes and names: 0 = 'blank', 1 = 'solid', 2 = 'dashed', 3 = 'dotted', 4 = 'dotdash', 5 = 'longdash', 6 = 'twodash'. For more info see https://lets-plot.org/python/pages/aesthetics.html#line-types.
3304
3535
  - weight : used by 'ydensity' stat to compute weighted density.
3305
3536
  - quantile : quantile values to draw quantile lines and fill quantiles of the geometry by color.
3306
3537
 
@@ -3404,6 +3635,7 @@ def geom_violin(mapping=None, *, data=None, stat=None, position=None, show_legen
3404
3635
  stat=stat,
3405
3636
  position=position,
3406
3637
  show_legend=show_legend,
3638
+ manual_key=manual_key,
3407
3639
  sampling=sampling,
3408
3640
  tooltips=tooltips,
3409
3641
  orientation=orientation,
@@ -3415,7 +3647,7 @@ def geom_violin(mapping=None, *, data=None, stat=None, position=None, show_legen
3415
3647
  **other_args)
3416
3648
 
3417
3649
 
3418
- def geom_ydotplot(mapping=None, *, data=None, show_legend=None, sampling=None, tooltips=None,
3650
+ def geom_ydotplot(mapping=None, *, data=None, show_legend=None, manual_key=None, sampling=None, tooltips=None,
3419
3651
  orientation=None,
3420
3652
  binwidth=None,
3421
3653
  bins=None,
@@ -3444,6 +3676,9 @@ def geom_ydotplot(mapping=None, *, data=None, show_legend=None, sampling=None, t
3444
3676
  is inherited from the plot data as specified in the call to ggplot.
3445
3677
  show_legend : bool, default=True
3446
3678
  False - do not show legend for this layer.
3679
+ manual_key : str or `layer_key`
3680
+ The key to show in the manual legend.
3681
+ Specify text for the legend label or advanced settings using the `layer_key()` function.
3447
3682
  sampling : `FeatureSpec`
3448
3683
  Result of the call to the `sampling_xxx()` function.
3449
3684
  To prevent any sampling for this layer pass value "none" (string "none").
@@ -3577,6 +3812,7 @@ def geom_ydotplot(mapping=None, *, data=None, show_legend=None, sampling=None, t
3577
3812
  stat=None,
3578
3813
  position=None,
3579
3814
  show_legend=show_legend,
3815
+ manual_key=manual_key,
3580
3816
  sampling=sampling,
3581
3817
  tooltips=tooltips,
3582
3818
  orientation=orientation,
@@ -3593,7 +3829,8 @@ def geom_ydotplot(mapping=None, *, data=None, show_legend=None, sampling=None, t
3593
3829
  **other_args)
3594
3830
 
3595
3831
 
3596
- def geom_area_ridges(mapping=None, *, data=None, stat=None, position=None, show_legend=None, sampling=None, tooltips=None,
3832
+ def geom_area_ridges(mapping=None, *, data=None, stat=None, position=None, show_legend=None, manual_key=None,
3833
+ sampling=None, tooltips=None,
3597
3834
  trim=None, tails_cutoff=None, kernel=None, adjust=None, bw=None, n=None, fs_max=None,
3598
3835
  min_height=None, scale=None, quantiles=None, quantile_lines=None,
3599
3836
  color_by=None, fill_by=None,
@@ -3620,6 +3857,9 @@ def geom_area_ridges(mapping=None, *, data=None, stat=None, position=None, show_
3620
3857
  'stack' or 'identity', or the result of calling a position adjustment function (e.g., `position_dodge()` etc.).
3621
3858
  show_legend : bool, default=True
3622
3859
  False - do not show legend for this layer.
3860
+ manual_key : str or `layer_key`
3861
+ The key to show in the manual legend.
3862
+ Specify text for the legend label or advanced settings using the `layer_key()` function.
3623
3863
  sampling : `FeatureSpec`
3624
3864
  Result of the call to the `sampling_xxx()` function.
3625
3865
  To prevent any sampling for this layer pass value "none" (string "none").
@@ -3690,7 +3930,7 @@ def geom_area_ridges(mapping=None, *, data=None, stat=None, position=None, show_
3690
3930
  - color (colour) : color of the geometry lines. String in the following formats: RGB/RGBA (e.g. "rgb(0, 0, 255)"); HEX (e.g. "#0000FF"); color name (e.g. "red"); role name ("pen", "paper" or "brush").
3691
3931
  - fill : fill color. String in the following formats: RGB/RGBA (e.g. "rgb(0, 0, 255)"); HEX (e.g. "#0000FF"); color name (e.g. "red"); role name ("pen", "paper" or "brush").
3692
3932
  - size : lines width.
3693
- - linetype : type of the line of border. Codes and names: 0 = 'blank', 1 = 'solid', 2 = 'dashed', 3 = 'dotted', 4 = 'dotdash', 5 = 'longdash', 6 = 'twodash'.
3933
+ - linetype : type of the line of border. Codes and names: 0 = 'blank', 1 = 'solid', 2 = 'dashed', 3 = 'dotted', 4 = 'dotdash', 5 = 'longdash', 6 = 'twodash'. For more info see https://lets-plot.org/python/pages/aesthetics.html#line-types.
3694
3934
  - weight : used by 'densityridges' stat to compute weighted density.
3695
3935
  - quantile : quantile values to draw quantile lines and fill quantiles of the geometry by color.
3696
3936
 
@@ -3753,6 +3993,7 @@ def geom_area_ridges(mapping=None, *, data=None, stat=None, position=None, show_
3753
3993
  stat=stat,
3754
3994
  position=position,
3755
3995
  show_legend=show_legend,
3996
+ manual_key=manual_key,
3756
3997
  sampling=sampling,
3757
3998
  tooltips=tooltips,
3758
3999
  trim=trim,
@@ -3770,7 +4011,8 @@ def geom_area_ridges(mapping=None, *, data=None, stat=None, position=None, show_
3770
4011
  **other_args)
3771
4012
 
3772
4013
 
3773
- def geom_ribbon(mapping=None, *, data=None, stat=None, position=None, show_legend=None, sampling=None, tooltips=None,
4014
+ def geom_ribbon(mapping=None, *, data=None, stat=None, position=None, show_legend=None, manual_key=None, sampling=None,
4015
+ tooltips=None,
3774
4016
  color_by=None, fill_by=None,
3775
4017
  **other_args):
3776
4018
  """
@@ -3793,6 +4035,9 @@ def geom_ribbon(mapping=None, *, data=None, stat=None, position=None, show_legen
3793
4035
  'stack' or 'identity', or the result of calling a position adjustment function (e.g., `position_dodge()` etc.).
3794
4036
  show_legend : bool, default=True
3795
4037
  False - do not show legend for this layer.
4038
+ manual_key : str or `layer_key`
4039
+ The key to show in the manual legend.
4040
+ Specify text for the legend label or advanced settings using the `layer_key()` function.
3796
4041
  sampling : `FeatureSpec`
3797
4042
  Result of the call to the `sampling_xxx()` function.
3798
4043
  To prevent any sampling for this layer pass value "none" (string "none").
@@ -3827,7 +4072,7 @@ def geom_ribbon(mapping=None, *, data=None, stat=None, position=None, show_legen
3827
4072
  - color (colour) : color of the geometry lines. String in the following formats: RGB/RGBA (e.g. "rgb(0, 0, 255)"); HEX (e.g. "#0000FF"); color name (e.g. "red"); role name ("pen", "paper" or "brush").
3828
4073
  - fill : fill color. String in the following formats: RGB/RGBA (e.g. "rgb(0, 0, 255)"); HEX (e.g. "#0000FF"); color name (e.g. "red"); role name ("pen", "paper" or "brush").
3829
4074
  - size : lines width.
3830
- - linetype : type of the line of border. Codes and names: 0 = 'blank', 1 = 'solid', 2 = 'dashed', 3 = 'dotted', 4 = 'dotdash', 5 = 'longdash', 6 = 'twodash'.
4075
+ - linetype : type of the line of border. Codes and names: 0 = 'blank', 1 = 'solid', 2 = 'dashed', 3 = 'dotted', 4 = 'dotdash', 5 = 'longdash', 6 = 'twodash'. For more info see https://lets-plot.org/python/pages/aesthetics.html#line-types.
3831
4076
 
3832
4077
  Examples
3833
4078
  --------
@@ -3875,13 +4120,15 @@ def geom_ribbon(mapping=None, *, data=None, stat=None, position=None, show_legen
3875
4120
  stat=stat,
3876
4121
  position=position,
3877
4122
  show_legend=show_legend,
4123
+ manual_key=manual_key,
3878
4124
  sampling=sampling,
3879
4125
  tooltips=tooltips,
3880
4126
  color_by=color_by, fill_by=fill_by,
3881
4127
  **other_args)
3882
4128
 
3883
4129
 
3884
- def geom_area(mapping=None, *, data=None, stat=None, position=None, show_legend=None, sampling=None, tooltips=None,
4130
+ def geom_area(mapping=None, *, data=None, stat=None, position=None, show_legend=None, manual_key=None, sampling=None,
4131
+ tooltips=None,
3885
4132
  flat=None, color_by=None, fill_by=None,
3886
4133
  **other_args):
3887
4134
  """
@@ -3910,6 +4157,9 @@ def geom_area(mapping=None, *, data=None, stat=None, position=None, show_legend=
3910
4157
  'stack' or 'identity', or the result of calling a position adjustment function (e.g., `position_dodge()` etc.).
3911
4158
  show_legend : bool, default=True
3912
4159
  False - do not show legend for this layer.
4160
+ manual_key : str or `layer_key`
4161
+ The key to show in the manual legend.
4162
+ Specify text for the legend label or advanced settings using the `layer_key()` function.
3913
4163
  sampling : `FeatureSpec`
3914
4164
  Result of the call to the `sampling_xxx()` function.
3915
4165
  To prevent any sampling for this layer pass value "none" (string "none").
@@ -3946,7 +4196,7 @@ def geom_area(mapping=None, *, data=None, stat=None, position=None, show_legend=
3946
4196
  - color (colour) : color of the geometry lines. String in the following formats: RGB/RGBA (e.g. "rgb(0, 0, 255)"); HEX (e.g. "#0000FF"); color name (e.g. "red"); role name ("pen", "paper" or "brush").
3947
4197
  - fill : fill color. String in the following formats: RGB/RGBA (e.g. "rgb(0, 0, 255)"); HEX (e.g. "#0000FF"); color name (e.g. "red"); role name ("pen", "paper" or "brush").
3948
4198
  - size : lines width.
3949
- - linetype : type of the line of border. Codes and names: 0 = 'blank', 1 = 'solid', 2 = 'dashed', 3 = 'dotted', 4 = 'dotdash', 5 = 'longdash', 6 = 'twodash'.
4199
+ - linetype : type of the line of border. Codes and names: 0 = 'blank', 1 = 'solid', 2 = 'dashed', 3 = 'dotted', 4 = 'dotdash', 5 = 'longdash', 6 = 'twodash'. For more info see https://lets-plot.org/python/pages/aesthetics.html#line-types.
3950
4200
 
3951
4201
  Examples
3952
4202
  --------
@@ -3996,6 +4246,7 @@ def geom_area(mapping=None, *, data=None, stat=None, position=None, show_legend=
3996
4246
  stat=stat,
3997
4247
  position=position,
3998
4248
  show_legend=show_legend,
4249
+ manual_key=manual_key,
3999
4250
  sampling=sampling,
4000
4251
  tooltips=tooltips,
4001
4252
  flat=flat,
@@ -4003,7 +4254,8 @@ def geom_area(mapping=None, *, data=None, stat=None, position=None, show_legend=
4003
4254
  **other_args)
4004
4255
 
4005
4256
 
4006
- def geom_density(mapping=None, *, data=None, stat=None, position=None, show_legend=None, sampling=None, tooltips=None,
4257
+ def geom_density(mapping=None, *, data=None, stat=None, position=None, show_legend=None, manual_key=None, sampling=None,
4258
+ tooltips=None,
4007
4259
  orientation=None,
4008
4260
  trim=None,
4009
4261
  kernel=None,
@@ -4040,6 +4292,9 @@ def geom_density(mapping=None, *, data=None, stat=None, position=None, show_lege
4040
4292
  'stack' or 'identity', or the result of calling a position adjustment function (e.g., `position_dodge()` etc.).
4041
4293
  show_legend : bool, default=True
4042
4294
  False - do not show legend for this layer.
4295
+ manual_key : str or `layer_key`
4296
+ The key to show in the manual legend.
4297
+ Specify text for the legend label or advanced settings using the `layer_key()` function.
4043
4298
  sampling : `FeatureSpec`
4044
4299
  Result of the call to the `sampling_xxx()` function.
4045
4300
  To prevent any sampling for this layer pass value "none" (string "none").
@@ -4101,7 +4356,7 @@ def geom_density(mapping=None, *, data=None, stat=None, position=None, show_lege
4101
4356
  - color (colour) : color of the geometry lines. String in the following formats: RGB/RGBA (e.g. "rgb(0, 0, 255)"); HEX (e.g. "#0000FF"); color name (e.g. "red"); role name ("pen", "paper" or "brush").
4102
4357
  - fill : fill color. String in the following formats: RGB/RGBA (e.g. "rgb(0, 0, 255)"); HEX (e.g. "#0000FF"); color name (e.g. "red"); role name ("pen", "paper" or "brush").
4103
4358
  - size : lines width.
4104
- - linetype : type of the line. Codes and names: 0 = 'blank', 1 = 'solid', 2 = 'dashed', 3 = 'dotted', 4 = 'dotdash', 5 = 'longdash', 6 = 'twodash'.
4359
+ - linetype : type of the line. Codes and names: 0 = 'blank', 1 = 'solid', 2 = 'dashed', 3 = 'dotted', 4 = 'dotdash', 5 = 'longdash', 6 = 'twodash'. For more info see https://lets-plot.org/python/pages/aesthetics.html#line-types.
4105
4360
  - weight : used by 'density' stat to compute weighted density.
4106
4361
  - quantile : quantile values to draw quantile lines and fill quantiles of the geometry by color.
4107
4362
 
@@ -4203,6 +4458,7 @@ def geom_density(mapping=None, *, data=None, stat=None, position=None, show_lege
4203
4458
  stat=stat,
4204
4459
  position=position,
4205
4460
  show_legend=show_legend,
4461
+ manual_key=manual_key,
4206
4462
  sampling=sampling,
4207
4463
  tooltips=tooltips,
4208
4464
  orientation=orientation,
@@ -4212,7 +4468,8 @@ def geom_density(mapping=None, *, data=None, stat=None, position=None, show_lege
4212
4468
  **other_args)
4213
4469
 
4214
4470
 
4215
- def geom_density2d(mapping=None, *, data=None, stat=None, position=None, show_legend=None, sampling=None, tooltips=None,
4471
+ def geom_density2d(mapping=None, *, data=None, stat=None, position=None, show_legend=None, manual_key=None,
4472
+ sampling=None, tooltips=None,
4216
4473
  kernel=None,
4217
4474
  adjust=None,
4218
4475
  bw=None,
@@ -4224,6 +4481,10 @@ def geom_density2d(mapping=None, *, data=None, stat=None, position=None, show_le
4224
4481
  """
4225
4482
  Display density function contour.
4226
4483
 
4484
+ By default, this geom uses `coord_fixed()`.
4485
+ However, this may not be the best choice when the values on the X/Y axis have significantly different magnitudes.
4486
+ In such cases, try using `coord_cartesian()`.
4487
+
4227
4488
  Parameters
4228
4489
  ----------
4229
4490
  mapping : `FeatureSpec`
@@ -4241,6 +4502,9 @@ def geom_density2d(mapping=None, *, data=None, stat=None, position=None, show_le
4241
4502
  'stack' or 'identity', or the result of calling a position adjustment function (e.g., `position_dodge()` etc.).
4242
4503
  show_legend : bool, default=True
4243
4504
  False - do not show legend for this layer.
4505
+ manual_key : str or `layer_key`
4506
+ The key to show in the manual legend.
4507
+ Specify text for the legend label or advanced settings using the `layer_key()` function.
4244
4508
  sampling : `FeatureSpec`
4245
4509
  Result of the call to the `sampling_xxx()` function.
4246
4510
  To prevent any sampling for this layer pass value "none" (string "none").
@@ -4278,7 +4542,6 @@ def geom_density2d(mapping=None, *, data=None, stat=None, position=None, show_le
4278
4542
 
4279
4543
  Notes
4280
4544
  -----
4281
- `geom_density2d()` draws density function.
4282
4545
 
4283
4546
  Computed variables:
4284
4547
 
@@ -4292,9 +4555,10 @@ def geom_density2d(mapping=None, *, data=None, stat=None, position=None, show_le
4292
4555
  - alpha : transparency level of a layer. Accept values between 0 and 1.
4293
4556
  - color (colour) : color of the geometry lines. String in the following formats: RGB/RGBA (e.g. "rgb(0, 0, 255)"); HEX (e.g. "#0000FF"); color name (e.g. "red"); role name ("pen", "paper" or "brush").
4294
4557
  - size : lines width.
4295
- - linetype : type of the line of border. Codes and names: 0 = 'blank', 1 = 'solid', 2 = 'dashed', 3 = 'dotted', 4 = 'dotdash', 5 = 'longdash', 6 = 'twodash'.
4558
+ - linetype : type of the line of border. Codes and names: 0 = 'blank', 1 = 'solid', 2 = 'dashed', 3 = 'dotted', 4 = 'dotdash', 5 = 'longdash', 6 = 'twodash'. For more info see https://lets-plot.org/python/pages/aesthetics.html#line-types.
4559
+ - weight : used by 'density2d' stat to compute weighted density.
4296
4560
 
4297
- |
4561
+ ----
4298
4562
 
4299
4563
  'density2d' statistical transformation combined with parameter value `contour=False`
4300
4564
  could be used to draw heatmaps (see the example below).
@@ -4418,6 +4682,7 @@ def geom_density2d(mapping=None, *, data=None, stat=None, position=None, show_le
4418
4682
  stat=stat,
4419
4683
  position=position,
4420
4684
  show_legend=show_legend,
4685
+ manual_key=manual_key,
4421
4686
  sampling=sampling,
4422
4687
  tooltips=tooltips,
4423
4688
  kernel=kernel, adjust=adjust, bw=bw, n=n, bins=bins, binwidth=binwidth,
@@ -4425,7 +4690,8 @@ def geom_density2d(mapping=None, *, data=None, stat=None, position=None, show_le
4425
4690
  **other_args)
4426
4691
 
4427
4692
 
4428
- def geom_density2df(mapping=None, *, data=None, stat=None, position=None, show_legend=None, sampling=None,
4693
+ def geom_density2df(mapping=None, *, data=None, stat=None, position=None, show_legend=None, manual_key=None,
4694
+ sampling=None,
4429
4695
  tooltips=None,
4430
4696
  kernel=None,
4431
4697
  adjust=None,
@@ -4438,6 +4704,10 @@ def geom_density2df(mapping=None, *, data=None, stat=None, position=None, show_l
4438
4704
  """
4439
4705
  Fill density function contour.
4440
4706
 
4707
+ By default, this geom uses `coord_fixed()`.
4708
+ However, this may not be the best choice when the values on the X/Y axis have significantly different magnitudes.
4709
+ In such cases, try using `coord_cartesian()`.
4710
+
4441
4711
  Parameters
4442
4712
  ----------
4443
4713
  mapping : `FeatureSpec`
@@ -4455,6 +4725,9 @@ def geom_density2df(mapping=None, *, data=None, stat=None, position=None, show_l
4455
4725
  'stack' or 'identity', or the result of calling a position adjustment function (e.g., `position_dodge()` etc.).
4456
4726
  show_legend : bool, default=True
4457
4727
  False - do not show legend for this layer.
4728
+ manual_key : str or `layer_key`
4729
+ The key to show in the manual legend.
4730
+ Specify text for the legend label or advanced settings using the `layer_key()` function.
4458
4731
  sampling : `FeatureSpec`
4459
4732
  Result of the call to the `sampling_xxx()` function.
4460
4733
  To prevent any sampling for this layer pass value "none" (string "none").
@@ -4494,7 +4767,6 @@ def geom_density2df(mapping=None, *, data=None, stat=None, position=None, show_l
4494
4767
 
4495
4768
  Notes
4496
4769
  -----
4497
- `geom_density2df()` fills density contours.
4498
4770
 
4499
4771
  Computed variables:
4500
4772
 
@@ -4506,8 +4778,9 @@ def geom_density2df(mapping=None, *, data=None, stat=None, position=None, show_l
4506
4778
  - x : x-axis coordinates.
4507
4779
  - alpha : transparency level of a layer. Accept values between 0 and 1.
4508
4780
  - fill : fill color. String in the following formats: RGB/RGBA (e.g. "rgb(0, 0, 255)"); HEX (e.g. "#0000FF"); color name (e.g. "red"); role name ("pen", "paper" or "brush").
4781
+ - weight : used by 'density2df' stat to compute weighted density.
4509
4782
 
4510
- |
4783
+ ----
4511
4784
 
4512
4785
  'density2df' statistical transformation combined with parameter value `contour=False`
4513
4786
  could be used to draw heatmaps (see the example below).
@@ -4634,6 +4907,7 @@ def geom_density2df(mapping=None, *, data=None, stat=None, position=None, show_l
4634
4907
  stat=stat,
4635
4908
  position=position,
4636
4909
  show_legend=show_legend,
4910
+ manual_key=manual_key,
4637
4911
  sampling=sampling,
4638
4912
  tooltips=tooltips,
4639
4913
  kernel=kernel,
@@ -4645,7 +4919,8 @@ def geom_density2df(mapping=None, *, data=None, stat=None, position=None, show_l
4645
4919
  **other_args)
4646
4920
 
4647
4921
 
4648
- def geom_jitter(mapping=None, *, data=None, stat=None, position=None, show_legend=None, sampling=None, tooltips=None,
4922
+ def geom_jitter(mapping=None, *, data=None, stat=None, position=None, show_legend=None, manual_key=None, sampling=None,
4923
+ tooltips=None,
4649
4924
  width=None, height=None,
4650
4925
  color_by=None, fill_by=None,
4651
4926
  seed=None,
@@ -4675,6 +4950,9 @@ def geom_jitter(mapping=None, *, data=None, stat=None, position=None, show_legen
4675
4950
  'stack' or 'identity', or the result of calling a position adjustment function (e.g., `position_dodge()` etc.).
4676
4951
  show_legend : bool, default=True
4677
4952
  False - do not show legend for this layer.
4953
+ manual_key : str or `layer_key`
4954
+ The key to show in the manual legend.
4955
+ Specify text for the legend label or advanced settings using the `layer_key()` function.
4678
4956
  sampling : `FeatureSpec`
4679
4957
  Result of the call to the `sampling_xxx()` function.
4680
4958
  To prevent any sampling for this layer pass value "none" (string "none").
@@ -4717,7 +4995,7 @@ def geom_jitter(mapping=None, *, data=None, stat=None, position=None, show_legen
4717
4995
  - alpha : transparency level of a point. Accept values between 0 and 1.
4718
4996
  - color (colour) : color of the geometry. String in the following formats: RGB/RGBA (e.g. "rgb(0, 0, 255)"); HEX (e.g. "#0000FF"); color name (e.g. "red"); role name ("pen", "paper" or "brush").
4719
4997
  - fill : fill color. Is applied only to the points of shapes having inner area. String in the following formats: RGB/RGBA (e.g. "rgb(0, 0, 255)"); HEX (e.g. "#0000FF"); color name (e.g. "red"); role name ("pen", "paper" or "brush").
4720
- - shape : shape of the point, an integer from 0 to 25.
4998
+ - shape : shape of the point, an integer from 0 to 25. For more info see https://lets-plot.org/python/pages/aesthetics.html#point-shapes.
4721
4999
  - size : size of the point.
4722
5000
  - stroke : width of the shape border. Applied only to the shapes having border.
4723
5001
 
@@ -4765,6 +5043,7 @@ def geom_jitter(mapping=None, *, data=None, stat=None, position=None, show_legen
4765
5043
  stat=stat,
4766
5044
  position=position,
4767
5045
  show_legend=show_legend,
5046
+ manual_key=manual_key,
4768
5047
  sampling=sampling,
4769
5048
  tooltips=tooltips,
4770
5049
  width=width, height=height,
@@ -4773,7 +5052,8 @@ def geom_jitter(mapping=None, *, data=None, stat=None, position=None, show_legen
4773
5052
  **other_args)
4774
5053
 
4775
5054
 
4776
- def geom_qq(mapping=None, *, data=None, stat=None, position=None, show_legend=None, sampling=None, tooltips=None,
5055
+ def geom_qq(mapping=None, *, data=None, stat=None, position=None, show_legend=None, manual_key=None, sampling=None,
5056
+ tooltips=None,
4777
5057
  distribution=None,
4778
5058
  dparams=None,
4779
5059
  color_by=None, fill_by=None,
@@ -4804,6 +5084,9 @@ def geom_qq(mapping=None, *, data=None, stat=None, position=None, show_legend=No
4804
5084
  'stack' or 'identity', or the result of calling a position adjustment function (e.g., `position_dodge()` etc.).
4805
5085
  show_legend : bool, default=True
4806
5086
  False - do not show legend for this layer.
5087
+ manual_key : str or `layer_key`
5088
+ The key to show in the manual legend.
5089
+ Specify text for the legend label or advanced settings using the `layer_key()` function.
4807
5090
  sampling : `FeatureSpec`
4808
5091
  Result of the call to the `sampling_xxx()` function.
4809
5092
  To prevent any sampling for this layer pass value "none" (string "none").
@@ -4854,7 +5137,7 @@ def geom_qq(mapping=None, *, data=None, stat=None, position=None, show_legend=No
4854
5137
  - alpha : transparency level of a point. Accept values between 0 and 1.
4855
5138
  - color (colour) : color of the geometry. String in the following formats: RGB/RGBA (e.g. "rgb(0, 0, 255)"); HEX (e.g. "#0000FF"); color name (e.g. "red"); role name ("pen", "paper" or "brush").
4856
5139
  - fill : fill color. Is applied only to the points of shapes having inner area. String in the following formats: RGB/RGBA (e.g. "rgb(0, 0, 255)"); HEX (e.g. "#0000FF"); color name (e.g. "red"); role name ("pen", "paper" or "brush").
4857
- - shape : shape of the point, an integer from 0 to 25.
5140
+ - shape : shape of the point, an integer from 0 to 25. For more info see https://lets-plot.org/python/pages/aesthetics.html#point-shapes.
4858
5141
  - size : size of the point.
4859
5142
  - stroke : width of the shape border. Applied only to the shapes having border.
4860
5143
 
@@ -4894,6 +5177,7 @@ def geom_qq(mapping=None, *, data=None, stat=None, position=None, show_legend=No
4894
5177
  stat=stat,
4895
5178
  position=position,
4896
5179
  show_legend=show_legend,
5180
+ manual_key=manual_key,
4897
5181
  sampling=sampling,
4898
5182
  tooltips=tooltips,
4899
5183
  distribution=distribution,
@@ -4902,7 +5186,8 @@ def geom_qq(mapping=None, *, data=None, stat=None, position=None, show_legend=No
4902
5186
  **other_args)
4903
5187
 
4904
5188
 
4905
- def geom_qq2(mapping=None, *, data=None, stat=None, position=None, show_legend=None, sampling=None, tooltips=None,
5189
+ def geom_qq2(mapping=None, *, data=None, stat=None, position=None, show_legend=None, manual_key=None, sampling=None,
5190
+ tooltips=None,
4906
5191
  color_by=None, fill_by=None,
4907
5192
  **other_args):
4908
5193
  """
@@ -4931,6 +5216,9 @@ def geom_qq2(mapping=None, *, data=None, stat=None, position=None, show_legend=N
4931
5216
  'stack' or 'identity', or the result of calling a position adjustment function (e.g., `position_dodge()` etc.).
4932
5217
  show_legend : bool, default=True
4933
5218
  False - do not show legend for this layer.
5219
+ manual_key : str or `layer_key`
5220
+ The key to show in the manual legend.
5221
+ Specify text for the legend label or advanced settings using the `layer_key()` function.
4934
5222
  sampling : `FeatureSpec`
4935
5223
  Result of the call to the `sampling_xxx()` function.
4936
5224
  To prevent any sampling for this layer pass value "none" (string "none").
@@ -4970,7 +5258,7 @@ def geom_qq2(mapping=None, *, data=None, stat=None, position=None, show_legend=N
4970
5258
  - alpha : transparency level of a point. Accept values between 0 and 1.
4971
5259
  - color (colour) : color of the geometry. String in the following formats: RGB/RGBA (e.g. "rgb(0, 0, 255)"); HEX (e.g. "#0000FF"); color name (e.g. "red"); role name ("pen", "paper" or "brush").
4972
5260
  - fill : fill color. Is applied only to the points of shapes having inner area. String in the following formats: RGB/RGBA (e.g. "rgb(0, 0, 255)"); HEX (e.g. "#0000FF"); color name (e.g. "red"); role name ("pen", "paper" or "brush").
4973
- - shape : shape of the point, an integer from 0 to 25.
5261
+ - shape : shape of the point, an integer from 0 to 25. For more info see https://lets-plot.org/python/pages/aesthetics.html#point-shapes.
4974
5262
  - size : size of the point.
4975
5263
  - stroke : width of the shape border. Applied only to the shapes having border.
4976
5264
 
@@ -4996,13 +5284,15 @@ def geom_qq2(mapping=None, *, data=None, stat=None, position=None, show_legend=N
4996
5284
  stat=stat,
4997
5285
  position=position,
4998
5286
  show_legend=show_legend,
5287
+ manual_key=manual_key,
4999
5288
  sampling=sampling,
5000
5289
  tooltips=tooltips,
5001
5290
  color_by=color_by, fill_by=fill_by,
5002
5291
  **other_args)
5003
5292
 
5004
5293
 
5005
- def geom_qq_line(mapping=None, *, data=None, stat=None, position=None, show_legend=None, sampling=None, tooltips=None,
5294
+ def geom_qq_line(mapping=None, *, data=None, stat=None, position=None, show_legend=None, manual_key=None, sampling=None,
5295
+ tooltips=None,
5006
5296
  distribution=None,
5007
5297
  dparams=None,
5008
5298
  quantiles=None,
@@ -5034,6 +5324,9 @@ def geom_qq_line(mapping=None, *, data=None, stat=None, position=None, show_lege
5034
5324
  'stack' or 'identity', or the result of calling a position adjustment function (e.g., `position_dodge()` etc.).
5035
5325
  show_legend : bool, default=True
5036
5326
  False - do not show legend for this layer.
5327
+ manual_key : str or `layer_key`
5328
+ The key to show in the manual legend.
5329
+ Specify text for the legend label or advanced settings using the `layer_key()` function.
5037
5330
  sampling : `FeatureSpec`
5038
5331
  Result of the call to the `sampling_xxx()` function.
5039
5332
  To prevent any sampling for this layer pass value "none" (string "none").
@@ -5080,7 +5373,7 @@ def geom_qq_line(mapping=None, *, data=None, stat=None, position=None, show_lege
5080
5373
  - sample : y-axis value.
5081
5374
  - alpha : transparency level of a layer. Accept values between 0 and 1.
5082
5375
  - color (colour) : color of the geometry. String in the following formats: RGB/RGBA (e.g. "rgb(0, 0, 255)"); HEX (e.g. "#0000FF"); color name (e.g. "red"); role name ("pen", "paper" or "brush").
5083
- - linetype : type of the line. Codes and names: 0 = 'blank', 1 = 'solid', 2 = 'dashed', 3 = 'dotted', 4 = 'dotdash', 5 = 'longdash', 6 = 'twodash'.
5376
+ - linetype : type of the line. Codes and names: 0 = 'blank', 1 = 'solid', 2 = 'dashed', 3 = 'dotted', 4 = 'dotdash', 5 = 'longdash', 6 = 'twodash'. For more info see https://lets-plot.org/python/pages/aesthetics.html#line-types.
5084
5377
  - size : line width.
5085
5378
 
5086
5379
  Examples
@@ -5120,6 +5413,7 @@ def geom_qq_line(mapping=None, *, data=None, stat=None, position=None, show_lege
5120
5413
  stat=stat,
5121
5414
  position=position,
5122
5415
  show_legend=show_legend,
5416
+ manual_key=manual_key,
5123
5417
  sampling=sampling,
5124
5418
  tooltips=tooltips,
5125
5419
  distribution=distribution,
@@ -5129,7 +5423,8 @@ def geom_qq_line(mapping=None, *, data=None, stat=None, position=None, show_lege
5129
5423
  **other_args)
5130
5424
 
5131
5425
 
5132
- def geom_qq2_line(mapping=None, *, data=None, stat=None, position=None, show_legend=None, sampling=None, tooltips=None,
5426
+ def geom_qq2_line(mapping=None, *, data=None, stat=None, position=None, show_legend=None, manual_key=None,
5427
+ sampling=None, tooltips=None,
5133
5428
  quantiles=None,
5134
5429
  color_by=None,
5135
5430
  **other_args):
@@ -5159,6 +5454,9 @@ def geom_qq2_line(mapping=None, *, data=None, stat=None, position=None, show_leg
5159
5454
  'stack' or 'identity', or the result of calling a position adjustment function (e.g., `position_dodge()` etc.).
5160
5455
  show_legend : bool, default=True
5161
5456
  False - do not show legend for this layer.
5457
+ manual_key : str or `layer_key`
5458
+ The key to show in the manual legend.
5459
+ Specify text for the legend label or advanced settings using the `layer_key()` function.
5162
5460
  sampling : `FeatureSpec`
5163
5461
  Result of the call to the `sampling_xxx()` function.
5164
5462
  To prevent any sampling for this layer pass value "none" (string "none").
@@ -5191,7 +5489,7 @@ def geom_qq2_line(mapping=None, *, data=None, stat=None, position=None, show_leg
5191
5489
  - y : y-axis value.
5192
5490
  - alpha : transparency level of a layer. Accept values between 0 and 1.
5193
5491
  - color (colour) : color of the geometry. String in the following formats: RGB/RGBA (e.g. "rgb(0, 0, 255)"); HEX (e.g. "#0000FF"); color name (e.g. "red"); role name ("pen", "paper" or "brush").
5194
- - linetype : type of the line. Codes and names: 0 = 'blank', 1 = 'solid', 2 = 'dashed', 3 = 'dotted', 4 = 'dotdash', 5 = 'longdash', 6 = 'twodash'.
5492
+ - linetype : type of the line. Codes and names: 0 = 'blank', 1 = 'solid', 2 = 'dashed', 3 = 'dotted', 4 = 'dotdash', 5 = 'longdash', 6 = 'twodash'. For more info see https://lets-plot.org/python/pages/aesthetics.html#line-types.
5195
5493
  - size : line width.
5196
5494
 
5197
5495
  Examples
@@ -5216,6 +5514,7 @@ def geom_qq2_line(mapping=None, *, data=None, stat=None, position=None, show_leg
5216
5514
  stat=stat,
5217
5515
  position=position,
5218
5516
  show_legend=show_legend,
5517
+ manual_key=manual_key,
5219
5518
  sampling=sampling,
5220
5519
  tooltips=tooltips,
5221
5520
  quantiles=quantiles,
@@ -5223,7 +5522,8 @@ def geom_qq2_line(mapping=None, *, data=None, stat=None, position=None, show_leg
5223
5522
  **other_args)
5224
5523
 
5225
5524
 
5226
- def geom_freqpoly(mapping=None, *, data=None, stat=None, position=None, show_legend=None, sampling=None, tooltips=None,
5525
+ def geom_freqpoly(mapping=None, *, data=None, stat=None, position=None, show_legend=None, manual_key=None,
5526
+ sampling=None, tooltips=None,
5227
5527
  orientation=None,
5228
5528
  color_by=None,
5229
5529
  **other_args):
@@ -5253,6 +5553,9 @@ def geom_freqpoly(mapping=None, *, data=None, stat=None, position=None, show_leg
5253
5553
  'stack' or 'identity', or the result of calling a position adjustment function (e.g., `position_dodge()` etc.).
5254
5554
  show_legend : bool, default=True
5255
5555
  False - do not show legend for this layer.
5556
+ manual_key : str or `layer_key`
5557
+ The key to show in the manual legend.
5558
+ Specify text for the legend label or advanced settings using the `layer_key()` function.
5256
5559
  sampling : `FeatureSpec`
5257
5560
  Result of the call to the `sampling_xxx()` function.
5258
5561
  To prevent any sampling for this layer pass value "none" (string "none").
@@ -5290,7 +5593,7 @@ def geom_freqpoly(mapping=None, *, data=None, stat=None, position=None, show_leg
5290
5593
  - alpha : transparency level of a layer. Accept values between 0 and 1.
5291
5594
  - color (colour) : color of the geometry lines. String in the following formats: RGB/RGBA (e.g. "rgb(0, 0, 255)"); HEX (e.g. "#0000FF"); color name (e.g. "red"); role name ("pen", "paper" or "brush").
5292
5595
  - size : lines width.
5293
- - linetype : type of the line of border. Codes and names: 0 = 'blank', 1 = 'solid', 2 = 'dashed', 3 = 'dotted', 4 = 'dotdash', 5 = 'longdash', 6 = 'twodash'.
5596
+ - linetype : type of the line of border. Codes and names: 0 = 'blank', 1 = 'solid', 2 = 'dashed', 3 = 'dotted', 4 = 'dotdash', 5 = 'longdash', 6 = 'twodash'. For more info see https://lets-plot.org/python/pages/aesthetics.html#line-types.
5294
5597
 
5295
5598
  Examples
5296
5599
  --------
@@ -5331,6 +5634,7 @@ def geom_freqpoly(mapping=None, *, data=None, stat=None, position=None, show_leg
5331
5634
  stat=stat,
5332
5635
  position=position,
5333
5636
  show_legend=show_legend,
5637
+ manual_key=manual_key,
5334
5638
  sampling=sampling,
5335
5639
  tooltips=tooltips,
5336
5640
  orientation=orientation,
@@ -5338,7 +5642,8 @@ def geom_freqpoly(mapping=None, *, data=None, stat=None, position=None, show_leg
5338
5642
  **other_args)
5339
5643
 
5340
5644
 
5341
- def geom_step(mapping=None, *, data=None, stat=None, position=None, show_legend=None, sampling=None, tooltips=None,
5645
+ def geom_step(mapping=None, *, data=None, stat=None, position=None, show_legend=None, manual_key=None, sampling=None,
5646
+ tooltips=None,
5342
5647
  direction=None,
5343
5648
  color_by=None,
5344
5649
  **other_args):
@@ -5367,6 +5672,9 @@ def geom_step(mapping=None, *, data=None, stat=None, position=None, show_legend=
5367
5672
  'stack' or 'identity', or the result of calling a position adjustment function (e.g., `position_dodge()` etc.).
5368
5673
  show_legend : bool, default=True
5369
5674
  False - do not show legend for this layer.
5675
+ manual_key : str or `layer_key`
5676
+ The key to show in the manual legend.
5677
+ Specify text for the legend label or advanced settings using the `layer_key()` function.
5370
5678
  sampling : `FeatureSpec`
5371
5679
  Result of the call to the `sampling_xxx()` function.
5372
5680
  To prevent any sampling for this layer pass value "none" (string "none").
@@ -5400,7 +5708,7 @@ def geom_step(mapping=None, *, data=None, stat=None, position=None, show_legend=
5400
5708
  - alpha : transparency level of a layer. Accept values between 0 and 1.
5401
5709
  - color (colour) : color of the geometry. String in the following formats: RGB/RGBA (e.g. "rgb(0, 0, 255)"); HEX (e.g. "#0000FF"); color name (e.g. "red"); role name ("pen", "paper" or "brush").
5402
5710
  - size : line width.
5403
- - linetype : type of the line. Codes and names: 0 = 'blank', 1 = 'solid', 2 = 'dashed', 3 = 'dotted', 4 = 'dotdash', 5 = 'longdash', 6 = 'twodash'.
5711
+ - linetype : type of the line. Codes and names: 0 = 'blank', 1 = 'solid', 2 = 'dashed', 3 = 'dotted', 4 = 'dotdash', 5 = 'longdash', 6 = 'twodash'. For more info see https://lets-plot.org/python/pages/aesthetics.html#line-types.
5404
5712
 
5405
5713
  Examples
5406
5714
  --------
@@ -5443,6 +5751,7 @@ def geom_step(mapping=None, *, data=None, stat=None, position=None, show_legend=
5443
5751
  stat=stat,
5444
5752
  position=position,
5445
5753
  show_legend=show_legend,
5754
+ manual_key=manual_key,
5446
5755
  sampling=sampling,
5447
5756
  tooltips=tooltips,
5448
5757
  direction=direction,
@@ -5450,7 +5759,8 @@ def geom_step(mapping=None, *, data=None, stat=None, position=None, show_legend=
5450
5759
  **other_args)
5451
5760
 
5452
5761
 
5453
- def geom_rect(mapping=None, *, data=None, stat=None, position=None, show_legend=None, sampling=None, tooltips=None,
5762
+ def geom_rect(mapping=None, *, data=None, stat=None, position=None, show_legend=None, manual_key=None, sampling=None,
5763
+ tooltips=None,
5454
5764
  map=None, map_join=None, use_crs=None,
5455
5765
  color_by=None, fill_by=None,
5456
5766
  **other_args):
@@ -5474,6 +5784,9 @@ def geom_rect(mapping=None, *, data=None, stat=None, position=None, show_legend=
5474
5784
  'stack' or 'identity', or the result of calling a position adjustment function (e.g., `position_dodge()` etc.).
5475
5785
  show_legend : bool, default=True
5476
5786
  False - do not show legend for this layer.
5787
+ manual_key : str or `layer_key`
5788
+ The key to show in the manual legend.
5789
+ Specify text for the legend label or advanced settings using the `layer_key()` function.
5477
5790
  sampling : `FeatureSpec`
5478
5791
  Result of the call to the `sampling_xxx()` function.
5479
5792
  To prevent any sampling for this layer pass value "none" (string "none").
@@ -5520,15 +5833,15 @@ def geom_rect(mapping=None, *, data=None, stat=None, position=None, show_legend=
5520
5833
  - color (colour) : color of the geometry lines. String in the following formats: RGB/RGBA (e.g. "rgb(0, 0, 255)"); HEX (e.g. "#0000FF"); color name (e.g. "red"); role name ("pen", "paper" or "brush").
5521
5834
  - fill : fill color. String in the following formats: RGB/RGBA (e.g. "rgb(0, 0, 255)"); HEX (e.g. "#0000FF"); color name (e.g. "red"); role name ("pen", "paper" or "brush").
5522
5835
  - size : lines width.
5523
- - linetype : type of the line. Codes and names: 0 = 'blank', 1 = 'solid', 2 = 'dashed', 3 = 'dotted', 4 = 'dotdash', 5 = 'longdash', 6 = 'twodash'.
5836
+ - linetype : type of the line. Codes and names: 0 = 'blank', 1 = 'solid', 2 = 'dashed', 3 = 'dotted', 4 = 'dotdash', 5 = 'longdash', 6 = 'twodash'. For more info see https://lets-plot.org/python/pages/aesthetics.html#line-types.
5524
5837
 
5525
- |
5838
+ ----
5526
5839
 
5527
5840
  The `data` and `map` parameters of `GeoDataFrame` type support shapes `MultiPoint`, `Line`, `MultiLine`, `Polygon` and `MultiPolygon`.
5528
5841
 
5529
5842
  The `map` parameter of `Geocoder` type implicitly invokes `limits()` function.
5530
5843
 
5531
- |
5844
+ ----
5532
5845
 
5533
5846
  The conventions for the values of `map_join` parameter are as follows:
5534
5847
 
@@ -5609,6 +5922,7 @@ def geom_rect(mapping=None, *, data=None, stat=None, position=None, show_legend=
5609
5922
  stat=stat,
5610
5923
  position=position,
5611
5924
  show_legend=show_legend,
5925
+ manual_key=manual_key,
5612
5926
  sampling=sampling,
5613
5927
  tooltips=tooltips,
5614
5928
  map=map, map_join=map_join, use_crs=use_crs,
@@ -5616,7 +5930,8 @@ def geom_rect(mapping=None, *, data=None, stat=None, position=None, show_legend=
5616
5930
  **other_args)
5617
5931
 
5618
5932
 
5619
- def geom_segment(mapping=None, *, data=None, stat=None, position=None, show_legend=None, sampling=None, tooltips=None,
5933
+ def geom_segment(mapping=None, *, data=None, stat=None, position=None, show_legend=None, manual_key=None, sampling=None,
5934
+ tooltips=None,
5620
5935
  arrow=None, flat=None, geodesic=None, spacer=None, color_by=None, **other_args):
5621
5936
  """
5622
5937
  Draw a straight line segment between two points.
@@ -5643,6 +5958,9 @@ def geom_segment(mapping=None, *, data=None, stat=None, position=None, show_lege
5643
5958
  'stack' or 'identity', or the result of calling a position adjustment function (e.g., `position_dodge()` etc.).
5644
5959
  show_legend : bool, default=True
5645
5960
  False - do not show legend for this layer.
5961
+ manual_key : str or `layer_key`
5962
+ The key to show in the manual legend.
5963
+ Specify text for the legend label or advanced settings using the `layer_key()` function.
5646
5964
  sampling : `FeatureSpec`
5647
5965
  Result of the call to the `sampling_xxx()` function.
5648
5966
  To prevent any sampling for this layer pass value "none" (string "none").
@@ -5684,7 +6002,7 @@ def geom_segment(mapping=None, *, data=None, stat=None, position=None, show_lege
5684
6002
  - alpha : transparency level of a layer. Accept values between 0 and 1.
5685
6003
  - color (colour) : color of the geometry lines. String in the following formats: RGB/RGBA (e.g. "rgb(0, 0, 255)"); HEX (e.g. "#0000FF"); color name (e.g. "red"); role name ("pen", "paper" or "brush").
5686
6004
  - size : line width.
5687
- - linetype : type of the line. Codes and names: 0 = 'blank', 1 = 'solid', 2 = 'dashed', 3 = 'dotted', 4 = 'dotdash', 5 = 'longdash', 6 = 'twodash'.
6005
+ - linetype : type of the line. Codes and names: 0 = 'blank', 1 = 'solid', 2 = 'dashed', 3 = 'dotted', 4 = 'dotdash', 5 = 'longdash', 6 = 'twodash'. For more info see https://lets-plot.org/python/pages/aesthetics.html#line-types.
5688
6006
  - size_start : offset from the segment start coordinate (usually equal to the size of the point object from which the segment starts to avoid overlapping with it).
5689
6007
  - size_end : offset from the segment end coordinate (usually equal to the size of the point object from which the segment ends to avoid overlapping with it).
5690
6008
  - stroke_start : offset from the segment start coordinate (usually equal to the stroke of the point object from which the segment starts to avoid overlapping with it).
@@ -5755,6 +6073,7 @@ def geom_segment(mapping=None, *, data=None, stat=None, position=None, show_lege
5755
6073
  stat=stat,
5756
6074
  position=position,
5757
6075
  show_legend=show_legend,
6076
+ manual_key=manual_key,
5758
6077
  sampling=sampling,
5759
6078
  tooltips=tooltips,
5760
6079
  arrow=arrow,
@@ -5765,7 +6084,8 @@ def geom_segment(mapping=None, *, data=None, stat=None, position=None, show_lege
5765
6084
  **other_args)
5766
6085
 
5767
6086
 
5768
- def geom_curve(mapping=None, *, data=None, stat=None, position=None, show_legend=None, sampling=None, tooltips=None,
6087
+ def geom_curve(mapping=None, *, data=None, stat=None, position=None, show_legend=None, manual_key=None, sampling=None,
6088
+ tooltips=None,
5769
6089
  arrow=None,
5770
6090
  curvature=None, angle=None, ncp=None,
5771
6091
  spacer=None,
@@ -5795,6 +6115,9 @@ def geom_curve(mapping=None, *, data=None, stat=None, position=None, show_legend
5795
6115
  'stack' or 'identity', or the result of calling a position adjustment function (e.g., `position_dodge()` etc.).
5796
6116
  show_legend : bool, default=True
5797
6117
  False - do not show legend for this layer.
6118
+ manual_key : str or `layer_key`
6119
+ The key to show in the manual legend.
6120
+ Specify text for the legend label or advanced settings using the `layer_key()` function.
5798
6121
  sampling : `FeatureSpec`
5799
6122
  Result of the call to the `sampling_xxx()` function.
5800
6123
  To prevent any sampling for this layer pass value "none" (string "none").
@@ -5841,7 +6164,7 @@ def geom_curve(mapping=None, *, data=None, stat=None, position=None, show_legend
5841
6164
  - alpha : transparency level of a layer. Accept values between 0 and 1.
5842
6165
  - color (colour) : color of the geometry lines. String in the following formats: RGB/RGBA (e.g. "rgb(0, 0, 255)"); HEX (e.g. "#0000FF"); color name (e.g. "red"); role name ("pen", "paper" or "brush").
5843
6166
  - size : line width.
5844
- - linetype : type of the line. Codes and names: 0 = 'blank', 1 = 'solid', 2 = 'dashed', 3 = 'dotted', 4 = 'dotdash', 5 = 'longdash', 6 = 'twodash'.
6167
+ - linetype : type of the line. Codes and names: 0 = 'blank', 1 = 'solid', 2 = 'dashed', 3 = 'dotted', 4 = 'dotdash', 5 = 'longdash', 6 = 'twodash'. For more info see https://lets-plot.org/python/pages/aesthetics.html#line-types.
5845
6168
  - size_start : offset from the start coordinate (usually equal to the size of the point object from which the curve starts to avoid overlapping with it).
5846
6169
  - size_end : offset from the end coordinate (usually equal to the size of the point object from which the curve ends to avoid overlapping with it).
5847
6170
  - stroke_start : offset from the start coordinate (usually equal to the stroke of the point object from which the curve starts to avoid overlapping with it).
@@ -5908,6 +6231,7 @@ def geom_curve(mapping=None, *, data=None, stat=None, position=None, show_legend
5908
6231
  stat=stat,
5909
6232
  position=position,
5910
6233
  show_legend=show_legend,
6234
+ manual_key=manual_key,
5911
6235
  sampling=sampling,
5912
6236
  tooltips=tooltips,
5913
6237
  arrow=arrow,
@@ -5917,7 +6241,8 @@ def geom_curve(mapping=None, *, data=None, stat=None, position=None, show_legend
5917
6241
  **other_args)
5918
6242
 
5919
6243
 
5920
- def geom_spoke(mapping=None, *, data=None, position=None, show_legend=None, sampling=None, tooltips=None,
6244
+ def geom_spoke(mapping=None, *, data=None, position=None, show_legend=None, manual_key=None, sampling=None,
6245
+ tooltips=None,
5921
6246
  arrow=None, pivot=None,
5922
6247
  color_by=None, **other_args):
5923
6248
  """
@@ -5938,6 +6263,9 @@ def geom_spoke(mapping=None, *, data=None, position=None, show_legend=None, samp
5938
6263
  'stack' or 'identity', or the result of calling a position adjustment function (e.g., `position_dodge()` etc.).
5939
6264
  show_legend : bool, default=True
5940
6265
  False - do not show legend for this layer.
6266
+ manual_key : str or `layer_key`
6267
+ The key to show in the manual legend.
6268
+ Specify text for the legend label or advanced settings using the `layer_key()` function.
5941
6269
  sampling : `FeatureSpec`
5942
6270
  Result of the call to the `sampling_xxx()` function.
5943
6271
  To prevent any sampling for this layer pass value "none" (string "none").
@@ -5972,7 +6300,7 @@ def geom_spoke(mapping=None, *, data=None, position=None, show_legend=None, samp
5972
6300
  - alpha : transparency level of a layer. Accept values between 0 and 1.
5973
6301
  - color (colour) : color of the line. String in the following formats: RGB/RGBA (e.g. "rgb(0, 0, 255)"); HEX (e.g. "#0000FF"); color name (e.g. "red"); role name ("pen", "paper" or "brush").
5974
6302
  - size : line width.
5975
- - linetype : type of the line. Codes and names: 0 = 'blank', 1 = 'solid', 2 = 'dashed', 3 = 'dotted', 4 = 'dotdash', 5 = 'longdash', 6 = 'twodash'.
6303
+ - linetype : type of the line. Codes and names: 0 = 'blank', 1 = 'solid', 2 = 'dashed', 3 = 'dotted', 4 = 'dotdash', 5 = 'longdash', 6 = 'twodash'. For more info see https://lets-plot.org/python/pages/aesthetics.html#line-types.
5976
6304
 
5977
6305
  Examples
5978
6306
  --------
@@ -6037,6 +6365,7 @@ def geom_spoke(mapping=None, *, data=None, position=None, show_legend=None, samp
6037
6365
  stat=None,
6038
6366
  position=position,
6039
6367
  show_legend=show_legend,
6368
+ manual_key=manual_key,
6040
6369
  sampling=sampling,
6041
6370
  tooltips=tooltips,
6042
6371
  arrow=arrow,
@@ -6045,7 +6374,8 @@ def geom_spoke(mapping=None, *, data=None, position=None, show_legend=None, samp
6045
6374
  **other_args)
6046
6375
 
6047
6376
 
6048
- def geom_text(mapping=None, *, data=None, stat=None, position=None, show_legend=None, sampling=None, tooltips=None,
6377
+ def geom_text(mapping=None, *, data=None, stat=None, position=None, show_legend=None, manual_key=None, sampling=None,
6378
+ tooltips=None,
6049
6379
  map=None, map_join=None, use_crs=None,
6050
6380
  label_format=None,
6051
6381
  na_text=None,
@@ -6078,6 +6408,9 @@ def geom_text(mapping=None, *, data=None, stat=None, position=None, show_legend=
6078
6408
  'stack' or 'identity', or the result of calling a position adjustment function (e.g., `position_dodge()` etc.).
6079
6409
  show_legend : bool, default=True
6080
6410
  False - do not show legend for this layer.
6411
+ manual_key : str or `layer_key`
6412
+ The key to show in the manual legend.
6413
+ Specify text for the legend label or advanced settings using the `layer_key()` function.
6081
6414
  sampling : `FeatureSpec`
6082
6415
  Result of the call to the `sampling_xxx()` function.
6083
6416
  To prevent any sampling for this layer pass value "none" (string "none").
@@ -6145,13 +6478,13 @@ def geom_text(mapping=None, *, data=None, stat=None, position=None, show_legend=
6145
6478
  - angle : text rotation angle in degrees.
6146
6479
  - lineheight : line height multiplier applied to the font size in the case of multi-line text.
6147
6480
 
6148
- |
6481
+ ----
6149
6482
 
6150
6483
  The `data` and `map` parameters of `GeoDataFrame` type support shapes `Point` and `MultiPoint`.
6151
6484
 
6152
6485
  The `map` parameter of `Geocoder` type implicitly invokes `centroids()` function.
6153
6486
 
6154
- |
6487
+ ----
6155
6488
 
6156
6489
  The conventions for the values of `map_join` parameter are as follows:
6157
6490
 
@@ -6254,6 +6587,7 @@ def geom_text(mapping=None, *, data=None, stat=None, position=None, show_legend=
6254
6587
  stat=stat,
6255
6588
  position=position,
6256
6589
  show_legend=show_legend,
6590
+ manual_key=manual_key,
6257
6591
  sampling=sampling,
6258
6592
  tooltips=tooltips,
6259
6593
  map=map, map_join=map_join, use_crs=use_crs,
@@ -6265,7 +6599,8 @@ def geom_text(mapping=None, *, data=None, stat=None, position=None, show_legend=
6265
6599
  **other_args)
6266
6600
 
6267
6601
 
6268
- def geom_label(mapping=None, *, data=None, stat=None, position=None, show_legend=None, sampling=None, tooltips=None,
6602
+ def geom_label(mapping=None, *, data=None, stat=None, position=None, show_legend=None, manual_key=None, sampling=None,
6603
+ tooltips=None,
6269
6604
  map=None, map_join=None, use_crs=None,
6270
6605
  label_format=None,
6271
6606
  na_text=None,
@@ -6300,6 +6635,9 @@ def geom_label(mapping=None, *, data=None, stat=None, position=None, show_legend
6300
6635
  'stack' or 'identity', or the result of calling a position adjustment function (e.g., `position_dodge()` etc.).
6301
6636
  show_legend : bool, default=True
6302
6637
  False - do not show legend for this layer.
6638
+ manual_key : str or `layer_key`
6639
+ The key to show in the manual legend.
6640
+ Specify text for the legend label or advanced settings using the `layer_key()` function.
6303
6641
  sampling : `FeatureSpec`
6304
6642
  Result of the call to the `sampling_xxx()` function.
6305
6643
  To prevent any sampling for this layer pass value "none" (string "none").
@@ -6378,13 +6716,13 @@ def geom_label(mapping=None, *, data=None, stat=None, position=None, show_legend
6378
6716
  - angle : rotation angle in degrees.
6379
6717
  - lineheight : line height multiplier applied to the font size in the case of multi-line text.
6380
6718
 
6381
- |
6719
+ ----
6382
6720
 
6383
6721
  The `data` and `map` parameters of `GeoDataFrame` type support shapes `Point` and `MultiPoint`.
6384
6722
 
6385
6723
  The `map` parameter of `Geocoder` type implicitly invokes `centroids()` function.
6386
6724
 
6387
- |
6725
+ ----
6388
6726
 
6389
6727
  The conventions for the values of `map_join` parameter are as follows:
6390
6728
 
@@ -6488,6 +6826,7 @@ def geom_label(mapping=None, *, data=None, stat=None, position=None, show_legend
6488
6826
  stat=stat,
6489
6827
  position=position,
6490
6828
  show_legend=show_legend,
6829
+ manual_key=manual_key,
6491
6830
  sampling=sampling,
6492
6831
  tooltips=tooltips,
6493
6832
  map=map, map_join=map_join, use_crs=use_crs,
@@ -6503,7 +6842,8 @@ def geom_label(mapping=None, *, data=None, stat=None, position=None, show_legend
6503
6842
  **other_args)
6504
6843
 
6505
6844
 
6506
- def geom_pie(mapping=None, *, data=None, stat=None, position=None, show_legend=None, sampling=None, tooltips=None, labels=None,
6845
+ def geom_pie(mapping=None, *, data=None, stat=None, position=None, show_legend=None, manual_key=None, sampling=None,
6846
+ tooltips=None, labels=None,
6507
6847
  map=None, map_join=None, use_crs=None,
6508
6848
  hole=None,
6509
6849
  stroke_side=None,
@@ -6533,6 +6873,9 @@ def geom_pie(mapping=None, *, data=None, stat=None, position=None, show_legend=N
6533
6873
  'stack' or 'identity', or the result of calling a position adjustment function (e.g., `position_dodge()` etc.).
6534
6874
  show_legend : bool, default=True
6535
6875
  False - do not show legend for this layer.
6876
+ manual_key : str or `layer_key`
6877
+ The key to show in the manual legend.
6878
+ Specify text for the legend label or advanced settings using the `layer_key()` function.
6536
6879
  sampling : `FeatureSpec`
6537
6880
  Result of the call to the `sampling_xxx()` function.
6538
6881
  To prevent any sampling for this layer pass value "none" (string "none").
@@ -6597,7 +6940,7 @@ def geom_pie(mapping=None, *, data=None, stat=None, position=None, show_legend=N
6597
6940
  - x : x-axis value.
6598
6941
  - y : y-axis value.
6599
6942
  - slice : values associated to pie sectors.
6600
- - explode : values to explode slices away from their center point, detaching it from the main pie.
6943
+ - explode : values to explode slices away from their center point, detaching it from the main pie. Accept values between 0 and 1.
6601
6944
  - size : pie diameter.
6602
6945
  - fill : fill color. String in the following formats: RGB/RGBA (e.g. "rgb(0, 0, 255)"); HEX (e.g. "#0000FF"); color name (e.g. "red"); role name ("pen", "paper" or "brush").
6603
6946
  - alpha : transparency level of the pie. Accept values between 0 and 1.
@@ -6605,13 +6948,13 @@ def geom_pie(mapping=None, *, data=None, stat=None, position=None, show_legend=N
6605
6948
  - stroke : width of inner and outer arcs of pie sector.
6606
6949
  - color : color of inner and outer arcs of pie sector.
6607
6950
 
6608
- |
6951
+ ----
6609
6952
 
6610
6953
  The `data` and `map` parameters of `GeoDataFrame` type support shapes `Point` and `MultiPoint`.
6611
6954
 
6612
6955
  The `map` parameter of `Geocoder` type implicitly invokes `centroids()` function.
6613
6956
 
6614
- |
6957
+ ----
6615
6958
 
6616
6959
  The conventions for the values of `map_join` parameter are as follows:
6617
6960
 
@@ -6635,8 +6978,6 @@ def geom_pie(mapping=None, *, data=None, stat=None, position=None, show_legend=N
6635
6978
 
6636
6979
  - map_join=['County_name', 'State_Name']
6637
6980
 
6638
- |
6639
-
6640
6981
  Examples
6641
6982
  --------
6642
6983
  .. jupyter-execute::
@@ -6676,10 +7017,9 @@ def geom_pie(mapping=None, *, data=None, stat=None, position=None, show_legend=N
6676
7017
 
6677
7018
  .. jupyter-execute::
6678
7019
  :linenos:
6679
- :emphasize-lines: 5-9
7020
+ :emphasize-lines: 4-8
6680
7021
 
6681
7022
  from lets_plot import *
6682
- from lets_plot.mapping import *
6683
7023
  LetsPlot.setup_html()
6684
7024
  data = {'name': ['a', 'b', 'c', 'd', 'b'], 'value': [40, 90, 10, 50, 20]}
6685
7025
  ggplot(data) + geom_pie(aes(fill=as_discrete('name', order_by='..count..'), weight='value'), \\
@@ -6692,10 +7032,9 @@ def geom_pie(mapping=None, *, data=None, stat=None, position=None, show_legend=N
6692
7032
 
6693
7033
  .. jupyter-execute::
6694
7034
  :linenos:
6695
- :emphasize-lines: 5-7
7035
+ :emphasize-lines: 4-6
6696
7036
 
6697
7037
  from lets_plot import *
6698
- from lets_plot.mapping import *
6699
7038
  LetsPlot.setup_html()
6700
7039
  data = {'name': ['a', 'b', 'c', 'd', 'b'], 'value': [40, 90, 10, 50, 20]}
6701
7040
  ggplot(data) + geom_pie(aes(fill=as_discrete('name', order_by='..count..'), weight='value'), \\
@@ -6731,6 +7070,7 @@ def geom_pie(mapping=None, *, data=None, stat=None, position=None, show_legend=N
6731
7070
  stat=stat,
6732
7071
  position=position,
6733
7072
  show_legend=show_legend,
7073
+ manual_key=manual_key,
6734
7074
  sampling=sampling,
6735
7075
  tooltips=tooltips,
6736
7076
  labels=labels,
@@ -6744,7 +7084,8 @@ def geom_pie(mapping=None, *, data=None, stat=None, position=None, show_legend=N
6744
7084
  **other_args)
6745
7085
 
6746
7086
 
6747
- def geom_lollipop(mapping=None, *, data=None, stat=None, position=None, show_legend=None, sampling=None, tooltips=None,
7087
+ def geom_lollipop(mapping=None, *, data=None, stat=None, position=None, show_legend=None, manual_key=None,
7088
+ sampling=None, tooltips=None,
6748
7089
  orientation=None,
6749
7090
  dir=None, fatten=None, slope=None, intercept=None,
6750
7091
  color_by=None, fill_by=None,
@@ -6774,6 +7115,9 @@ def geom_lollipop(mapping=None, *, data=None, stat=None, position=None, show_leg
6774
7115
  'stack' or 'identity', or the result of calling a position adjustment function (e.g., `position_dodge()` etc.).
6775
7116
  show_legend : bool, default=True
6776
7117
  False - do not show legend for this layer.
7118
+ manual_key : str or `layer_key`
7119
+ The key to show in the manual legend.
7120
+ Specify text for the legend label or advanced settings using the `layer_key()` function.
6777
7121
  sampling : `FeatureSpec`
6778
7122
  Result of the call to the `sampling_xxx()` function.
6779
7123
  To prevent any sampling for this layer pass value "none" (string "none").
@@ -6817,13 +7161,13 @@ def geom_lollipop(mapping=None, *, data=None, stat=None, position=None, show_leg
6817
7161
  - alpha : transparency level of the point. Accept values between 0 and 1.
6818
7162
  - color (colour) : color of the geometry. String in the following formats: RGB/RGBA (e.g. "rgb(0, 0, 255)"); HEX (e.g. "#0000FF"); color name (e.g. "red"); role name ("pen", "paper" or "brush").
6819
7163
  - fill : fill color. Is applied only to the points of shapes having inner area. String in the following formats: RGB/RGBA (e.g. "rgb(0, 0, 255)"); HEX (e.g. "#0000FF"); color name (e.g. "red"); role name ("pen", "paper" or "brush").
6820
- - shape : shape of the point, an integer from 0 to 25.
7164
+ - shape : shape of the point, an integer from 0 to 25. For more info see https://lets-plot.org/python/pages/aesthetics.html#point-shapes.
6821
7165
  - size : size of the point.
6822
7166
  - stroke : width of the shape border. Applied only to the shapes having border.
6823
7167
  - linewidth : stick width.
6824
- - linetype : type of the stick line. Codes and names: 0 = 'blank', 1 = 'solid', 2 = 'dashed', 3 = 'dotted', 4 = 'dotdash', 5 = 'longdash', 6 = 'twodash'.
7168
+ - linetype : type of the stick line. Codes and names: 0 = 'blank', 1 = 'solid', 2 = 'dashed', 3 = 'dotted', 4 = 'dotdash', 5 = 'longdash', 6 = 'twodash'. For more info see https://lets-plot.org/python/pages/aesthetics.html#line-types.
6825
7169
 
6826
- |
7170
+ ----
6827
7171
 
6828
7172
  When `slope=0`, the baseline cannot be parallel to the lollipop sticks.
6829
7173
  So, in this case, if `dir='h'`, the baseline will becomes vertical, as for infinity slope.
@@ -6884,6 +7228,7 @@ def geom_lollipop(mapping=None, *, data=None, stat=None, position=None, show_leg
6884
7228
  stat=stat,
6885
7229
  position=position,
6886
7230
  show_legend=show_legend,
7231
+ manual_key=manual_key,
6887
7232
  sampling=sampling,
6888
7233
  tooltips=tooltips,
6889
7234
  orientation=orientation,
@@ -6892,7 +7237,8 @@ def geom_lollipop(mapping=None, *, data=None, stat=None, position=None, show_leg
6892
7237
  **other_args)
6893
7238
 
6894
7239
 
6895
- def geom_count(mapping=None, *, data=None, stat=None, position=None, show_legend=None, sampling=None, tooltips=None,
7240
+ def geom_count(mapping=None, *, data=None, stat=None, position=None, show_legend=None, manual_key=None, sampling=None,
7241
+ tooltips=None,
6896
7242
  color_by=None, fill_by=None,
6897
7243
  **other_args):
6898
7244
  """
@@ -6915,6 +7261,9 @@ def geom_count(mapping=None, *, data=None, stat=None, position=None, show_legend
6915
7261
  'stack' or 'identity', or the result of calling a position adjustment function (e.g., `position_dodge()` etc.).
6916
7262
  show_legend : bool, default=True
6917
7263
  False - do not show legend for this layer.
7264
+ manual_key : str or `layer_key`
7265
+ The key to show in the manual legend.
7266
+ Specify text for the legend label or advanced settings using the `layer_key()` function.
6918
7267
  sampling : `FeatureSpec`
6919
7268
  Result of the call to the `sampling_xxx()` function.
6920
7269
  To prevent any sampling for this layer pass value "none" (string "none").
@@ -6951,20 +7300,18 @@ def geom_count(mapping=None, *, data=None, stat=None, position=None, show_legend
6951
7300
  - alpha : transparency level of the point. Accept values between 0 and 1.
6952
7301
  - color (colour) : color of the geometry. String in the following formats: RGB/RGBA (e.g. "rgb(0, 0, 255)"); HEX (e.g. "#0000FF"); color name (e.g. "red"); role name ("pen", "paper" or "brush").
6953
7302
  - fill : fill color. Is applied only to the points of shapes having inner area. String in the following formats: RGB/RGBA (e.g. "rgb(0, 0, 255)"); HEX (e.g. "#0000FF"); color name (e.g. "red"); role name ("pen", "paper" or "brush").
6954
- - shape : shape of the point, an integer from 0 to 25.
7303
+ - shape : shape of the point, an integer from 0 to 25. For more info see https://lets-plot.org/python/pages/aesthetics.html#point-shapes.
6955
7304
  - size : size of the point.
6956
7305
  - stroke : width of the shape border. Applied only to the shapes having border.
6957
7306
 
6958
-
6959
7307
  Examples
6960
7308
  --------
6961
7309
  .. jupyter-execute::
6962
7310
  :linenos:
6963
- :emphasize-lines: 10
7311
+ :emphasize-lines: 9
6964
7312
 
6965
7313
  import numpy as np
6966
7314
  from lets_plot import *
6967
- from lets_plot.mapping import as_discrete
6968
7315
  LetsPlot.setup_html()
6969
7316
  n = 50
6970
7317
  np.random.seed(42)
@@ -6977,11 +7324,10 @@ def geom_count(mapping=None, *, data=None, stat=None, position=None, show_legend
6977
7324
 
6978
7325
  .. jupyter-execute::
6979
7326
  :linenos:
6980
- :emphasize-lines: 10
7327
+ :emphasize-lines: 9
6981
7328
 
6982
7329
  import numpy as np
6983
7330
  from lets_plot import *
6984
- from lets_plot.mapping import as_discrete
6985
7331
  LetsPlot.setup_html()
6986
7332
  n = 50
6987
7333
  np.random.seed(42)
@@ -6998,6 +7344,7 @@ def geom_count(mapping=None, *, data=None, stat=None, position=None, show_legend
6998
7344
  stat=stat,
6999
7345
  position=position,
7000
7346
  show_legend=show_legend,
7347
+ manual_key=manual_key,
7001
7348
  sampling=sampling,
7002
7349
  tooltips=tooltips,
7003
7350
  color_by=color_by, fill_by=fill_by,
@@ -7010,6 +7357,7 @@ def _geom(name, *,
7010
7357
  stat=None,
7011
7358
  position=None,
7012
7359
  show_legend=None,
7360
+ manual_key=None,
7013
7361
  sampling=None,
7014
7362
  tooltips=None,
7015
7363
  **kwargs):
@@ -7017,11 +7365,13 @@ def _geom(name, *,
7017
7365
  if not (isinstance(mapping, FeatureSpec) and mapping.kind == 'mapping'):
7018
7366
  raise ValueError("Unexpected value for argument 'mapping'. Hint: try to use function aes()")
7019
7367
 
7020
- data, mapping, data_meta = as_annotated_data(data, mapping)
7021
-
7022
7368
  if is_geocoder(data):
7023
7369
  data = data.get_geocodes()
7024
7370
 
7371
+ data = key_int2str(data)
7372
+
7373
+ data, mapping, data_meta = as_annotated_data(data, mapping)
7374
+
7025
7375
  # GDF in a map parameter has higher priority for defining a geo_data_meta
7026
7376
  if is_geo_data_frame(data) and not is_geo_data_frame(kwargs.get('map')):
7027
7377
  data = geo_data_frame_to_crs(data, kwargs.get('use_crs'))
@@ -7033,6 +7383,7 @@ def _geom(name, *,
7033
7383
  mapping=mapping,
7034
7384
  position=position,
7035
7385
  show_legend=show_legend,
7386
+ manual_key=manual_key,
7036
7387
  sampling=sampling,
7037
7388
  tooltips=tooltips,
7038
7389
  **data_meta,