lets-plot 4.7.1rc1__cp39-cp39-manylinux2014_aarch64.manylinux_2_17_aarch64.whl → 4.7.2rc1__cp39-cp39-manylinux2014_aarch64.manylinux_2_17_aarch64.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 +1 -1
- lets_plot/export/ggsave_.py +6 -6
- lets_plot/package_data/lets-plot.min.js +1 -1
- lets_plot/plot/core.py +2 -4
- lets_plot/plot/theme_.py +14 -0
- {lets_plot-4.7.1rc1.dist-info → lets_plot-4.7.2rc1.dist-info}/METADATA +1 -1
- {lets_plot-4.7.1rc1.dist-info → lets_plot-4.7.2rc1.dist-info}/RECORD +15 -15
- lets_plot_kotlin_bridge.cpython-39-aarch64-linux-gnu.so +0 -0
- {lets_plot-4.7.1rc1.dist-info → lets_plot-4.7.2rc1.dist-info}/WHEEL +0 -0
- {lets_plot-4.7.1rc1.dist-info → lets_plot-4.7.2rc1.dist-info}/licenses/LICENSE +0 -0
- {lets_plot-4.7.1rc1.dist-info → lets_plot-4.7.2rc1.dist-info}/licenses/licenses/LICENSE.FreeType +0 -0
- {lets_plot-4.7.1rc1.dist-info → lets_plot-4.7.2rc1.dist-info}/licenses/licenses/LICENSE.ImageMagick +0 -0
- {lets_plot-4.7.1rc1.dist-info → lets_plot-4.7.2rc1.dist-info}/licenses/licenses/LICENSE.expat +0 -0
- {lets_plot-4.7.1rc1.dist-info → lets_plot-4.7.2rc1.dist-info}/licenses/licenses/LICENSE.fontconfig +0 -0
- {lets_plot-4.7.1rc1.dist-info → lets_plot-4.7.2rc1.dist-info}/top_level.txt +0 -0
lets_plot/_version.py
CHANGED
lets_plot/export/ggsave_.py
CHANGED
|
@@ -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
|
|
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
|
-
|
|
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'
|
|
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(
|