Ignore:
Timestamp:
Jul 19, 2013, 10:35:53 AM (11 years ago)
Author:
aslmd
Message:

UTIL PYTHON. various updates on example + mcd + plot scripts. nothing major.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UTIL/PYTHON/planetoplot_v2/ppplot.py

    r1004 r1007  
    180180# useful functions #
    181181####################
     182
     183# continuity with matplotlib
     184def close():
     185    mpl.close()
     186
     187# a function for predefined figure sizes
     188def figuref(x=16,y=9):
     189    mpl.figure(figsize=(x,y))
    182190
    183191# a function to change color lines according to a color map (idea by A. Pottier)
     
    649657                objC = mpl.contour(x, y, what_I_contour, \
    650658                            zelevelsc, colors = ccol, linewidths = cline)
    651                 #mpl.clabel(objC, inline=1, fontsize=10)
     659                #mpl.clabel(objC, inline=1, fontsize="small",\
     660                #             inline_spacing=1,fmt="%.0f")
    652661            mpl.contourf(x, y, \
    653662                         self.field, \
    654663                         zelevels, cmap=palette)
     664            #mpl.pcolor(x,y,\
     665            #             self.field, \
     666            #             cmap=palette)
    655667            # make log axes and/or invert ordinate
    656668            ax = mpl.gca()
Note: See TracChangeset for help on using the changeset viewer.