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,

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()

[Matplotlib-users] hexbin extent Attribute Error

2009-06-17 Thread Alexandar Hansen
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 instance, I'm plotting data with something like: # import

Re: [Matplotlib-users] hexbin extent Attribute Error

2009-06-17 Thread John Hunter
On Wed, Jun 17, 2009 at 5:31 PM, Alexandar Hansenviochem...@gmail.com 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