Jeff, I finally managed to obtain a neat image with imshow and griddata
The code snippet is here: http://snipplr.com/view/8307/map-plotting-python-code-temporary/ The only problem I have is now a grey line surrounding the plot, as you can see in this low-res sample: http://www.kirikoo.net/images/5shrad-20080917-151205.png I have added zero-value points at the corners of the map, thinking that interpolation simply didn't do its job between the points because of a lack of data, but it's still the same The masked array has been replaced with a "replace by zero if superior to -1.2" thing as the border was surrounding masked zone as well Is there a border to imshow? If yes, how to remove it? Also, I tried with aspect='auto' as it seemed to be there for that, but still no progress Thanks for the tips and have a nice evening! Antoine De Pauw Collaborateur de recherches, Informatique - Research collaborator, IT Laboratoire de chimie quantique et photophysique - Quantum chemistry and photophysics laboratory Université Libre de Bruxelles - ULB -----Original Message----- From: Jeff Whitaker [mailto:[EMAIL PROTECTED] Sent: mercredi 17 septembre 2008 13:40 To: De Pauw Antoine Cc: 'John Hunter'; 'Eric Firing'; 'Matplotlib Users' Subject: Re: [Matplotlib-users] Information request De Pauw Antoine wrote: > Hi John, > > I used your example with the missing .ax to modify these font sizes and it > works nicely > > Anyway, by investigation, I found that there is no way of interpolation > using scattered data > > I tried to figure out how to grid my values and use imshow or pcolor, but > with no success yet.. > > Could you explain me how I could do to grid, for example, that data: > > Lat[] (double array containing latitudes) > Lon[] (double array containing longitudes) > Val[] (double array containing values) > > Each of the arrays having the same size, and Val[1] has latitude Lat[1] and > longitude Lon[1], and so on, and the coordinates are completely unordered > > When I try to use griddata and use imshow or pcolor with the output array, > my figure is blank > > A simple example or guideline would do, I guess, as I've already gained a > good knowledge of the language > > Thanks in advance > > PS: Here's the code snippet: > http://snipplr.com/view/8307/map-plotting-python-code-temporary/ > > > Antoine De Pauw > Collaborateur de recherches, Informatique - Research collaborator, IT > Laboratoire de chimie quantique et photophysique - Quantum chemistry and > photophysics laboratory > Université Libre de Bruxelles - ULB > Antoine: Griddata should work fine. Your code snippet does not try to use griddata, so I can't guess what is wrong. Let me suggest again - please post complete, self-contained examples that demonstrate your problem. Did you look at the griddata_demo.py example? -Jeff > > -----Original Message----- > From: John Hunter [mailto:[EMAIL PROTECTED] > Sent: mercredi 17 septembre 2008 13:00 > To: De Pauw Antoine > Cc: Eric Firing; Jeff Whitaker; Matplotlib Users > Subject: Re: [Matplotlib-users] Information request > > On Wed, Sep 17, 2008 at 3:28 AM, De Pauw Antoine <[EMAIL PROTECTED]> wrote: > > >> The image generated is here: >> http://www.kirikoo.net/images/5shrad-20080917-102544.png >> >> Also, I couldn't find any way to reduce the colorbar font size >> > > The colorbar method returns a matplotlib.colorbar.Colorbar instance, > which has matplotlib.axes.Axes instance stored as an attribute. Thus > you can do: > > cb = colorbar(something....) > > for t in cb.get_yticklabels(): > t.set_fontsize(10) > > Eric: when you get some time, could you add docstrings to colorbar > which document the publicly accessible attributes? > > JDH > > -- Jeffrey S. Whitaker Phone : (303)497-6313 NOAA/OAR/CDC R/PSD1 FAX : (303)497-6449 325 Broadway Boulder, CO, USA 80305-3328 ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users