Changeset 1252 in lmdz_wrf for trunk


Ignore:
Timestamp:
Nov 1, 2016, 8:03:14 PM (8 years ago)
Author:
lfita
Message:

Updating `pointkindsauto'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/drawing_tools.py

    r1249 r1252  
    3030colorsauto = ['#FF0000', '#00FF00', '#0000FF', '#FF00FF', '#00FFFF', '#FFAA00',     \
    3131  '#AA0000', '#00AA00', '#0000AA', '#AA00AA', '#00AAAA', '#AA3200']
    32 pointkindsauto = ['.', ',', 'x', '+', '*', '|', '_', 'o', '<', '>', 'v', '^',       \
    33   's', 'D', 'p' ,'h' ,'H']
     32pointkindsauto = ['.', 'x', '+', '*', '|', '_', '1', '2', '3', '4', 'o', '<', '>',   \
     33  'v', '^', 's', 'D', 'p' ,'h' ,'H']
    3434linekindsauto = ['-', '--', '-.', ':']
    3535linewidthsauto = [1.]
     
    17121712            5: 'right', 6: 'center left', 7: 'center right', 8: 'lower center',
    17131713            9: 'upper center', 10: 'center'
    1714           [fontsize]: font size for the legend (auto for 12)
     1714          [fontsize]: font size for the legend ('auto' for 12)
    17151715      char= separation character
    17161716    """
     
    37813781
    37823782def plot_topo_geogrid_boxes(varv, boxesX, boxesY, boxlabels, olon, olat, mint, maxt, \
    3783   lonlatLims, gtit, kfig, mapv, gloc, closeif):
     3783  lonlatLims, gtit, kfig, mapv, gloc, gsiz, closeif):
    37843784    """ plotting geo_em.d[nn].nc topography from WPS files
    37853785    plot_topo_geogrid(domf, mint, maxt, gtit, kfig, mapv)
     
    38073807        5: 'right', 6: 'center left', 7: 'center right', 8: 'lower center',
    38083808        9: 'upper center', 10: 'center'
     3809      gsiz= fontsize of the legend
    38093810      closeif= Boolean value if the figure has to be closed
    38103811    """
     
    39023903        for ibox in range(Nboxes):
    39033904            plt.plot(boxesX[ibox*4], boxesY[ibox*4], linestyle='-', linewidth=3,     \
    3904               label=boxlabels[ibox], color=cols[ibox])
     3905              label=gen.latex_text(boxlabels[ibox].replace('!',' ')), color=cols[ibox])
    39053906            plt.plot(boxesX[ibox*4+1], boxesY[ibox*4+1], linestyle='-', linewidth=3, \
    39063907              color=cols[ibox])
     
    39263927
    39273928    figname = 'domain_boxes'
    3928     graphtit = gtit.replace('_','\_').replace('&','\&')
     3929    graphtit = gen.latex_text(gtit)
    39293930    cbar.set_label('height ($m$)')
    39303931
    39313932    plt.title(graphtit)
    3932     plt.legend(loc=gloc)
     3933    plt.legend(loc=gloc, prop={'size':gsiz})
    39333934   
    39343935    output_kind(kfig, figname, closeif)
Note: See TracChangeset for help on using the changeset viewer.