Hi All,
This is to let you know that I have filed a feature request for a watermark function in mpl.
http://sourceforge.net/tracker/index.php?func=detail&atid=560721&aid=2001940&group_id=80706
Nils
Hi All,
This is to let you know that I have filed a feature request for a watermark function in mpl.
http://sourceforge.net/tracker/index.php?func=detail&atid=560721&aid=2001940&group_id=80706
Nils
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/matplotlib-users@lists.sourceforge.net/msg06036.html
The fiddly bits are just scaling it in such a way to fit.
Patches welcome...
Cheers,
Mike
Nils Wagner wrote:
Hi All,
This is to let you know that I have filed a feature request for a watermark function in mpl.http://sourceforge.net/tracker/index.php?func=detail&atid=560721&aid=2001940&group_id=80706
Nils
-------------------------------------------------------------------------
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
matplotlib-devel List Signup and Options
--
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA
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
On Tue, Jun 24, 2008 at 1:10 PM, Michael Droettboom <mdroe@...31...> 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:
[Matplotlib-users] Watermarking figures/axes
The fiddly bits are just scaling it in such a way to fit.
Actually, I would like to display an image (png format) 'under' several lines.
Assuming that a watermark function will be supported by mpl, it would be nice to have an example in
matplotlib/examples/pylab_examples
Nils
On Tue, 24 Jun 2008 14:10:08 -0400 Michael Droettboom <mdroe@...31...> 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:
[Matplotlib-users] Watermarking figures/axes
The fiddly bits are just scaling it in such a way to fit.
Patches welcome...
Cheers,
Mike
johnh@...539...:examples> svn commit -m 'added simple watermark examples'
Adding examples/api/watermark_image.py
Adding examples/api/watermark_text.py
Adding (bin) examples/data/logo2.png
Transmitting file data ...
Committed revision 5669.
On Tue, Jun 24, 2008 at 1:27 PM, Nils Wagner <nwagner@...425...> wrote:
Actually, I would like to display an image (png format)
'under' several lines.
Assuming that a watermark function will be supported by
mpl, it would be nice to have an example inmatplotlib/examples/pylab_examples
Great ! Thank you very much !!
Nils
On Tue, 24 Jun 2008 14:03:33 -0500 "John Hunter" <jdh2358@...149...> wrote:
On Tue, Jun 24, 2008 at 1:27 PM, Nils Wagner > <nwagner@...425...> wrote:
Actually, I would like to display an image (png format)
'under' several lines.
Assuming that a watermark function will be supported by
mpl, it would be nice to have an example inmatplotlib/examples/pylab_examples
johnh@...539...:examples> svn commit -m 'added simple watermark examples'
Adding examples/api/watermark_image.py
Adding examples/api/watermark_text.py
Adding (bin) examples/data/logo2.png
Transmitting file data ...
Committed revision 5669.