I can't reproduce the error and I guess it is back end specific.
Anyhow, the fontproperties object were created incorrectly and this
may be cause of the problem. I just thought your original dictionary
was in a correct form.
So, test your code w/o fontproperties and see if your text is placed
in a
Jae-Joon - Thank you for your suggestion. I wasn't aware I needed the
alignments.
However, when I try your sample code in my script, I get a sequence of
rendering errors if I use show() or savefig():
Traceback (most recent call last):
File
"/Library/Python/2.5/site-packages/matplotlib-0.98.
I guess you're missing vertical and horizontal alignment.
Also, your font properties were not set correctly. The 4th argument of
the text function is a color.
fontdict2 = {'fontweight':'light',
'color': 'r',
'fontsize':fontsize}
fp = FontProperties(fontdict2)
labels = p
Is the list of return values from the clabel() function supposed to
represent the position and orientation of the contour labels? I have a
script below where I try to re-draw the contour labels using the Text
objects in the list returned from clabel(), and they do not line up in
my output. I'