src/lengthsToN50Plot.py
def writeImage(fig, pdf, options):
    """
    writeImage assumes options contains outFormat and dpi.
    """
    if options.outFormat == 'pdf':
        fig.savefig(pdf, format = 'pdf')
        pdf.close()
    elif options.outFormat == 'png':
        fig.savefig(options.out + '.png', format='png', dpi=options.dpi)
    elif options.outFormat == 'all':
        fig.savefig(pdf, format='pdf')
        pdf.close()
        fig.savefig(options.out + '.png', format='png', dpi=options.dpi)
        fig.savefig(options.out + '.eps', format='eps')
    elif options.outFormat == 'eps':
        fig.savefig(options.out + '.eps', format='eps')

    writeImage assumes options contains outFormat and dpi.
    
writeImage assumes options contains outFormat and dpi.
writeImage assumes options contains outFormat and dpi .
def writeImage(fig, pdf, options):
    if options.outFormat == 'pdf':
        fig.savefig(pdf, format = 'pdf')
        pdf.close()
    elif options.outFormat == 'png':
        fig.savefig(options.out + '.png', format='png', dpi=options.dpi)
    elif options.outFormat == 'all':
        fig.savefig(pdf, format='pdf')
        pdf.close()
        fig.savefig(options.out + '.png', format='png', dpi=options.dpi)
        fig.savefig(options.out + '.eps', format='eps')
    elif options.outFormat == 'eps':
        fig.savefig(options.out + '.eps', format='eps')
def writeImage ( fig , pdf , options ) : if options . outFormat == 'pdf' : fig . savefig ( pdf , format = 'pdf' ) pdf . close ( ) elif options . outFormat == 'png' : fig . savefig ( options . out + '.png' , format = 'png' , dpi = options . dpi ) elif options . outFormat == 'all' : fig . savefig ( pdf , format = 'pdf' ) pdf . close ( ) fig . savefig ( options . out + '.png' , format = 'png' , dpi = options . dpi ) fig . savefig ( options . out + '.eps' , format = 'eps' ) elif options . outFormat == 'eps' : fig . savefig ( options . out + '.eps' , format = 'eps' )
writeImage assumes options contains outFormat and dpi.
writeImage assumes options contains outFormat and dpi .
"""
    writeImage assumes options contains outFormat and dpi.
    """
fig
pdf
options