Matthias Michler wrote:
> 
> 
> #########################
> import numpy as np
> import matplotlib.pyplot as plt
> 
> # generate some data on log-scale
> x = 10**np.random.uniform(size=1000)
> # histogram with log-bining
> plt.hist(x, bins=10**np.linspace(0, 1, 10))
> plt.xscale('log')
> plt.show()
> ##############################
> 
> 

Hi Matthias,

This is exactly what I need - I did not know about the xscale function.

Thanks!

Tom

-- 
View this message in context: 
http://www.nabble.com/Histogram-with-logarithmic-x-axis-tp24796094p24831570.html
Sent from the matplotlib - users mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to