- Timestamp:
- Mar 21, 2017, 11:59:48 PM (8 years ago)
- Location:
- trunk/tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/drawing.py
r1468 r1470 93 93 # draw_vals_trajectories: Function to draw values from the outputs from 'compute_tevolboxtraj' 94 94 # draw_vectors: Function to plot wind vectors 95 # movievalslice: Function to pro vide variable slice according to a geneation of a movie95 # movievalslice: Function to prode variable slice according to a geneation of a movie 96 96 # variable_values: Function to give back values for a given variable 97 97 # draw_river_desc: Function to plot rivers' description from ORCHIDEE's routing scheme -
trunk/tools/drawing_tools.py
r1468 r1470 7722 7722 plt.xlim(0,Nlev) 7723 7723 7724 print 'vertz:', vertz7725 7726 7724 l1 = ax1.plot(range(Nlev), vertz, 'r-x', label='height') 7727 7725 l2 = ax2.plot(range(1,Nlev), dvertz, 'b-x', label='dheight') 7728 7726 7727 listz = np.where(vertz == 0., 10000., vertz) 7728 7729 7729 # ax1.set_xlabel('level (\#)') 7730 7730 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)) 7733 7732 ax1.grid() 7734 7733 ax2.set_ylabel('difference between levels ($m$)', color='b')
Note: See TracChangeset
for help on using the changeset viewer.