eggshell.plot.plt_utils

Module Contents

eggshell.plot.plt_utils.LOGGER[source]
eggshell.plot.plt_utils.fig2plot(fig, file_extension='png', dir_output='.', bbox_inches='tight', dpi=300, facecolor='w', edgecolor='k', figsize=(20, 10))[source]

saving a matplotlib figure to a graphic

Parameters:
  • fig – matplotlib figure object
  • dir_output – directory of output plot
  • file_extension – file file_extension (default=’png’)
Return str:

path to graphic

class eggshell.plot.plt_utils.MidpointNormalize(vmin=None, vmax=None, midpoint=None, clip=False)[source]

Bases:matplotlib.colors.Normalize

__call__(self, value, clip=None)[source]
eggshell.plot.plt_utils.concat_images(images, orientation='v', dir_output='.')[source]

concatenation of images.

Parameters:
  • images – list of images
  • orientation – vertical (‘v’ default) or horizontal (‘h’) concatenation
  • dir_output – output directory
Return string:

path to image

eggshell.plot.plt_utils.pdfmerge(pdfs, dir_output='.')[source]

merge a list of pdfs

Parameters:pdfs – list of pdf files
Parm dir_output:
 output directory
Retun str:merged pdf