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 call show() at least once, or else the figure 
will never appear. I don't want my program to create a figure until I 
absolutely have to, but I want to avoid non-termination and force-termination 
as well. Is there a way to do that?

~Rachel


----- Original Message -----
From: "Ryan May" <rma...@gmail.com>
To: "Gökhan Sever" <gokhanse...@gmail.com>
Cc: "Rachel-Mikel_ArceJaeger" <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, 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
>> ax.xaxis.set_ticks_position('top')
>> plt.show()
>
> This is easier :)
>
> Could you get this one working ?
>
> ax.xaxis.set_ticks_position('both')
>
> It doesn't have an effect here on Qt4Agg using svn copy of matplotlib.

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?

Ryan

-- 
Ryan May
Graduate Research Assistant
School of Meteorology
University of Oklahoma

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to