Permalink
Browse files

Added scale_gradient function

  • Loading branch information...
1 parent 713ae3e commit c3a523125499c7d2a4c877c5300d04fd0c847034 @orbitfold committed Jul 23, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 pandas/tools/rplot.py
View
@@ -128,9 +128,11 @@ def render(self, ax):
y = row[self.aesthetics['y']]
size_scaler = self.aesthetics['size']
colour_scaler = self.aesthetics['colour']
+ alpha = self.aesthetics['alpha']
ax.scatter(x, y,
s=size_scaler(self.data, index),
- c=colour_scaler(self.data, index))
+ c=colour_scaler(self.data, index),
+ alpha=alpha)
ax.set_xlabel(self.aesthetics['x'])
ax.set_ylabel(self.aesthetics['y'])

0 comments on commit c3a5231

Please sign in to comment.