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 anti
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 sh
Pierre Haessig :
> 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 a
ansparent
> colors ?
> If yes, what is your .matplotlibrc ?
>
>
> Nicolas
>
>
> On 24 Mar 2014, at 11:49, Jesper Larsen wrote:
>
> > Thanks Pierre,
> >
> > from __future__ import division did not help me, I am using mpl 1.1.1rc.
> I will try upgrading to a
equest rather than storing the tiles on disk (much 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
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 co
point.
I will therefore instead just use levels=norm.boundaries.
Best regards,
Jesper
2014-03-28 15:17 GMT+01:00 Ian Thomas :
> On 28 March 2014 12:56, Jesper Larsen wrote:
>
>> I believe the normalization behaviour is wrong for contourf at least when
>> using a BoundaryNorm. I
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=6&lat=62&lon=-45&layer=FCOO%20Standard&overlays=TTFFF
This is fine for our "power users". We
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
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 the
dea of where the
> problem is) would also be great!
>
> Tom
>
> On Fri, Apr 24, 2015 at 8:38 AM Jesper Larsen
> wrote:
>
>> Hi Matplotlib Users,
>>
>> When I make wind barbs with rounding enabled and custom barb increments I
>> noticed that there were
Hi Matplotlib users,
We are using Matplotlib for a web service which makes PNG images on the fly
for presentation on a map (web site using the web service is here:
https://ifm-beta.fcoo.dk)
Performance and image size are two major concerns for us. We therefore save
the resulting RGBA PNG to a buf
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
scr
Hi Eric and Goyo
Thanks for your comments and thanks for your working example, Goyo.
Eric Firing <[EMAIL PROTECTED]>:
> If you are only using savefig, not plotting to the screen, then you might as
> well use the agg backend, not the gtkagg.
I have previously used the agg backend without any prob
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
i
Hi mpl users,
I get some strange results when I make a quiver plot of a masked
array. This script:
from numpy.ma import zeros, masked_values
from pylab import quiver, savefig
a = masked_values(zeros((5,5)), 0)
quiver(a,a)
savefig('test.png')
gives me a plot which has 25 horizontal arrows (althou
Hi Michael,
2008/10/22 Michael Droettboom <[EMAIL PROTECTED]>:
> You need to "rewind" the StringIO cursor before opening with PIL:
>
> imgdata = StringIO.StringIO()
> fig.savefig(imgdata, format='png')
> imgdata.seek(0)
> im = Image.open(imgdata)
Thanks. It works fine now.
Best regards,
Jesper
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.
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.
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
the
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
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 plo
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 re
- 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.worldwildwe
ached massif profile -- 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
>&
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 whe
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
ma
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 f
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 inst
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 co
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 inst
On Tuesday 08 May 2007 20:55, Jeff Whitaker wrote:
> Jesper: You might consider just deleting the figure elements that you
> don't want to re-use (instead of figuring out everything you do want to
> re-use).
I have an axes instance on which I have plotted my map decorations
(coastlines, meridian
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 contourset.co
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
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 which
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'.
Thanks,
I have implemented that solution. Th
Hi matplotlib users,
I am interested in making basemap plots covering only a small area. When I do
this the meridians and parallels (and labelling of these) look strange. I
have pasted in a simple example below showing the problem (at least on my
computer):
import pylab
from matplotlib.toolkit
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
)
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
Frederiksb
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 go
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 se
41 matches
Mail list logo