myplotlib 1.2.0__tar.gz → 1.3.0__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.
Files changed (54) hide show
  1. {myplotlib-1.2.0 → myplotlib-1.3.0}/PKG-INFO +3 -3
  2. {myplotlib-1.2.0 → myplotlib-1.3.0}/myplotlib/__init__.py +5 -6
  3. {myplotlib-1.2.0 → myplotlib-1.3.0}/myplotlib/plots.py +1 -1
  4. myplotlib-1.3.0/previews/None.jpg +0 -0
  5. myplotlib-1.3.0/previews/fancy_dark.jpg +0 -0
  6. myplotlib-1.3.0/previews/fancy_light.jpg +0 -0
  7. myplotlib-1.3.0/previews/hershey_dark.jpg +0 -0
  8. myplotlib-1.3.0/previews/hershey_light.jpg +0 -0
  9. myplotlib-1.3.0/previews/mono_dark.jpg +0 -0
  10. myplotlib-1.3.0/previews/mono_light.jpg +0 -0
  11. {myplotlib-1.2.0 → myplotlib-1.3.0}/pyproject.toml +1 -1
  12. myplotlib-1.2.0/previews/None.jpg +0 -0
  13. myplotlib-1.2.0/previews/fancy_dark.jpg +0 -0
  14. myplotlib-1.2.0/previews/fancy_light.jpg +0 -0
  15. myplotlib-1.2.0/previews/hershey_dark.jpg +0 -0
  16. myplotlib-1.2.0/previews/hershey_light.jpg +0 -0
  17. myplotlib-1.2.0/previews/mono_dark.jpg +0 -0
  18. myplotlib-1.2.0/previews/mono_light.jpg +0 -0
  19. {myplotlib-1.2.0 → myplotlib-1.3.0}/.github/workflows/pypi-publish.yml +0 -0
  20. {myplotlib-1.2.0 → myplotlib-1.3.0}/.gitignore +0 -0
  21. {myplotlib-1.2.0 → myplotlib-1.3.0}/LICENSE +0 -0
  22. {myplotlib-1.2.0 → myplotlib-1.3.0}/MANIFEST.in +0 -0
  23. {myplotlib-1.2.0 → myplotlib-1.3.0}/README.md +0 -0
  24. {myplotlib-1.2.0 → myplotlib-1.3.0}/myplotlib/assets/colormaps/bipolar.csv +0 -0
  25. {myplotlib-1.2.0 → myplotlib-1.3.0}/myplotlib/assets/colormaps/colt.csv +0 -0
  26. {myplotlib-1.2.0 → myplotlib-1.3.0}/myplotlib/assets/colormaps/fire.csv +0 -0
  27. {myplotlib-1.2.0 → myplotlib-1.3.0}/myplotlib/assets/colormaps/idl.csv +0 -0
  28. {myplotlib-1.2.0 → myplotlib-1.3.0}/myplotlib/assets/colormaps/sunrise.csv +0 -0
  29. {myplotlib-1.2.0 → myplotlib-1.3.0}/myplotlib/assets/colormaps/thermal.csv +0 -0
  30. {myplotlib-1.2.0 → myplotlib-1.3.0}/myplotlib/assets/colormaps/vanilla.csv +0 -0
  31. {myplotlib-1.2.0 → myplotlib-1.3.0}/myplotlib/assets/fancy.dark.mplstyle +0 -0
  32. {myplotlib-1.2.0 → myplotlib-1.3.0}/myplotlib/assets/fancy.light.mplstyle +0 -0
  33. {myplotlib-1.2.0 → myplotlib-1.3.0}/myplotlib/assets/fonts/AppleChancery.ttf +0 -0
  34. {myplotlib-1.2.0 → myplotlib-1.3.0}/myplotlib/assets/fonts/EBGaramond-Bold.ttf +0 -0
  35. {myplotlib-1.2.0 → myplotlib-1.3.0}/myplotlib/assets/fonts/EBGaramond-BoldItalic.ttf +0 -0
  36. {myplotlib-1.2.0 → myplotlib-1.3.0}/myplotlib/assets/fonts/EBGaramond-ExtraBold.ttf +0 -0
  37. {myplotlib-1.2.0 → myplotlib-1.3.0}/myplotlib/assets/fonts/EBGaramond-ExtraBoldItalic.ttf +0 -0
  38. {myplotlib-1.2.0 → myplotlib-1.3.0}/myplotlib/assets/fonts/EBGaramond-Italic.ttf +0 -0
  39. {myplotlib-1.2.0 → myplotlib-1.3.0}/myplotlib/assets/fonts/EBGaramond-Medium.ttf +0 -0
  40. {myplotlib-1.2.0 → myplotlib-1.3.0}/myplotlib/assets/fonts/EBGaramond-MediumItalic.ttf +0 -0
  41. {myplotlib-1.2.0 → myplotlib-1.3.0}/myplotlib/assets/fonts/EBGaramond-Regular.ttf +0 -0
  42. {myplotlib-1.2.0 → myplotlib-1.3.0}/myplotlib/assets/fonts/EBGaramond-SemiBold.ttf +0 -0
  43. {myplotlib-1.2.0 → myplotlib-1.3.0}/myplotlib/assets/fonts/EBGaramond-SemiBoldItalic.ttf +0 -0
  44. {myplotlib-1.2.0 → myplotlib-1.3.0}/myplotlib/assets/fonts/HersheyTex-Book.otf +0 -0
  45. {myplotlib-1.2.0 → myplotlib-1.3.0}/myplotlib/assets/fonts/HersheyTex-Light.otf +0 -0
  46. {myplotlib-1.2.0 → myplotlib-1.3.0}/myplotlib/assets/hershey.dark.mplstyle +0 -0
  47. {myplotlib-1.2.0 → myplotlib-1.3.0}/myplotlib/assets/hershey.light.mplstyle +0 -0
  48. {myplotlib-1.2.0 → myplotlib-1.3.0}/myplotlib/assets/mono.dark.mplstyle +0 -0
  49. {myplotlib-1.2.0 → myplotlib-1.3.0}/myplotlib/assets/mono.light.mplstyle +0 -0
  50. {myplotlib-1.2.0 → myplotlib-1.3.0}/myplotlib/tests.py +0 -0
  51. {myplotlib-1.2.0 → myplotlib-1.3.0}/myplotlib/tools/__init__.py +0 -0
  52. {myplotlib-1.2.0 → myplotlib-1.3.0}/myplotlib/tools/lic.py +0 -0
  53. {myplotlib-1.2.0 → myplotlib-1.3.0}/previews/README.md +0 -0
  54. {myplotlib-1.2.0 → myplotlib-1.3.0}/previews/export_previews.py +0 -0
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.3
2
2
  Name: myplotlib
3
- Version: 1.2.0
3
+ Version: 1.3.0
4
4
  Summary: `matplotlib` binder with custom styles and routines for fast plotting
5
5
  Project-URL: Repository, https://github.com/haykh/myplotlib
6
6
  Author-email: Hayk <haykh.astro@gmail.com>
@@ -47,7 +47,7 @@ Classifier: Programming Language :: Python :: 3.11
47
47
  Classifier: Programming Language :: Python :: 3.12
48
48
  Classifier: Topic :: Scientific/Engineering :: Visualization
49
49
  Requires-Python: >=3.8
50
- Requires-Dist: matplotlib>=3.0.0
50
+ Requires-Dist: matplotlib>=3.5.0
51
51
  Requires-Dist: numba>=0.57.0
52
52
  Requires-Dist: numpy
53
53
  Description-Content-Type: text/markdown
@@ -1,4 +1,4 @@
1
- __version__ = "1.2.0"
1
+ __version__ = "1.3.0"
2
2
 
3
3
  CUSTOM_CMAPS = []
4
4
 
@@ -27,20 +27,19 @@ def __InstallCmapFromCSV(csv):
27
27
  import os
28
28
  import numpy as np
29
29
  import matplotlib as mpl
30
- import matplotlib.pyplot as plt
31
30
 
32
31
  cmap = os.path.splitext(os.path.basename(csv))[0]
33
32
  cmap_data = np.loadtxt(csv, delimiter=",")
34
- if cmap not in plt.colormaps():
33
+ if cmap not in mpl.colormaps.keys():
35
34
  CUSTOM_CMAPS.append(cmap)
36
35
  mpl_data = __RGBToPyCmap(cmap_data)
37
- plt.register_cmap(
36
+ mpl.colormaps.register(
38
37
  cmap=mpl.colors.LinearSegmentedColormap(cmap, mpl_data, cmap_data.shape[0])
39
38
  )
40
39
  cmap = f"{cmap}_r"
41
- if cmap not in plt.colormaps():
40
+ if cmap not in mpl.colormaps.keys():
42
41
  mpl_data_r = __RGBToPyCmap(cmap_data[::-1, :])
43
- plt.register_cmap(
42
+ mpl.colormaps.register(
44
43
  cmap=mpl.colors.LinearSegmentedColormap(
45
44
  cmap, mpl_data_r, cmap_data.shape[0]
46
45
  )
@@ -336,7 +336,7 @@ def plotVectorField(
336
336
  * np.abs(weights - np.average(weights)) ** lic_contrast
337
337
  )
338
338
  colors = matplotlib.colors.Normalize(None, None)(_)
339
- colors = plt.cm.get_cmap(lic_cmap)(colors)
339
+ colors = matplotlib.colormaps[lic_cmap](colors)
340
340
  colors[..., -1] = alphas
341
341
 
342
342
  colorbar = plot2d(
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -5,7 +5,7 @@ build-backend = "hatchling.build"
5
5
  [project]
6
6
  name = "myplotlib"
7
7
  dynamic = ["version"]
8
- dependencies = ["matplotlib>=3.0.0", "numpy", "numba>=0.57.0"]
8
+ dependencies = ["matplotlib>=3.5.0", "numpy", "numba>=0.57.0"]
9
9
  requires-python = ">=3.8"
10
10
  authors = [{ name = "Hayk", email = "haykh.astro@gmail.com" }]
11
11
  maintainers = [{ name = "Hayk", email = "haykh.astro@gmail.com" }]
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes