[Matplotlib-users] Issue (bug?) with colormap

2014-08-03 Thread Joy merwin monteiro
Hi, I am using the standard matplotlib on Ubuntu 14.04. I was creating a custom colormap using the standard dict with rgb values method (something I have done before as well). However, one of the values in the 'r' array was 55 instead of .55 and contourf would die saying 'invalid rgb value' which

Re: [Matplotlib-users] Get contourf image as array

2014-10-15 Thread Joy merwin monteiro
pardon the query if it seems dumb, but why don't you do a savefig() after plotting the data and then convert it to any format you like? alternatively, contour() and contourf() both create paths that can be accessed: cf = contourf(.) output = cf.collections.pop() paths = output.get_paths()[i]

Re: [Matplotlib-users] Editable text from matplotlib?

2014-10-27 Thread Joy merwin monteiro
I have had an illustrator work with my eps plots generated in MPL, and she used to get text. She was using some Adobe software, IIRC. Joy On Tue, Oct 28, 2014 at 2:30 AM, Moore, Eric (NIH/NIDDK) [F] < eric.moo...@nih.gov> wrote: > Hi, > > Is it ever possible to edit the text produced by matplotl

Re: [Matplotlib-users] plotting two graphs, overlay not defined for all x

2015-05-30 Thread Joy merwin monteiro
You could define the overlay data for the whole length and mask out the irrelevant part using numpy.ma. You could also just plot the two parts separately using the appropriate length of the x coordinate. Xa = range (1,10) Xb = range (100, 110) plot (Xa, data1) plot (Xb, data2) On 31 May 2015 00:4

Re: [Matplotlib-users] Fwd: [matplotlib-devel] RFC: candidates for a new default colormap

2015-06-04 Thread Joy merwin monteiro
If we have to reply on this thread, I would choose Option C. I don't like A,B because of the strong black at the edges, which sometimes saturate plots whose values vary a lot. I prefer C over D because of a personal preference towards darker colours. Joy On Fri, Jun 5, 2015 at 2:12 AM, Eric Firin

Re: [Matplotlib-users] Read and plot point Shapefile with Basemap

2015-06-11 Thread Joy merwin monteiro
I think Fiona is what you are looking for. I use it regularly for the exact same purpose. On 12 Jun 2015 03:11, "Ronquillo, Edgar Nahum" wrote: > Hello all, > > I am currently using Basemap to map a shapefile into a map which works > perfect with some shapefiles. I notice it doesn’t work with po

Re: [Matplotlib-users] How to visualize a, b results of x, y variables

2015-07-09 Thread Joy merwin monteiro
Maybe you could plot the ratio? That should give you rainfall per degree Celsius. On 9 Jul 2015 20:11, "Jonno" wrote: > I was thinking of doing that or having 2 surface plots but I think it > would be visually quite confusing. > I was trying to think of an example since I'm sure someone has come