Re: [Matplotlib-users] hexbin extent Attribute Error

2009-06-25 Thread Alexandar Hansen
Does this code work for anyone else? import numpy as np import matplotlib.cm as cm import matplotlib.pyplot as plt n = 10 x = np.random.standard_normal(n) y = 2.0 + 3.0 * x + 4.0 * np.random.standard_normal(n) xmin = x.min() xmax = x.max() ymin = y.min() ymax = y.max() plt.hexbin(x,y, cmap

Re: [Matplotlib-users] hexbin extent Attribute Error

2009-06-18 Thread Alexandar Hansen
Ok, fair enough. Let's use that: -- import numpy as np import matplotlib.cm as cm import matplotlib.pyplot as plt n = 10 x = np.random.standard_normal(n) y = 2.0 + 3.0 * x + 4.0 * np.random.standard_normal(n) xmin = x.min() xmax = x.max() ymin = y.min() ymax = y.max() plt.he

Re: [Matplotlib-users] hexbin extent Attribute Error

2009-06-17 Thread John Hunter
On Wed, Jun 17, 2009 at 5:31 PM, Alexandar Hansen wrote: > Hello, > > I've been having fun using hexbin, but I'd like to have consistent bin sizes > and plot ranges for different sets of data. What I'm finding is that the bin > sizes are primarily determined by the input data mins and maxes. For >