[Matplotlib-users] 1.3 + xkcd + latex

2013-10-18 Thread Neal Becker
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}}$ ...

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

Re: [Matplotlib-users] Choosing optimal figure width/height automatically

2013-10-18 Thread Christoph Groth
Joe, thank you very much for your reply. So the figsize of a matplotlib plot is the physical size of the region between the axes where the data is shown? If this is indeed the case, as it seems, then achieving (almost) what I wanted is as easy as setting a figsize with the proper aspect ratio,

Re: [Matplotlib-users] Choosing optimal figure width/height automatically

2013-10-18 Thread Christoph Groth
Nicolas Rougier writes: Would something like this suit your needs ? (...) Thanks. Setting figsize is indeed the way to achieve (almost) what I wanted. My other followup in this thread describes the remaining issue.

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

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

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

[Matplotlib-users] Spurious borders when setting figure size

2013-10-18 Thread Christoph Groth
Hello, The script pasted below plots a square array. The (very small) output PDF is attached to this posting. For reasons I do not understand, there's a fine additional border immediately at the top and bottom of the array. If the commented-out line of code is removed, the strange border

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

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),

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

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

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.

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

Re: [Matplotlib-users] ANN: matplotlib 1.3.1

2013-10-18 Thread Nelle Varoquaux
Hello, Congratulations for this new minor release ! Someone mentionned on python-list that it's not available on pypi. I checked, and indeed it isn't. Should we upload it there? Thanks, N On 10 October 2013 20:19, Michael Droettboom md...@stsci.edu wrote: I'm pleased to announce the release

[Matplotlib-users] viewing 3d plots with orthographic projection?

2013-10-18 Thread Jason Sachs
I want to create a 3d plot with matplotlib. I've gotten it to work, and can control the view (camera) angles, but I don't want any foreshortening / perspective. Is there a way to just have a plain orthographic projection instead?