Skip to content

EOmaps v3.3.1

Compare
Choose a tag to compare
@raphaelquast raphaelquast released this 21 Mar 11:54
· 2675 commits to master since this release
0819d7d

A minor bugfix release (that also brings some miscellaneous convenience functions)

🌳 NEW

(⭐: new feature, πŸƒ: new functionality for existing feature)

  • ⭐ there's a new function m.subplots_adjust() for Maps and MapsGrid objects to quickly set the margins of the plots as well as the horizontal and vertical spacing between subplots:
    m = Maps()
    m.subplots_adjust(left=0.2, right=0.8, top=0.9, bottom=0.1)
    mg = MapsGrid()
    mg.subplots_adjust(left=0.2, right=0.8, top=0.9, bottom=0.1, hspace=0.05, wspace=0.15)
    (these are just shortcuts for m.figure.gridspec.update() + m.redraw())
  • πŸƒ m.add_colorbar now has an additional kwarg log=True/False to make the y-axis of the histogram logarithmic.
  • πŸƒ m.add_scalebar now provides style-presets via preset="<preset-name>"
    • at the moment there's only 1 preset... more to come in future releases!
    • "bw": a simple black-and-white style without a background

πŸ”¨ fixes

  • fix m.savefig with different dpi-settings requres a re-draw
  • fix m.plot_map with dynamic=True does not require a update
  • incorporated some updates to ensure that layers are only re-drawn if necessary
  • make sure cached backgrounds are always re-drawn if new artists are added
  • fix annotation in example 9 (still used old syntax)