[Matplotlib-users] Draw only left and top part of frame

2011-04-05 Thread Markus Baden
Hi, I draw four subplots that touch each other. Thus the "middle cross" of the frame is drawn twice and appears to be thicker then the "outer rectangle". I came across an old post for an custom Axes that would allow to only draw part of the frame http://www.mail-archive.com/matplotlib-users@lists

Re: [Matplotlib-users] LaTeX matplotlib Bug?

2011-04-05 Thread Andre' Walker-Loud
On Apr 5, 2011, at 5:51 PM, Jae-Joon Lee wrote: > On Wed, Apr 6, 2011 at 9:15 AM, Sean Lake wrote: >> Gary Ruben found the actual bug: math mode doesn't support --. > > Just to clarify, in latex math mode, "$-$" is "-" (minus sign) and > "$--$" is "--". > And this is not a bug. > > -JJ Yes. T

Re: [Matplotlib-users] LaTeX matplotlib Bug?

2011-04-05 Thread Jae-Joon Lee
On Wed, Apr 6, 2011 at 9:15 AM, Sean Lake wrote: > Gary Ruben found the actual bug: math mode doesn't support --. Just to clarify, in latex math mode, "$-$" is "-" (minus sign) and "$--$" is "--". And this is not a bug. -JJ ---

Re: [Matplotlib-users] LaTeX matplotlib Bug?

2011-04-05 Thread Andre' Walker-Loud
you appear to have another typo. > Gary Ruben found the actual bug: math mode doesn't support --. "Gary Ruben" --> "Andre Walker-Loud" :) On Apr 5, 2011, at 5:15 PM, Sean Lake wrote: > Ah, sorry about that. In the script I was using it had the closing $. In > spite of the typo, Gary Ruben

Re: [Matplotlib-users] LaTeX matplotlib Bug?

2011-04-05 Thread Sean Lake
Ah, sorry about that. In the script I was using it had the closing $. In spite of the typo, Gary Ruben found the actual bug: math mode doesn't support --. Thanks, Sean On Apr 5, 2011, at 17:08, gary ruben wrote: > Um, how about r"$80--120$" instead of r"$80--120" ? > > On Wed, Apr 6, 2011 at

Re: [Matplotlib-users] LaTeX matplotlib Bug?

2011-04-05 Thread Andre' Walker-Loud
that also doesn't work. The following would work (this is a LaTeX thing - not matplotlib) r"80--120" r"$80\textrm{--}120$" andre On Apr 5, 2011, at 5:08 PM, gary ruben wrote: > Um, how about r"$80--120$" instead of r"$80--120" ? > > On Wed, Apr 6, 2011 at 9:56 AM, Sean Lake wrote: >> Hell

Re: [Matplotlib-users] LaTeX matplotlib Bug?

2011-04-05 Thread gary ruben
Um, how about r"$80--120$" instead of r"$80--120" ? On Wed, Apr 6, 2011 at 9:56 AM, Sean Lake wrote: > Hello all, > > I'm trying to specify a range of numbers in a particular legend using LaTeX. > In order to do so I'm feeding it the string: r"$80--120". The output should > be have an endash, "

Re: [Matplotlib-users] LaTeX matplotlib Bug?

2011-04-05 Thread Andre' Walker-Loud
Hi Sean, I just checked - the hyphenation you want does not work in LaTeX in math mode. Try removing the "$"-signs in your string command. Then the hyphenation should work. Andre On Apr 5, 2011, at 4:56 PM, Sean Lake wrote: > Hello all, > > I'm trying to specify a range of numbers in a

[Matplotlib-users] LaTeX matplotlib Bug?

2011-04-05 Thread Sean Lake
Hello all, I'm trying to specify a range of numbers in a particular legend using LaTeX. In order to do so I'm feeding it the string: r"$80--120". The output should be have an endash, "80–120", but I'm getting "80--120". This is a standard feature of LaTeX ( http://en.wikibooks.org/wiki/LaTeX/Fo

Re: [Matplotlib-users] legend font weight with TeX

2011-04-05 Thread Eli Brosh
Thanks, label=r'$\bf{label1}$' worked. Regards, Eli On Tue, Apr 5, 2011 at 10:14 PM, Darren Dale wrote: > On Tue, Apr 5, 2011 at 2:51 PM, Eli Brosh wrote: > > Hello, > > > > I am using pylab with the rc parameter > > rcParams['text.usetex']=True > > > > Now, I would like to make a legend with

Re: [Matplotlib-users] legend font weight with TeX

2011-04-05 Thread Darren Dale
On Tue, Apr 5, 2011 at 2:51 PM, Eli Brosh wrote: > Hello, > > I am using pylab with the rc parameter > rcParams['text.usetex']=True > > Now, I would like to make a legend with bold fonts. > So, I tried two options: > > 1) > from matplotlib.font_manager import fontManager, FontProperties > font= Fo

[Matplotlib-users] legend font weight with TeX

2011-04-05 Thread Eli Brosh
Hello, I am using pylab with the rc parameter rcParams['text.usetex']=True Now, I would like to make a legend with bold fonts. So, I tried two options: 1) from matplotlib.font_manager import fontManager, FontProperties font= FontProperties(weight='bold',size=26) plot([1,2,3],[1,2,3],'k',label='l

Re: [Matplotlib-users] Animating selected plot elements

2011-04-05 Thread Alejandro Weinstein
On Mon, Apr 4, 2011 at 6:14 PM, Drew Frank wrote: > This will not address your immediate problem with update_line not > being called, but if you want to animate something over a non-blank > background you will soon run into another issue.  I posted here about > that issue a while back: > http://ww

Re: [Matplotlib-users] Animating selected plot elements

2011-04-05 Thread Alejandro Weinstein
On Mon, Apr 4, 2011 at 4:46 PM, Alejandro Weinstein wrote: > Any advice on how to fix the problem? Or may be this way is obsolete, > but all the animation examples I've found so far don't consider a > fixed background. Adding import matplotlib matplotlib.use('GTKAgg') solved the problem. But n