lets-plot 4.4.0rc1__cp311-cp311-win_amd64.whl → 4.4.1__cp311-cp311-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 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
@@ -3,4 +3,4 @@
3
3
  # Use of this source code is governed by the MIT license that can be found in the LICENSE file.
4
4
  #
5
5
  # see: https://www.python.org/dev/peps/pep-0440/#developmental-releases
6
- __version__ = '4.4.0rc1'
6
+ __version__ = '4.4.1'
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. Default - contextual.
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,22 +51,27 @@ 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
59
61
  Size of the points.
60
62
  shape : int
61
63
  Shape of the points, an integer from 0 to 25.
64
+ For more info see https://lets-plot.org/python/pages/aesthetics.html#point-shapes.
62
65
  line_color : str, default='#FF0000'
63
66
  Color of the fitting line.
67
+ For more info see https://lets-plot.org/python/pages/aesthetics.html#color-and-fill.
64
68
  line_size : float, default=0.75
65
69
  Width of the fitting line.
66
70
  linetype : int or str
67
71
  Type of the fitting line.
68
72
  Codes and names: 0 = 'blank', 1 = 'solid', 2 = 'dashed',
69
73
  3 = 'dotted', 4 = 'dotdash', 5 = 'longdash', 6 = 'twodash'.
74
+ For more info see https://lets-plot.org/python/pages/aesthetics.html#line-types.
70
75
 
71
76
  Returns
72
77
  -------
@@ -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
@@ -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. All values should be distinct.
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.
@@ -51,6 +53,7 @@ def waterfall_plot(data, x, y, *,
51
53
  Type of the box boundary lines.
52
54
  Codes and names: 0 = 'blank', 1 = 'solid', 2 = 'dashed',
53
55
  3 = 'dotted', 4 = 'dotdash', 5 = 'longdash', 6 = 'twodash'.
56
+ For more info see https://lets-plot.org/python/pages/aesthetics.html#line-types.
54
57
  width : float, default=0.9
55
58
  Width of the boxes. Typically range between 0 and 1.
56
59
  Values that are greater than 1 lead to overlapping of the boxes.