[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,

Re: [Matplotlib-users] Shifting the Origin

2010-03-30 Thread Gökhan Sever
On Mon, Mar 29, 2010 at 10:20 PM, rachel-mikel_arcejae...@hmc.edu 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.

Re: [Matplotlib-users] Shifting the Origin

2010-03-30 Thread Ryan May
2010/3/29 Rachel-Mikel_ArceJaeger rachel-mikel_arcejae...@hmc.edu: 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

Re: [Matplotlib-users] Shifting the Origin

2010-03-30 Thread Gökhan Sever
On Tue, Mar 30, 2010 at 2:37 PM, Ryan May rma...@gmail.com 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

Re: [Matplotlib-users] Shifting the Origin

2010-03-30 Thread Ryan May
On Tue, Mar 30, 2010 at 2:10 PM, Gökhan Sever gokhanse...@gmail.com wrote: On Tue, Mar 30, 2010 at 2:37 PM, Ryan May rma...@gmail.com 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,

Re: [Matplotlib-users] Shifting the Origin

2010-03-30 Thread Rachel-Mikel Arce Jaeger
rachel-mikel_arcejae...@hmc.edu, matplotlib-users matplotlib-users@lists.sourceforge.net 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 gokhanse...@gmail.com wrote: On Tue, Mar 30

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 rachel-mikel_arcejae...@hmc.edu 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

Re: [Matplotlib-users] Shifting the Origin

2010-03-30 Thread Gökhan Sever
On Tue, Mar 30, 2010 at 3:17 PM, Ryan May rma...@gmail.com 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

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 rachel-mikel_arcejae...@hmc.edu 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