Changeset 681 in lmdz_wrf


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

Adding flexible fontsize in legend for `plot_time_lines'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/drawing_tools.py

    r680 r681  
    1616fillValue = 1.e20
    1717fillValueF = 1.e20
     18
     19pointkindsauto = ['.', ',', 'x', '+', '*', '|', '_', 'o', '<', '>', 'v', '^',       \
     20  's', 'p', 'h' ,'D']
    1821
    1922####### Funtions
     
    24912494    Nlines = len(valtimes)
    24922495# Canging line kinds every 7 lines (end of standard colors)
    2493     pointkindsauto=['.', ',', 'x', 'o', '*', '+', '<', '|', '_', '>', '1', '8', 's', \
    2494       'p', 'h', 'D']
    24952496    Npts = len(pointkindsauto)
    24962497    linekinds = []
     
    54355436    linekinds = []
    54365437    pointkinds = []
    5437     pointkindsauto=['.', ',', 'x', 'o', '*', '+', '<', '|', '_', '>', '1', '8', 's', \
    5438       'p', 'h', 'D']
    54395438    Nkpts = len(pointkindsauto)
    54405439    if ptl is None:
     
    55525551
    55535552    plt.title(graphtit)
     5553    print plt.legend.__doc__
    55545554    if linesn0 is not None:
    5555         plt.legend(loc=gloc)
     5555        if Ntraj < 10:
     5556            plt.legend(loc=gloc)
     5557        elif 10 < Ntraj < 20:
     5558            plt.legend(loc=gloc, prop={'size':10})
     5559        else:
     5560            plt.legend(loc=gloc, prop={'size':8})
    55565561
    55575562    print plt.xlim(),':', plt.ylim()
Note: See TracChangeset for help on using the changeset viewer.