Dear all
pyplot seems to be plottting(joining points with lines) in the wrong order I
have checked all the algorithms relating the data being plotted and
everything is in order
http://matplotlib.1069221.n5.nabble.com/file/n42696/bad_line_joints.png
this can be observed in the image on how it
Hi im new to Python and basemap i am trying to follow the script below that
was posted in another thread here
http://matplotlib.1069221.n5.nabble.com/Plotting-NOAA-data-td19588.html
but im getting this error
alec@alec-imedia-S2870:~$ python Desktop/test.py
Hello,
Can you provide a short piece of code that shows the issue?
Do you provide your points in order and in a collection-like object that
preserves the order in which the points are appended? (a Dict or Set would
not preserve the ordering).
Regards
2014/1/9 Francisco Vargas
As the error message says, the problem is on Line 14:
print f.variables['WWSWHGT_P0_L1_GLL0']
a KeyError means that you tried to access an element that is not in a
dictionary. In this case f.variables is the dictionary and '
WWSWHGT_P0_L1_GLL0' is the element.
Did your data and script come of
Hi Paul,
Thanks for your reply, I managed to fix it after I realised the mistake I
was making.
I've currently got a new problem. If you look at the image below, there's a
lot of white showing up around the coasts which ideally I'd like to remove.
The map is drawn using basemap, is there a
I believe (as of v1.3.1) that after you create the legend you call
leg.draggable(True)
http://matplotlib.org/api/legend_api.html#matplotlib.legend.Legend.draggable
Outstanding! (Google was not my friend here. I wasn't searching for
draggable.)
It works if I only plot using the left Y axis.
On that assumption, I tried changing the legend to be associated with the
right Y axis:
if a legend is requested:
labels = [line.get_label() for line in lines]
if I have right axis data to plot:
right_plot.legend(lines, labels).draggable(True)
else:
I think you posted the same image in both cases. Without seeing the
problematic image, I can only guess that it's caused by the resolution of
your data.
On Thu, Jan 9, 2014 at 7:58 AM, A Short surfersh...@hotmail.com wrote:
Hi Paul,
Thanks for your reply, I managed to fix it after I realised
ok the file im using is this multi_2.glo_30m.t06z.grib2 from here
ftp://ftpprd.ncep.noaa.gov/pub/data/nccf/com/wave/prod/wave.20140109/ im
not sure its the right file to get wave heights of the North East Atlantic
so im trying different ones.
as you can see above in the top image there is some
On 2014/01/09 1:57 AM, vargfran wrote:
Dear all
pyplot seems to be plottting(joining points with lines) in the wrong order I
have checked all the algorithms relating the data being plotted and
everything is in order
http://matplotlib.1069221.n5.nabble.com/file/n42696/bad_line_joints.png
this
ftp://ftpprd.ncep.noaa.gov/pub/data/nccf/com/wave/prod/wave.20140109/
im
not sure its the right file to get wave heights of the North East Atlantic
so im trying different ones.
as you can see above in the top image there is some data missing (white
boxes) near the coast im wondering if its
Thats strange they look different on this browser. Hopefully the one below
youll see what i mean
Thanks
http://matplotlib.1069221.n5.nabble.com/file/n42708/figure_1.png
--
View this message in context:
How does it look if you remove the calls to `m.drawcoastlines()` and `
m.fillcontinents()`?
On Thu, Jan 9, 2014 at 1:05 PM, A Short surfersh...@hotmail.com wrote:
Thats strange they look different on this browser. Hopefully the one below
youll see what i mean
Thanks
Ive also changed the grib file from multi_2.glo_30m.t06z.grib2 to
nww3.t12z.grib.grib2 i still cant figure out which is the right file for the
North East Atlantic neither...i wonder if my data source is wrong..?
http://matplotlib.1069221.n5.nabble.com/file/n42710/figure_2.png
--
View this
Looks like it's just a coarse resolution to me. Try showing the data as an
image with no iterpolation.
On Thu, Jan 9, 2014 at 3:26 PM, A Short surfersh...@hotmail.com wrote:
Ive also changed the grib file from multi_2.glo_30m.t06z.grib2 to
nww3.t12z.grib.grib2 i still cant figure out which is
Thanks Paul i added m.imshow(data, origin='lower', interpolation='none')
Its made a little improvement but something still seems to be not right
http://matplotlib.1069221.n5.nabble.com/file/n42712/figure_3.png
--
View this message in context:
16 matches
Mail list logo