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


Ignore:
Timestamp:
Oct 17, 2016, 4:45:30 PM (8 years ago)
Author:
lfita
Message:

Fixing some errors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/drawing_tools.py

    r1189 r1190  
    1  -*- coding: iso-8859-15 -*-
     1# -*- coding: iso-8859-15 -*-
    22#import pylab as plt
    33# From http://stackoverflow.com/questions/13336823/matplotlib-python-error
     
    27312731    rangegrph = np.zeros((2), dtype=np.float)
    27322732# Changing limits of the colors
    2733     if vrng[0][0:1] == 'S':
     2733    if type(vrng[0]) == type('S') and vrng[0][0:1] == 'S':
    27342734        if vrng[0] == 'Srange':
    27352735            rangegrph[0] = np.min(varsV)
     
    42044204        parallels = pretty_int(nlat,xlat,yaxv[2])
    42054205        m.drawparallels(parallels,labels=[False,True,True,False])
     4206
     4207        print fname + '; Lluis nlat:', nlat, 'xlat:', xlat, 'Ny-axis:',yaxv[2]
     4208        print fname + '; Lluis meridians:', meridians, 'parallels:', parallels
    42064209
    42074210        plt.xlabel('W-E')
Note: See TracChangeset for help on using the changeset viewer.