Re: [Matplotlib-users] Shifting the Origin

2010-03-30 Thread Ryan May
(Putting back on list) On Tue, Mar 30, 2010 at 5:06 PM, Rachel-Mikel Arce Jaeger wrote: > I see. I think utilizing the backend will be sufficient for now. One more > question (and thank you so much for your help!). Switching the xaxis to the > top crushes it into the title, but adding more line

Re: [Matplotlib-users] Shifting the Origin

2010-03-30 Thread Gökhan Sever
On Tue, Mar 30, 2010 at 3:17 PM, Ryan May wrote: > > According to the docstring, it only puts ticks in both locations, not > labels, which is what I'm seeing here on SVN with the PyGTK backend. > > Are you seeing something different? > > Yes, same here. It is just a bit unexpected ax.xaxis.set_

Re: [Matplotlib-users] Shifting the Origin

2010-03-30 Thread Ryan May
On Tue, Mar 30, 2010 at 3:51 PM, Rachel-Mikel Arce Jaeger wrote: > Ryan's code works great - thanks! > > The only problem I have is that show() never terminates? If I force terminate > it and close the figure, then all I ever have to do is call draw() and the > figure reappears, but I have to ca

Re: [Matplotlib-users] Shifting the Origin

2010-03-30 Thread Rachel-Mikel Arce Jaeger
Jaeger" , "matplotlib-users" Sent: Tuesday, March 30, 2010 1:17:34 PM GMT -08:00 US/Canada Pacific Subject: Re: [Matplotlib-users] Shifting the Origin On Tue, Mar 30, 2010 at 2:10 PM, Gökhan Sever wrote: > On Tue, Mar 30, 2010 at 2:37 PM, Ryan May wrote: >> You're look

Re: [Matplotlib-users] Shifting the Origin

2010-03-30 Thread Ryan May
On Tue, Mar 30, 2010 at 2:10 PM, Gökhan Sever wrote: > On Tue, Mar 30, 2010 at 2:37 PM, Ryan May wrote: >> You're looking for the set_ticks_position method on the xaxis (I've >> also tweaked setting the limits): >> >> plt.plot(xcoords, ycoords, 'ro') >> plt.xlim(0, maxX) >> plt.ylim(maxY, 0) >> a

Re: [Matplotlib-users] Shifting the Origin

2010-03-30 Thread Gökhan Sever
On Tue, Mar 30, 2010 at 2:37 PM, Ryan May wrote: > You're looking for the set_ticks_position method on the xaxis (I've > also tweaked setting the limits): > > plt.plot(xcoords, ycoords, 'ro') > plt.xlim(0, maxX) > plt.ylim(maxY, 0) > ax = plt.gca() # Get current axes object > ax.xaxis.set_ticks_p

Re: [Matplotlib-users] Shifting the Origin

2010-03-30 Thread Ryan May
2010/3/29 Rachel-Mikel_ArceJaeger : > Hello, > > This is my first time trying out this list, so please forgive me if I've > doing this wrong. > > I'm trying to create a plot that has its origin in the upper-left hand > corner, rather than the lower-left hand corner. I've discovered that I get >

Re: [Matplotlib-users] Shifting the Origin

2010-03-30 Thread Gökhan Sever
On Mon, Mar 29, 2010 at 10:20 PM, wrote: > Hello, > > This is my first time trying out this list, so please forgive me if I've > doing this wrong. > > I'm trying to create a plot that has its origin in the upper-left hand > corner, rather than the lower-left hand corner. I've discovered that I ge

[Matplotlib-users] Shifting the Origin

2010-03-30 Thread Rachel-Mikel_ArceJaeger
Hello, This is my first time trying out this list, so please forgive me if I've doing this wrong. I'm trying to create a plot that has its origin in the upper-left hand corner, rather than the lower-left hand corner. I've discovered that I get the same effect if I do: plt.plot( xcoords, ycoor