Changeset 2594 in lmdz_wrf
- Timestamp:
- Jun 4, 2019, 3:40:07 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/drawing_tools.py
r2593 r2594 124 124 (0.25, 0.25, 0., 1.), (0.25, 0., 0.25, 1.), (0., 0.25, 0.25, 1.)] 125 125 pointkindsauto = ['.', 'x', '+', '*', '|', '_', '1', '2', '3', '4', 'o', '<', '>', \ 126 'v', '^', 's', 'D', 'p' ,'h' ,'H' ]126 'v', '^', 's', 'D', 'p' ,'h' ,'H', '8', 'd', 'P', 'X' ] + range(11) 127 127 128 128 linekindsauto = ['-', '--', '-.', ':'] … … 2789 2789 2790 2790 2791 return colorv 2791 return colorvc 2792 2792 2793 2793 def output_kind(kindf, namef, close): … … 2824 2824 if close: print "Successfully generation of figure '" + namef + ".pdf' !!!" 2825 2825 elif kindf == 'png': 2826 plt.savefig(namef + ".pdf") 2827 sub.call('convert -trim -density 300 ' + namef + '.pdf -quality 90 '+ \ 2828 namef+'.png', shell=True) 2829 sub.call('rm ' + namef + '.pdf', shell=True) 2826 plt.savefig(namef + ".png") 2827 # plt.savefig(namef + ".pdf") 2828 # sub.call('convert -trim -density 300 ' + namef + '.pdf -quality 90 '+ \ 2829 # namef+'.png', shell=True) 2830 # sub.call('rm ' + namef + '.pdf', shell=True) 2830 2831 if close: print "Successfully generation of figure '" + namef + ".png' !!!" 2831 2832 elif kindf == 'ps':
Note: See TracChangeset
for help on using the changeset viewer.