Re: [Matplotlib-users] Two questions...

2009-09-27 Thread Jae-Joon Lee
I hope my answer in the other thread clears your problem. One note, I found that some grid lines are missing at first run. This can be fixed by using "host.xaxis.get_major_ticks()" instead of "host.xaxis.majorTicks" (same for yaxis). -JJ On Sun, Sep 27, 2009 at 2:22 AM, Gökhan Sever wrote: >

Re: [Matplotlib-users] Two questions...

2009-09-26 Thread Gökhan Sever
On Sat, Sep 26, 2009 at 11:14 PM, Jae-Joon Lee wrote: > On Sat, Sep 26, 2009 at 11:10 PM, Gökhan Sever > wrote: > > To run the code, you have to get nasafile.py and add this into your > > PYTHONPATH, later get dccn_plot.py and > > 09_03_26_11_36_15.dmtccnc.combined.raw file. nasafile.py has the

Re: [Matplotlib-users] Two questions...

2009-09-26 Thread Jae-Joon Lee
On Sat, Sep 26, 2009 at 11:10 PM, Gökhan Sever wrote: > To run the code, you have to get nasafile.py and add this into your > PYTHONPATH, later get dccn_plot.py and > 09_03_26_11_36_15.dmtccnc.combined.raw file. nasafile.py has the NasaFile > class to read this ascii file. > > run as ./dccn_plot.p

Re: [Matplotlib-users] Two questions...

2009-09-26 Thread Gökhan Sever
On Sat, Sep 26, 2009 at 9:58 PM, Jae-Joon Lee wrote: > As specified in the doc > > > http://matplotlib.sourceforge.net/api/axis_api.html?highlight=get_majorticklabels#matplotlib.axis.Axis.get_majorticklabels > > it returns a list of Text instances. You may use > > > http://matplotlib.sourceforge.

Re: [Matplotlib-users] Two questions...

2009-09-26 Thread Gökhan Sever
On Sat, Sep 26, 2009 at 9:50 PM, Jae-Joon Lee wrote: > On Fri, Sep 25, 2009 at 1:14 AM, Gökhan Sever > wrote: > > With twin and proper Affine2D transformation I could not make the > secondary > > y-axis data being shown on the figure. > > Please post a simple, complete code that does not work. >

Re: [Matplotlib-users] Two questions...

2009-09-26 Thread Jae-Joon Lee
As specified in the doc http://matplotlib.sourceforge.net/api/axis_api.html?highlight=get_majorticklabels#matplotlib.axis.Axis.get_majorticklabels it returns a list of Text instances. You may use http://matplotlib.sourceforge.net/api/artist_api.html#matplotlib.text.Text.get_text to retrieve the

Re: [Matplotlib-users] Two questions...

2009-09-26 Thread Jae-Joon Lee
On Fri, Sep 25, 2009 at 1:14 AM, Gökhan Sever wrote: > With twin and proper Affine2D transformation I could not make the secondary > y-axis data being shown on the figure. Please post a simple, complete code that does not work. Just saying "it didn't work" does not help. I think the following ch

Re: [Matplotlib-users] Two questions...

2009-09-26 Thread Gökhan Sever
First the first part, my understanding is if twiny() could accept tranforms this like twin() this issued might be resolved. When I use twin() and transforms with different scaled data sources, I can't get one of them being plotted correctly. Just FYI, Maybe someone can further look into this. Th

Re: [Matplotlib-users] Two questions...

2009-09-25 Thread Gökhan Sever
On Fri, Sep 25, 2009 at 6:52 AM, John Hunter wrote: > On Thu, Sep 24, 2009 at 3:29 PM, Gökhan Sever > wrote: > > Hello, > > > > One easy one harder two questions :) > > > > My screenshot http://img213.imageshack.us/img213/3443/snapshot5.png > > > > 1-) I want to link bottom and top x axes as wel

Re: [Matplotlib-users] Two questions...

2009-09-25 Thread John Hunter
On Thu, Sep 24, 2009 at 3:29 PM, Gökhan Sever wrote: > Hello, > > One easy one harder two questions :) > > My screenshot http://img213.imageshack.us/img213/3443/snapshot5.png > > 1-) I want to link bottom and top x axes as well as left and right y axes. > For now on the x-axis xticks are the time

Re: [Matplotlib-users] Two questions...

2009-09-24 Thread Gökhan Sever
Thanks Jae-Joon for your explanations. My second question has easily been solved after setting the label position. However, I am still stuck snapping the axis pairs. I have two different scaled data sources. First three data (dccnConc, dccnConAmb, and dccnConSTP are plotted on the main host y-axi

Re: [Matplotlib-users] Two questions...

2009-09-24 Thread Jae-Joon Lee
The example below will give you some idea where to start. It uses twin function in axes_grid toolkit. (also see http://matplotlib.sourceforge.net/examples/axes_grid/parasite_simple2.html) You may use twinx or twiny, but you need to make both x and y axis in sync to each other (maybe using the "xl

[Matplotlib-users] Two questions...

2009-09-24 Thread Gökhan Sever
Hello, One easy one harder two questions :) My screenshot http://img213.imageshack.us/img213/3443/snapshot5.png 1-) I want to link bottom and top x axes as well as left and right y axes. For now on the x-axis xticks are the time in seconds from midnight, not sure how to add the secondary top x a

Re: [Matplotlib-users] Two questions regarding axis scaling

2008-11-23 Thread Jae-Joon Lee
> > What if I wanted one legend with both entries in it, rather than two > separate legends with a different entry in each? Is that possible? That's > more desirable than two separate legends. > Check http://www.nabble.com/displaying-a-legend-from-a-different-subplot-td18447966.html#a18447966 Th

Re: [Matplotlib-users] Two questions regarding axis scaling

2008-11-23 Thread John Owens
Jeff Whitaker wrote: > > Jeremy Conlin wrote: >> >> >> Thanks for that information, that is what I needed. But now I come up >> with a separate problem. I have the following in my code: >> >> pylab.plot(n, S, 'b.', label='x') >> pylab.legend() >> ax2 = pylab.twinx() >>

Re: [Matplotlib-users] Two questions regarding axis scaling

2008-09-13 Thread Jeff Whitaker
Jeremy Conlin wrote: > > > On Fri, Sep 12, 2008 at 4:31 PM, Jeff Whitaker <[EMAIL PROTECTED] > > wrote: > > Jeremy Conlin wrote: > > First question: > I know I can do pylab.loglog() to get a log-log plot. I would > like to create a log-linear

Re: [Matplotlib-users] Two questions regarding axis scaling

2008-09-12 Thread Jeremy Conlin
On Fri, Sep 12, 2008 at 4:31 PM, Jeff Whitaker <[EMAIL PROTECTED]> wrote: > Jeremy Conlin wrote: > >> First question: >> I know I can do pylab.loglog() to get a log-log plot. I would like to >> create a log-linear plot. How can I do this? >> > > semilogx or semilogy: > > > > semilogy < > http:/

Re: [Matplotlib-users] Two questions regarding axis scaling

2008-09-12 Thread Jeff Whitaker
Jeremy Conlin wrote: > First question: > I know I can do pylab.loglog() to get a log-log plot. I would like to > create a log-linear plot. How can I do this? semilogx or semilogy: semilogy (*args, **kwargs) Make a plo

[Matplotlib-users] Two questions regarding axis scaling

2008-09-12 Thread Jeremy Conlin
First question:I know I can do pylab.loglog() to get a log-log plot. I would like to create a log-linear plot. How can I do this? Second question: I would like to plot two sequences on the same figure with two different y-scales, one scale shown on the left and one scale shown on the right. How