Changeset 2323 in lmdz_wrf
- Timestamp:
- Feb 6, 2019, 9:37:53 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/drawing_tools.py
r2321 r2323 3078 3078 return axisv, newaxist, newaxisL 3079 3079 3080 def figureMap_size(lonlatb, figwidth=8, Ncol=1, Nrow=1, dpi=100)3080 def figureMap_size(lonlatb, figwidth=8, Ncol=1, Nrow=1, titpercen=1.1, dpi=100): 3081 3081 """ Function to determine the real size of a figure adjusted to the ratio of the 3082 3082 maps … … 3086 3086 [Ncol]: Number of columns of panels 3087 3087 [Nrow]: Number of rows of panels 3088 [titpercen]: percentage of ewxtra space for the superior title 3088 3089 [dpi]: density of pixels by inch 3089 3090 * To be used as … … 3092 3093 fname = 'figureMap_size' 3093 3094 3094 fwidth = zonev[3]-zonev[1]3095 fheight = zonev[4]-zonev[2]3095 fwidth = lonlatb[2]-lonlatb[0] 3096 fheight = lonlatb[3]-lonlatb[1] 3096 3097 3097 3098 figwidth = 8. 3098 figheight = figwidth* 1.1*Nrow*fheight/(Ncol*fwidth)3099 figheight = figwidth*titpercen*Nrow*fheight/(Ncol*fwidth) 3099 3100 figsizev = (figwidth, figheight) 3100 3101 3101 3102 # Height of a line of text as fraction of the figure height 3102 txtlineh = 16./(figheight* fig.dpi)3103 txtlineh = 16./(figheight*dpi) 3103 3104 3104 3105 return figsizev, txtlineh
Note: See TracChangeset
for help on using the changeset viewer.