EasyPlotLib 0.0.5__tar.gz → 0.0.6__tar.gz
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.
- {easyplotlib-0.0.5 → easyplotlib-0.0.6}/EasyPlotLib/__init__.py +10 -6
- {easyplotlib-0.0.5 → easyplotlib-0.0.6}/EasyPlotLib.egg-info/PKG-INFO +1 -1
- {easyplotlib-0.0.5 → easyplotlib-0.0.6}/PKG-INFO +1 -1
- {easyplotlib-0.0.5 → easyplotlib-0.0.6}/EasyPlotLib/cartopy_helper.py +0 -0
- {easyplotlib-0.0.5 → easyplotlib-0.0.6}/EasyPlotLib/figsizes_set.py +0 -0
- {easyplotlib-0.0.5 → easyplotlib-0.0.6}/EasyPlotLib.egg-info/SOURCES.txt +0 -0
- {easyplotlib-0.0.5 → easyplotlib-0.0.6}/EasyPlotLib.egg-info/dependency_links.txt +0 -0
- {easyplotlib-0.0.5 → easyplotlib-0.0.6}/EasyPlotLib.egg-info/top_level.txt +0 -0
- {easyplotlib-0.0.5 → easyplotlib-0.0.6}/README.md +0 -0
- {easyplotlib-0.0.5 → easyplotlib-0.0.6}/setup.cfg +0 -0
- {easyplotlib-0.0.5 → easyplotlib-0.0.6}/setup.py +0 -0
|
@@ -8,18 +8,22 @@ import EasyPlotLib
|
|
|
8
8
|
|
|
9
9
|
# register the bundled stylesheets in the matplotlib style library
|
|
10
10
|
EasyPlotLib_path = EasyPlotLib.__path__[0]
|
|
11
|
-
style_dir = os.path.join(EasyPlotLib_path, "styles")
|
|
12
11
|
font_dir = os.path.join(EasyPlotLib_path, "fonts")
|
|
13
|
-
|
|
12
|
+
styles_path = os.path.join(EasyPlotLib_path, "styles")
|
|
13
|
+
|
|
14
|
+
# add fonts
|
|
14
15
|
font_files = fm.findSystemFonts(fontpaths=[font_dir])
|
|
15
16
|
for font_file in font_files:
|
|
16
17
|
fm.fontManager.addfont(font_file)
|
|
17
18
|
|
|
18
|
-
#
|
|
19
|
-
stylesheets = {}
|
|
20
|
-
for
|
|
21
|
-
new_stylesheets = plt.style.core.read_style_directory(
|
|
19
|
+
# Reads styles in /styles folder and all subfolders
|
|
20
|
+
stylesheets = {} # plt.style.library is a dictionary
|
|
21
|
+
for folder, _, _ in os.walk(styles_path):
|
|
22
|
+
new_stylesheets = plt.style.core.read_style_directory(folder)
|
|
22
23
|
stylesheets.update(new_stylesheets)
|
|
23
24
|
|
|
25
|
+
# Update dictionary of styles - plt.style.library
|
|
24
26
|
plt.style.core.update_nested_dict(plt.style.library, stylesheets)
|
|
27
|
+
# Update `plt.style.available`, copy-paste from:
|
|
28
|
+
# https://github.com/matplotlib/matplotlib/blob/a170539a421623bb2967a45a24bb7926e2feb542/lib/matplotlib/style/core.py#L266 # noqa: E501
|
|
25
29
|
plt.style.core.available[:] = sorted(plt.style.library.keys())
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|