Re: [Matplotlib-users] Exact semantics of ion()??

2011-05-30 Thread Benjamin Root
On Mon, May 30, 2011 at 3:11 PM, Eric O LEBIGOT (EOL) < eric.lebi...@normalesup.org> wrote: > > > efiring wrote: > > > > Is it correct that you want interactive mode, except that you want to > > control when drawing occurs, for purposes of efficiency? > Thank you for your interest in this question

[Matplotlib-users] Line2D drawstyle

2011-05-30 Thread Jason Grout
In the docs for Line2D, it says that the linestyle can be "any drawstyle in combination with a linestyle, e.g. 'steps--'." However, this doesn't seem to work in practice. I believe I have matplotlib 1.0.1 here: In [2]: from matplotlib import lines In [3]: line=lines.Line2D([0,1,2],[0,1,4], li

Re: [Matplotlib-users] Exact semantics of ion()??

2011-05-30 Thread Eric O LEBIGOT (EOL)
efiring wrote: > > Is it correct that you want interactive mode, except that you want to > control when drawing occurs, for purposes of efficiency? Thank you for your interest in this question, Eric! The goal is to indeed control when drawing occurs, but also to not use show() (because it cumb

Re: [Matplotlib-users] Line clipping on subplot border mandatory?

2011-05-30 Thread Benjamin Root
On Mon, May 30, 2011 at 1:12 PM, Eric Firing wrote: > On 05/30/2011 05:21 AM, Benjamin Root wrote: > > On Monday, May 30, 2011, Mondsuechtiger wrote: > >> -BEGIN PGP SIGNED MESSAGE- > >> Hash: SHA1 > >> > >> > >> Hello, > >> > >> I would like to stack subplots in a figure with a couple o

Re: [Matplotlib-users] Line clipping on subplot border mandatory?

2011-05-30 Thread Eric Firing
On 05/30/2011 05:21 AM, Benjamin Root wrote: > On Monday, May 30, 2011, Mondsuechtiger wrote: >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> >> Hello, >> >> I would like to stack subplots in a figure with a couple of basic >> x,y-line plots with the subplot frames removed. >> But possib

Re: [Matplotlib-users] Exact semantics of ion()??

2011-05-30 Thread Eric Firing
On 05/30/2011 06:42 AM, Eric O LEBIGOT (EOL) wrote: > > > Benjamin Root-2 wrote: >> >> On Monday, May 30, 2011, Eric O LEBIGOT (EOL) >>> I wish that Matplotlib provided a mechanism for bypassing show(), because >>> show() is actually not my friend. :-) In fact, with show(), I hate >>> having >>> t

Re: [Matplotlib-users] mpl newbie question...

2011-05-30 Thread C M
I do not know the first thing about Python language.But things are not > going well That's not a "but" but an "of course". How could they possibly go well already? It takes time to learn something. You will get there, bit by bit. > and I do not want to use any other > programs such as GNU

Re: [Matplotlib-users] Exact semantics of ion()??

2011-05-30 Thread Eric O LEBIGOT (EOL)
Benjamin Root-2 wrote: > > On Monday, May 30, 2011, Eric O LEBIGOT (EOL) >> I wish that Matplotlib provided a mechanism for bypassing show(), because >> show() is actually not my friend. :-)  In fact, with show(), I hate >> having >> to close one by one each of the 12 figures that my script crea

Re: [Matplotlib-users] Exact semantics of ion()??

2011-05-30 Thread Benjamin Root
On Monday, May 30, 2011, Eric O LEBIGOT (EOL) wrote: > > > Benjamin Root-2 wrote: >> >> On Monday, May 30, 2011, Eric O LEBIGOT (EOL) >> wrote: >>> >>> Benjamin Root-2 wrote: >>> So, if anything is drawn when interactive mode is off, does one *have* to >>> use show() at the end?  in other words d

Re: [Matplotlib-users] Exact semantics of ion()??

2011-05-30 Thread Eric O LEBIGOT (EOL)
Benjamin Root-2 wrote: > > On Monday, May 30, 2011, Eric O LEBIGOT (EOL) > wrote: >> >> Benjamin Root-2 wrote: >> So, if anything is drawn when interactive mode is off, does one *have* to >> use show() at the end?  in other words does using a single raw_input() at >> the end of the program forc

Re: [Matplotlib-users] Line clipping on subplot border mandatory?

2011-05-30 Thread Benjamin Root
On Monday, May 30, 2011, Mondsuechtiger wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > > Hello, > > I would like to stack subplots in a figure with a couple of basic > x,y-line plots with the subplot frames removed. > But possible overlap of subplots is limited, because the drawn dat

Re: [Matplotlib-users] Exact semantics of ion()??

2011-05-30 Thread Benjamin Root
On Monday, May 30, 2011, Eric O LEBIGOT (EOL) wrote: > > Thank you for your response. > > > Benjamin Root-2 wrote: >> >> On Sunday, May 29, 2011, Eric O LEBIGOT (EOL) >> wrote: >>> >>> What does ion() exactly do? >>>$$$ >>> from matplotlib import pyplot as pp >>> >>> pp.plot([10, 20, 50]) >>> pp.

Re: [Matplotlib-users] mpl newbie question...

2011-05-30 Thread Darren Dale
Hi Corbin, On Mon, May 30, 2011 at 10:09 AM, Corbin Fletcher wrote: > I am a college student and I want to be able to use matplotlib to plot > publishing quality graphs > and embed them into my pdf documents (all composed with latex) for > college. This would give my documents a more professional

Re: [Matplotlib-users] mpl newbie question...

2011-05-30 Thread Daniel Mader
Hi Corbin, it is pretty much impossible that you will get a reply here that helps you to become a professional Python programmer from scratch without asking a specific question :) Please try to read some introductory courses and create your first sample plots, and then ask. I am sure you will get

[Matplotlib-users] mpl newbie question...

2011-05-30 Thread Corbin Fletcher
I am a college student and I want to be able to use matplotlib to plot publishing quality graphs and embed them into my pdf documents (all composed with latex) for college. This would give my documents a more professional look. I do not know the first thing about Python language. And I am only a

Re: [Matplotlib-users] Not able to access CSV file:

2011-05-30 Thread Daniel Mader
Hi, the content of the CSV is stored as an array after reading. You can simply access rows and columns like in Matlab: firstrow = a1[0] firstcol = a1.T[0] The .T transposes the array. The second element of the third row would be elem32 = a1[2][1] which is equivalent to elem32 = a1[2,1] A rang

Re: [Matplotlib-users] embedding subset of fonts when saving to pdf

2011-05-30 Thread Simon Jesenko
Thank you for the info. I added the issue to the github for now. I will inspect the source whether there is an easy way to add subsetting of fonts for usetex=True case as well. Simon On 05/27/2011 05:02 PM, Michael Droettboom wrote: > Ah, yes. That is all true. I'm not sure what options ther

Re: [Matplotlib-users] Exact semantics of ion()??

2011-05-30 Thread Eric O LEBIGOT (EOL)
Thank you for your response. Benjamin Root-2 wrote: > > On Sunday, May 29, 2011, Eric O LEBIGOT (EOL) > wrote: >> >> What does ion() exactly do? >>$$$ >> from matplotlib import pyplot as pp >> >> pp.plot([10, 20, 50]) >> pp.draw() >> >> raw_input('Press enter...')  # No graph displayed?!! >>$$

[Matplotlib-users] Line clipping on subplot border mandatory?

2011-05-30 Thread Mondsuechtiger
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, I would like to stack subplots in a figure with a couple of basic x,y-line plots with the subplot frames removed. But possible overlap of subplots is limited, because the drawn data lines are clipped on the border, if you'd lets say manually r