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 +1 -1
- plothist/scripts/make_examples.py +7 -11
- plothist/variable_registry.py +1 -1
- {plothist-1.2.6.dist-info → plothist-1.3.0.dist-info}/METADATA +4 -4
- {plothist-1.2.6.dist-info → plothist-1.3.0.dist-info}/RECORD +8 -8
- {plothist-1.2.6.dist-info → plothist-1.3.0.dist-info}/WHEEL +1 -1
- {plothist-1.2.6.dist-info → plothist-1.3.0.dist-info}/LICENSE +0 -0
- {plothist-1.2.6.dist-info → plothist-1.3.0.dist-info}/entry_points.txt +0 -0
plothist/__init__.py
CHANGED
|
@@ -7,7 +7,7 @@ import warnings
|
|
|
7
7
|
import sys
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
_matplotlib_version = "3.
|
|
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__ <
|
|
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__ <
|
|
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,
|
plothist/variable_registry.py
CHANGED
|
@@ -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
|
|
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
|
+
Metadata-Version: 2.3
|
|
2
2
|
Name: plothist
|
|
3
|
-
Version: 1.
|
|
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.
|
|
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
|
|
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=
|
|
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=
|
|
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=
|
|
13
|
-
plothist-1.
|
|
14
|
-
plothist-1.
|
|
15
|
-
plothist-1.
|
|
16
|
-
plothist-1.
|
|
17
|
-
plothist-1.
|
|
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,,
|
|
File without changes
|
|
File without changes
|