Closed victoria-cherkas closed 2 years ago
@victoria-cherkas could you please provide a netcdf file to reproduce this issue?
I tried with the test netcdf file in this repo and I think the problem is in the autoscaling of the axes which is the default option for map_extent
.
as a workaround, you can set the map_extend
value to "data"
to stick to the lonlatbox, e.g.
sp = psy.plot.mapvector("test-t2m-u-v.nc", name=[["u", "v"]], density=10, lonlatbox="Europe", map_extent="data")
I need to have a closer look to see if that issue comes from psyplot or cartopy.
but just to be sure @victoria-cherkas
what you get is something like
and what you expect is something like
is this correct?
Hi Philipp, Yes exactly that is what I'd expect, as in your images. I will try the map_extent=data as you suggest
Your work around works, using map_extent= 'data' and lonlatbox, thanks. Equally I can just use map_extent.
Code Sample
Problem description
I dont seem to be able to get lonlatbox and density to work simultaneously on a vector plot. map_extent does work with density, but not lonlatbox.
Expected Output
Expect lonlatbox to work as usual when specifying arrow density in vectorplot.
Output of
psyplot -aV
NOTE
This is a bug report.