- Timestamp:
- Mar 30, 2015, 5:32:45 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/drawing_tools.py
r383 r385 2307 2307 plt.xlabel(ttit) 2308 2308 plt.ylabel(vtit + " (" + vunits + ")") 2309 plt.title(tit) 2309 plt.title(tit).replace('_','\_').replace('&','\&') 2310 2310 2311 2311 figname = hfileout + '_' + vtit … … 2428 2428 2429 2429 figname = ifile.replace('.','_') + '_' + vtit 2430 graphtit = vtit.replace('_','\_') 2430 graphtit = vtit.replace('_','\_').replace('&','\&') 2431 2431 2432 2432 plt.title(graphtit) … … 2571 2571 2572 2572 figname = ifile.replace('.','_') + '_' + vtit 2573 graphtit = vtit.replace('_','\_') 2573 graphtit = vtit.replace('_','\_').replace('&','\&') 2574 2574 2575 2575 if zvalue != 'null': … … 2692 2692 2693 2693 figname = ifile.replace('.','_') + '_' + vtit 2694 graphtit = vtit.replace('_','\_') 2694 graphtit = vtit.replace('_','\_').replace('&','\&') 2695 2695 2696 2696 plt.title(graphtit) … … 2858 2858 linewidth=3, label= obsname) 2859 2859 2860 plt.title(graphtit) 2860 plt.title(graphtit).replace('_','\_').replace('&','\&') 2861 2861 plt.legend() 2862 2862 … … 2994 2994 cbar.set_label('height ($m$)') 2995 2995 2996 plt.title(graphtit) 2996 plt.title(graphtit).replace('_','\_').replace('&','\&') 2997 2997 2998 2998 output_kind(kfig, figname, closeif) … … 3137 3137 3138 3138 figname = 'domain_boxes' 3139 graphtit = gtit.replace('_','\_') 3139 graphtit = gtit.replace('_','\_').replace('&','\&') 3140 3140 cbar.set_label('height ($m$)') 3141 3141 … … 3825 3825 y[i,:] = dimyv 3826 3826 3827 #plt.rc('text', usetex=True)3827 plt.rc('text', usetex=True) 3828 3828 3829 3829 plt.pcolormesh(x, y, varsv, cmap=plt.get_cmap(colorbar), vmin=vs[0], vmax=vs[1]) … … 4845 4845 4846 4846 figname = 'lines' 4847 graphtit = gtit 4847 graphtit = gtit.replace('_','\_').replace('&','\&') 4848 4848 4849 4849 plt.title(graphtit) … … 4920 4920 4921 4921 figname = 'lines_time' 4922 graphtit = gtit 4922 graphtit = gtit.replace('_','\_').replace('&','\&') 4923 4923 4924 4924 plt.title(graphtit)
Note: See TracChangeset
for help on using the changeset viewer.