Changeset 1470 in lmdz_wrf for trunk


Ignore:
Timestamp:
Mar 21, 2017, 11:59:48 PM (8 years ago)
Author:
lfita
Message:

Fixing 'plot_vertical_lev'

Location:
trunk/tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/drawing.py

    r1468 r1470  
    9393# draw_vals_trajectories: Function to draw values from the outputs from 'compute_tevolboxtraj'
    9494# draw_vectors: Function to plot wind vectors
    95 # movievalslice: Function to provide variable slice according to a geneation of a movie
     95# movievalslice: Function to prode variable slice according to a geneation of a movie
    9696# variable_values: Function to give back values for a given variable
    9797# draw_river_desc: Function to plot rivers' description from ORCHIDEE's routing scheme
  • trunk/tools/drawing_tools.py

    r1468 r1470  
    77227722    plt.xlim(0,Nlev)
    77237723 
    7724     print 'vertz:', vertz
    7725 
    77267724    l1 = ax1.plot(range(Nlev), vertz, 'r-x', label='height')
    77277725    l2 = ax2.plot(range(1,Nlev), dvertz, 'b-x', label='dheight')
    77287726
     7727    listz = np.where(vertz == 0., 10000., vertz)
     7728
    77297729#    ax1.set_xlabel('level (\#)')
    77307730    ax1.set_ylabel('height ($m$)', color='r')
    7731     print np.max([0.,np.min(vertz)])
    7732     ax1.set_ylim(np.min([1., np.max([0.,np.min(vertz)]) ]),np.max(vertz))
     7731    ax1.set_ylim(np.min([1., np.max([0.,np.min(listz)]) ]), np.max(vertz))
    77337732    ax1.grid()
    77347733    ax2.set_ylabel('difference between levels ($m$)', color='b')
Note: See TracChangeset for help on using the changeset viewer.