[Matplotlib-users] weird behaviour in ScalarMappable with ListedColormap

2013-05-03 Thread Yasin Selçuk Berber
Hi. i am using ListedColormap with ScalarMappable, to map data ranges, without using a norm. But i dont know if what i am doing is a good thing or not. Here's the snippet: -- from matplotlib import pyplot as plt from matplotlib

Re: [Matplotlib-users] wxPython Phoenix - backend_wxagg

2013-05-03 Thread Michael Droettboom
Would you mind submitting this as a pull request? Mike On 04/27/2013 06:23 PM, Werner F. Bruhin wrote: Hi Michael, On 26/04/2013 14:40, Michael Droettboom wrote: On 04/26/2013 02:57 AM, Werner F. Bruhin wrote: Hi, Anyone can provide some info on what agg.buffer_rgba returns and maybe

Re: [Matplotlib-users] wxPython Phoenix - backend_wxagg

2013-05-03 Thread Michael Droettboom
FWIW: Matplotlib uses the older buffer interface because that is what the older version of wx used (as well as other GUI toolkits). It would be nice to move to the new memoryview objects, but all of the GUI frameworks will need to move in tandem... Mike On 04/27/2013 06:23 PM, Werner F.

Re: [Matplotlib-users] Problems with sans-serif fonts and tick labels with TeX

2013-05-03 Thread Michael Droettboom
On 05/02/2013 03:16 PM, Paul Hobson wrote: On Thu, May 2, 2013 at 11:19 AM, Michael Droettboom md...@stsci.edu mailto:md...@stsci.edu wrote: I think the confusion here stems from the fact that you're mixing TeX and non-TeX font commands. This turns on TeX mode, so all of the

Re: [Matplotlib-users] wxPython Phoenix - backend_wxagg

2013-05-03 Thread Werner F. Bruhin
Mike, On 03/05/2013 15:14, Michael Droettboom wrote: FWIW: Matplotlib uses the older buffer interface because that is what the older version of wx used (as well as other GUI toolkits). It would be nice to move to the new memoryview objects, but all of the GUI frameworks will need to move in

Re: [Matplotlib-users] Problems with sans-serif fonts and tick labels with TeX

2013-05-03 Thread Juergen Hasch
The solution I use when I want all sans-serif out of TeX is to use the cmbright package, which can be turned on by adding: rc('text.latex', preamble=r'\usepackage{cmbright}') That may require installing the cmbright LaTeX package if you don't already have it. I am using the sfmath

Re: [Matplotlib-users] Problems with sans-serif fonts and tick labels with TeX

2013-05-03 Thread Paul Hobson
On Fri, May 3, 2013 at 6:17 AM, Michael Droettboom md...@stsci.edu wrote: On 05/02/2013 03:16 PM, Paul Hobson wrote I now see that this was more of TeX issue than an MPL configuration issue. Your help prompted me to find this solution (similar to yours):

Re: [Matplotlib-users] Problems with sans-serif fonts and tick labels with TeX

2013-05-03 Thread Felix Patzelt
H, I'm using sfmath, too. I actually wrote a helper function to switch fonts. The preambles are the result of long-term trial and error. Normally, my preambles include some more custom commands which I left out here because they would be distracting. I always wondered why matplotlib doesn't do

[Matplotlib-users] How to make matplotlib use my own libpng over the systemwide

2013-05-03 Thread Ondřej Čertík
Hi, As part of building matplotlib for the one python based distribution [1], I want to always link against our own version of libpng, even if there is some other systemwide version available. I am on linux (Ubuntu). Currently, here is what I am doing: CFLAGS=-I$PNG/include -I$FREETYPE/include

Re: [Matplotlib-users] How to make matplotlib use my own libpng over the systemwide

2013-05-03 Thread Ondřej Čertík
On Fri, May 3, 2013 at 12:41 PM, Ondřej Čertík ondrej.cer...@gmail.com wrote: Hi, As part of building matplotlib for the one python based distribution [1], I meant to say for one python distribution, not the one... Ondrej