- Timestamp:
- Nov 1, 2016, 8:03:14 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/drawing_tools.py
r1249 r1252 30 30 colorsauto = ['#FF0000', '#00FF00', '#0000FF', '#FF00FF', '#00FFFF', '#FFAA00', \ 31 31 '#AA0000', '#00AA00', '#0000AA', '#AA00AA', '#00AAAA', '#AA3200'] 32 pointkindsauto = ['.', ' ,', 'x', '+', '*', '|', '_', 'o', '<', '>', 'v', '^',\33 ' s', 'D', 'p' ,'h' ,'H']32 pointkindsauto = ['.', 'x', '+', '*', '|', '_', '1', '2', '3', '4', 'o', '<', '>', \ 33 'v', '^', 's', 'D', 'p' ,'h' ,'H'] 34 34 linekindsauto = ['-', '--', '-.', ':'] 35 35 linewidthsauto = [1.] … … 1712 1712 5: 'right', 6: 'center left', 7: 'center right', 8: 'lower center', 1713 1713 9: 'upper center', 10: 'center' 1714 [fontsize]: font size for the legend ( autofor 12)1714 [fontsize]: font size for the legend ('auto' for 12) 1715 1715 char= separation character 1716 1716 """ … … 3781 3781 3782 3782 def 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): 3784 3784 """ plotting geo_em.d[nn].nc topography from WPS files 3785 3785 plot_topo_geogrid(domf, mint, maxt, gtit, kfig, mapv) … … 3807 3807 5: 'right', 6: 'center left', 7: 'center right', 8: 'lower center', 3808 3808 9: 'upper center', 10: 'center' 3809 gsiz= fontsize of the legend 3809 3810 closeif= Boolean value if the figure has to be closed 3810 3811 """ … … 3902 3903 for ibox in range(Nboxes): 3903 3904 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]) 3905 3906 plt.plot(boxesX[ibox*4+1], boxesY[ibox*4+1], linestyle='-', linewidth=3, \ 3906 3907 color=cols[ibox]) … … 3926 3927 3927 3928 figname = 'domain_boxes' 3928 graphtit = g tit.replace('_','\_').replace('&','\&')3929 graphtit = gen.latex_text(gtit) 3929 3930 cbar.set_label('height ($m$)') 3930 3931 3931 3932 plt.title(graphtit) 3932 plt.legend(loc=gloc )3933 plt.legend(loc=gloc, prop={'size':gsiz}) 3933 3934 3934 3935 output_kind(kfig, figname, closeif)
Note: See TracChangeset
for help on using the changeset viewer.