Neal Becker wrote:

> I have a semilog plot.  I'd like to add a second x axis (maybe below the
> existing one, or else maybe on top of graph).  This second x axis is simply
> describing the same existing data, in different units.
> 
> For example imagine a plot of
> 
> x - time in seconds
> y - velocity
> 
> x2 - time in minutes
> 
> 

This almost works:
    fig = plt.figure() 
    ax = fig.add_subplot(111) 
...
    ax2 = ax.twiny()
    min_x, max_x = ax.get_xlim()
    ax2.set_xlim (min_x-1, max_x-1)

except the 2nd x axis is on the top, and prints right on top of the title


------------------------------------------------------------------------------
Why Cloud-Based Security and Archiving Make Sense
Osterman Research conducted this study that outlines how and why cloud
computing security and archiving is rapidly being adopted across the IT 
space for its ease of implementation, lower cost, and increased 
reliability. Learn more. http://www.accelacomm.com/jaw/sfnl/114/51425301/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to