From: <ef...@us...> - 2008-06-20 07:03:26
|
Revision: 5606 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5606&view=rev Author: efiring Date: 2008-06-20 00:03:22 -0700 (Fri, 20 Jun 2008) Log Message: ----------- Use relative font sizes by default so they will scale with font.size Modified Paths: -------------- trunk/matplotlib/CHANGELOG trunk/matplotlib/lib/matplotlib/rcsetup.py trunk/matplotlib/matplotlibrc.template Modified: trunk/matplotlib/CHANGELOG =================================================================== --- trunk/matplotlib/CHANGELOG 2008-06-20 05:23:08 UTC (rev 5605) +++ trunk/matplotlib/CHANGELOG 2008-06-20 07:03:22 UTC (rev 5606) @@ -1,3 +1,8 @@ +2008-06-19 Use relative font sizes (e.g. 'medium' and 'large') in + rcsetup.py and matplotlibrc.template so that text will + be scaled by default when changing rcParams['font.size'] - + EF + 2008-06-17 Add a generic PatchCollection class that can contain any kind of patch. - MGD @@ -24,7 +29,7 @@ sets '_nolegend_' for the other patch labels. This lets autolegend work as expected for hist and bar - see https://sourceforge.net/tracker/index.php?func=detail&aid=1986597&group_id=80706&atid=560720 - JDH + JDH 2008-06-10 Fix text baseline alignment bug. [ 1985420 ] Repair of baseline alignment in Text._get_layout. Thanks Stan West - Modified: trunk/matplotlib/lib/matplotlib/rcsetup.py =================================================================== --- trunk/matplotlib/lib/matplotlib/rcsetup.py 2008-06-20 05:23:08 UTC (rev 5605) +++ trunk/matplotlib/lib/matplotlib/rcsetup.py 2008-06-20 07:03:22 UTC (rev 5606) @@ -394,9 +394,9 @@ 'axes.facecolor' : ['w', validate_color], # background color; white 'axes.edgecolor' : ['k', validate_color], # edge color; black 'axes.linewidth' : [1.0, validate_float], # edge linewidth - 'axes.titlesize' : [14, validate_fontsize], # fontsize of the axes title + 'axes.titlesize' : ['large', validate_fontsize], # fontsize of the axes title 'axes.grid' : [False, validate_bool], # display grid or not - 'axes.labelsize' : [12, validate_fontsize], # fontsize of the x any y labels + 'axes.labelsize' : ['medium', validate_fontsize], # fontsize of the x any y labels 'axes.labelcolor' : ['k', validate_color], # color of axis label 'axes.formatter.limits' : [[-7, 7], validate_nseq_int(2)], # use scientific notation if log10 @@ -409,7 +409,7 @@ 'legend.loc' : ['upper right',validate_legend_loc], # at some point, this should be changed to 'best' 'legend.isaxes' : [True,validate_bool], # this option is internally ignored - it never served any useful purpose 'legend.numpoints' : [2, validate_int], # the number of points in the legend line - 'legend.fontsize' : [14, validate_fontsize], + 'legend.fontsize' : ['large', validate_fontsize], 'legend.pad' : [0.2, validate_float], # the fractional whitespace inside the legend border 'legend.markerscale' : [1.0, validate_float], # the relative size of legend markers vs. original @@ -427,7 +427,7 @@ 'xtick.major.pad' : [4, validate_float], # distance to label in points 'xtick.minor.pad' : [4, validate_float], # distance to label in points 'xtick.color' : ['k', validate_color], # color of the xtick labels - 'xtick.labelsize' : [12, validate_fontsize], # fontsize of the xtick labels + 'xtick.labelsize' : ['medium', validate_fontsize], # fontsize of the xtick labels 'xtick.direction' : ['in', str], # direction of xticks 'ytick.major.size' : [4, validate_float], # major ytick size in points @@ -435,7 +435,7 @@ 'ytick.major.pad' : [4, validate_float], # distance to label in points 'ytick.minor.pad' : [4, validate_float], # distance to label in points 'ytick.color' : ['k', validate_color], # color of the ytick labels - 'ytick.labelsize' : [12, validate_fontsize], # fontsize of the ytick labels + 'ytick.labelsize' : ['medium', validate_fontsize], # fontsize of the ytick labels 'ytick.direction' : ['in', str], # direction of yticks 'grid.color' : ['k', validate_color], # grid color Modified: trunk/matplotlib/matplotlibrc.template =================================================================== --- trunk/matplotlib/matplotlibrc.template 2008-06-20 05:23:08 UTC (rev 5605) +++ trunk/matplotlib/matplotlibrc.template 2008-06-20 07:03:22 UTC (rev 5606) @@ -185,8 +185,8 @@ #axes.edgecolor : black # axes edge color #axes.linewidth : 1.0 # edge linewidth #axes.grid : False # display grid or not -#axes.titlesize : 14 # fontsize of the axes title -#axes.labelsize : 12 # fontsize of the x any y labels +#axes.titlesize : large # fontsize of the axes title +#axes.labelsize : medium # fontsize of the x any y labels #axes.labelcolor : black #axes.axisbelow : False # whether axis gridlines and ticks are below # the axes elements (lines, text, etc) @@ -203,7 +203,7 @@ #xtick.major.pad : 4 # distance to major tick label in points #xtick.minor.pad : 4 # distance to the minor tick label in points #xtick.color : k # color of the tick labels -#xtick.labelsize : 12 # fontsize of the tick labels +#xtick.labelsize : medium # fontsize of the tick labels #xtick.direction : in # direction: in or out #ytick.major.size : 4 # major tick size in points @@ -211,7 +211,7 @@ #ytick.major.pad : 4 # distance to major tick label in points #ytick.minor.pad : 4 # distance to the minor tick label in points #ytick.color : k # color of the tick labels -#ytick.labelsize : 12 # fontsize of the tick labels +#ytick.labelsize : medium # fontsize of the tick labels #ytick.direction : in # direction: in or out @@ -223,7 +223,7 @@ ### Legend #legend.isaxes : True #legend.numpoints : 2 # the number of points in the legend line -#legend.fontsize : 14 +#legend.fontsize : large #legend.pad : 0.2 # the fractional whitespace inside the legend border #legend.markerscale : 1.0 # the relative size of legend markers vs. original # the following dimensions are in axes coords This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |