Changeset 1249 in lmdz_wrf for trunk/tools/drawing_tools.py


Ignore:
Timestamp:
Oct 31, 2016, 9:10:44 PM (8 years ago)
Author:
lfita
Message:

Fixing minor issues on `draw_topo_geogrid'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/drawing_tools.py

    r1241 r1249  
    37173717                lat2 = (lonlatLims[1] + lonlatLims[3])/2.
    37183718        else:
    3719             nlon = lon0[0,0]
    3720             xlon = lon0[dy-1,dx-1]
    3721             nlat = lat0[0,0]
    3722             xlat = lat0[dy-1,dx-1]
     3719            nlon = np.min(lon0)
     3720            xlon = np.max(lon0)
     3721            nlat = np.min(lat0)
     3722            xlat = np.max(lat0)
    37233723            lon2 = lon0[dy/2,dx/2]
    37243724            lat2 = lat0[dy/2,dx/2]
     
    37713771
    37723772    figname = 'domain'
    3773     graphtit = gtit.replace('_','\_')
     3773    graphtit = gen.latex_text(gtit)
    37743774    cbar.set_label('height ($m$)')
    37753775
    3776     plt.title(graphtit.replace('_','\_').replace('&','\&'))
     3776    plt.title(graphtit)
    37773777   
    37783778    output_kind(kfig, figname, closeif)
Note: See TracChangeset for help on using the changeset viewer.