plothist 1.2.6__py3-none-any.whl → 1.3.0__py3-none-any.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.
plothist/__init__.py CHANGED
@@ -1,6 +1,6 @@
1
1
  """Plot histograms in a scalable way and a beautiful style."""
2
2
 
3
- __version__ = "1.2.6"
3
+ __version__ = "1.3.0"
4
4
 
5
5
  from .plotters import (
6
6
  create_comparison_figure,
@@ -7,7 +7,7 @@ import warnings
7
7
  import sys
8
8
 
9
9
 
10
- _matplotlib_version = "3.9.0"
10
+ _matplotlib_version = "3.10.0"
11
11
  _numpy_version = "2.0.0"
12
12
 
13
13
 
@@ -30,17 +30,11 @@ def make_examples(no_input=False, check_svg=False, print_code=False):
30
30
  If the example or img folder does not exist, the function will raise a FileNotFoundError.
31
31
  """
32
32
 
33
- # If python version is lower than 3.9, return a warning
34
- if sys.version_info < (3, 9):
35
- warnings.warn(
36
- "svg behavior is not consistent across python versions. Please run this script with python 3.9 or higher. Skipping.",
37
- stacklevel=2,
38
- )
39
- return 1
40
-
41
33
  import matplotlib
42
34
 
43
- if matplotlib.__version__ < _matplotlib_version:
35
+ if tuple(map(int, matplotlib.__version__.split("."))) < tuple(
36
+ map(int, _matplotlib_version.split("."))
37
+ ):
44
38
  warnings.warn(
45
39
  f"svg behavior is not consistent across matplotlib versions. Please run this script with matplotlib {_matplotlib_version} or higher. Skipping.",
46
40
  stacklevel=2,
@@ -49,7 +43,9 @@ def make_examples(no_input=False, check_svg=False, print_code=False):
49
43
 
50
44
  import numpy
51
45
 
52
- if numpy.__version__ < _numpy_version:
46
+ if tuple(map(int, numpy.__version__.split("."))) < tuple(
47
+ map(int, _numpy_version.split("."))
48
+ ):
53
49
  warnings.warn(
54
50
  f"svg behavior is not consistent across numpy versions. Please run this script with numpy {_numpy_version} or higher. Skipping.",
55
51
  stacklevel=2,
@@ -178,7 +178,7 @@ def update_variable_registry(
178
178
  path : str, optional
179
179
  The path to the variable registry file (default is "./variable_registry.yaml").
180
180
  overwrite : bool, optional
181
- If True, the keys will be overwrite by the provided value in the dictonnary (default is False).
181
+ If True, the keys will be overwrite by the provided value in the dictionary (default is False).
182
182
 
183
183
  Returns
184
184
  -------
@@ -1,9 +1,9 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.3
2
2
  Name: plothist
3
- Version: 1.2.6
3
+ Version: 1.3.0
4
4
  Summary: Plot histograms in a scalable way and a beautiful style.
5
5
  Author-email: Cyrille Praz <cyrraz.code@protonmail.com>, Tristan Fillinger <tristan.github@gmail.com>
6
- Requires-Python: >=3.7
6
+ Requires-Python: >=3.9
7
7
  Description-Content-Type: text/x-rst
8
8
  Classifier: Intended Audience :: Developers
9
9
  Classifier: Intended Audience :: Education
@@ -13,7 +13,7 @@ Classifier: License :: OSI Approved :: BSD License
13
13
  Classifier: Operating System :: OS Independent
14
14
  Classifier: Programming Language :: Python
15
15
  Classifier: Topic :: Scientific/Engineering
16
- Requires-Dist: boost-histogram~=1.4.0
16
+ Requires-Dist: boost-histogram>=1.4.0
17
17
  Requires-Dist: numpy>=1.14.5
18
18
  Requires-Dist: matplotlib>=3.0
19
19
  Requires-Dist: pyyaml>=5.3.1
@@ -1,4 +1,4 @@
1
- plothist/__init__.py,sha256=34TGhwx12Btqa2xECsyQvE_FV-Lf_hrE5ho8RXHnWzw,3314
1
+ plothist/__init__.py,sha256=6oSa6gAt-3ta4LwyMh7PCtHsX7a2fwFrVxePSb3qCes,3314
2
2
  plothist/comparison.py,sha256=qrQHQ0vv-0rBWaSAvkeZLeZyJb-I4rhsEQtLWQxO3jc,17431
3
3
  plothist/default_style.mplstyle,sha256=7MmB2uiXmD_DSqFHeH1xxC-lTctBD_EASxMdSOsPep0,1574
4
4
  plothist/dummy_data.csv,sha256=sb4LCjYW4ZO2bLCJvrunrIses-0CHe7CNwd5-BgCme8,5936219
@@ -6,12 +6,12 @@ plothist/get_dummy_data.py,sha256=7GrWea75f0vWGi1IQg1TRpq_NzaDsTQiXm7kQ7eZOdI,43
6
6
  plothist/histogramming.py,sha256=A9tGRqhJ1-M85IuCSsgs5OVLZWxWoRtNnr1kXhJXQdU,10201
7
7
  plothist/plothist_style.py,sha256=JEAez2o7i5o_OGAdl_-77zx0OXStRB6QLh6nA561jks,12908
8
8
  plothist/plotters.py,sha256=n9XBamhdWRvbfuYWLQjRLT3MiphtAqfh5sUgWRoo_yc,42479
9
- plothist/variable_registry.py,sha256=yGbA0WjSHDD5kgs1uL_KgcJEHoKihbtzLDLyfGJty-8,10207
9
+ plothist/variable_registry.py,sha256=_fJEhr_jfm6CwxmfFK5qcRUE1VAxUlecnZEzHeuinDs,10207
10
10
  plothist/scripts/__init__.py,sha256=FRe2fYlnv0lJYqn8wPxAmhDs1XME8pvEs3rQgJpjp3k,108
11
11
  plothist/scripts/install_latin_modern_fonts.py,sha256=e4el7nYf8vXX1bXw535Lu6fLatXud8ZSaJNGYSx2ejo,5485
12
- plothist/scripts/make_examples.py,sha256=bMEVJc3MrxRFeIwaLqasTcCWDCQouKKtlrJc185PsIE,7533
13
- plothist-1.2.6.dist-info/entry_points.txt,sha256=8YWfI0-xVfDK4EmTWzQLfP4r0wJoUc4CTLk0lj2mKJY,185
14
- plothist-1.2.6.dist-info/LICENSE,sha256=zLdEtgFx6ObRPsz6Ofa0zJb5EuL0Z54FJP8egGX_unU,1523
15
- plothist-1.2.6.dist-info/WHEEL,sha256=rSgq_JpHF9fHR1lx53qwg_1-2LypZE_qmcuXbVUq948,81
16
- plothist-1.2.6.dist-info/METADATA,sha256=5vUSm-DVFf6wK2uofnGd2VOf1FTGQ7xThTCmWJ24BWE,3688
17
- plothist-1.2.6.dist-info/RECORD,,
12
+ plothist/scripts/make_examples.py,sha256=b6QHG_a4G2KnAl0yjL7tL0n_Kovo5d84h7xODqBaAts,7373
13
+ plothist-1.3.0.dist-info/entry_points.txt,sha256=8YWfI0-xVfDK4EmTWzQLfP4r0wJoUc4CTLk0lj2mKJY,185
14
+ plothist-1.3.0.dist-info/LICENSE,sha256=zLdEtgFx6ObRPsz6Ofa0zJb5EuL0Z54FJP8egGX_unU,1523
15
+ plothist-1.3.0.dist-info/WHEEL,sha256=CpUCUxeHQbRN5UGRQHYRJorO5Af-Qy_fHMctcQ8DSGI,82
16
+ plothist-1.3.0.dist-info/METADATA,sha256=Tn05Jj-tG9OBXfVet8Ux2qRPLCzJmJ7158iDG2tYRrQ,3688
17
+ plothist-1.3.0.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: flit 3.8.0
2
+ Generator: flit 3.10.1
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any