1.3 + xkcd + latex

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 <module>
     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

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

···

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

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

Mike

···

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 <module>
      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

--
                    _

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