.. _sphx_glr_gallery_api_watermark_text.py: ============== Text watermark ============== Use a Text as a watermark .. image:: /gallery/api/images/sphx_glr_watermark_text_001.png :align: center .. code-block:: python import numpy as np #import matplotlib #matplotlib.use('Agg') import matplotlib.pyplot as plt # Fixing random state for reproducibility np.random.seed(19680801) fig, ax = plt.subplots() ax.plot(np.random.rand(20), '-o', ms=20, lw=2, alpha=0.7, mfc='orange') ax.grid() # position bottom right fig.text(0.95, 0.05, 'Property of MPL', fontsize=50, color='gray', ha='right', va='bottom', alpha=0.5) plt.show() .. only :: html .. container:: sphx-glr-footer :class: sphx-glr-footer-example .. container:: binder-badge .. image:: https://static.mybinder.org/badge.svg :target: https://mybinder.org/v2/gh/choldgraf/matplotlib/gh-pages?filepath=_downloads/watermark_text.ipynb :width: 150 px .. container:: sphx-glr-download :download:`Download Python source code: watermark_text.py ` .. container:: sphx-glr-download :download:`Download Jupyter notebook: watermark_text.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_