Re: [Matplotlib-users] Wind barb bug

2015-04-27 Thread Jesper Larsen
idea of where the problem is) would also be great! Tom On Fri, Apr 24, 2015 at 8:38 AM Jesper Larsen jesper.webm...@gmail.com wrote: Hi Matplotlib Users, When I make wind barbs with rounding enabled and custom barb increments I noticed that there were no wind barbs with half barbs above 2

[Matplotlib-users] Wind barb bug

2015-04-24 Thread Jesper Larsen
Hi Matplotlib Users, When I make wind barbs with rounding enabled and custom barb increments I noticed that there were no wind barbs with half barbs above 2 full barbs. The reason seems to be a bug in the _find_tails method. The bug is illustrated by this small script (_find_tails is a copy of

[Matplotlib-users] Antialiasing colorbars

2014-09-30 Thread Jesper Larsen
Hi matplotlib users, Is it possible to disable antialiasing for a colorbar? If not directly is it the possible to postprocess the axes instance to se antialiasing for relevant elements? The reason I am asking is because I would like to produce a paletted png (using PIL) of the colorbar without

[Matplotlib-users] Wind barbs with small arrow heads

2014-09-17 Thread Jesper Larsen
Hi matplotlib users I am developing an application for showing weather forecasts using matplotlib. We use wind barbs for displaying wind forecasts: http://api.fcoo.dk/ifm-maps/greenland/?zoom=6lat=62lon=-45layer=FCOO%20Standardoverlays=TTFFF This is fine for our power users. We do

[Matplotlib-users] Bug in contourf or BoundaryNorm?

2014-03-28 Thread Jesper Larsen
Hi matplotlib users, I believe the normalization behaviour is wrong for contourf at least when using a BoundaryNorm. In the script below I am using the same norm to plot the same data using contourf and pcolormesh. The color should change around an x value of 0.15 but it is shifted somewhat for

Re: [Matplotlib-users] Bug in contourf or BoundaryNorm?

2014-03-28 Thread Jesper Larsen
point. I will therefore instead just use levels=norm.boundaries. Best regards, Jesper 2014-03-28 15:17 GMT+01:00 Ian Thomas ianthoma...@gmail.com: On 28 March 2014 12:56, Jesper Larsen jesper.webm...@gmail.com wrote: I believe the normalization behaviour is wrong for contourf at least when

[Matplotlib-users] Matplotlib for tiles - blank lines

2014-03-24 Thread Jesper Larsen
Hi matplotlib users, I am using matplotlib to produce plots (tiles) in a Web Map Service. Unfortunately I cannot get Matplotlib to plot on the entire image. There are one transparent (pixel) line at the bottom and one transparent line at the right. This is of course a problem when the tiles are

Re: [Matplotlib-users] Matplotlib for tiles - blank lines

2014-03-24 Thread Jesper Larsen
Pierre Haessig pierre.haes...@crans.org: Hi, Le 24/03/2014 10:45, Jesper Larsen a écrit : I am using matplotlib to produce plots (tiles) in a Web Map Service. Unfortunately I cannot get Matplotlib to plot on the entire image. There are one transparent (pixel) line at the bottom and one

Re: [Matplotlib-users] Matplotlib for tiles - blank lines

2014-03-24 Thread Jesper Larsen
get transparent colors ? If yes, what is your .matplotlibrc ? Nicolas On 24 Mar 2014, at 11:49, Jesper Larsen jesper.webm...@gmail.com wrote: Thanks Pierre, from __future__ import division did not help me, I am using mpl 1.1.1rc. I will try upgrading to a newer version of mpl

Re: [Matplotlib-users] Matplotlib for tiles - blank lines

2014-03-24 Thread Jesper Larsen
more efficient if you have highly dynamic data and a caching layer). Let me know if updating your matplotlib version helps, Cheers, Phil On 24 March 2014 09:45, Jesper Larsen jesper.webm...@gmail.com wrote: Hi matplotlib users, I am using matplotlib to produce plots (tiles

[Matplotlib-users] pcolorfast antialiasing

2014-03-20 Thread Jesper Larsen
Hi matplotlib users, I am currently performing some experiments with plotting in matplotlib for at web application. One thing I have noticed is that my image test sizes are reduced by a factor 4.5 when not using antialiasing. And that for pcolormesh the time it takes to produce a plot without

[Matplotlib-users] Saving figure instance for reuse

2012-08-15 Thread Jesper Larsen
Hi Matplotlib users I have an application where performance is critical and matplotlib is the performance bottleneck. I am making a lot of figures using the same basic setup of the figure. And from my profiling I can see that this basic setup accounts for most of the CPU time. Let us say that I

[Matplotlib-users] Reducing png file size

2009-05-17 Thread Jesper Larsen
Hi mpl-users, I have a web application in which I produce png files using matplotlib. Unfortunately the files are quite big (up to ~300 kb). I have however tried using the Linux tool pngnq to reduce the file size with a factor ~3-4 with almost no degradation of the result. I therefore wondered

Re: [Matplotlib-users] Memory leak in Agg backend?

2009-04-22 Thread Jesper Larsen
-- the memory usage is flat...) Mike Jesper Larsen wrote: Hi matplotlib developers and users, I have had some problems with a memory leak in a long running matplotlib based web application that I have developed (www.worldwildweather.com). I believe the problem is due to a memory leak

[Matplotlib-users] Memory leak in Agg backend?

2009-04-15 Thread Jesper Larsen
Hi matplotlib developers and users, I have had some problems with a memory leak in a long running matplotlib based web application that I have developed (www.worldwildweather.com). I believe the problem is due to a memory leak in the Agg backend but I am not sure. Below is a script which for me

[Matplotlib-users] Localization in mpl

2009-04-08 Thread Jesper Larsen
Hi matplotlib-users, I have an application which I am currently translating to other languages including Chinese. I was wondering what recommendations you have for internationalization with regards to matplotlib. Using the default font it seems like Chinese characters are not showing up on the

Re: [Matplotlib-users] Font sizes for web application

2008-12-02 Thread Jesper Larsen
Thank you for your answers and the obvious solution (banging head into wall). Best regards, Jesper 2008/12/1 Jae-Joon Lee [EMAIL PROTECTED]: On Mon, Dec 1, 2008 at 12:56 AM, Jesper Larsen [EMAIL PROTECTED] wrote: Hi Matplotlib users, I have a web application in which I would like to scale

[Matplotlib-users] Font sizes for web application

2008-11-30 Thread Jesper Larsen
Hi Matplotlib users, I have a web application in which I would like to scale the plots down if the users horizontal screen size is less than 800. Currently only the plot is scaled while the fonts are fixed in size (see link below for application). This is of course not a viable solution. I was

Re: [Matplotlib-users] Matplotlib or numpy bug?

2008-11-27 Thread Jesper Larsen
Hi Eric and Mauro, Thanks for your answers. 2008/11/27 Eric Firing [EMAIL PROTECTED]: It looks OK to me with mpl and numpy from svn. I tried upgrading to numpy from svn as well. Unfortunately the problem persists (I have attached a plot). I have seen the problem on two of my Ubuntu machines.

[Matplotlib-users] Matplotlib or numpy bug?

2008-11-26 Thread Jesper Larsen
Hi matplotlib users, The script below produces weird arrows when using numpy 1.2.1 and matplotlib trunk. When I reinstall numpy 1.2.0 instead it seems fine. I use the Agg backend. I am not sure where to start in tracking the bug down so I will just post the rather sparse information that I have.

[Matplotlib-users] savefig to StringIO and import into PIL

2008-10-22 Thread Jesper Larsen
Hi mpl users, I am trying to save a figure to a file like object (a StringIO object) and load this object into PIL (Python Imaging Library). The code for this is really simple (fig is my figure object): # This works fig.savefig('test.png', format='png') im = Image.open('test.png') # This fails

[Matplotlib-users] GTKAgg throwing an exception

2008-10-12 Thread Jesper Larsen
Hi matplotlib-users, I decided to try to make some plots that I have previously made in png format using the Agg backend in jpeg format using the GTKAgg backend (which I guess is the one I should use for this). Unfortunately my script exits with an error. I have therefore created a simple test

[Matplotlib-users] PNG performance tips

2008-03-03 Thread Jesper Larsen
Hi Matplotlib users, I have an application which produces PNG files using the AGG backend. When I profile the application I can see that much of the cpu time is spent in the method write_png called by print_figure in backend_agg.py. Does anyone know which backend is the best for producing fast

Re: [Matplotlib-users] PNG performance tips

2008-03-03 Thread Jesper Larsen
On Mon, 2008-03-03 at 08:16 -0500, Michael Droettboom wrote: I have an application which produces PNG files using the AGG backend. When I profile the application I can see that much of the cpu time is spent in the method write_png called by print_figure in backend_agg.py. I have seen this

[Matplotlib-users] ytick fontsize for exponentials

2007-11-28 Thread Jesper Larsen
) pylab.savefig('test.png') Has anyone got any suggestions on how to reduce the font size of the exponential as well or is this a bug in matplotlib? - Jesper -- Jesper Larsen, Ph.D. Scientist National Environmental Research Institute University of Aarhus Department of Marine Ecology Frederiksborgvej 399

Re: [Matplotlib-users] basemap covering a small area

2007-07-09 Thread Jesper Larsen
Hi Jeff, On Friday 06 July 2007 18:28, Jeff Whitaker wrote: Jesper: Hmm, I guess I never thought anyone would make a map that small. I tweaked some of the parameters to make it work better (svn revision 3470). Here's the diff in case you just want to apply the patch manually: Thanks for

Re: [Matplotlib-users] Basemap reuse

2007-06-04 Thread Jesper Larsen
On Friday 01 June 2007 18:52, Jeff Whitaker wrote: Jesper: Here's a better way, that allows you to label the meridians and parallels. It will only work for projection='cyl', although a similar solution could be worked up for 'merc' and 'mill'. snip Thanks, I have implemented that solution.

[Matplotlib-users] Basemap reuse

2007-06-01 Thread Jesper Larsen
Hi matplotlib users, I have a small web application for calculating tsunami travel times (http://ocean.dmi.dk/apps/tsunami). The application uses matplotlib/basemap for producing contour maps of the tsunami travel times. To speed up the response time of the application I made a version in

Re: [Matplotlib-users] noob questions

2007-05-24 Thread Jesper Larsen
Hi Trevis, On Wednesday 23 May 2007 17:17, Trevis Crane wrote: 1) It's pretty easy to include text on a graph, but are LaTex strings supported? That is, I want to write something like this on my plot: '\Phi_0 = blah...'. When passing a LaTex command as part of text string to be written on

Re: [Matplotlib-users] Reusing basemap instance

2007-05-11 Thread Jesper Larsen
On Thursday 10 May 2007 17:12, Simon Kammerer wrote: I use a list for every category of items (contoursets, clabels, texts, ...), as the way to remove them is slightly different. Then I remove them from the map axes: for contourset in contoursets_to_remove: for coll in

Re: [Matplotlib-users] Reusing basemap instance

2007-05-08 Thread Jesper Larsen
On Monday 07 May 2007 16:46, Jeff Whitaker wrote: Jesper: Can you be more specific about why you need a deepcopy? Those methods you mention do not modify the Basemap instance, although they do modify the axes instance they are used with. It shouldn't be a problem reusing the Basemap

[Matplotlib-users] Reusing basemap instance

2007-05-07 Thread Jesper Larsen
Hi matplotlib basemap users, I am doing a lot of plots of the same area but for different vertical levels, time steps and parameters. I am therefore trying to reuse my basemap instance (which in some cases is quite time consuming to setup). I am doing this by making a deepcopy of a basemap

Re: [Matplotlib-users] Reusing basemap instance

2007-05-07 Thread Jesper Larsen
On Monday 07 May 2007 16:02, Jesper Larsen wrote: The deepcopy operation takes almost as much time as creating a new basemap instance. If the basemap instance was unchanged by my plotting I would of course be able to avoid doing this and simply use a basemap instance without copying it. Am I

[Matplotlib-users] Memory leak in basemap or matplotlib

2007-03-26 Thread Jesper Larsen
Hi matplotlib users, I'm using matplotlib for a long running process. Unfortunately the memory usage continue to grow as the process runs. I have appended a simple example which illustrates this at the end of this mail. Unfortunately I haven't figured out how to use the information obtainable