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
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
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
>
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 matplotl