lets-plot 4.7.1rc1__cp311-cp311-macosx_11_0_arm64.whl → 4.7.2rc1__cp311-cp311-macosx_11_0_arm64.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/plot/core.py CHANGED
@@ -971,17 +971,15 @@ def _export_as_raster(spec, path, scale: float, export_format: str, w=None, h=No
971
971
  "For more details visit: https://python-pillow.github.io/\n", file=sys.stderr)
972
972
  return None
973
973
 
974
-
975
974
  with Image.open(io.BytesIO(png)) as img:
976
975
  if img.mode == 'RGBA':
977
976
  img = img.convert('RGB')
978
977
 
979
- dpi = dpi if dpi is not None else 96 # Default DPI if not specified
980
978
  if file_path is not None:
981
- img.save(file_path, "PDF", dpi=(dpi, dpi))
979
+ img.save(file_path, "PDF", dpi=img.info.get("dpi"))
982
980
  return file_path
983
981
  else:
984
- img.save(file_like_object, "PDF", dpi=(dpi, dpi))
982
+ img.save(file_like_object, "PDF", dpi=img.info.get("dpi"))
985
983
  return None
986
984
  else:
987
985
  raise ValueError("Unknown export format: {}".format(export_format))
lets_plot/plot/theme_.py CHANGED
@@ -81,6 +81,8 @@ def theme(*,
81
81
 
82
82
  strip_background=None, strip_background_x=None, strip_background_y=None,
83
83
  strip_text=None, strip_text_x=None, strip_text_y=None,
84
+ strip_spacing=None, strip_spacing_x=None, strip_spacing_y=None,
85
+ panel_spacing=None, panel_spacing_x=None, panel_spacing_y=None,
84
86
  # ToDo: strip.placement
85
87
 
86
88
  axis_tooltip=None, axis_tooltip_x=None, axis_tooltip_y=None,
@@ -333,6 +335,18 @@ def theme(*,
333
335
  Style settings for vertical facet labels.
334
336
  Set 'blank' or result of `element_blank() <https://lets-plot.org/python/pages/api/lets_plot.element_blank.html>`__ to draw nothing and assign no space.
335
337
  Set `element_text() <https://lets-plot.org/python/pages/api/lets_plot.element_text.html>`__ to specify facet label parameters, inherited from ``strip_text``.
338
+ strip_spacing : float
339
+ Spacing between facet labels and the plotting area.
340
+ strip_spacing_x : float
341
+ Spacing between facet labels and the plotting area in horizontal direction, inherited from ``strip_spacing``.
342
+ strip_spacing_y : float
343
+ Spacing between facet labels and the plotting area in vertical direction, inherited from ``strip_spacing``.
344
+ panel_spacing : float
345
+ Spacing between panels in facets.
346
+ panel_spacing_x : float
347
+ Spacing between panels in facets in horizontal direction, inherited from ``panel_spacing``.
348
+ panel_spacing_y : float
349
+ Spacing between panels in facets in vertical direction, inherited from ``panel_spacing``.
336
350
  axis_tooltip, axis_tooltip_x, axis_tooltip_y : str or dict
337
351
  Style settings for axes tooltips.
338
352
  Set 'blank' or result of `element_blank() <https://lets-plot.org/python/pages/api/lets_plot.element_blank.html>`__ to draw nothing and assign no space.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: lets-plot
3
- Version: 4.7.1rc1
3
+ Version: 4.7.2rc1
4
4
  Summary: An open source library for statistical plotting
5
5
  Home-page: https://lets-plot.org
6
6
  Author: JetBrains
@@ -1,9 +1,9 @@
1
- lets_plot_kotlin_bridge.cpython-311-darwin.so,sha256=RJmVpYv34emT7oRkK1SMgY6OmBNx-6RZtjo0ZxW9IPI,17245104
1
+ lets_plot_kotlin_bridge.cpython-311-darwin.so,sha256=4RNN3LLNJ8kwi-uvTxq4XZG-fQfun2Y0uz4_c_-fQxo,17249600
2
2
  lets_plot/__init__.py,sha256=FB5djy7eJGMVACeqRx5zuVO6z7xcRKfg2TV6Bjm7eGw,12179
3
3
  lets_plot/_global_settings.py,sha256=DSagEhxxfBlrxGQsk4ydwmOmMSOIJfJegBNFKLpdllk,7502
4
4
  lets_plot/_kbridge.py,sha256=og2sh9UZFdoUf91vZxvYhJHs4Ph1lRfzVSFwgYBs-NI,5667
5
5
  lets_plot/_type_utils.py,sha256=mlNG1J0Lgt7n0gERJZFkdhP6B3C7iZD5WRMB0yS6-r0,3828
6
- lets_plot/_version.py,sha256=RNYjhDHytyuAV_QwhNx-a_Ffeph2NtH6g86OgNVR1Mk,236
6
+ lets_plot/_version.py,sha256=wA9OZRJ3O9POOjEAUFvExGhMkNQvkB31BKqszTQgR_I,236
7
7
  lets_plot/mapping.py,sha256=VDvkHxiNXfTNWV3dzBYa3Cfy8z7VdW12papmTUlL06M,3584
8
8
  lets_plot/settings_utils.py,sha256=nDtemq2zuEJ6Qulm1IXvSPhKEQt2xtztwkD247cg4sU,9087
9
9
  lets_plot/tilesets.py,sha256=gN7gfn4qnXZj699LyxpDWwEuWwNmAJr2ZQ7VJX7rzoU,10382
@@ -16,7 +16,7 @@ lets_plot/bistro/qq.py,sha256=BeTc2VGBNIxvArs80jptXzc-dhKhZk6HhFUQeBqTbN0,8298
16
16
  lets_plot/bistro/residual.py,sha256=5j06FACUYN4HEe5gtUT7xOn-BPETn9fHOvgmIbQPAyQ,12490
17
17
  lets_plot/bistro/waterfall.py,sha256=ZZ2ytdkzyhpzCALyt9cZ-vhmUuOFt4x3poCWKhNUBRg,14880
18
18
  lets_plot/export/__init__.py,sha256=lDs6fqtQjkgJyKqeYlOdhrHMN__TeggTz73hgHAkyzc,188
19
- lets_plot/export/ggsave_.py,sha256=SySbUiGpliARh9BixhoZFCLawiJ1j_yjiWq6AhoPM54,5736
19
+ lets_plot/export/ggsave_.py,sha256=odIyvVKOBal9IHyG0DGox3mi3h_pVI1yNKQdW85ThSo,5724
20
20
  lets_plot/frontend_context/__init__.py,sha256=nqIogfMulwKRY2l_v3Rn7tXMQ1btasX9f7dwfrVaj_A,204
21
21
  lets_plot/frontend_context/_configuration.py,sha256=2Z33jBwKjW5OgKyTzvQtBwLthJuaMXpLviYAatFNbrw,5563
22
22
  lets_plot/frontend_context/_frontend_ctx.py,sha256=073vxq0laO6ubol3kJK6aBbWo9Fr2_olbQEZUbr_QFc,359
@@ -47,12 +47,12 @@ lets_plot/geo_data/gis/response.py,sha256=7Ac2VN4Hl9iffm7wAyfL80Wzo7sG9A1F5BqzJU
47
47
  lets_plot/geo_data_internals/__init__.py,sha256=4R6hr7MVB9iRi9JNQm_UUQL9jCe_dYDtizw_230V2Yg,234
48
48
  lets_plot/geo_data_internals/constants.py,sha256=IDpHhOOg7dbfIKqLNSk3AGa-5HjDcnItFZDxCm4fylw,428
49
49
  lets_plot/geo_data_internals/utils.py,sha256=phV_Q84xz4uZH2jI9WLUrYDyZAz0d2-00OOLxkRH4iw,967
50
- lets_plot/package_data/lets-plot.min.js,sha256=z8CCH015rmktvbEgVLu29JrMJwkp35IAfrAw29xEtE0,2761328
50
+ lets_plot/package_data/lets-plot.min.js,sha256=oCLo49_QVGGMMU-DE_15nCIU-VLS8jzU6XM8eRRmKmY,2762913
51
51
  lets_plot/plot/__init__.py,sha256=RNsQuVS8qe4Xf4so7PJiQJKdYYnDMIqydUQNzstqhZI,1771
52
52
  lets_plot/plot/_global_theme.py,sha256=hOV9MzYpfjdF6hDE3mfLv_LqFtaouCJcccoW8pGoFoU,297
53
53
  lets_plot/plot/annotation.py,sha256=2gwx2QZ2N-uH--XdckdWpJTZYCx9rdEohc5Wybxgfmg,9851
54
54
  lets_plot/plot/coord.py,sha256=IG1EJYfEUIueGVBny-e2Vfc5NZJCJ4_B-Djtwk7sPxI,7984
55
- lets_plot/plot/core.py,sha256=CI_N3t2MLAs5guiNWdG34VHIyZlWGmI1KSJScgnyHic,35224
55
+ lets_plot/plot/core.py,sha256=CZzdJpIvh16CqhZ-5YBdmaT8TWpzUscMgoIlm6Qe7UU,35160
56
56
  lets_plot/plot/expand_limits_.py,sha256=q5Vrx4nls_KbFCyQIo1YTXznMaa7TFx0_HAMNRSzwMk,2445
57
57
  lets_plot/plot/facet.py,sha256=I4BRTJ_7Jc1v9NL6xiSzLxqnpdSgqaWOaS3BFwHVubA,7303
58
58
  lets_plot/plot/font_features.py,sha256=ju-DUr_t2frOxm3_gQjA6gmQmfwuP1SAtF7dxnLGiao,2242
@@ -80,16 +80,16 @@ lets_plot/plot/series_meta.py,sha256=o9J01J5A-vsPbMlSaEaBFpXvm1O3pURyx339dPinPWo
80
80
  lets_plot/plot/stat.py,sha256=ufeXV_wNPe3Qi6cPeQ4Er_GP346mSGLwNI6tmnDR9PU,24401
81
81
  lets_plot/plot/subplots.py,sha256=zC3xTKLIkH4YyLK2QTp8X-E1HbynYDF2LZQ5LZo6pZw,11852
82
82
  lets_plot/plot/subplots_util.py,sha256=T04pwI7LaYliUqEdRHog1SGExVt9XosQk6XDwqOg7q0,913
83
- lets_plot/plot/theme_.py,sha256=HW5ziKQx6xCOIVc38soBLeyw9LVyITW05yAVh06wcpo,37581
83
+ lets_plot/plot/theme_.py,sha256=ZcXqDH_v2NntbfAZP7_TjcS2ctQ7t1tkIW9JxMzGNs8,38427
84
84
  lets_plot/plot/theme_set.py,sha256=oyCHL_V92NWJC7-u__TOhuIJkfkSYQOWord3nDPEB1Y,9205
85
85
  lets_plot/plot/tooltip.py,sha256=ggHSMn8-lFbyWqQ9cj2Q8WFiGJW5yHzMQNJugU-tab0,16013
86
86
  lets_plot/plot/util.py,sha256=WS4CR9dH5xdLm8fRrX5kR9dQL0XZEiCTvtzz_yo-4bE,10456
87
- lets_plot-4.7.1rc1.dist-info/licenses/LICENSE,sha256=r43VKLFaMylB4Ru-pE07j0cfUO7wQpMnWm-uZ8hEqMw,1066
88
- lets_plot-4.7.1rc1.dist-info/licenses/licenses/LICENSE.FreeType,sha256=7YOXABSJgU7bZvuf8s6ySO493IEQ2hotc3nsCvHx3us,6718
89
- lets_plot-4.7.1rc1.dist-info/licenses/licenses/LICENSE.ImageMagick,sha256=pVbFKSyHyaaseVyAZpsMNmD59ynejEdr8rEPg6sbNOw,12577
90
- lets_plot-4.7.1rc1.dist-info/licenses/licenses/LICENSE.expat,sha256=MbFd6CqhmoRRVhaaF6VIi_WX5WGywxjRWe1YMTmyXoc,1144
91
- lets_plot-4.7.1rc1.dist-info/licenses/licenses/LICENSE.fontconfig,sha256=UaUaqYI3BP2QvMxhbN0X66u1srPpy96IbKAscAIogGc,8616
92
- lets_plot-4.7.1rc1.dist-info/METADATA,sha256=Y5164A3ckjMUZsA5cIfhto7t47zKbPcuz9tRAVXJc4M,12933
93
- lets_plot-4.7.1rc1.dist-info/WHEEL,sha256=qxQkdhERtGxJzqnVOBnucx1aUmU2n3HmuzYdln_LyOw,109
94
- lets_plot-4.7.1rc1.dist-info/top_level.txt,sha256=ID-ORXUWN-oVZmD4YFy1rQVm2QT1D-MlGON3vdxqgpY,34
95
- lets_plot-4.7.1rc1.dist-info/RECORD,,
87
+ lets_plot-4.7.2rc1.dist-info/licenses/LICENSE,sha256=r43VKLFaMylB4Ru-pE07j0cfUO7wQpMnWm-uZ8hEqMw,1066
88
+ lets_plot-4.7.2rc1.dist-info/licenses/licenses/LICENSE.FreeType,sha256=7YOXABSJgU7bZvuf8s6ySO493IEQ2hotc3nsCvHx3us,6718
89
+ lets_plot-4.7.2rc1.dist-info/licenses/licenses/LICENSE.ImageMagick,sha256=pVbFKSyHyaaseVyAZpsMNmD59ynejEdr8rEPg6sbNOw,12577
90
+ lets_plot-4.7.2rc1.dist-info/licenses/licenses/LICENSE.expat,sha256=MbFd6CqhmoRRVhaaF6VIi_WX5WGywxjRWe1YMTmyXoc,1144
91
+ lets_plot-4.7.2rc1.dist-info/licenses/licenses/LICENSE.fontconfig,sha256=UaUaqYI3BP2QvMxhbN0X66u1srPpy96IbKAscAIogGc,8616
92
+ lets_plot-4.7.2rc1.dist-info/METADATA,sha256=LttG9_pVpifb5oaMYERv3dd8LXz4GeKse4A0u1WhfAY,12933
93
+ lets_plot-4.7.2rc1.dist-info/WHEEL,sha256=qxQkdhERtGxJzqnVOBnucx1aUmU2n3HmuzYdln_LyOw,109
94
+ lets_plot-4.7.2rc1.dist-info/top_level.txt,sha256=ID-ORXUWN-oVZmD4YFy1rQVm2QT1D-MlGON3vdxqgpY,34
95
+ lets_plot-4.7.2rc1.dist-info/RECORD,,