Jody,
perfect - that work's fine.
Regards, Sappy85
--
View this message in context:
http://matplotlib.1069221.n5.nabble.com/Pyplot-contour-plot-clabel-padding-tp44554p44591.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
-
Not sure, as I don't use basemap too often, but I bet calling:
m.drawmapboundary(fill_color='w')
before clabel would do the trick
Cheers, Jody
> On Dec 9, 2014, at 16:35 PM, Sappy85 wrote:
>
> Hi @all,
> the problem seems to be solved. Thanks Jody!
> What i have done:
>
> 1.) check out
Hi @all,
the problem seems to be solved. Thanks Jody!
What i have done:
1.) check out the xlim and ylim after clabel call
*xmin, xmax = plt.xlim() # return the current xlim
ymin, ymax = plt.ylim() # return the current ylim
print xmin,xmax
print ymin,ymax*
2.) use and set these limits before cl
Hi Jody,
i have posted the code. Here again:
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
from mpl_toolkits.basemap import Basemap
import pygrib
filename = "file.grib2"
grbs = pygrib.open('/data/' + filename)
grb= grbs[2]
data = grb.values
datac
I meant plt.xlim and plt.ylim. But its hard to tell what the problem is w/o
some sample code.
Cheers, Jody
> On Dec 5, 2014, at 1:07 AM, Sappy85 wrote:
>
> Hi Jody,
>
> what exactly du you mean - the plot windows size?
>
> I tried this:
> fig = plt.figure(figsize=(8.4,5.76))
>
> But sti
Hi Jody,
what exactly du you mean - the plot windows size?
I tried this:
fig = plt.figure(figsize=(8.4,5.76))
But still the same problem.
Regards
--
View this message in context:
http://matplotlib.1069221.n5.nabble.com/Pyplot-contour-plot-clabel-padding-tp44554p44557.html
Sent from the mat
Hi
Your code wans't included, but try setting your x and y limits *before* the
call to clabel. I think that the problem is that clabel makes a space in the
contours according to how large your font is, but if you then resize the plot
(zoom in) then the blank space is too large for the labels.
I have trouble with matplotlib / pyplot / basemap. I plot contour lines (air
pressure) on a map. I use clabel to show the value of the contour lines. But
the problem: the padding between the value and the contour line is too much.
I have found the parameter "inline_spacing", which i have set to zer