What is the difference between setting clip_on and clip_box? For an
annotation, there does not appear to be any difference. But if I give the
annotation a bbox, then only clip_box works to clip the box at the axes
boundary. The example below demonstrates:
from matplotlib.pyplot import figure, show
fig = figure()
ax = fig.add_subplot(111)
ax.annotate('This is a long annotation',
xy=(1, 1),
clip_on=True,
bbox=dict(facecolor = 'white',
clip_on=True))
#clip_box = ax.bbox))
ax.set_xlim(-5, 2.8)
ax.set_ylim(-5, 5)
show()
PS. I am using MPL 0.98.3.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users