I am trying to make a 2D density plot (from some simulation data) with matplotlib. My x and y data are defined as the log10 of some quantities. How can I get logarithmic axes (with log minor ticks)?
Here is an exemple of my code: import numpy as np import matplotlib.pyplot as plt Data = np.genfromtxt("data") # A 2-column data file x = np.log10(Data[:,0]) y = np.log10(Data[:,1]) xmin = x.min() xmax = x.max() ymin = y.min() ymax = y.max() fig = plt.figure() ax = fig.add_subplot(111) hist = ax.hexbin(x,y,bins='log', gridsize=(30,30), cmap=cm.Reds) ax.axis([xmin, xmax, ymin, ymax]) plt.savefig('plot.pdf') ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2dcopy2 _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users