lets-plot 4.4.0__cp39-cp39-win_amd64.whl → 4.4.1__cp39-cp39-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.
- lets_plot/_type_utils.py +9 -4
- lets_plot/_version.py +1 -1
- lets_plot/bistro/corr.py +3 -1
- lets_plot/bistro/joint.py +1 -0
- lets_plot/bistro/qq.py +3 -0
- lets_plot/bistro/residual.py +1 -0
- lets_plot/bistro/waterfall.py +3 -1
- lets_plot/package_data/lets-plot.min.js +1 -1
- lets_plot/plot/annotation.py +1 -1
- lets_plot/plot/geom.py +95 -96
- lets_plot/plot/geom_function_.py +1 -1
- lets_plot/plot/guide.py +1 -1
- lets_plot/plot/scale_colormap_mpl.py +3 -1
- lets_plot/plot/tooltip.py +2 -2
- {lets_plot-4.4.0.dist-info → lets_plot-4.4.1.dist-info}/METADATA +5 -2
- {lets_plot-4.4.0.dist-info → lets_plot-4.4.1.dist-info}/RECORD +20 -20
- {lets_plot-4.4.0.dist-info → lets_plot-4.4.1.dist-info}/WHEEL +1 -1
- lets_plot_kotlin_bridge.cp39-win_amd64.pyd +0 -0
- {lets_plot-4.4.0.dist-info → lets_plot-4.4.1.dist-info}/LICENSE +0 -0
- {lets_plot-4.4.0.dist-info → lets_plot-4.4.1.dist-info}/top_level.txt +0 -0
lets_plot/_type_utils.py
CHANGED
|
@@ -29,6 +29,11 @@ try:
|
|
|
29
29
|
except ImportError:
|
|
30
30
|
shapely = None
|
|
31
31
|
|
|
32
|
+
try:
|
|
33
|
+
import jax.numpy as jnp
|
|
34
|
+
except ImportError:
|
|
35
|
+
jnp = None
|
|
36
|
+
|
|
32
37
|
|
|
33
38
|
# Parameter 'value' can also be pandas.DataFrame
|
|
34
39
|
def standardize_dict(value: Dict) -> Dict:
|
|
@@ -52,15 +57,15 @@ def is_dict_or_dataframe(v):
|
|
|
52
57
|
|
|
53
58
|
|
|
54
59
|
def is_int(v):
|
|
55
|
-
return isinstance(v, int) or (numpy and isinstance(v, numpy.integer))
|
|
60
|
+
return isinstance(v, int) or (numpy and isinstance(v, numpy.integer)) or (jnp and isinstance(v, jnp.integer))
|
|
56
61
|
|
|
57
62
|
|
|
58
63
|
def is_float(v):
|
|
59
|
-
return isinstance(v, float) or (numpy and isinstance(v, numpy.floating))
|
|
64
|
+
return isinstance(v, float) or (numpy and isinstance(v, numpy.floating)) or (jnp and isinstance(v, jnp.floating))
|
|
60
65
|
|
|
61
66
|
|
|
62
67
|
def is_ndarray(data) -> bool:
|
|
63
|
-
return numpy and isinstance(data, numpy.ndarray)
|
|
68
|
+
return (numpy and isinstance(data, numpy.ndarray)) or (jnp and isinstance(data, jnp.ndarray))
|
|
64
69
|
|
|
65
70
|
|
|
66
71
|
def is_number(v):
|
|
@@ -90,7 +95,7 @@ def _standardize_value(v):
|
|
|
90
95
|
return [_standardize_value(elem) for elem in v]
|
|
91
96
|
if isinstance(v, tuple):
|
|
92
97
|
return tuple(_standardize_value(elem) for elem in v)
|
|
93
|
-
if (numpy and isinstance(v, numpy.ndarray)) or (pandas and isinstance(v, pandas.Series)):
|
|
98
|
+
if (numpy and isinstance(v, numpy.ndarray)) or (pandas and isinstance(v, pandas.Series)) or (jnp and isinstance(v, jnp.ndarray)):
|
|
94
99
|
return _standardize_value(v.tolist())
|
|
95
100
|
if isinstance(v, datetime):
|
|
96
101
|
if pandas and v is pandas.NaT:
|
lets_plot/_version.py
CHANGED
lets_plot/bistro/corr.py
CHANGED
|
@@ -204,7 +204,9 @@ class corr_plot:
|
|
|
204
204
|
If True, then absolute value of correlation is mapped to text size.
|
|
205
205
|
If False - the text size is constant. Default - contextual.
|
|
206
206
|
color : str
|
|
207
|
-
Set text color.
|
|
207
|
+
Set text color.
|
|
208
|
+
For more info see https://lets-plot.org/python/pages/aesthetics.html#color-and-fill.
|
|
209
|
+
Default - contextual.
|
|
208
210
|
|
|
209
211
|
Returns
|
|
210
212
|
-------
|
lets_plot/bistro/joint.py
CHANGED
|
@@ -64,6 +64,7 @@ def joint_plot(data, x, y, *,
|
|
|
64
64
|
Applicable simultaneously for 'tile' geom and 'histogram' marginal.
|
|
65
65
|
color : str
|
|
66
66
|
Color of the geometry.
|
|
67
|
+
For more info see https://lets-plot.org/python/pages/aesthetics.html#color-and-fill.
|
|
67
68
|
size : float
|
|
68
69
|
Size of the geometry.
|
|
69
70
|
alpha : float
|
lets_plot/bistro/qq.py
CHANGED
|
@@ -51,8 +51,10 @@ def qq_plot(data=None, sample=None, *, x=None, y=None,
|
|
|
51
51
|
False - do not show legend.
|
|
52
52
|
color : str
|
|
53
53
|
Color of a points.
|
|
54
|
+
For more info see https://lets-plot.org/python/pages/aesthetics.html#color-and-fill.
|
|
54
55
|
fill : str
|
|
55
56
|
Color to paint shape's inner points. Is applied only to the points of shapes having inner points.
|
|
57
|
+
For more info see https://lets-plot.org/python/pages/aesthetics.html#color-and-fill.
|
|
56
58
|
alpha : float, default=0.5
|
|
57
59
|
Transparency level of points. Accept values between 0 and 1.
|
|
58
60
|
size : float, default=3.0
|
|
@@ -62,6 +64,7 @@ def qq_plot(data=None, sample=None, *, x=None, y=None,
|
|
|
62
64
|
For more info see https://lets-plot.org/python/pages/aesthetics.html#point-shapes.
|
|
63
65
|
line_color : str, default='#FF0000'
|
|
64
66
|
Color of the fitting line.
|
|
67
|
+
For more info see https://lets-plot.org/python/pages/aesthetics.html#color-and-fill.
|
|
65
68
|
line_size : float, default=0.75
|
|
66
69
|
Width of the fitting line.
|
|
67
70
|
linetype : int or str
|
lets_plot/bistro/residual.py
CHANGED
|
@@ -178,6 +178,7 @@ def residual_plot(data=None, x=None, y=None, *,
|
|
|
178
178
|
Applicable simultaneously for 'tile' geom and 'histogram' marginal.
|
|
179
179
|
color : str
|
|
180
180
|
Color of the geometry.
|
|
181
|
+
For more info see https://lets-plot.org/python/pages/aesthetics.html#color-and-fill.
|
|
181
182
|
size : float
|
|
182
183
|
Size of the geometry.
|
|
183
184
|
alpha : float
|
lets_plot/bistro/waterfall.py
CHANGED
|
@@ -24,7 +24,7 @@ def waterfall_plot(data, x, y, *,
|
|
|
24
24
|
data : dict or Pandas or Polars `DataFrame`
|
|
25
25
|
The data to be displayed.
|
|
26
26
|
x : str
|
|
27
|
-
Name of a variable.
|
|
27
|
+
Name of a variable.
|
|
28
28
|
y : str
|
|
29
29
|
Name of a numeric variable.
|
|
30
30
|
measure : str
|
|
@@ -39,9 +39,11 @@ def waterfall_plot(data, x, y, *,
|
|
|
39
39
|
Grouping variable. Each group calculates its own statistics.
|
|
40
40
|
color : str
|
|
41
41
|
Color of the box boundary lines.
|
|
42
|
+
For more info see https://lets-plot.org/python/pages/aesthetics.html#color-and-fill.
|
|
42
43
|
Use 'flow_type' to color lines by the direction of the flow.
|
|
43
44
|
fill : str
|
|
44
45
|
Fill color of the boxes.
|
|
46
|
+
For more info see https://lets-plot.org/python/pages/aesthetics.html#color-and-fill.
|
|
45
47
|
Use 'flow_type' to color boxes by the direction of the flow.
|
|
46
48
|
size : float, default=0.0
|
|
47
49
|
Line width of the box boundary lines.
|