EasyPlotLib 0.2.0__tar.gz → 0.2.1__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 (32) hide show
  1. {easyplotlib-0.2.0 → easyplotlib-0.2.1}/EasyPlotLib/figsizes_set.py +10 -4
  2. {easyplotlib-0.2.0 → easyplotlib-0.2.1}/EasyPlotLib.egg-info/PKG-INFO +1 -1
  3. {easyplotlib-0.2.0 → easyplotlib-0.2.1}/PKG-INFO +1 -1
  4. {easyplotlib-0.2.0 → easyplotlib-0.2.1}/EasyPlotLib/__init__.py +0 -0
  5. {easyplotlib-0.2.0 → easyplotlib-0.2.1}/EasyPlotLib/cartopy_helper.py +0 -0
  6. {easyplotlib-0.2.0 → easyplotlib-0.2.1}/EasyPlotLib/export.py +0 -0
  7. {easyplotlib-0.2.0 → easyplotlib-0.2.1}/EasyPlotLib/fonts/texgyreadventor-bold.ttf +0 -0
  8. {easyplotlib-0.2.0 → easyplotlib-0.2.1}/EasyPlotLib/fonts/texgyreadventor-bolditalic.ttf +0 -0
  9. {easyplotlib-0.2.0 → easyplotlib-0.2.1}/EasyPlotLib/fonts/texgyreadventor-italic.ttf +0 -0
  10. {easyplotlib-0.2.0 → easyplotlib-0.2.1}/EasyPlotLib/fonts/texgyreadventor-regular.ttf +0 -0
  11. {easyplotlib-0.2.0 → easyplotlib-0.2.1}/EasyPlotLib/fonts/texgyrechorus-mediumitalic.ttf +0 -0
  12. {easyplotlib-0.2.0 → easyplotlib-0.2.1}/EasyPlotLib/fonts/texgyrecursor-bold.ttf +0 -0
  13. {easyplotlib-0.2.0 → easyplotlib-0.2.1}/EasyPlotLib/fonts/texgyrecursor-bolditalic.ttf +0 -0
  14. {easyplotlib-0.2.0 → easyplotlib-0.2.1}/EasyPlotLib/fonts/texgyrecursor-italic.ttf +0 -0
  15. {easyplotlib-0.2.0 → easyplotlib-0.2.1}/EasyPlotLib/fonts/texgyrecursor-regular.ttf +0 -0
  16. {easyplotlib-0.2.0 → easyplotlib-0.2.1}/EasyPlotLib/fonts/texgyreheros-bold.ttf +0 -0
  17. {easyplotlib-0.2.0 → easyplotlib-0.2.1}/EasyPlotLib/fonts/texgyreheros-bolditalic.ttf +0 -0
  18. {easyplotlib-0.2.0 → easyplotlib-0.2.1}/EasyPlotLib/fonts/texgyreheros-italic.ttf +0 -0
  19. {easyplotlib-0.2.0 → easyplotlib-0.2.1}/EasyPlotLib/fonts/texgyreheros-regular.ttf +0 -0
  20. {easyplotlib-0.2.0 → easyplotlib-0.2.1}/EasyPlotLib/fonts/texgyreschola-bold.ttf +0 -0
  21. {easyplotlib-0.2.0 → easyplotlib-0.2.1}/EasyPlotLib/fonts/texgyreschola-bolditalic.ttf +0 -0
  22. {easyplotlib-0.2.0 → easyplotlib-0.2.1}/EasyPlotLib/fonts/texgyreschola-italic.ttf +0 -0
  23. {easyplotlib-0.2.0 → easyplotlib-0.2.1}/EasyPlotLib/fonts/texgyreschola-regular.ttf +0 -0
  24. {easyplotlib-0.2.0 → easyplotlib-0.2.1}/EasyPlotLib/helpers.py +0 -0
  25. {easyplotlib-0.2.0 → easyplotlib-0.2.1}/EasyPlotLib/palettes.py +0 -0
  26. {easyplotlib-0.2.0 → easyplotlib-0.2.1}/EasyPlotLib/styles/nature.mplstyle +0 -0
  27. {easyplotlib-0.2.0 → easyplotlib-0.2.1}/EasyPlotLib.egg-info/SOURCES.txt +0 -0
  28. {easyplotlib-0.2.0 → easyplotlib-0.2.1}/EasyPlotLib.egg-info/dependency_links.txt +0 -0
  29. {easyplotlib-0.2.0 → easyplotlib-0.2.1}/EasyPlotLib.egg-info/top_level.txt +0 -0
  30. {easyplotlib-0.2.0 → easyplotlib-0.2.1}/README.md +0 -0
  31. {easyplotlib-0.2.0 → easyplotlib-0.2.1}/setup.cfg +0 -0
  32. {easyplotlib-0.2.0 → easyplotlib-0.2.1}/setup.py +0 -0
@@ -33,7 +33,7 @@ _JOURNAL_SIZES = {
33
33
 
34
34
  def figsizes(
35
35
  journal_key,
36
- inverted_aspect_ratio=1,
36
+ inverted_aspect_ratio=None,
37
37
  nrows=None,
38
38
  ncols=None,
39
39
  constrained_layout=True,
@@ -43,9 +43,15 @@ def figsizes(
43
43
  gold_ratio=_GOLDEN_RATIO,
44
44
  ratio=1,
45
45
  ) -> dict:
46
- # set defaul inverted_aspect if nrows
47
- if nrows and ncols:
48
- inverted_aspect_ratio = gold_ratio * nrows / ncols
46
+ # Aspect = height / width. The journal key fixes only the column *width*;
47
+ # the aspect should suit the content, so an explicit ``inverted_aspect_ratio``
48
+ # always wins (use ~1 for square plots, >1 for tall ones). When it is left
49
+ # unset, default to the golden ratio, scaled by the grid shape if given.
50
+ if inverted_aspect_ratio is None:
51
+ if nrows and ncols:
52
+ inverted_aspect_ratio = gold_ratio * nrows / ncols
53
+ else:
54
+ inverted_aspect_ratio = gold_ratio
49
55
  width = _JOURNAL_SIZES[journal_key]
50
56
  if isinstance(width, tuple): # handle case where width is a tuple
51
57
  width = width[0]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: EasyPlotLib
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Summary: A simple plotting library
5
5
  Home-page: https://github.com/yourusername/EasyPlotLib
6
6
  Author: HanYuyang
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: EasyPlotLib
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Summary: A simple plotting library
5
5
  Home-page: https://github.com/yourusername/EasyPlotLib
6
6
  Author: HanYuyang
File without changes
File without changes
File without changes