from pylab import * from matplotlib import rcParams rcParams['text.usetex'] = False rcParams['ps.usedistiller'] = None figure(figsize=(10,5)) plot([1,2,3,4]) savefig('notex_nodist_pm.ps', orientation='portrait', papertype='letter') savefig('notex_nodist_lm.ps', orientation='landscape', papertype='letter') savefig('notex_nodist_pm.eps', orientation='portrait') savefig('notex_nodist_lm.eps', orientation='landscape') rcParams['text.usetex'] = False rcParams['ps.usedistiller'] = 'ghostscript' figure(figsize=(10,5)) plot([1,2,3,4]) savefig('notex_gs_pm.ps', orientation='portrait', papertype='letter') savefig('notex_gs_lm.ps', orientation='landscape', papertype='letter') savefig('notex_gs_pm.eps', orientation='portrait') savefig('notex_gs_lm.eps', orientation='landscape') rcParams['text.usetex'] = False rcParams['ps.usedistiller'] = 'xpdf' figure(figsize=(10,5)) plot([1,2,3,4]) savefig('notex_xpdf_pm.ps', orientation='portrait', papertype='letter') savefig('notex_xpdf_lm.ps', orientation='landscape', papertype='letter') savefig('notex_xpdf_pm.eps', orientation='portrait') savefig('notex_xpdf_lm.eps', orientation='landscape') rcParams['text.usetex'] = True rcParams['ps.usedistiller'] = None figure(figsize=(10,5)) plot([1,2,3,4]) savefig('tex_nodist_pm.ps', orientation='portrait', papertype='letter') savefig('tex_nodist_lm.ps', orientation='landscape', papertype='letter') savefig('tex_nodist_pm.eps', orientation='portrait') savefig('tex_nodist_lm.eps', orientation='landscape') rcParams['text.usetex'] = True rcParams['ps.usedistiller'] = 'ghostscript' figure(figsize=(10,5)) plot([1,2,3,4]) savefig('tex_gs_pm.ps', orientation='portrait', papertype='letter') savefig('tex_gs_lm.ps', orientation='landscape', papertype='letter') savefig('tex_gs_pm.eps', orientation='portrait') savefig('tex_gs_lm.eps', orientation='landscape') rcParams['text.usetex'] = True rcParams['ps.usedistiller'] = 'xpdf' figure(figsize=(10,5)) plot([1,2,3,4]) savefig('tex_xpdf_pm.ps', orientation='portrait', papertype='letter') savefig('tex_xpdf_lm.ps', orientation='landscape', papertype='letter') savefig('tex_xpdf_pm.eps', orientation='portrait') savefig('tex_xpdf_lm.eps', orientation='landscape') rcParams['text.usetex'] = False rcParams['ps.usedistiller'] = None figure(figsize=(20,10)) plot([1,2,3,4]) savefig('notex_nodist_pl.ps', orientation='portrait', papertype='letter') savefig('notex_nodist_ll.ps', orientation='landscape', papertype='letter') savefig('notex_nodist_pl.eps', orientation='portrait') savefig('notex_nodist_ll.eps', orientation='landscape') rcParams['text.usetex'] = False rcParams['ps.usedistiller'] = 'ghostscript' figure(figsize=(20,10)) plot([1,2,3,4]) savefig('notex_gs_pl.ps', orientation='portrait', papertype='letter') savefig('notex_gs_ll.ps', orientation='landscape', papertype='letter') savefig('notex_gs_pl.eps', orientation='portrait') savefig('notex_gs_ll.eps', orientation='landscape') rcParams['text.usetex'] = False rcParams['ps.usedistiller'] = 'xpdf' figure(figsize=(20,10)) plot([1,2,3,4]) savefig('notex_xpdf_pl.ps', orientation='portrait', papertype='letter') savefig('notex_xpdf_ll.ps', orientation='landscape', papertype='letter') savefig('notex_xpdf_pl.eps', orientation='portrait') savefig('notex_xpdf_ll.eps', orientation='landscape') rcParams['text.usetex'] = True rcParams['ps.usedistiller'] = None figure(figsize=(20,10)) plot([1,2,3,4]) savefig('tex_nodist_pl.ps', orientation='portrait', papertype='letter') savefig('tex_nodist_ll.ps', orientation='landscape', papertype='letter') savefig('tex_nodist_pl.eps', orientation='portrait') savefig('tex_nodist_ll.eps', orientation='landscape') rcParams['text.usetex'] = True rcParams['ps.usedistiller'] = 'ghostscript' figure(figsize=(20,10)) plot([1,2,3,4]) savefig('tex_gs_pl.ps', orientation='portrait', papertype='letter') savefig('tex_gs_ll.ps', orientation='landscape', papertype='letter') savefig('tex_gs_pl.eps', orientation='portrait') savefig('tex_gs_ll.eps', orientation='landscape') rcParams['text.usetex'] = True rcParams['ps.usedistiller'] = 'xpdf' figure(figsize=(20,10)) plot([1,2,3,4]) savefig('tex_xpdf_pl.ps', orientation='portrait', papertype='letter') savefig('tex_xpdf_ll.ps', orientation='landscape', papertype='letter') savefig('tex_xpdf_pl.eps', orientation='portrait') savefig('tex_xpdf_ll.eps', orientation='landscape') rcParams['text.usetex'] = False rcParams['ps.usedistiller'] = None figure(figsize=(6,3)) plot([1,2,3,4]) savefig('notex_nodist_ps.ps', orientation='portrait', papertype='letter') savefig('notex_nodist_ls.ps', orientation='landscape', papertype='letter') savefig('notex_nodist_ps.eps', orientation='portrait') savefig('notex_nodist_ls.eps', orientation='landscape') rcParams['text.usetex'] = False rcParams['ps.usedistiller'] = 'ghostscript' figure(figsize=(6,3)) plot([1,2,3,4]) savefig('notex_gs_ps.ps', orientation='portrait', papertype='letter') savefig('notex_gs_ls.ps', orientation='landscape', papertype='letter') savefig('notex_gs_ps.eps', orientation='portrait') savefig('notex_gs_ls.eps', orientation='landscape') rcParams['text.usetex'] = False rcParams['ps.usedistiller'] = 'xpdf' figure(figsize=(6,3)) plot([1,2,3,4]) savefig('notex_xpdf_ps.ps', orientation='portrait', papertype='letter') savefig('notex_xpdf_ls.ps', orientation='landscape', papertype='letter') savefig('notex_xpdf_ps.eps', orientation='portrait') savefig('notex_xpdf_ls.eps', orientation='landscape') rcParams['text.usetex'] = True rcParams['ps.usedistiller'] = None figure(figsize=(6,3)) plot([1,2,3,4]) savefig('tex_nodist_ps.ps', orientation='portrait', papertype='letter') savefig('tex_nodist_ls.ps', orientation='landscape', papertype='letter') savefig('tex_nodist_ps.eps', orientation='portrait') savefig('tex_nodist_ls.eps', orientation='landscape') rcParams['text.usetex'] = True rcParams['ps.usedistiller'] = 'ghostscript' figure(figsize=(6,3)) plot([1,2,3,4]) savefig('tex_gs_ps.ps', orientation='portrait', papertype='letter') savefig('tex_gs_ls.ps', orientation='landscape', papertype='letter') savefig('tex_gs_ps.eps', orientation='portrait') savefig('tex_gs_ls.eps', orientation='landscape') rcParams['text.usetex'] = True rcParams['ps.usedistiller'] = 'xpdf' figure(figsize=(6,3)) plot([1,2,3,4]) savefig('tex_xpdf_ps.ps', orientation='portrait', papertype='letter') savefig('tex_xpdf_ls.ps', orientation='landscape', papertype='letter') savefig('tex_xpdf_ps.eps', orientation='portrait') savefig('tex_xpdf_ls.eps', orientation='landscape') print 'ok'