Ignore:
Timestamp:
Apr 4, 2013, 1:52:51 AM (12 years ago)
Author:
aslmd
Message:

UTIL PYTHON planetoplot_v2. possibility to draw negative-like plots.

File:
1 edited

Legend:

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

    r923 r928  
    2525mpl.rcParams['font.family'] = "serif"
    2626mpl.rcParams['axes.color_cycle'] = "r,g,b,k"
    27 mpl.rcParams['contour.negative_linestyle'] = "dashed"
     27mpl.rcParams['contour.negative_linestyle'] = "dashed" # ou "solid"
    2828mpl.rcParams['verbose.level'] = "silent"
    2929mpl.rcParams['lines.linewidth'] = 1.5
     
    5151# (save figures)
    5252pad_inches_value=0.25
     53# (negative mode)
     54def_negative = False
     55def_negative = True
    5356###############################################
     57
     58### settings for 'negative-like' mode
     59if def_negative:
     60    mpl.rc('figure', facecolor='k', edgecolor='k')
     61    mpl.rcParams['text.color'] = 'w'
     62    mpl.rc('axes',labelcolor='w',facecolor='k',edgecolor='w')
     63    mpl.rcParams['xtick.color'] = 'w'
     64    mpl.rcParams['ytick.color'] = 'w'
     65    mpl.rcParams['grid.color'] = 'w'
     66    mpl.rc('savefig',facecolor='k',edgecolor='k')
    5467
    5568##########################
     
    319332    def make(self):
    320333        self.check()
     334        # labels, title, etc...
    321335        mpl.xlabel(self.xlabel)
    322336        mpl.ylabel(self.ylabel)
Note: See TracChangeset for help on using the changeset viewer.