lets-plot 4.5.0rc2__cp313-cp313-win_amd64.whl → 4.5.2__cp313-cp313-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/__init__.py CHANGED
@@ -108,7 +108,7 @@ class LetsPlot:
108
108
  def set(cls, settings: Dict):
109
109
  """
110
110
  Set up library options.
111
- For more info see https://lets-plot.org/python/pages/basemap_tiles.html#configuring-globally.
111
+ For more info see `Configuring Globally <https://lets-plot.org/python/pages/basemap_tiles.html#configuring-globally>`__.
112
112
 
113
113
  Parameters
114
114
  ----------
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.5.0rc2'
6
+ __version__ = '4.5.2'
lets_plot/bistro/corr.py CHANGED
@@ -68,6 +68,11 @@ class corr_plot:
68
68
  """
69
69
  This class is intended to build correlation matrix plot.
70
70
 
71
+ Notes
72
+ -----
73
+ To hide axis tooltips, set 'blank' or the result of `element_blank()`
74
+ to the `axis_tooltip`, `axis_tooltip_x` or `axis_tooltip_y` parameter of the `theme()`.
75
+
71
76
  Examples
72
77
  --------
73
78
  .. jupyter-execute::
@@ -205,7 +210,7 @@ class corr_plot:
205
210
  If False - the text size is constant. Default - contextual.
206
211
  color : str
207
212
  Set text color.
208
- For more info see https://lets-plot.org/python/pages/aesthetics.html#color-and-fill.
213
+ For more info see `Color and Fill <https://lets-plot.org/python/pages/aesthetics.html#color-and-fill>`__.
209
214
  Default - contextual.
210
215
 
211
216
  Returns
lets_plot/bistro/joint.py CHANGED
@@ -64,7 +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
+ For more info see `Color and Fill <https://lets-plot.org/python/pages/aesthetics.html#color-and-fill>`__.
68
68
  size : float
69
69
  Size of the geometry.
70
70
  alpha : float
@@ -77,7 +77,7 @@ def joint_plot(data, x, y, *,
77
77
  True - show the line of linear regression.
78
78
  se : bool, default=True
79
79
  Display confidence interval around regression line.
80
- marginal : str, default='dens:r'
80
+ marginal : str
81
81
  Description of marginal layers packed to string value.
82
82
  Different marginals are separated by the ',' char.
83
83
  Parameters of a marginal are separated by the ':' char.
@@ -97,6 +97,11 @@ def joint_plot(data, x, y, *,
97
97
  `PlotSpec`
98
98
  Plot object specification.
99
99
 
100
+ Notes
101
+ -----
102
+ To hide axis tooltips, set 'blank' or the result of `element_blank()`
103
+ to the `axis_tooltip`, `axis_tooltip_x` or `axis_tooltip_y` parameter of the `theme()`.
104
+
100
105
  Examples
101
106
  --------
102
107
  .. jupyter-execute::
lets_plot/bistro/qq.py CHANGED
@@ -66,20 +66,20 @@ def qq_plot(data=None, sample=None, *, x=None, y=None,
66
66
  "box : tr : .05, dens : bl".
67
67
  color : str
68
68
  Color of a points.
69
- For more info see https://lets-plot.org/python/pages/aesthetics.html#color-and-fill.
69
+ For more info see `Color and Fill <https://lets-plot.org/python/pages/aesthetics.html#color-and-fill>`__.
70
70
  fill : str
71
71
  Color to paint shape's inner points. Is applied only to the points of shapes having inner points.
72
- For more info see https://lets-plot.org/python/pages/aesthetics.html#color-and-fill.
72
+ For more info see `Color and Fill <https://lets-plot.org/python/pages/aesthetics.html#color-and-fill>`__.
73
73
  alpha : float, default=0.5
74
74
  Transparency level of points. Accept values between 0 and 1.
75
75
  size : float, default=3.0
76
76
  Size of the points.
77
77
  shape : int
78
78
  Shape of the points, an integer from 0 to 25.
79
- For more info see https://lets-plot.org/python/pages/aesthetics.html#point-shapes.
79
+ For more info see `Point Shapes <https://lets-plot.org/python/pages/aesthetics.html#point-shapes>`__.
80
80
  line_color : str, default='#FF0000'
81
81
  Color of the fitting line.
82
- For more info see https://lets-plot.org/python/pages/aesthetics.html#color-and-fill.
82
+ For more info see `Color and Fill <https://lets-plot.org/python/pages/aesthetics.html#color-and-fill>`__.
83
83
  line_size : float, default=0.75
84
84
  Width of the fitting line.
85
85
  linetype : int or str or list
@@ -87,7 +87,7 @@ def qq_plot(data=None, sample=None, *, x=None, y=None,
87
87
  Accept codes or names (0 = 'blank', 1 = 'solid', 2 = 'dashed', 3 = 'dotted', 4 = 'dotdash', 5 = 'longdash', 6 = 'twodash'),
88
88
  a hex string (up to 8 digits for dash-gap lengths),
89
89
  or a list pattern [offset, [dash, gap, ...]] / [dash, gap, ...].
90
- For more info see https://lets-plot.org/python/pages/aesthetics.html#line-types.
90
+ For more info see `Line Types <https://lets-plot.org/python/pages/aesthetics.html#line-types>`__.
91
91
 
92
92
  Returns
93
93
  -------
@@ -102,6 +102,11 @@ def qq_plot(data=None, sample=None, *, x=None, y=None,
102
102
  If the two distributions being compared are similar, the points in the Q-Q plot
103
103
  will approximately lie on the straight line.
104
104
 
105
+ ----
106
+
107
+ To hide axis tooltips, set 'blank' or the result of `element_blank()`
108
+ to the `axis_tooltip`, `axis_tooltip_x` or `axis_tooltip_y` parameter of the `theme()`.
109
+
105
110
  Examples
106
111
  --------
107
112
  .. jupyter-execute::
@@ -178,7 +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
+ For more info see `Color and Fill <https://lets-plot.org/python/pages/aesthetics.html#color-and-fill>`__.
182
182
  size : float
183
183
  Size of the geometry.
184
184
  alpha : float
@@ -214,6 +214,11 @@ def residual_plot(data=None, x=None, y=None, *,
214
214
  When using 'lm' and 'loess' methods,
215
215
  this function requires the `statsmodels` and `scipy` libraries to be installed.
216
216
 
217
+ ----
218
+
219
+ To hide axis tooltips, set 'blank' or the result of `element_blank()`
220
+ to the `axis_tooltip`, `axis_tooltip_x` or `axis_tooltip_y` parameter of the `theme()`.
221
+
217
222
  Examples
218
223
  --------
219
224
  .. jupyter-execute::
@@ -1,7 +1,8 @@
1
1
  # Copyright (c) 2024. JetBrains s.r.o.
2
2
  # Use of this source code is governed by the MIT license that can be found in the LICENSE file.
3
3
 
4
- from lets_plot.plot.core import PlotSpec
4
+ from lets_plot.plot.core import PlotSpec, aes
5
+ from lets_plot.plot.util import as_annotated_data
5
6
 
6
7
  __all__ = ['waterfall_plot']
7
8
 
@@ -40,11 +41,11 @@ def waterfall_plot(data, x, y, *,
40
41
  Grouping variable. Each group calculates its own statistics.
41
42
  color : str
42
43
  Color of the box boundary lines.
43
- For more info see https://lets-plot.org/python/pages/aesthetics.html#color-and-fill.
44
+ For more info see `Color and Fill <https://lets-plot.org/python/pages/aesthetics.html#color-and-fill>`__.
44
45
  Use 'flow_type' to color lines by the direction of the flow.
45
46
  fill : str
46
47
  Fill color of the boxes.
47
- For more info see https://lets-plot.org/python/pages/aesthetics.html#color-and-fill.
48
+ For more info see `Color and Fill <https://lets-plot.org/python/pages/aesthetics.html#color-and-fill>`__.
48
49
  Use 'flow_type' to color boxes by the direction of the flow.
49
50
  size : float, default=0.0
50
51
  Line width of the box boundary lines.
@@ -55,7 +56,7 @@ def waterfall_plot(data, x, y, *,
55
56
  Accept codes or names (0 = 'blank', 1 = 'solid', 2 = 'dashed', 3 = 'dotted', 4 = 'dotdash', 5 = 'longdash', 6 = 'twodash'),
56
57
  a hex string (up to 8 digits for dash-gap lengths),
57
58
  or a list pattern [offset, [dash, gap, ...]] / [dash, gap, ...].
58
- For more info see https://lets-plot.org/python/pages/aesthetics.html#line-types.
59
+ For more info see `Line Types <https://lets-plot.org/python/pages/aesthetics.html#line-types>`__.
59
60
  width : float, default=0.9
60
61
  Width of the boxes. Typically range between 0 and 1.
61
62
  Values that are greater than 1 lead to overlapping of the boxes.
@@ -110,7 +111,7 @@ def waterfall_plot(data, x, y, *,
110
111
  - 'Num {}' -> 'Num 12.456789'
111
112
  - 'TTL: {.2f}$' -> 'TTL: 12.45$'
112
113
 
113
- For more info see https://lets-plot.org/python/pages/formats.html.
114
+ For more info see `Formatting <https://lets-plot.org/python/pages/formats.html>`__.
114
115
 
115
116
  Returns
116
117
  -------
@@ -221,6 +222,7 @@ def waterfall_plot(data, x, y, *,
221
222
  facet_wrap(facets='company', scales='free_x')
222
223
 
223
224
  """
225
+ data, mapping, data_meta = as_annotated_data(data, aes(x=x, y=y))
224
226
  return PlotSpec(data=data, mapping=None, scales=[], layers=[], bistro={
225
227
  'name': 'waterfall',
226
228
  'x': x,
@@ -247,4 +249,4 @@ def waterfall_plot(data, x, y, *,
247
249
  'connector': connector,
248
250
  'label': label,
249
251
  'label_format': label_format,
250
- })
252
+ }, **data_meta)