Hello list, I'm encountering a problem with annotate using the latest svn and GTKAgg- backend.
I plot several annotate-arrows in my script, but some of them aren't saved to the eps/pdf - file. More precisely the lower left arrow in the attached example, who touches the lower (negative) boundary of the plot arrea shows up in the matplotlib figure and the png-picture, but not in the pdf / eps output. It seems to be important that in my case the lower limit of the y-axis is negative. I found two solutions to this problems, which are the middle and right of the lower arrows, but I don't understand why this is needed. The middle arrow does not touch the lower boundary and the right arrow has an inverted direction and inverted arrowstyle. Is this a bug or did I miss something? Kind regards and thanks in advance for any hints. Matthias
<<attachment: annotate_error.eps>>
annotate_error.pdf
Description: Adobe PDF document
<<attachment: annotate_error.png>>
import matplotlib.pyplot as plt ax = plt.subplot(111) plt.axis([0.0, 0.4, -0.5, 0.5]) ax.annotate("", xy = (0.1, 0.2), xytext = (0.1, 0.5), arrowprops = dict(arrowstyle = "->")) ax.annotate("", xy = (0.2, 0.5), xytext = (0.2, 0.2), arrowprops = dict(arrowstyle = "->")) ax.annotate("", xy = (0.3, 0.2), xytext = (0.3, 0.5), arrowprops = dict(arrowstyle = "<-")) ax.annotate("", xy = (0.1, -0.5), xytext = (0.1, -0.2), arrowprops = dict(arrowstyle = "->")) ax.annotate("", xy = (0.2, -0.49999), xytext = (0.2, -0.2), arrowprops = dict(arrowstyle = "->")) ax.annotate("", xy = (0.3, -0.2), xytext = (0.3, -0.5), arrowprops = dict(arrowstyle = "<-")) plt.savefig("annotate_error.eps") plt.savefig("annotate_error.pdf") plt.savefig("annotate_error.png") plt.show()
------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users