Changeset 1152 in lmdz_wrf


Ignore:
Timestamp:
Oct 6, 2016, 6:42:50 PM (9 years ago)
Author:
lfita
Message:

Adding the use of `latex_text' in 'plot_lines'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/drawing_tools.py

    r1147 r1152  
    57855785        if maxd > ymax: ymax = maxd
    57865786
    5787     print 'x:',xmin,',',xmax,'y:',ymin,ymax
    5788 
    57895787    plt.rc('text', usetex=True)
    57905788
     
    57945792              linewidth=lws[il], markersize=pss[il], label= linesn[il], color=cols[il])
    57955793
    5796         plt.xlabel(vtit + ' (' + vunit + ')')
     5794        plt.xlabel(gen.latex_text(vtit) + ' (' + units_lunits(vunit) + ')')
    57975795        plt.ylabel(dtit)
    57985796        plt.xlim(xmin,xmax)
     
    58055803
    58065804        plt.xlabel(dtit)
    5807         plt.ylabel(vtit + ' (' + vunit + ')')
     5805        plt.ylabel(gen.latex_text(vtit) + ' (' + units_lunits(vunit) + ')')
    58085806       
    58095807        plt.xlim(ymin,ymax)
    58105808        plt.ylim(xmin,xmax)
    58115809
    5812     graphtit = gtit.replace('_','\_').replace('&','\&')
     5810    graphtit = gen.latex_text(gtit)
    58135811
    58145812    plt.title(graphtit)
Note: See TracChangeset for help on using the changeset viewer.