great! but one question though: I need to put the text with figtext and
thus use figure coordinates (instead of pixel coord).
So how would I replace the :

matplotlib.transforms.lbwh_to_bbox

?

thanks

Eric
John Hunter wrote
> def ondraw(event):
>     l,b,w,h = t.get_window_extent(event.renderer).get_bounds()
>
>     figw, figh = fig.figwidth.get(), fig.figheight.get()
>     # expand the rectangle to account for larger text; coords are pixel space
>     ondraw.bbox = matplotlib.transforms.lbwh_to_bbox(
>         l-10, b-10, w+200, h+20)
>     ondraw.background = fig.canvas.copy_from_bbox(ondraw.bbox)
> ondraw.background = None
> ondraw.bbox = None
>   

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to