Re: [Matplotlib-users] Problem extending a custom colormap

2014-11-03 Thread Eric Firing
On 2014/11/03, 2:19 PM, Damien Irving wrote: > I often like to define my own colormaps using hex strings, e.g. > hex_list = ['#FFF295', '#FFD555', '#FF850B', '#D55000', '#D5', > '#550040','#600080', '#80', '#D5', '#0B85FF', '#55AAFF', '#95CAFF'] > > However, when I pass them to contourf

[Matplotlib-users] Problem extending a custom colormap

2014-11-03 Thread Damien Irving
I often like to define my own colormaps using hex strings, e.g. hex_list = ['#FFF295', '#FFD555', '#FF850B', '#D55000', '#D5', '#550040', '#600080', '#80', '#D5', '#0B85FF', '#55AAFF', '#95CAFF'] However, when I pass them to contourf and try to extend the colorbar... plt.contourf(x, y

Re: [Matplotlib-users] Old-style/text figures

2014-11-03 Thread Andy Buckley
Hi again, I didn't see any on-list answer, but got an off-list suggestion to use an rc parameter to set a LaTeX preamble. I played around a little and thought I should report on what I found, especially since it seems that there is room for improvement here and I'd be interested to help. Here are

Re: [Matplotlib-users] matplotlib save image as postscript, when xlabel is saved as text and not path

2014-11-03 Thread Jeffrey Blackburne
Hi Oren, The link below leads to a recent related thread on this list. Maybe it will be informative. I believe it implies that the answer is No, you have to use TeX. http://matplotlib.1069221.n5.nabble.com/Editable-text-from-matplotlib-td44219.html -Jeff On Mon, Nov 3, 2014 at 11:40 AM, Paul H

Re: [Matplotlib-users] matplotlib save image as postscript, when xlabel is saved as text and not path

2014-11-03 Thread Paul Hobson
Can just go straight to PDF? What happens then? It might also be informative to explain why using LaTeX is undesirable in your situation. -p On Mon, Nov 3, 2014 at 11:52 AM, Oren wrote: > Thanks for the respond Paul, But It still the same... > > This is how it looks like when I use > matplotlib.

Re: [Matplotlib-users] matplotlib save image as postscript, when xlabel is saved as text and not path

2014-11-03 Thread Paul Hobson
What happens when you save as a postscript file with matplotlib.rcParams["text.usetex"] = False? -paul On Mon, Nov 3, 2014 at 7:11 AM, Oren wrote: > Anyone know how to solve this thing? > > Thanks. > > On 2 November 2014 03:40, oren wrote: > >> How can I save a matplotlib figure with text as a

Re: [Matplotlib-users] matplotlib save image as postscript, when xlabel is saved as text and not path

2014-11-03 Thread Oren
Anyone know how to solve this thing? Thanks. On 2 November 2014 03:40, oren wrote: > How can I save a matplotlib figure with text as a postscript image and that > the text will be saved as text. Currently when I save the image as > postscript all the text in the image ( xlabel, ylabel etc.. ) i

Re: [Matplotlib-users] savefig and StringIO error on Python3

2014-11-03 Thread Pierre Haessig
Le 02/11/2014 09:34, Scott Lasley a écrit : > I wish I could say that it was because of a deep understanding of the inner > workings of matplotlib or a rock solid grasp of python 3's bytes vs strings, > but it wasn't. fig.savefig threw the "TypeError: string argument expected, > got 'bytes'" e

[Matplotlib-users] Fwd: tex rendering broken?

2014-11-03 Thread Thomas Caswell
Forwarding message to list that should have gone there initialy for archiving. -- Forwarded message -- From: Martin Wiebusch Date: Mon, Nov 3, 2014 at 8:26 AM Subject: Re: [Matplotlib-users] tex rendering broken? To: Thomas Caswell On Mon, 2014-11-03 at 07:50 -0500, Thomas Casw

[Matplotlib-users] Fwd: tex rendering broken?

2014-11-03 Thread Thomas Caswell
Forwarding message to list that should have gone there initialy for archiving. -- Forwarded message -- From: Thomas Caswell Date: Mon, Nov 3, 2014 at 7:50 AM Subject: Re: [Matplotlib-users] tex rendering broken? To: Martin Wiebusch My first guess is that there is that some thin

Re: [Matplotlib-users] tex rendering broken?

2014-11-03 Thread Martin Wiebusch
I just downgraded to matplotlib 1.1.1 and now everything works. Looks like a regression to me. On Fri, 2014-10-31 at 15:53 +, Martin Wiebusch wrote: > I am having trouble executing the example for typesetting labels with > latex from http://matplotlib.org/users/usetex.html. Copying the standar