On Tue, Jun 24, 2008 at 1:10 PM, Michael Droettboom <[EMAIL PROTECTED]> wrote:
> There are a couple of different ways this could be done.
>
> Alpha-blending over top of the image (should work for everything but
> Postscript):
>
> gcf().text(0.1, 0.1, "Watermark", rotation=45,
> fontproperties=FontProperties(size=64), alpha=0.2)
>
>
> Or under the axes as described here:
>
> http://www.mail-archive.com/[EMAIL PROTECTED]/msg06036.html
>
> The fiddly bits are just scaling it in such a way to fit.

One could use the adaptive approach I posted previously for
subplots_adjust -- connect to the draw event and recursively scale the
fontsize until is mostly covers the canvas
  
http://matplotlib.sourceforge.net/doc/html/faq/howto_faq.html#how-do-i-automatically-make-room-for-my-tick-labels

One could also use figimage for this if you want to watermark with a
PNG or JPG, but right now figure artists don't respect zorder so some
minor work would need to be done to get the watermark on top.

JDH

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to