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.legend_translucent(ax: matplotlib.axes._axes.Axes, values=[], loc=0, alpha=0.5, leg_kw={})[source]

values = [ [“%.2f” %k for k in RES] ]

Also, you can use the following: leg_kw = dict(fancybox =True, fontsize = 9,

framealpha =0.5, ncol = 1)

blah.plot().legend(**leg_kw )

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

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

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.xarr_heatmap(fg, title=None, kwheat={}, fmt=('%.3f', '%.2f'), fig=None)[source]

Needs seaborn and xarray