pyEPR.toolbox.plotting module#

Created on Fri Aug 25 19:30:12 2017

Plotting snippets and useful functions

@author: Zlatko K. Minev

pyEPR.toolbox.plotting.cmap_discrete(n, cmap_kw={})[source]#

Discrete colormap. cmap_kw = dict(colormap = plt.cm.gist_earth, start = 0.05, stop = .95)

cmap_kw#

helix = True, Allows us to instead call helix from here

pyEPR.toolbox.plotting.get_color_cycle(n, colormap=None, start=0.0, stop=1.0, format='hex')[source]#

See also get_next_color

pyEPR.toolbox.plotting.legend_translucent(ax: Axes, values=[], loc=0, alpha=0.5, leg_kw={})[source]#

Add a translucent legend to a matplotlib Axes.

Example:

values = [ ["%.2f" % k for k in RES] ]
leg_kw = dict(fancybox=True, fontsize=9, framealpha=0.5, ncol=1)
ax.plot(...).legend(**leg_kw)
pyEPR.toolbox.plotting.xarr_heatmap(fg, title=None, kwheat={}, fmt=('%.3f', '%.2f'), fig=None)[source]#

Needs seaborn and xarray