Make grid accept alpha rcParam #1114

Merged
merged 2 commits into from Aug 23, 2012
Jump to file or symbol
Failed to load files and symbols.
+4 −0
Split
View
@@ -412,6 +412,7 @@ def _get_gridline(self):
color=rcParams['grid.color'],
linestyle=rcParams['grid.linestyle'],
linewidth=rcParams['grid.linewidth'],
+ alpha=rcParams['grid.alpha'],
)
l.set_transform(self.axes.get_xaxis_transform(which='grid'))
l.get_path()._interpolation_steps = GRIDLINE_INTERPOLATION_STEPS
@@ -550,6 +551,7 @@ def _get_gridline(self):
color=rcParams['grid.color'],
linestyle=rcParams['grid.linestyle'],
linewidth=rcParams['grid.linewidth'],
+ alpha=rcParams['grid.alpha'],
)
l.set_transform(self.axes.get_yaxis_transform(which='grid'))
@@ -539,6 +539,7 @@ def __call__(self, s):
'grid.color' : ['k', validate_color], # grid color
'grid.linestyle' : [':', str], # dotted
'grid.linewidth' : [0.5, validate_float], # in points
+ 'grid.alpha' : [1.0, validate_float],
# figure props
View
@@ -271,6 +271,7 @@ text.hinting_factor : 8 # Specifies the amount of softness for hinting in the
#grid.color : black # grid color
#grid.linestyle : : # dotted
#grid.linewidth : 0.5 # in points
+#grid.alpha : 1.0 # transparency, between 0.0 and 1.0
### Legend
#legend.fancybox : False # if True, use a rounded box for the