Re: [Matplotlib-users] 1.3 + xkcd + latex

2013-10-21 Thread Michael Droettboom

On 10/18/2013 12:58 PM, Paulo Meira wrote:

Hi, all,
It didn't work for me with mpl 1.3 but it does with 1.3.1 (openSuse 
12.3, python 2.7.3, 64-bit).


To install 1.3.1, I had to use the archive from SourceForge directly 
since only 1.3.0 is listed on pypi (I used pip) -- could that be the 
source of this issue for you?


That's my bad.  I've updated the PyPI entry.

Mike



Regards,
Paulo Meira
---
On Fri, Oct 18, 2013 at 11:51 AM, Neal Becker > wrote:


I am using mpl 1.3, python 2.7.3, 64-bit linux (fedora 19)

Andrew Dawson wrote:

> For what it is worth I see behaviour identical to Neal. I'm using a
> development version of matplotlib (v1.4.x, sorry I don't know
the hash of
> the installed version) on 64-bit Linux (Ubuntu 12.04) and Python
2.7.3.
> That probably doesn't help much, except to show that this is not
specific
> to just Neal!
>
> Andrew
>
>
> On 18 October 2013 14:40, Michael Droettboom
> mailto:md...@stsci.edu>> wrote:
>
>> This is really puzzling.  What version of matplotlib are you
running,
>> what platform, and what version of Python?  Your example works
just fine
>> for me.
>>
>> Mike
>>
>> On 10/18/2013 08:40 AM, Neal Becker wrote:
>> > Neal Becker wrote:
>> >
>> >> This example shows the error on my platform - the xlabel is not
>> rendered with
>> >> tex but instead the '$' are printed:
>> >>
>> >> import numpy as np
>> >> import matplotlib.pyplot as plt
>> >> plt.xkcd()
>> >>
>> >> fig = fig = plt.figure()
>> >> ax = fig.add_subplot(111)
>> >> plt.plot (np.arange (10), 2*np.arange(10))
>> >> ax.set_xlabel ('$E_{s}/N_{0}$')
>> >> plt.show()
>> >>
>> >>
>> > And without plt.xkcd() the tex is rendered correctly
>> >
>> >
>> >
>>

--
>> > October Webinars: Code for Performance
>> > Free Intel webinars can help you accelerate application
performance.
>> > Explore tips for MPI, OpenMP, advanced profiling, and more.
Get the most
>> from
>> > the latest Intel processors and coprocessors. See abstracts
and register
>> >
>> >
>>
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
>> > ___
>> > Matplotlib-users mailing list
>> > Matplotlib-users@lists.sourceforge.net

>> > https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>
>>
>> --
>> _
>> |\/|o _|_  _. _ | | \.__  __|__|_|_  _  _ ._ _
>> |  ||(_| |(_|(/_| |_/|(_)(/_|_ |_|_)(_)(_)| | |
>>
>> http://www.droettboom.com
>>
>>
>>
>>

--
>> October Webinars: Code for Performance
>> Free Intel webinars can help you accelerate application
performance.
>> Explore tips for MPI, OpenMP, advanced profiling, and more. Get
the most
>> from
>> the latest Intel processors and coprocessors. See abstracts and
register >
>>
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
>> ___
>> Matplotlib-users mailing list
>> Matplotlib-users@lists.sourceforge.net

>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>
>
>
>




--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get
the most from
the latest Intel processors and coprocessors. See abstracts and
register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users




--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk


___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users



--
   _
|\/|o _|_

Re: [Matplotlib-users] 1.3 + xkcd + latex

2013-10-18 Thread Paulo Meira
Hi, all,
It didn't work for me with mpl 1.3 but it does with 1.3.1 (openSuse 12.3,
python 2.7.3, 64-bit).

To install 1.3.1, I had to use the archive from SourceForge directly since
only 1.3.0 is listed on pypi (I used pip) -- could that be the source of
this issue for you?

Regards,
Paulo Meira
---
On Fri, Oct 18, 2013 at 11:51 AM, Neal Becker  wrote:

> I am using mpl 1.3, python 2.7.3, 64-bit linux (fedora 19)
>
> Andrew Dawson wrote:
>
> > For what it is worth I see behaviour identical to Neal. I'm using a
> > development version of matplotlib (v1.4.x, sorry I don't know the hash of
> > the installed version) on 64-bit Linux (Ubuntu 12.04) and Python 2.7.3.
> > That probably doesn't help much, except to show that this is not specific
> > to just Neal!
> >
> > Andrew
> >
> >
> > On 18 October 2013 14:40, Michael Droettboom
> >  wrote:
> >
> >> This is really puzzling.  What version of matplotlib are you running,
> >> what platform, and what version of Python?  Your example works just fine
> >> for me.
> >>
> >> Mike
> >>
> >> On 10/18/2013 08:40 AM, Neal Becker wrote:
> >> > Neal Becker wrote:
> >> >
> >> >> This example shows the error on my platform - the xlabel is not
> >> rendered with
> >> >> tex but instead the '$' are printed:
> >> >>
> >> >> import numpy as np
> >> >> import matplotlib.pyplot as plt
> >> >> plt.xkcd()
> >> >>
> >> >> fig = fig = plt.figure()
> >> >> ax = fig.add_subplot(111)
> >> >> plt.plot (np.arange (10), 2*np.arange(10))
> >> >> ax.set_xlabel ('$E_{s}/N_{0}$')
> >> >> plt.show()
> >> >>
> >> >>
> >> > And without plt.xkcd() the tex is rendered correctly
> >> >
> >> >
> >> >
> >>
>
> --
> >> > October Webinars: Code for Performance
> >> > Free Intel webinars can help you accelerate application performance.
> >> > Explore tips for MPI, OpenMP, advanced profiling, and more. Get the
> most
> >> from
> >> > the latest Intel processors and coprocessors. See abstracts and
> register
> >> >
> >> >
> >>
> http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
> >> > ___
> >> > Matplotlib-users mailing list
> >> > Matplotlib-users@lists.sourceforge.net
> >> > https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> >>
> >>
> >> --
> >> _
> >> |\/|o _|_  _. _ | | \.__  __|__|_|_  _  _ ._ _
> >> |  ||(_| |(_|(/_| |_/|(_)(/_|_ |_|_)(_)(_)| | |
> >>
> >> http://www.droettboom.com
> >>
> >>
> >>
> >>
>
> --
> >> October Webinars: Code for Performance
> >> Free Intel webinars can help you accelerate application performance.
> >> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most
> >> from
> >> the latest Intel processors and coprocessors. See abstracts and
> register >
> >>
> http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
> >> ___
> >> Matplotlib-users mailing list
> >> Matplotlib-users@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> >>
> >
> >
> >
>
>
>
>
> --
> October Webinars: Code for Performance
> Free Intel webinars can help you accelerate application performance.
> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most
> from
> the latest Intel processors and coprocessors. See abstracts and register >
> http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
> ___
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] 1.3 + xkcd + latex

2013-10-18 Thread Neal Becker
I am using mpl 1.3, python 2.7.3, 64-bit linux (fedora 19)

Andrew Dawson wrote:

> For what it is worth I see behaviour identical to Neal. I'm using a
> development version of matplotlib (v1.4.x, sorry I don't know the hash of
> the installed version) on 64-bit Linux (Ubuntu 12.04) and Python 2.7.3.
> That probably doesn't help much, except to show that this is not specific
> to just Neal!
> 
> Andrew
> 
> 
> On 18 October 2013 14:40, Michael Droettboom
>  wrote:
> 
>> This is really puzzling.  What version of matplotlib are you running,
>> what platform, and what version of Python?  Your example works just fine
>> for me.
>>
>> Mike
>>
>> On 10/18/2013 08:40 AM, Neal Becker wrote:
>> > Neal Becker wrote:
>> >
>> >> This example shows the error on my platform - the xlabel is not
>> rendered with
>> >> tex but instead the '$' are printed:
>> >>
>> >> import numpy as np
>> >> import matplotlib.pyplot as plt
>> >> plt.xkcd()
>> >>
>> >> fig = fig = plt.figure()
>> >> ax = fig.add_subplot(111)
>> >> plt.plot (np.arange (10), 2*np.arange(10))
>> >> ax.set_xlabel ('$E_{s}/N_{0}$')
>> >> plt.show()
>> >>
>> >>
>> > And without plt.xkcd() the tex is rendered correctly
>> >
>> >
>> >
>> 
--
>> > October Webinars: Code for Performance
>> > Free Intel webinars can help you accelerate application performance.
>> > Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most
>> from
>> > the latest Intel processors and coprocessors. See abstracts and register
>> >
>> >
>> http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
>> > ___
>> > Matplotlib-users mailing list
>> > Matplotlib-users@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>
>>
>> --
>> _
>> |\/|o _|_  _. _ | | \.__  __|__|_|_  _  _ ._ _
>> |  ||(_| |(_|(/_| |_/|(_)(/_|_ |_|_)(_)(_)| | |
>>
>> http://www.droettboom.com
>>
>>
>>
>> 
--
>> October Webinars: Code for Performance
>> Free Intel webinars can help you accelerate application performance.
>> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most
>> from
>> the latest Intel processors and coprocessors. See abstracts and register >
>> http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
>> ___
>> Matplotlib-users mailing list
>> Matplotlib-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>
> 
> 
> 



--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] 1.3 + xkcd + latex

2013-10-18 Thread Andrew Dawson
For what it is worth I see behaviour identical to Neal. I'm using a
development version of matplotlib (v1.4.x, sorry I don't know the hash of
the installed version) on 64-bit Linux (Ubuntu 12.04) and Python 2.7.3.
That probably doesn't help much, except to show that this is not specific
to just Neal!

Andrew


On 18 October 2013 14:40, Michael Droettboom  wrote:

> This is really puzzling.  What version of matplotlib are you running,
> what platform, and what version of Python?  Your example works just fine
> for me.
>
> Mike
>
> On 10/18/2013 08:40 AM, Neal Becker wrote:
> > Neal Becker wrote:
> >
> >> This example shows the error on my platform - the xlabel is not
> rendered with
> >> tex but instead the '$' are printed:
> >>
> >> import numpy as np
> >> import matplotlib.pyplot as plt
> >> plt.xkcd()
> >>
> >> fig = fig = plt.figure()
> >> ax = fig.add_subplot(111)
> >> plt.plot (np.arange (10), 2*np.arange(10))
> >> ax.set_xlabel ('$E_{s}/N_{0}$')
> >> plt.show()
> >>
> >>
> > And without plt.xkcd() the tex is rendered correctly
> >
> >
> >
> --
> > October Webinars: Code for Performance
> > Free Intel webinars can help you accelerate application performance.
> > Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most
> from
> > the latest Intel processors and coprocessors. See abstracts and register
> >
> >
> http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
> > ___
> > Matplotlib-users mailing list
> > Matplotlib-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
> --
> _
> |\/|o _|_  _. _ | | \.__  __|__|_|_  _  _ ._ _
> |  ||(_| |(_|(/_| |_/|(_)(/_|_ |_|_)(_)(_)| | |
>
> http://www.droettboom.com
>
>
>
> --
> October Webinars: Code for Performance
> Free Intel webinars can help you accelerate application performance.
> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most
> from
> the latest Intel processors and coprocessors. See abstracts and register >
> http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
> ___
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>



-- 
Dr Andrew Dawson
Atmospheric, Oceanic & Planetary Physics
Clarendon Laboratory
Parks Road
Oxford OX1 3PU, UK
Tel: +44 (0)1865 282438
Email: daw...@atm.ox.ac.uk
Web Site: http://www2.physics.ox.ac.uk/contacts/people/dawson
--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] 1.3 + xkcd + latex

2013-10-18 Thread Michael Droettboom
This is really puzzling.  What version of matplotlib are you running, 
what platform, and what version of Python?  Your example works just fine 
for me.

Mike

On 10/18/2013 08:40 AM, Neal Becker wrote:
> Neal Becker wrote:
>
>> This example shows the error on my platform - the xlabel is not rendered with
>> tex but instead the '$' are printed:
>>
>> import numpy as np
>> import matplotlib.pyplot as plt
>> plt.xkcd()
>>
>> fig = fig = plt.figure()
>> ax = fig.add_subplot(111)
>> plt.plot (np.arange (10), 2*np.arange(10))
>> ax.set_xlabel ('$E_{s}/N_{0}$')
>> plt.show()
>>
>>
> And without plt.xkcd() the tex is rendered correctly
>
>
> --
> October Webinars: Code for Performance
> Free Intel webinars can help you accelerate application performance.
> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
> the latest Intel processors and coprocessors. See abstracts and register >
> http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
> ___
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users


-- 
_
|\/|o _|_  _. _ | | \.__  __|__|_|_  _  _ ._ _
|  ||(_| |(_|(/_| |_/|(_)(/_|_ |_|_)(_)(_)| | |

http://www.droettboom.com


--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] 1.3 + xkcd + latex

2013-10-18 Thread Neal Becker
Neal Becker wrote:

> This example shows the error on my platform - the xlabel is not rendered with
> tex but instead the '$' are printed:
> 
> import numpy as np
> import matplotlib.pyplot as plt
> plt.xkcd()
> 
> fig = fig = plt.figure()
> ax = fig.add_subplot(111)
> plt.plot (np.arange (10), 2*np.arange(10))
> ax.set_xlabel ('$E_{s}/N_{0}$')
> plt.show()
> 
> 

And without plt.xkcd() the tex is rendered correctly


--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] 1.3 + xkcd + latex

2013-10-18 Thread Neal Becker
Michael Droettboom wrote:

> On 10/18/2013 08:20 AM, Neal Becker wrote:
>> Michael Droettboom wrote:
>>
>>> The built-in mathtext support does. (I can put "xkcd()" at the top of
>>> the mathtext_demo.py example and all is well).
>>>
>>> It does not work when |text.usetex| is True (when using external TeX).
>>> But in that case, it should have thrown an exception:
>>>
>>> |Traceback (most recent call last):
>>> File "mathtext_demo.py", line 9, in 
>>>   xkcd()
>>> File
>>> "/home/mdboom/python/lib/python2.7/site-packages/matplotlib-1.4.x-py2.7-
>> linux-x86_64.egg/matplotlib/pyplot.py",
>>> line 293, in xkcd
>>>   "xkcd mode is not compatible with text.usetex = True")
>>> RuntimeError: xkcd mode is not compatible with text.usetex = True|
>>>
>>> Mike
>>>
>>> On 10/18/2013 07:24 AM, Neal Becker wrote:
>>>
 It appears that latex doesn't work with xkcd?

 I put for example:
   self.ax.set_xlabel ('$E_s/N_0


 )

 Which go rendered with the '


signs and not as latex

 And my vertical axis was labeled as:

 $\mathdefault{10^{3}}$ ...


>> Strange.  I don't have anything about usetex in the script, or in my
>> .matplotlibrc - all it has is:
>>
>> backend : Qt4Agg
>> mathtext.fontset: stix
>>
>>
> 
> Puzzling.  Do you have a matplotlibrc in the current working directory?
> 

No.  Also tried removing .matplotlibrc (in ~/.matplotlib).


--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] 1.3 + xkcd + latex

2013-10-18 Thread Michael Droettboom
On 10/18/2013 08:20 AM, Neal Becker wrote:
> Michael Droettboom wrote:
>
>> The built-in mathtext support does. (I can put "xkcd()" at the top of
>> the mathtext_demo.py example and all is well).
>>
>> It does not work when |text.usetex| is True (when using external TeX).
>> But in that case, it should have thrown an exception:
>>
>> |Traceback (most recent call last):
>> File "mathtext_demo.py", line 9, in 
>>   xkcd()
>> File
>> "/home/mdboom/python/lib/python2.7/site-packages/matplotlib-1.4.x-py2.7-
> linux-x86_64.egg/matplotlib/pyplot.py",
>> line 293, in xkcd
>>   "xkcd mode is not compatible with text.usetex = True")
>> RuntimeError: xkcd mode is not compatible with text.usetex = True|
>>
>> Mike
>>
>> On 10/18/2013 07:24 AM, Neal Becker wrote:
>>
>>> It appears that latex doesn't work with xkcd?
>>>
>>> I put for example:
>>>   self.ax.set_xlabel ('$E_s/N_0
>>>
>>>
>>> )
>>>
>>> Which go rendered with the '
>>>
>>>
>>>signs and not as latex
>>>
>>> And my vertical axis was labeled as:
>>>
>>> $\mathdefault{10^{3}}$ ...
>>>
>>>
> Strange.  I don't have anything about usetex in the script, or in my
> .matplotlibrc - all it has is:
>
> backend : Qt4Agg
> mathtext.fontset: stix
>
>

Puzzling.  Do you have a matplotlibrc in the current working directory?

Mike

-- 
_
|\/|o _|_  _. _ | | \.__  __|__|_|_  _  _ ._ _
|  ||(_| |(_|(/_| |_/|(_)(/_|_ |_|_)(_)(_)| | |

http://www.droettboom.com


--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] 1.3 + xkcd + latex

2013-10-18 Thread Neal Becker
This example shows the error on my platform - the xlabel is not rendered with 
tex but instead the '$' are printed:

import numpy as np
import matplotlib.pyplot as plt
plt.xkcd()

fig = fig = plt.figure() 
ax = fig.add_subplot(111)
plt.plot (np.arange (10), 2*np.arange(10))
ax.set_xlabel ('$E_{s}/N_{0}$')
plt.show()


Michael Droettboom wrote:

> The built-in mathtext support does. (I can put "xkcd()" at the top of
> the mathtext_demo.py example and all is well).
> 
> It does not work when |text.usetex| is True (when using external TeX).
> But in that case, it should have thrown an exception:
> 
> |Traceback (most recent call last):
>File "mathtext_demo.py", line 9, in 
>  xkcd()
>File
>"/home/mdboom/python/lib/python2.7/site-packages/matplotlib-1.4.x-py2.7-
linux-x86_64.egg/matplotlib/pyplot.py",
>line 293, in xkcd
>  "xkcd mode is not compatible with text.usetex = True")
> RuntimeError: xkcd mode is not compatible with text.usetex = True|
> 
> Mike
> 
> On 10/18/2013 07:24 AM, Neal Becker wrote:
> 
>> It appears that latex doesn't work with xkcd?
>>
>> I put for example:
>>  self.ax.set_xlabel ('$E_s/N_0
>>
>>
>> )
>>
>> Which go rendered with the '
>>
>>
>>   signs and not as latex
>>
>> And my vertical axis was labeled as:
>>
>> $\mathdefault{10^{3}}$ ...
>>
>>
>> 
--
>> October Webinars: Code for Performance
>> Free Intel webinars can help you accelerate application performance.
>> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
>> the latest Intel processors and coprocessors. See abstracts and register >
>> http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
>> ___
>> Matplotlib-users mailing list
>> Matplotlib-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> 



--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] 1.3 + xkcd + latex

2013-10-18 Thread Neal Becker
Michael Droettboom wrote:

> The built-in mathtext support does. (I can put "xkcd()" at the top of
> the mathtext_demo.py example and all is well).
> 
> It does not work when |text.usetex| is True (when using external TeX).
> But in that case, it should have thrown an exception:
> 
> |Traceback (most recent call last):
>File "mathtext_demo.py", line 9, in 
>  xkcd()
>File
>"/home/mdboom/python/lib/python2.7/site-packages/matplotlib-1.4.x-py2.7-
linux-x86_64.egg/matplotlib/pyplot.py",
>line 293, in xkcd
>  "xkcd mode is not compatible with text.usetex = True")
> RuntimeError: xkcd mode is not compatible with text.usetex = True|
> 
> Mike
> 
> On 10/18/2013 07:24 AM, Neal Becker wrote:
> 
>> It appears that latex doesn't work with xkcd?
>>
>> I put for example:
>>  self.ax.set_xlabel ('$E_s/N_0
>>
>>
>> )
>>
>> Which go rendered with the '
>>
>>
>>   signs and not as latex
>>
>> And my vertical axis was labeled as:
>>
>> $\mathdefault{10^{3}}$ ...
>>
>>

Strange.  I don't have anything about usetex in the script, or in my 
.matplotlibrc - all it has is:

backend : Qt4Agg
mathtext.fontset: stix



--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] 1.3 + xkcd + latex

2013-10-18 Thread Michael Droettboom
The built-in mathtext support does. (I can put "xkcd()" at the top of 
the mathtext_demo.py example and all is well).


It does not work when |text.usetex| is True (when using external TeX). 
But in that case, it should have thrown an exception:


|Traceback (most recent call last):
  File "mathtext_demo.py", line 9, in 
xkcd()
  File 
"/home/mdboom/python/lib/python2.7/site-packages/matplotlib-1.4.x-py2.7-linux-x86_64.egg/matplotlib/pyplot.py",
 line 293, in xkcd
"xkcd mode is not compatible with text.usetex = True")
RuntimeError: xkcd mode is not compatible with text.usetex = True|

Mike

On 10/18/2013 07:24 AM, Neal Becker wrote:


It appears that latex doesn't work with xkcd?

I put for example:
 self.ax.set_xlabel ('$E_s/N_0


)

Which go rendered with the '


  signs and not as latex

And my vertical axis was labeled as:

$\mathdefault{10^{3}}$ ...


--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


--
   _
|\/|o _|_  _. _ | | \.__  __|__|_|_  _  _ ._ _
|  ||(_| |(_|(/_| |_/|(_)(/_|_ |_|_)(_)(_)| | |

http://www.droettboom.com

--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users