Changeset 683 in lmdz_wrf for trunk


Ignore:
Timestamp:
Jan 22, 2016, 6:36:56 PM (9 years ago)
Author:
lfita
Message:

Adding linestyles

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/drawing_tools.py

    r682 r683  
    1919pointkindsauto = ['.', ',', 'x', '+', '*', '|', '_', 'o', '<', '>', 'v', '^',       \
    2020  's', 'D', 'p' ,'h' ,'H']
     21linekindsauto = ['-', '--', '-.', ':']
    2122
    2223####### Funtions
     
    53995400
    54005401def plot_lines_time(vardv, varvv, vaxis, dtit, linesn0, vtit, vunit, tpos, tlabs,    \
    5401   gtit, gloc, kfig, coll, ptl, ptf):
     5402  gtit, gloc, kfig, lsl, coll, ptl, ptf):
    54025403    """ Function to plot a collection of lines with a time axis
    54035404      vardv= list of set of dimension values
     
    54165417        9: 'upper center', 10: 'center'
    54175418      kfig= kind of figure
    5418       coll= ',' list of colors for the lines or None for automatic
     5419      lsl= ',' list of line styles
    54195420      coll= ',' list of colors for the lines, None for automatic, single
    54205421          value all the same
     
    54365437    linekinds = []
    54375438    pointkinds = []
     5439    Nklns = len(linekindsauto)
    54385440    Nkpts = len(pointkindsauto)
    54395441    if ptl is None:
    54405442        if ptf is None:
    5441             for ptype in range(4):
     5443            for il in range(Nklns):
    54425444                for ip in range(Nkpts):
    5443                     linekinds.append(pointkindsauto[ptype] + '-')
     5445                    linekinds.append(pointkindsauto[ptype] + linekindsauto[il])
    54445446        else:
    5445             for ptype in range(4):
     5447            for ptype in range():
    54465448                for ip in range(Nkpts):
    54475449                    linekinds.append('-')
Note: See TracChangeset for help on using the changeset viewer.