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 <odysseus9...@gmail.com> 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, "80–120", but I'm getting "80--120". This is a standard 
>> feature of LaTeX ( http://en.wikibooks.org/wiki/LaTeX/Formatting ), so I 
>> don't know what's going on.
>> 
>> Thanks,
>> Sean Lake
>> 
>> uname -a
>> Darwin dynamic_051.astro.ucla.edu 10.7.0 Darwin Kernel Version 10.7.0: Sat 
>> Jan 29 15:17:16 PST 2011; root:xnu-1504.9.37~1/RELEASE_I386 i386
>> 
>> (You also have a bug on this web page: 
>> http://matplotlib.sourceforge.net/faq/troubleshooting_faq.html#reporting-problems
>>  , The line python -c `import matplotlib; print matplotlib.__version__` 
>> should not have back-ticks)
>> /sw/bin/python2.6 -c 'import matplotlib; print matplotlib.__version__'
>> 1.0.0
>> 
>> Got matplotlib via fink:
>> fink --version
>> Package manager version: 0.29.21
>> Distribution version: selfupdate-rsync Sun Apr  3 02:28:24 2011, 10.6, x86_64
>> Trees: local/main stable/main stable/crypto unstable/main unstable/crypto
>> 
>> matplotlibrc file:
>> text.usetex : True
>> 
>> #backend : MacOSX
>> backend : GTKAgg
>> #backend : ps
>> #backend : pdf
>> 
>> 
>> 
>> ------------------------------------------------------------------------------
>> Xperia(TM) PLAY
>> It's a major breakthrough. An authentic gaming
>> smartphone on the nation's most reliable network.
>> And it wants your games.
>> http://p.sf.net/sfu/verizon-sfdev
>> _______________________________________________
>> Matplotlib-users mailing list
>> Matplotlib-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>> 
> 
> ------------------------------------------------------------------------------
> Xperia(TM) PLAY
> It's a major breakthrough. An authentic gaming
> smartphone on the nation's most reliable network.
> And it wants your games.
> http://p.sf.net/sfu/verizon-sfdev
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users


------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to