[Matplotlib-users] Is there interrest for an implementation of colour maps visualising small differences around 0

2014-03-14 Thread Pål Gunnar Ellingsen
Hi I've created a python method for making a jet colour map which clearly shows small changes around a given point in the colour map, (i.e. the opposite of a diverging colour map http://www.sandia.gov/~kmorel/documents/ColorMaps/ ). This looks something like figure four on:

Re: [Matplotlib-users] Is there interrest for an implementation of colour maps visualising small differences around 0

2014-03-14 Thread Pål Gunnar Ellingsen
provide a comparison with the existing colormap? Does it overcome the drawbacks listed in the Sandia Nat'l Labs paper? -paul On Fri, Mar 14, 2014 at 3:16 AM, Pål Gunnar Ellingsen paa...@gmail.comwrote: Hi I've created a python method for making a jet colour map which clearly shows small

[Matplotlib-users] get_xticks() returning wrong ticks after autoscale(tight=True)

2013-11-25 Thread Pål Gunnar Ellingsen
Hi I've been trying to do a twiny() plot in matplotlib, but I've run into a problem with the ticks when using autoscale with the tight option. My second xaxis is a function of the first. An example would be: - import numpy as np import matplotlib.pyplot as plt Radius =

Re: [Matplotlib-users] Saving animation with coloured background

2012-07-12 Thread Pål Gunnar Ellingsen
Hi I've submitted a bug report Issue *#1008* on github (which I had trouble finding). Regards Pål On 11 July 2012 17:41, Benjamin Root ben.r...@ou.edu wrote: On Wed, Jul 11, 2012 at 10:41 AM, Pål Gunnar Ellingsen paa...@gmail.comwrote: Hi I'm trying to save a animation, which I've

[Matplotlib-users] Saving animation with coloured background

2012-07-11 Thread Pål Gunnar Ellingsen
Hi I'm trying to save a animation, which I've generated using animation.FuncAnimation. The animation has it's background set by plt.rcParams['figure.facecolor'] = 'black' Which works with plt.show(), though not with animation save. I know that plt.save needs the argument facecolor to save a

Re: [Matplotlib-users] Setting x scale manually, but letting y scale automatic within the current x-axis

2012-02-06 Thread Pål Gunnar Ellingsen
this as a new feature, as it would prove useful for analysing graphs, especially in scientific research. Kind regards Pål On 3 February 2012 19:56, Eric Firing efir...@hawaii.edu wrote: On 02/03/2012 06:07 AM, Benjamin Root wrote: On Fri, Feb 3, 2012 at 9:15 AM, Pål Gunnar Ellingsen paa

Re: [Matplotlib-users] Setting x scale manually, but letting y scale automatic within the current x-axis

2012-02-06 Thread Pål Gunnar Ellingsen
to everything plotted, even though xlim/ylim has been set. Regards Pål On 6 February 2012 18:02, Benjamin Root ben.r...@ou.edu wrote: On Mon, Feb 6, 2012 at 4:47 AM, Pål Gunnar Ellingsen paa...@gmail.comwrote: Hi I understand that it would be hard to implement, as it requires that all

[Matplotlib-users] Setting x scale manually, but letting y scale automatic within the current x-axis

2012-02-03 Thread Pål Gunnar Ellingsen
Hi I've got a plot, containing a graph. I would like to look at certain parts of it. To do this I zoom in on the x-axis using set_xlim() Then I would like to call autoscale(axis='y') and have matplotlib autoscale the y axis within the current x-axis. I've tried several ways of doing this, both

Re: [Matplotlib-users] Setting x scale manually, but letting y scale automatic within the current x-axis

2012-02-03 Thread Pål Gunnar Ellingsen
2012 15:21, Benjamin Root ben.r...@ou.edu wrote: On Friday, February 3, 2012, Pål Gunnar Ellingsen paa...@gmail.com wrote: Hi I've got a plot, containing a graph. I would like to look at certain parts of it. To do this I zoom in on the x-axis using set_xlim() Then I would like

Re: [Matplotlib-users] Setting x scale manually, but letting y scale automatic within the current x-axis

2012-02-03 Thread Pål Gunnar Ellingsen
Hi Yes you've understood my problem correctly. Let me know if there is anything I can do to help solve this issue. Regards Pål On 3 February 2012 17:07, Benjamin Root ben.r...@ou.edu wrote: On Fri, Feb 3, 2012 at 9:15 AM, Pål Gunnar Ellingsen paa...@gmail.comwrote: Hi Thank you

Re: [Matplotlib-users] Overlaying part of an matrix image on another.

2012-01-30 Thread Pål Gunnar Ellingsen
Hi Thank you very much, it worked perfectly :D Kind regards Pål On 27 January 2012 15:29, Tony Yu tsy...@gmail.com wrote: On Fri, Jan 27, 2012 at 9:13 AM, Pål Gunnar Ellingsen paa...@gmail.comwrote: Hi I have a array, M, which is (4Nx4M), and an array (image), im, which is NxM. I can

[Matplotlib-users] Overlaying part of an matrix image on another.

2012-01-27 Thread Pål Gunnar Ellingsen
Hi I have a array, M, which is (4Nx4M), and an array (image), im, which is NxM. I can currently plot the matrix as a 2d image using imshow using: import matplotlib.pyplot as plt from matplotlib import cm # some code for reading in the matrix cmap = cm.get_cmap('jet', 256) imM = plt.imshow(M,

Re: [Matplotlib-users] Problem generating pdf file with LaTeX fonts

2011-03-13 Thread Pål Gunnar Ellingsen
Hi This is very strange I agree. I checked the pdftex.map file and it has changed due to me upgrading texlive 2011 during a normal fedora update some days ago. I've checked the log for the update, and the update contained a new updmap.cfg (which is the script for generating pdftex.map), which

Re: [Matplotlib-users] Problem generating pdf file with LaTeX fonts

2011-03-12 Thread Pål Gunnar Ellingsen
Gunnar Ellingsen paa...@gmail.com writes: I know there was a post on the mail liste a couple of days ago ( Bug in `dviread.py'), but I'm not sure if this is the same error, which it shouldn't be as I'm using the latest svn revision. Not the same error - it is showing a warning message

[Matplotlib-users] Problem generating pdf file with LaTeX fonts

2011-03-08 Thread Pål Gunnar Ellingsen
Hi I'm trying to make a plot as a pdf file (or any vector format) with LaTeX fonts. I can make it output the file using show, but not with savefig (unless it is raster graphics). My setup is Fedora 13 64 bit with the latest TexLive: texlive-2011-0.1.20110227.fc13.x86_64 and matplotlib from svn,

[Matplotlib-users] Bug in set_yscale?

2010-11-02 Thread Pål Gunnar Ellingsen
Hi I'm trying to use the linthershy option for symlog in matplotlib.axes.Axes.set_yscale() http://matplotlib.sourceforge.net/api/axes_api.html#matplotlib.axes.Axes.set_yscalefor values smaller than 1, but the plot then shows large values (vertical lines) for the points which should have been in

Re: [Matplotlib-users] Bug in set_yscale?

2010-11-02 Thread Pål Gunnar Ellingsen
Hi Thank you. I installed the latest from svn and it now works. Regards Pål On 2 November 2010 15:21, Benjamin Root ben.r...@ou.edu wrote: On Tue, Nov 2, 2010 at 8:20 AM, Pål Gunnar Ellingsen paa...@gmail.comwrote: Hi I'm trying to use the linthershy option for symlog