lets-plot 4.7.0rc2__cp311-cp311-macosx_11_0_arm64.whl → 4.7.1rc1__cp311-cp311-macosx_11_0_arm64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of lets-plot might be problematic. Click here for more details.
- lets_plot/__init__.py +14 -14
- lets_plot/_global_settings.py +0 -4
- lets_plot/_kbridge.py +11 -3
- lets_plot/_version.py +1 -1
- lets_plot/bistro/corr.py +28 -27
- lets_plot/bistro/im.py +4 -4
- lets_plot/bistro/joint.py +7 -7
- lets_plot/bistro/qq.py +16 -16
- lets_plot/bistro/residual.py +10 -10
- lets_plot/bistro/waterfall.py +26 -27
- lets_plot/export/ggsave_.py +29 -17
- lets_plot/frontend_context/_configuration.py +2 -2
- lets_plot/frontend_context/_html_contexts.py +6 -6
- lets_plot/geo_data/core.py +26 -22
- lets_plot/geo_data/geocoder.py +67 -56
- lets_plot/mapping.py +3 -3
- lets_plot/package_data/lets-plot.min.js +1 -1
- lets_plot/plot/annotation.py +5 -5
- lets_plot/plot/coord.py +4 -4
- lets_plot/plot/core.py +77 -141
- lets_plot/plot/expand_limits_.py +2 -2
- lets_plot/plot/facet.py +21 -17
- lets_plot/plot/font_features.py +3 -3
- lets_plot/plot/geom.py +1129 -1103
- lets_plot/plot/geom_extras.py +1 -1
- lets_plot/plot/geom_function_.py +16 -13
- lets_plot/plot/geom_imshow_.py +8 -7
- lets_plot/plot/geom_livemap_.py +38 -13
- lets_plot/plot/ggbunch_.py +1 -1
- lets_plot/plot/gggrid_.py +3 -3
- lets_plot/plot/ggtb_.py +1 -1
- lets_plot/plot/guide.py +9 -7
- lets_plot/plot/label.py +9 -9
- lets_plot/plot/marginal_layer.py +4 -4
- lets_plot/plot/plot.py +17 -16
- lets_plot/plot/pos.py +15 -15
- lets_plot/plot/sampling.py +8 -8
- lets_plot/plot/scale.py +153 -150
- lets_plot/plot/scale_colormap_mpl.py +9 -6
- lets_plot/plot/scale_convenience.py +6 -6
- lets_plot/plot/scale_identity_.py +9 -9
- lets_plot/plot/scale_position.py +16 -16
- lets_plot/plot/series_meta.py +7 -1
- lets_plot/plot/stat.py +64 -60
- lets_plot/plot/subplots.py +31 -22
- lets_plot/plot/theme_.py +93 -92
- lets_plot/plot/theme_set.py +15 -14
- lets_plot/plot/tooltip.py +14 -14
- lets_plot/plot/util.py +33 -3
- lets_plot/settings_utils.py +12 -12
- {lets_plot-4.7.0rc2.dist-info → lets_plot-4.7.1rc1.dist-info}/METADATA +63 -43
- lets_plot-4.7.1rc1.dist-info/RECORD +95 -0
- lets_plot_kotlin_bridge.cpython-311-darwin.so +0 -0
- lets_plot-4.7.0rc2.dist-info/RECORD +0 -95
- {lets_plot-4.7.0rc2.dist-info → lets_plot-4.7.1rc1.dist-info}/WHEEL +0 -0
- {lets_plot-4.7.0rc2.dist-info → lets_plot-4.7.1rc1.dist-info}/licenses/LICENSE +0 -0
- {lets_plot-4.7.0rc2.dist-info → lets_plot-4.7.1rc1.dist-info}/licenses/licenses/LICENSE.FreeType +0 -0
- {lets_plot-4.7.0rc2.dist-info → lets_plot-4.7.1rc1.dist-info}/licenses/licenses/LICENSE.ImageMagick +0 -0
- {lets_plot-4.7.0rc2.dist-info → lets_plot-4.7.1rc1.dist-info}/licenses/licenses/LICENSE.expat +0 -0
- {lets_plot-4.7.0rc2.dist-info → lets_plot-4.7.1rc1.dist-info}/licenses/licenses/LICENSE.fontconfig +0 -0
- {lets_plot-4.7.0rc2.dist-info → lets_plot-4.7.1rc1.dist-info}/top_level.txt +0 -0
|
@@ -82,7 +82,8 @@ def scale_cmapmpl(aesthetic, *,
|
|
|
82
82
|
Missing values will be replaced with this value.
|
|
83
83
|
guide
|
|
84
84
|
Guide to use for this scale. It can either be a string ('colorbar', 'legend')
|
|
85
|
-
or a call to a guide function (`guide_colorbar()
|
|
85
|
+
or a call to a guide function (`guide_colorbar() <https://lets-plot.org/python/pages/api/lets_plot.guide_colorbar.html>`__,
|
|
86
|
+
`guide_legend() <https://lets-plot.org/python/pages/api/lets_plot.guide_legend.html>`__)
|
|
86
87
|
specifying additional arguments. 'none' will hide the guide.
|
|
87
88
|
trans : {'identity', 'log10', 'log2', 'symlog', 'sqrt', 'reverse'}
|
|
88
89
|
Name of built-in transformation.
|
|
@@ -97,7 +98,7 @@ def scale_cmapmpl(aesthetic, *,
|
|
|
97
98
|
|
|
98
99
|
Returns
|
|
99
100
|
-------
|
|
100
|
-
|
|
101
|
+
``FeatureSpec``
|
|
101
102
|
The scale specification.
|
|
102
103
|
|
|
103
104
|
Notes
|
|
@@ -165,7 +166,8 @@ def scale_fill_cmapmpl(cmap, *,
|
|
|
165
166
|
Missing values will be replaced with this value.
|
|
166
167
|
guide
|
|
167
168
|
Guide to use for this scale. It can either be a string ('colorbar', 'legend')
|
|
168
|
-
or a call to a guide function (`guide_colorbar()
|
|
169
|
+
or a call to a guide function (`guide_colorbar() <https://lets-plot.org/python/pages/api/lets_plot.guide_colorbar.html>`__,
|
|
170
|
+
`guide_legend() <https://lets-plot.org/python/pages/api/lets_plot.guide_legend.html>`__)
|
|
169
171
|
specifying additional arguments. 'none' will hide the guide.
|
|
170
172
|
trans : {'identity', 'log10', 'log2', 'symlog', 'sqrt', 'reverse'}
|
|
171
173
|
Name of built-in transformation.
|
|
@@ -180,7 +182,7 @@ def scale_fill_cmapmpl(cmap, *,
|
|
|
180
182
|
|
|
181
183
|
Returns
|
|
182
184
|
-------
|
|
183
|
-
|
|
185
|
+
``FeatureSpec``
|
|
184
186
|
The scale specification.
|
|
185
187
|
|
|
186
188
|
Notes
|
|
@@ -244,7 +246,8 @@ def scale_color_cmapmpl(cmap, *,
|
|
|
244
246
|
Missing values will be replaced with this value.
|
|
245
247
|
guide
|
|
246
248
|
Guide to use for this scale. It can either be a string ('colorbar', 'legend')
|
|
247
|
-
or a call to a guide function (`guide_colorbar()
|
|
249
|
+
or a call to a guide function (`guide_colorbar() <https://lets-plot.org/python/pages/api/lets_plot.guide_colorbar.html>`__,
|
|
250
|
+
`guide_legend() <https://lets-plot.org/python/pages/api/lets_plot.guide_legend.html>`__)
|
|
248
251
|
specifying additional arguments. 'none' will hide the guide.
|
|
249
252
|
trans : {'identity', 'log10', 'log2', 'symlog', 'sqrt', 'reverse'}
|
|
250
253
|
Name of built-in transformation.
|
|
@@ -259,7 +262,7 @@ def scale_color_cmapmpl(cmap, *,
|
|
|
259
262
|
|
|
260
263
|
Returns
|
|
261
264
|
-------
|
|
262
|
-
|
|
265
|
+
``FeatureSpec``
|
|
263
266
|
The scale specification.
|
|
264
267
|
|
|
265
268
|
Notes
|
|
@@ -13,7 +13,7 @@ __all__ = ['lims', 'xlim', 'ylim']
|
|
|
13
13
|
|
|
14
14
|
def lims(x, y):
|
|
15
15
|
"""
|
|
16
|
-
This is a shortcut for supplying the
|
|
16
|
+
This is a shortcut for supplying the ``limits`` parameter to the x and y axes.
|
|
17
17
|
Observations outside the range will be dropped.
|
|
18
18
|
|
|
19
19
|
Parameters
|
|
@@ -29,7 +29,7 @@ def lims(x, y):
|
|
|
29
29
|
|
|
30
30
|
Returns
|
|
31
31
|
-------
|
|
32
|
-
|
|
32
|
+
``FeatureSpec``
|
|
33
33
|
Scale specification.
|
|
34
34
|
|
|
35
35
|
Examples
|
|
@@ -58,7 +58,7 @@ def lims(x, y):
|
|
|
58
58
|
|
|
59
59
|
def xlim(*limits):
|
|
60
60
|
"""
|
|
61
|
-
This is a shortcut for supplying the
|
|
61
|
+
This is a shortcut for supplying the ``limits`` parameter to the x axis.
|
|
62
62
|
Observations outside the range will be dropped.
|
|
63
63
|
|
|
64
64
|
Parameters
|
|
@@ -70,7 +70,7 @@ def xlim(*limits):
|
|
|
70
70
|
|
|
71
71
|
Returns
|
|
72
72
|
-------
|
|
73
|
-
|
|
73
|
+
``FeatureSpec``
|
|
74
74
|
Scale specification.
|
|
75
75
|
|
|
76
76
|
Examples
|
|
@@ -95,7 +95,7 @@ def xlim(*limits):
|
|
|
95
95
|
|
|
96
96
|
def ylim(*limits):
|
|
97
97
|
"""
|
|
98
|
-
This is a shortcut for supplying the
|
|
98
|
+
This is a shortcut for supplying the ``limits`` parameter to the y axis.
|
|
99
99
|
Observations outside the range will be dropped.
|
|
100
100
|
|
|
101
101
|
Parameters
|
|
@@ -107,7 +107,7 @@ def ylim(*limits):
|
|
|
107
107
|
|
|
108
108
|
Returns
|
|
109
109
|
-------
|
|
110
|
-
|
|
110
|
+
``FeatureSpec``
|
|
111
111
|
Scale specification.
|
|
112
112
|
|
|
113
113
|
Examples
|
|
@@ -58,7 +58,7 @@ def scale_identity(aesthetic, *,
|
|
|
58
58
|
|
|
59
59
|
Returns
|
|
60
60
|
-------
|
|
61
|
-
|
|
61
|
+
``FeatureSpec`` or ``FeatureSpecArray``
|
|
62
62
|
Scales specification.
|
|
63
63
|
|
|
64
64
|
Examples
|
|
@@ -128,7 +128,7 @@ def scale_color_identity(name=None, breaks=None, labels=None, lablim=None, limit
|
|
|
128
128
|
|
|
129
129
|
Returns
|
|
130
130
|
-------
|
|
131
|
-
|
|
131
|
+
``FeatureSpec``
|
|
132
132
|
Scale specification.
|
|
133
133
|
|
|
134
134
|
Notes
|
|
@@ -197,7 +197,7 @@ def scale_fill_identity(name=None, breaks=None, labels=None, lablim=None, limits
|
|
|
197
197
|
|
|
198
198
|
Returns
|
|
199
199
|
-------
|
|
200
|
-
|
|
200
|
+
``FeatureSpec``
|
|
201
201
|
Scale specification.
|
|
202
202
|
|
|
203
203
|
Notes
|
|
@@ -266,7 +266,7 @@ def scale_shape_identity(name=None, breaks=None, labels=None, lablim=None, limit
|
|
|
266
266
|
|
|
267
267
|
Returns
|
|
268
268
|
-------
|
|
269
|
-
|
|
269
|
+
``FeatureSpec``
|
|
270
270
|
Scale specification.
|
|
271
271
|
|
|
272
272
|
Notes
|
|
@@ -339,7 +339,7 @@ def scale_linetype_identity(name=None, breaks=None, labels=None, lablim=None, li
|
|
|
339
339
|
|
|
340
340
|
Returns
|
|
341
341
|
-------
|
|
342
|
-
|
|
342
|
+
``FeatureSpec``
|
|
343
343
|
Scale specification.
|
|
344
344
|
|
|
345
345
|
Notes
|
|
@@ -415,7 +415,7 @@ def scale_alpha_identity(name=None, breaks=None, labels=None, lablim=None, limit
|
|
|
415
415
|
|
|
416
416
|
Returns
|
|
417
417
|
-------
|
|
418
|
-
|
|
418
|
+
``FeatureSpec``
|
|
419
419
|
Scale specification.
|
|
420
420
|
|
|
421
421
|
Notes
|
|
@@ -485,7 +485,7 @@ def scale_size_identity(name=None, breaks=None, labels=None, lablim=None, limits
|
|
|
485
485
|
|
|
486
486
|
Returns
|
|
487
487
|
-------
|
|
488
|
-
|
|
488
|
+
``FeatureSpec``
|
|
489
489
|
Scale specification.
|
|
490
490
|
|
|
491
491
|
Notes
|
|
@@ -555,7 +555,7 @@ def scale_linewidth_identity(name=None, breaks=None, labels=None, lablim=None, l
|
|
|
555
555
|
|
|
556
556
|
Returns
|
|
557
557
|
-------
|
|
558
|
-
|
|
558
|
+
``FeatureSpec``
|
|
559
559
|
Scale specification.
|
|
560
560
|
|
|
561
561
|
Notes
|
|
@@ -623,7 +623,7 @@ def scale_stroke_identity(name=None, breaks=None, labels=None, lablim=None, limi
|
|
|
623
623
|
|
|
624
624
|
Returns
|
|
625
625
|
-------
|
|
626
|
-
|
|
626
|
+
``FeatureSpec``
|
|
627
627
|
Scale specification.
|
|
628
628
|
|
|
629
629
|
Notes
|
lets_plot/plot/scale_position.py
CHANGED
|
@@ -74,7 +74,7 @@ def scale_x_continuous(name=None, *,
|
|
|
74
74
|
|
|
75
75
|
Returns
|
|
76
76
|
-------
|
|
77
|
-
|
|
77
|
+
``FeatureSpec``
|
|
78
78
|
Scale specification.
|
|
79
79
|
|
|
80
80
|
Examples
|
|
@@ -158,7 +158,7 @@ def scale_y_continuous(name=None, *,
|
|
|
158
158
|
|
|
159
159
|
Returns
|
|
160
160
|
-------
|
|
161
|
-
|
|
161
|
+
``FeatureSpec``
|
|
162
162
|
Scale specification.
|
|
163
163
|
|
|
164
164
|
Examples
|
|
@@ -239,7 +239,7 @@ def scale_x_log10(name=None, *,
|
|
|
239
239
|
|
|
240
240
|
Returns
|
|
241
241
|
-------
|
|
242
|
-
|
|
242
|
+
``FeatureSpec``
|
|
243
243
|
Scale specification.
|
|
244
244
|
|
|
245
245
|
Examples
|
|
@@ -316,7 +316,7 @@ def scale_y_log10(name=None, *,
|
|
|
316
316
|
|
|
317
317
|
Returns
|
|
318
318
|
-------
|
|
319
|
-
|
|
319
|
+
``FeatureSpec``
|
|
320
320
|
Scale specification.
|
|
321
321
|
|
|
322
322
|
Examples
|
|
@@ -393,7 +393,7 @@ def scale_x_log2(name=None, *,
|
|
|
393
393
|
|
|
394
394
|
Returns
|
|
395
395
|
-------
|
|
396
|
-
|
|
396
|
+
``FeatureSpec``
|
|
397
397
|
Scale specification.
|
|
398
398
|
|
|
399
399
|
Examples
|
|
@@ -470,7 +470,7 @@ def scale_y_log2(name=None, *,
|
|
|
470
470
|
|
|
471
471
|
Returns
|
|
472
472
|
-------
|
|
473
|
-
|
|
473
|
+
``FeatureSpec``
|
|
474
474
|
Scale specification.
|
|
475
475
|
|
|
476
476
|
Examples
|
|
@@ -547,7 +547,7 @@ def scale_x_reverse(name=None, *,
|
|
|
547
547
|
|
|
548
548
|
Returns
|
|
549
549
|
-------
|
|
550
|
-
|
|
550
|
+
``FeatureSpec``
|
|
551
551
|
Scale specification.
|
|
552
552
|
|
|
553
553
|
Examples
|
|
@@ -624,7 +624,7 @@ def scale_y_reverse(name=None, *,
|
|
|
624
624
|
|
|
625
625
|
Returns
|
|
626
626
|
-------
|
|
627
|
-
|
|
627
|
+
``FeatureSpec``
|
|
628
628
|
Scale specification.
|
|
629
629
|
|
|
630
630
|
Examples
|
|
@@ -708,7 +708,7 @@ def scale_x_discrete(name=None, *,
|
|
|
708
708
|
|
|
709
709
|
Returns
|
|
710
710
|
-------
|
|
711
|
-
|
|
711
|
+
``FeatureSpec``
|
|
712
712
|
Scale specification.
|
|
713
713
|
|
|
714
714
|
Examples
|
|
@@ -793,7 +793,7 @@ def scale_x_discrete_reversed(name=None, *,
|
|
|
793
793
|
|
|
794
794
|
Returns
|
|
795
795
|
-------
|
|
796
|
-
|
|
796
|
+
``FeatureSpec``
|
|
797
797
|
Scale specification.
|
|
798
798
|
|
|
799
799
|
Examples
|
|
@@ -877,7 +877,7 @@ def scale_y_discrete(name=None, *,
|
|
|
877
877
|
|
|
878
878
|
Returns
|
|
879
879
|
-------
|
|
880
|
-
|
|
880
|
+
``FeatureSpec``
|
|
881
881
|
Scale specification.
|
|
882
882
|
|
|
883
883
|
Examples
|
|
@@ -962,7 +962,7 @@ def scale_y_discrete_reversed(name=None, *,
|
|
|
962
962
|
|
|
963
963
|
Returns
|
|
964
964
|
-------
|
|
965
|
-
|
|
965
|
+
``FeatureSpec``
|
|
966
966
|
Scale specification.
|
|
967
967
|
|
|
968
968
|
Examples
|
|
@@ -1053,7 +1053,7 @@ def scale_x_datetime(name=None, *,
|
|
|
1053
1053
|
|
|
1054
1054
|
Returns
|
|
1055
1055
|
-------
|
|
1056
|
-
|
|
1056
|
+
``FeatureSpec``
|
|
1057
1057
|
Scale specification.
|
|
1058
1058
|
|
|
1059
1059
|
Examples
|
|
@@ -1143,7 +1143,7 @@ def scale_y_datetime(name=None, *,
|
|
|
1143
1143
|
|
|
1144
1144
|
Returns
|
|
1145
1145
|
-------
|
|
1146
|
-
|
|
1146
|
+
``FeatureSpec``
|
|
1147
1147
|
Scale specification.
|
|
1148
1148
|
|
|
1149
1149
|
Examples
|
|
@@ -1223,7 +1223,7 @@ def scale_x_time(name=None, *,
|
|
|
1223
1223
|
|
|
1224
1224
|
Returns
|
|
1225
1225
|
-------
|
|
1226
|
-
|
|
1226
|
+
``FeatureSpec``
|
|
1227
1227
|
Scale specification.
|
|
1228
1228
|
|
|
1229
1229
|
Examples
|
|
@@ -1302,7 +1302,7 @@ def scale_y_time(name=None, *,
|
|
|
1302
1302
|
|
|
1303
1303
|
Returns
|
|
1304
1304
|
-------
|
|
1305
|
-
|
|
1305
|
+
``FeatureSpec``
|
|
1306
1306
|
Scale specification.
|
|
1307
1307
|
|
|
1308
1308
|
Examples
|
lets_plot/plot/series_meta.py
CHANGED
|
@@ -100,7 +100,13 @@ def _infer_type_polars_dataframe(var_name: str, var_type) -> str:
|
|
|
100
100
|
lp_dtype = TYPE_UNKNOWN
|
|
101
101
|
|
|
102
102
|
# https://docs.pola.rs/api/python/stable/reference/datatypes.html
|
|
103
|
-
if var_type
|
|
103
|
+
if isinstance(var_type, pl.datatypes.Enum):
|
|
104
|
+
# In the current version of Polars, Enum is always a string
|
|
105
|
+
# https://docs.pola.rs/api/python/stable/reference/datatypes.html#string
|
|
106
|
+
return TYPE_STRING
|
|
107
|
+
elif isinstance(var_type, pl.datatypes.Categorical):
|
|
108
|
+
return TYPE_STRING
|
|
109
|
+
elif var_type in PL_FLOAT_DTYPES:
|
|
104
110
|
lp_dtype = TYPE_FLOATING
|
|
105
111
|
elif var_type in PL_INTEGER_DTYPES:
|
|
106
112
|
lp_dtype = TYPE_INTEGER
|
lets_plot/plot/stat.py
CHANGED
|
@@ -21,28 +21,29 @@ def stat_summary(mapping=None, *, data=None, geom=None,
|
|
|
21
21
|
|
|
22
22
|
Parameters
|
|
23
23
|
----------
|
|
24
|
-
mapping :
|
|
25
|
-
Set of aesthetic mappings created by `aes()
|
|
24
|
+
mapping : ``FeatureSpec``
|
|
25
|
+
Set of aesthetic mappings created by `aes() <https://lets-plot.org/python/pages/api/lets_plot.aes.html>`__ function.
|
|
26
26
|
Aesthetic mappings describe the way that variables in the data are
|
|
27
27
|
mapped to plot "aesthetics".
|
|
28
|
-
data : dict or Pandas or Polars
|
|
28
|
+
data : dict or Pandas or Polars ``DataFrame``
|
|
29
29
|
The data to be displayed in this layer. If None, the default, the data
|
|
30
30
|
is inherited from the plot data as specified in the call to ggplot.
|
|
31
31
|
geom : str, default='pointrange'
|
|
32
32
|
The geometry to display the summary stat for this layer, as a string.
|
|
33
|
-
position : str or
|
|
33
|
+
position : str or ``FeatureSpec``, default='identity'
|
|
34
34
|
Position adjustment.
|
|
35
35
|
Either a position adjustment name: 'dodge', 'jitter', 'nudge', 'jitterdodge', 'fill',
|
|
36
|
-
'stack' or 'identity', or the result of calling a position adjustment function
|
|
36
|
+
'stack' or 'identity', or the result of calling a position adjustment function
|
|
37
|
+
(e.g., `position_dodge() <https://lets-plot.org/python/pages/api/lets_plot.position_dodge.html>`__ etc.).
|
|
37
38
|
show_legend : bool, default=True
|
|
38
39
|
False - do not show legend for this layer.
|
|
39
40
|
inherit_aes : bool, default=True
|
|
40
41
|
False - do not combine the layer aesthetic mappings with the plot shared mappings.
|
|
41
|
-
sampling :
|
|
42
|
-
Result of the call to the
|
|
42
|
+
sampling : ``FeatureSpec``
|
|
43
|
+
Result of the call to the ``sampling_xxx()`` function.
|
|
43
44
|
To prevent any sampling for this layer pass value "none" (string "none").
|
|
44
|
-
tooltips :
|
|
45
|
-
Result of the call to the `layer_tooltips()
|
|
45
|
+
tooltips : ``layer_tooltips``
|
|
46
|
+
Result of the call to the `layer_tooltips() <https://lets-plot.org/python/pages/api/lets_plot.layer_tooltips.html>`__ function.
|
|
46
47
|
Specify appearance, style and content.
|
|
47
48
|
Set tooltips='none' to hide tooltips from the layer.
|
|
48
49
|
orientation : str
|
|
@@ -73,21 +74,21 @@ def stat_summary(mapping=None, *, data=None, geom=None,
|
|
|
73
74
|
|
|
74
75
|
Returns
|
|
75
76
|
-------
|
|
76
|
-
|
|
77
|
+
``LayerSpec``
|
|
77
78
|
Geom object specification.
|
|
78
79
|
|
|
79
80
|
Notes
|
|
80
81
|
-----
|
|
81
82
|
Computed variables:
|
|
82
83
|
|
|
83
|
-
- ..y.. : result of calculating of
|
|
84
|
-
- ..ymin.. : result of calculating of
|
|
85
|
-
- ..ymax.. : result of calculating of
|
|
84
|
+
- ..y.. : result of calculating of ``fun``.
|
|
85
|
+
- ..ymin.. : result of calculating of ``fun_min``.
|
|
86
|
+
- ..ymax.. : result of calculating of ``fun_max``.
|
|
86
87
|
|
|
87
88
|
----
|
|
88
89
|
|
|
89
|
-
To hide axis tooltips, set 'blank' or the result of `element_blank()
|
|
90
|
-
to the
|
|
90
|
+
To hide axis tooltips, set 'blank' or the result of `element_blank() <https://lets-plot.org/python/pages/api/lets_plot.element_blank.html>`__
|
|
91
|
+
to the ``axis_tooltip`` or ``axis_tooltip_x`` parameter of the `theme() <https://lets-plot.org/python/pages/api/lets_plot.theme.html>`__.
|
|
91
92
|
|
|
92
93
|
Examples
|
|
93
94
|
--------
|
|
@@ -173,28 +174,29 @@ def stat_summary_bin(mapping=None, *, data=None, geom=None,
|
|
|
173
174
|
|
|
174
175
|
Parameters
|
|
175
176
|
----------
|
|
176
|
-
mapping :
|
|
177
|
-
Set of aesthetic mappings created by `aes()
|
|
177
|
+
mapping : ``FeatureSpec``
|
|
178
|
+
Set of aesthetic mappings created by `aes() <https://lets-plot.org/python/pages/api/lets_plot.aes.html>`__ function.
|
|
178
179
|
Aesthetic mappings describe the way that variables in the data are
|
|
179
180
|
mapped to plot "aesthetics".
|
|
180
|
-
data : dict or Pandas or Polars
|
|
181
|
+
data : dict or Pandas or Polars ``DataFrame``
|
|
181
182
|
The data to be displayed in this layer. If None, the default, the data
|
|
182
183
|
is inherited from the plot data as specified in the call to ggplot.
|
|
183
184
|
geom : str, default='pointrange'
|
|
184
185
|
The geometry to display the summary stat for this layer, as a string.
|
|
185
|
-
position : str or
|
|
186
|
+
position : str or ``FeatureSpec``, default='identity'
|
|
186
187
|
Position adjustment.
|
|
187
188
|
Either a position adjustment name: 'dodge', 'jitter', 'nudge', 'jitterdodge', 'fill',
|
|
188
|
-
'stack' or 'identity', or the result of calling a position adjustment function
|
|
189
|
+
'stack' or 'identity', or the result of calling a position adjustment function
|
|
190
|
+
(e.g., `position_dodge() <https://lets-plot.org/python/pages/api/lets_plot.position_dodge.html>`__ etc.).
|
|
189
191
|
show_legend : bool, default=True
|
|
190
192
|
False - do not show legend for this layer.
|
|
191
193
|
inherit_aes : bool, default=True
|
|
192
194
|
False - do not combine the layer aesthetic mappings with the plot shared mappings.
|
|
193
|
-
sampling :
|
|
194
|
-
Result of the call to the
|
|
195
|
+
sampling : ``FeatureSpec``
|
|
196
|
+
Result of the call to the ``sampling_xxx()`` function.
|
|
195
197
|
To prevent any sampling for this layer pass value "none" (string "none").
|
|
196
|
-
tooltips :
|
|
197
|
-
Result of the call to the `layer_tooltips()
|
|
198
|
+
tooltips : ``layer_tooltips``
|
|
199
|
+
Result of the call to the `layer_tooltips() <https://lets-plot.org/python/pages/api/lets_plot.layer_tooltips.html>`__ function.
|
|
198
200
|
Specify appearance, style and content.
|
|
199
201
|
Set tooltips='none' to hide tooltips from the layer.
|
|
200
202
|
orientation : str, default='x'
|
|
@@ -213,7 +215,7 @@ def stat_summary_bin(mapping=None, *, data=None, geom=None,
|
|
|
213
215
|
A list of probabilities defining the quantile functions 'lq', 'mq' and 'uq'.
|
|
214
216
|
Must contain exactly 3 values between 0 and 1.
|
|
215
217
|
bins : int, default=30
|
|
216
|
-
Number of bins. Overridden by
|
|
218
|
+
Number of bins. Overridden by ``binwidth``.
|
|
217
219
|
binwidth : float
|
|
218
220
|
The width of the bins. The default is to use bin widths that cover
|
|
219
221
|
the range of the data. You should always override this value,
|
|
@@ -234,21 +236,21 @@ def stat_summary_bin(mapping=None, *, data=None, geom=None,
|
|
|
234
236
|
|
|
235
237
|
Returns
|
|
236
238
|
-------
|
|
237
|
-
|
|
239
|
+
``LayerSpec``
|
|
238
240
|
Geom object specification.
|
|
239
241
|
|
|
240
242
|
Notes
|
|
241
243
|
-----
|
|
242
244
|
Computed variables:
|
|
243
245
|
|
|
244
|
-
- ..y.. : result of calculating of
|
|
245
|
-
- ..ymin.. : result of calculating of
|
|
246
|
-
- ..ymax.. : result of calculating of
|
|
246
|
+
- ..y.. : result of calculating of ``fun``.
|
|
247
|
+
- ..ymin.. : result of calculating of ``fun_min``.
|
|
248
|
+
- ..ymax.. : result of calculating of ``fun_max``.
|
|
247
249
|
|
|
248
250
|
----
|
|
249
251
|
|
|
250
|
-
To hide axis tooltips, set 'blank' or the result of `element_blank()
|
|
251
|
-
to the
|
|
252
|
+
To hide axis tooltips, set 'blank' or the result of `element_blank() <https://lets-plot.org/python/pages/api/lets_plot.element_blank.html>`__
|
|
253
|
+
to the ``axis_tooltip`` or ``axis_tooltip_x`` parameter of the `theme() <https://lets-plot.org/python/pages/api/lets_plot.theme.html>`__.
|
|
252
254
|
|
|
253
255
|
Examples
|
|
254
256
|
--------
|
|
@@ -333,28 +335,29 @@ def stat_ecdf(mapping=None, *, data=None, geom=None,
|
|
|
333
335
|
|
|
334
336
|
Parameters
|
|
335
337
|
----------
|
|
336
|
-
mapping :
|
|
337
|
-
Set of aesthetic mappings created by `aes()
|
|
338
|
+
mapping : ``FeatureSpec``
|
|
339
|
+
Set of aesthetic mappings created by `aes() <https://lets-plot.org/python/pages/api/lets_plot.aes.html>`__ function.
|
|
338
340
|
Aesthetic mappings describe the way that variables in the data are
|
|
339
341
|
mapped to plot "aesthetics".
|
|
340
|
-
data : dict or Pandas or Polars
|
|
342
|
+
data : dict or Pandas or Polars ``DataFrame``
|
|
341
343
|
The data to be displayed in this layer. If None, the default, the data
|
|
342
344
|
is inherited from the plot data as specified in the call to ggplot.
|
|
343
345
|
geom : str, default='step'
|
|
344
346
|
The geometry to display the ecdf stat for this layer, as a string.
|
|
345
|
-
position : str or
|
|
347
|
+
position : str or ``FeatureSpec``, default='identity'
|
|
346
348
|
Position adjustment.
|
|
347
349
|
Either a position adjustment name: 'dodge', 'jitter', 'nudge', 'jitterdodge', 'fill',
|
|
348
|
-
'stack' or 'identity', or the result of calling a position adjustment function
|
|
350
|
+
'stack' or 'identity', or the result of calling a position adjustment function
|
|
351
|
+
(e.g., `position_dodge() <https://lets-plot.org/python/pages/api/lets_plot.position_dodge.html>`__ etc.).
|
|
349
352
|
show_legend : bool, default=True
|
|
350
353
|
False - do not show legend for this layer.
|
|
351
354
|
inherit_aes : bool, default=True
|
|
352
355
|
False - do not combine the layer aesthetic mappings with the plot shared mappings.
|
|
353
|
-
sampling :
|
|
354
|
-
Result of the call to the
|
|
356
|
+
sampling : ``FeatureSpec``
|
|
357
|
+
Result of the call to the ``sampling_xxx()`` function.
|
|
355
358
|
To prevent any sampling for this layer pass value "none" (string "none").
|
|
356
|
-
tooltips :
|
|
357
|
-
Result of the call to the `layer_tooltips()
|
|
359
|
+
tooltips : ``layer_tooltips``
|
|
360
|
+
Result of the call to the `layer_tooltips() <https://lets-plot.org/python/pages/api/lets_plot.layer_tooltips.html>`__ function.
|
|
358
361
|
Specify appearance, style and content.
|
|
359
362
|
Set tooltips='none' to hide tooltips from the layer.
|
|
360
363
|
orientation : str, default='x'
|
|
@@ -364,7 +367,7 @@ def stat_ecdf(mapping=None, *, data=None, geom=None,
|
|
|
364
367
|
If None, do not interpolate.
|
|
365
368
|
If not None, this is the number of points to interpolate with.
|
|
366
369
|
pad : bool, default=True
|
|
367
|
-
If geometry is
|
|
370
|
+
If geometry is ``'step'`` and ``pad=True``, then the points at the ends:
|
|
368
371
|
(-inf, 0) and (inf, 1) are added to the ecdf.
|
|
369
372
|
color_by : {'fill', 'color', 'paint_a', 'paint_b', 'paint_c'}, default='color'
|
|
370
373
|
Define the color aesthetic for the geometry.
|
|
@@ -376,22 +379,22 @@ def stat_ecdf(mapping=None, *, data=None, geom=None,
|
|
|
376
379
|
|
|
377
380
|
Returns
|
|
378
381
|
-------
|
|
379
|
-
|
|
382
|
+
``LayerSpec``
|
|
380
383
|
Geom object specification.
|
|
381
384
|
|
|
382
385
|
Notes
|
|
383
386
|
-----
|
|
384
|
-
|
|
387
|
+
``stat_ecdf()`` understands the following aesthetics mappings:
|
|
385
388
|
|
|
386
389
|
- x : x-axis coordinates.
|
|
387
390
|
- y : y-axis coordinates.
|
|
388
391
|
|
|
389
|
-
In addition, you can use any aesthetics, available for the geometry defined by the
|
|
392
|
+
In addition, you can use any aesthetics, available for the geometry defined by the ``geom`` parameter.
|
|
390
393
|
|
|
391
394
|
----
|
|
392
395
|
|
|
393
|
-
To hide axis tooltips, set 'blank' or the result of `element_blank()
|
|
394
|
-
to the
|
|
396
|
+
To hide axis tooltips, set 'blank' or the result of `element_blank() <https://lets-plot.org/python/pages/api/lets_plot.element_blank.html>`__
|
|
397
|
+
to the ``axis_tooltip`` or ``axis_tooltip_x`` parameter of the `theme() <https://lets-plot.org/python/pages/api/lets_plot.theme.html>`__.
|
|
395
398
|
|
|
396
399
|
Examples
|
|
397
400
|
--------
|
|
@@ -474,28 +477,29 @@ def stat_sum(mapping=None, *, data=None, geom=None, position=None, show_legend=N
|
|
|
474
477
|
|
|
475
478
|
Parameters
|
|
476
479
|
----------
|
|
477
|
-
mapping :
|
|
478
|
-
Set of aesthetic mappings created by `aes()
|
|
480
|
+
mapping : ``FeatureSpec``
|
|
481
|
+
Set of aesthetic mappings created by `aes() <https://lets-plot.org/python/pages/api/lets_plot.aes.html>`__ function.
|
|
479
482
|
Aesthetic mappings describe the way that variables in the data are
|
|
480
483
|
mapped to plot "aesthetics".
|
|
481
|
-
data : dict or Pandas or Polars
|
|
484
|
+
data : dict or Pandas or Polars ``DataFrame``
|
|
482
485
|
The data to be displayed in this layer. If None, the default, the data
|
|
483
486
|
is inherited from the plot data as specified in the call to ggplot.
|
|
484
487
|
geom : str, default='point'
|
|
485
488
|
The geometry to display the sum stat for this layer, as a string.
|
|
486
|
-
position : str or
|
|
489
|
+
position : str or ``FeatureSpec``, default='identity'
|
|
487
490
|
Position adjustment.
|
|
488
491
|
Either a position adjustment name: 'dodge', 'jitter', 'nudge', 'jitterdodge', 'fill',
|
|
489
|
-
'stack' or 'identity', or the result of calling a position adjustment function
|
|
492
|
+
'stack' or 'identity', or the result of calling a position adjustment function
|
|
493
|
+
(e.g., `position_dodge() <https://lets-plot.org/python/pages/api/lets_plot.position_dodge.html>`__ etc.).
|
|
490
494
|
show_legend : bool, default=True
|
|
491
495
|
False - do not show legend for this layer.
|
|
492
496
|
inherit_aes : bool, default=True
|
|
493
497
|
False - do not combine the layer aesthetic mappings with the plot shared mappings.
|
|
494
|
-
sampling :
|
|
495
|
-
Result of the call to the
|
|
498
|
+
sampling : ``FeatureSpec``
|
|
499
|
+
Result of the call to the ``sampling_xxx()`` function.
|
|
496
500
|
To prevent any sampling for this layer pass value "none" (string "none").
|
|
497
|
-
tooltips :
|
|
498
|
-
Result of the call to the `layer_tooltips()
|
|
501
|
+
tooltips : ``layer_tooltips``
|
|
502
|
+
Result of the call to the `layer_tooltips() <https://lets-plot.org/python/pages/api/lets_plot.layer_tooltips.html>`__ function.
|
|
499
503
|
Specify appearance, style and content.
|
|
500
504
|
Set tooltips='none' to hide tooltips from the layer.
|
|
501
505
|
color_by : {'fill', 'color', 'paint_a', 'paint_b', 'paint_c'}, default='color'
|
|
@@ -510,7 +514,7 @@ def stat_sum(mapping=None, *, data=None, geom=None, position=None, show_legend=N
|
|
|
510
514
|
|
|
511
515
|
Returns
|
|
512
516
|
-------
|
|
513
|
-
|
|
517
|
+
``LayerSpec``
|
|
514
518
|
Geom object specification.
|
|
515
519
|
|
|
516
520
|
Notes
|
|
@@ -521,17 +525,17 @@ def stat_sum(mapping=None, *, data=None, geom=None, position=None, show_legend=N
|
|
|
521
525
|
- ..prop.. : proportion of points with same x-axis and y-axis coordinates.
|
|
522
526
|
- ..proppct.. : proportion of points with same x-axis and y-axis coordinates in percent.
|
|
523
527
|
|
|
524
|
-
|
|
528
|
+
``stat_sum()`` understands the following aesthetics mappings:
|
|
525
529
|
|
|
526
530
|
- x : x-axis coordinates.
|
|
527
531
|
- y : y-axis coordinates.
|
|
528
532
|
|
|
529
|
-
In addition, you can use any aesthetics, available for the geometry defined by the
|
|
533
|
+
In addition, you can use any aesthetics, available for the geometry defined by the ``geom`` parameter.
|
|
530
534
|
|
|
531
535
|
----
|
|
532
536
|
|
|
533
|
-
To hide axis tooltips, set 'blank' or the result of `element_blank()
|
|
534
|
-
to the
|
|
537
|
+
To hide axis tooltips, set 'blank' or the result of `element_blank() <https://lets-plot.org/python/pages/api/lets_plot.element_blank.html>`__
|
|
538
|
+
to the ``axis_tooltip``, ``axis_tooltip_x`` or ``axis_tooltip_y`` parameter of the `theme() <https://lets-plot.org/python/pages/api/lets_plot.theme.html>`__.
|
|
535
539
|
|
|
536
540
|
Examples
|
|
537
541
|
--------
|