NCCOOS Trac Projects: Top | Web | Platforms | Processing | Viz | Sprints | Sandbox | (Wind)

Changeset 76

Show
Ignore:
Timestamp:
02/04/11 15:21:00
Author:
cbc
Message:

Add percent sign to yticklabels in winddist.py

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • sodarplot/trunk/sodarplot/scintec/winddist.py

    r75 r76  
    132132            fig.add_axes(ax) 
    133133            ax.bar(theta[x], rho[x], bins = np.arange(0.0,20.0,2.5), normed=True, opening=0.8, edgecolor='white') 
     134            yticklabels = ['',] + \ 
     135                          [plt.getp(textobj,'text')+"%" 
     136                               for textobj in plt.getp(ax,'yticklabels')[1:]] 
     137            plt.setp(ax,yticklabels=yticklabels) 
    134138            l = ax.legend(axespad=-0.20,title="Magnitude (m/s)") 
    135139            plt.setp(l.get_texts(), fontsize=8)