Screenshot instructions:
Windows
Mac
Red Hat Linux
Ubuntu
Click URL instructions:
Rightclick on ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)
From: Matthew Czesarski <matthew.czesarski@gm...>  20070321 17:18:13
Attachments:
Message as HTML

Hi matplotlibusers! OK, yeah, I'm pretty new to matplotlib/pylab... I played with biggles for a short while but, all (more than 3) my pythonusing associates in the astronomical community we saying matplotlib was the way of the future... So I started with matplotlib. I would like to plot some points, y vs x on a graph. y containing simple values, x is an angle. plot(x, y)  that bit is fine, values as a function of angle. But what I need to do is then have an another labelling scheme on the upper x axes. This would be say, a distance, and so is simply a constant multiplied by the lower x. I figured there would be some way I could rescale the xaxis and write it at the top, but a way of accomplishing this I cannot find. I have been playing with twinx a bit but not getting very far. It's not that I want to plot 2 different datasets because the two are equivalent. Is it the nonexistnt twiny() I am looking for? Or is there simply a way to redraw axes over the current ones with a certain range, that leaves the range in the first plot untouched? I have messed with twinx a bit and some of the discussion in the archive for this list but I can't figure out how to do it... Hope that makes sense? Sorry my first post was a beg for help Matt 
From: Richard Albright <ralbright@in...>  20070321 20:42:33

use tick top: ax = twinx() ax.xaxis.tick_top() On Wed, 20070321 at 18:17 +0100, Matthew Czesarski wrote: > Hi matplotlibusers! > > OK, yeah, I'm pretty new to matplotlib/pylab... I played with biggles > for a short while but, all (more than 3) my pythonusing associates in > the astronomical community we saying matplotlib was the way of the > future... So I started with matplotlib. > > I would like to plot some points, y vs x on a graph. y containing > simple values, x is an angle. plot(x, y)  that bit is fine, values > as a function of angle. But what I need to do is then have an another > labelling scheme on the upper x axes. This would be say, a distance, > and so is simply a constant multiplied by the lower x. I figured there > would be some way I could rescale the xaxis and write it at the top, > but a way of accomplishing this I cannot find. > > I have been playing with twinx a bit but not getting very far. It's > not that I want to plot 2 different datasets because the two are > equivalent. Is it the nonexistnt twiny() I am looking for? Or is > there simply a way to redraw axes over the current ones with a certain > range, that leaves the range in the first plot untouched? I have > messed with twinx a bit and some of the discussion in the archive for > this list but I can't figure out how to do it... > > Hope that makes sense? Sorry my first post was a beg for help > Matt >  > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveysand earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ Matplotlibusers mailing list Matplotlibusers@... https://lists.sourceforge.net/lists/listinfo/matplotlibusers  Rick Albright Senior Quantitative Analyst Indie Research, LLC 254 Witherspoon Street Princeton, NJ 08542 (609)4971030 ralbright@... 
Sign up for the SourceForge newsletter:
No, thanks