Re: [Matplotlib-users] Way to see data value in imaging an array?

2010-08-02 Thread David Goldsmith
On Sun, Aug 1, 2010 at 10:51 PM, David Goldsmith d.l.goldsm...@gmail.comwrote: Hi! Is there a way to see data values when imaging an array, say, e.g., when holding the cursor over a point? DG I found the data_browser.py example - how do I use it if I'm not using pylab.show, i.e., I'm using

Re: [Matplotlib-users] Dollar sign in TeX plot label

2010-08-02 Thread Darren Dale
On Mon, Aug 2, 2010 at 10:15 AM, Richard Lincoln r.w.linc...@gmail.com wrote: I am having trouble creating a plot using TeX which has a $ sign in one of the axis labels.  If I run: import matplotlib matplotlib.rc('font', **{'family': 'serif', 'serif': ['Computer Modern Roman']})

Re: [Matplotlib-users] Dollar sign in TeX plot label

2010-08-02 Thread Richard Lincoln
On 2 August 2010 15:19, Darren Dale dsdal...@gmail.com wrote: On Mon, Aug 2, 2010 at 10:15 AM, Richard Lincoln r.w.linc...@gmail.com wrote: I am having trouble creating a plot using TeX which has a $ sign in one of the axis labels.  If I run: import matplotlib matplotlib.rc('font',

Re: [Matplotlib-users] Dollar sign in TeX plot label

2010-08-02 Thread Benjamin Root
Hmmm, if I comment out the .savefig() and use the show(), I get no errors. But I get the same key error if I try to save it as a pdf. However, if I save it as a png, I get no problems. Maybe it is a problem with the pdf backend? Ben Root On Mon, Aug 2, 2010 at 9:29 AM, Richard Lincoln

Re: [Matplotlib-users] Way to see data value in imaging an array?

2010-08-02 Thread Benjamin Root
On Mon, Aug 2, 2010 at 2:15 AM, David Goldsmith d.l.goldsm...@gmail.comwrote: On Sun, Aug 1, 2010 at 10:51 PM, David Goldsmith d.l.goldsm...@gmail.comwrote: Hi! Is there a way to see data values when imaging an array, say, e.g., when holding the cursor over a point? DG I found the

Re: [Matplotlib-users] Dollar sign in TeX plot label

2010-08-02 Thread Eduardo Gonzalez Solares
You could use pylab.ylabel(rProfit (\verb+$+)) or use another font. Eduardo On 2 Aug 2010, at 15:50, Benjamin Root wrote: Hmmm, if I comment out the .savefig() and use the show(), I get no errors. But I get the same key error if I try to save it as a pdf. However, if I save it as a

Re: [Matplotlib-users] \mathbb test doesn't render properly

2010-08-02 Thread Damon McDougall
After some playing I have discovered that putting maplotlib.rc('text.latex', preamble='\usepackage{amsmath},\usepackage{amssymb}') fixes the issue of text rendering. However, when putting this value in the ~/.matplotlib/matplotlibrc file, I get the same error saying that \mathbb is undefined.

Re: [Matplotlib-users] \mathbb test doesn't render properly

2010-08-02 Thread Damon McDougall
Actually I'm wrong, the error says 'Missing \begin{document}'. Sorry for the spam. Regards, -- Damon -- Damon McDougall Mathematics Institute University of Warwick Coventry CV4 7AL d.mcdoug...@warwick.ac.uk On 2 Aug 2010, at 17:41, Damon McDougall wrote: After some

Re: [Matplotlib-users] \mathbb test doesn't render properly

2010-08-02 Thread Damon McDougall
So it turns out that text.latex.preamble : '\usepackage{amsmath},\usepackage{amssymb}' is not valid, but text.latex.preamble : \usepackage{amsmath},\usepackage{amssymb} is valid. Everything works fine now. Regards, -- Damon -- Damon McDougall Mathematics Institute