Hi
I want my plot to be visible when I display some text over it. Why
doesn't this work?
fig = plt.figure(figsize=(5,5), dpi=100)
ax=fig.add_axes([0.1,0.1,0.8,.8])
ax.hist(data)
box1 = TextArea("Minimum: %f" % mind, textprops=dict(color="k"))
box2 = TextArea("Maximum: %f" % maxd, textprops=dict(color="k"))
box = VPacker(children=[box1,box2],
align="center",
pad=0, sep=5)
anchored_box = AnchoredOffsetbox(loc=3,
child=box, pad=0.,
frameon=True,
bbox_to_anchor=(0.8, 0.72),
bbox_transform=ax.transAxes,
borderpad=0.,
)
art=ax.add_artist(anchored_box)
art.set_alpha(0.5)
-Mathew
------------------------------------------------------------------------------
This SF.net email is sponsored by
Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev
_______________________________________________
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users