lets-plot 4.7.1__cp312-cp312-win_amd64.whl → 4.7.2rc1__cp312-cp312-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/_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.7.1'
6
+ __version__ = '4.7.2rc1'
@@ -19,7 +19,7 @@ def ggsave(plot: Union[PlotSpec, SupPlotsSpec, GGBunch], filename: str, *, path:
19
19
  scale: float = None, w: Optional[float] = None, h: Optional[float] = None, unit: Optional[str] = None,
20
20
  dpi: Optional[int] = None) -> str:
21
21
  """
22
- Export plot or `bunch` to a file.
22
+ Export plot to a file.
23
23
  Supported formats: PNG, SVG, PDF, HTML.
24
24
 
25
25
  The exported file is created in directory ${user.dir}/lets-plot-images
@@ -30,7 +30,7 @@ def ggsave(plot: Union[PlotSpec, SupPlotsSpec, GGBunch], filename: str, *, path:
30
30
  plot : ``PlotSpec``
31
31
  Plot specification to export.
32
32
  filename : str
33
- The name of file. It must end with a file extension corresponding
33
+ Name of the file. It must end with a file extension corresponding
34
34
  to one of the supported formats: SVG, HTML (or HTM), PNG, PDF (requires the pillow library).
35
35
  path : str
36
36
  Path to a directory to save image files in.
@@ -49,7 +49,7 @@ def ggsave(plot: Union[PlotSpec, SupPlotsSpec, GGBunch], filename: str, *, path:
49
49
  Height of the output image in units.
50
50
  Only applicable when exporting to SVG, PNG or PDF.
51
51
  unit : {'in', 'cm', 'mm', 'px'}, default='in'
52
- Unit of the output image. One of: 'in', 'cm', 'mm' or 'px.
52
+ Unit of the output image. One of: 'in', 'cm', 'mm' or 'px'.
53
53
  Only applicable when exporting to SVG, PNG or PDF.
54
54
  dpi : int, default=300
55
55
  Resolution in dots per inch.
@@ -57,12 +57,12 @@ def ggsave(plot: Union[PlotSpec, SupPlotsSpec, GGBunch], filename: str, *, path:
57
57
  The default value depends on the unit:
58
58
 
59
59
  - for 'px' it is 96 (output image will have the same pixel size as ``w`` and ``h`` values)
60
- - for physical units ('in', 'cm', 'mm') it is 300
60
+ - for physical units ('in', 'cm', 'mm') it is 300.
61
61
 
62
62
  Returns
63
63
  -------
64
64
  str
65
- Absolute pathname of created file.
65
+ Absolute pathname of the created file.
66
66
 
67
67
  Notes
68
68
  -----
@@ -145,7 +145,7 @@ def ggsave(plot: Union[PlotSpec, SupPlotsSpec, GGBunch], filename: str, *, path:
145
145
  return _to_svg(plot, pathname, w=w, h=h, unit=unit)
146
146
  elif ext in ['html', 'htm']:
147
147
  return _to_html(plot, pathname, iframe=iframe)
148
- elif ext in ['png', 'pdf', 'bmp']:
148
+ elif ext in ['png', 'pdf']:
149
149
  return _export_as_raster(plot, pathname, scale, export_format=ext, w=w, h=h, unit=unit, dpi=dpi)
150
150
  else:
151
151
  raise ValueError(