[Matplotlib-users] Pre-defined binning with hexbin ... impossible?

2009-06-30 Thread Alexandar Hansen
Hello, I've been struggling with this for a while now and have effectively two issues. One, how can I define the range over which hexbin ... bins? And two, how do I change the background color of a plot? The latter I thought would be trivial, but nothing I've tried has worked. Let's take the

Re: [Matplotlib-users] hexbin extent Attribute Error

2009-06-25 Thread Alexandar Hansen
(kwargs) File /usr/lib64/python2.5/site-packages/matplotlib/artist.py, line 548, in update raise AttributeError('Unknown property %s'%k) AttributeError: Unknown property extent Best, Alex On Thu, Jun 18, 2009 at 11:27 AM, Alexandar Hansen viochem...@gmail.comwrote: Ok, fair enough. Let's

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