You are reading an old version of the documentation (v1.5.0). For the latest version see

We're updating the default styles for Matplotlib 2.0

Learn what to expect in the new updates


Previous topic

api example code:

Next topic

axes_grid Examples

This Page

api example code: watermark_text.pyΒΆ

(Source code, png, hires.png, pdf)

Use a Text as a watermark
import numpy as np
#import matplotlib

import matplotlib.pyplot as plt

fig, ax = plt.subplots()
ax.plot(np.random.rand(20), '-o', ms=20, lw=2, alpha=0.7, mfc='orange')

# position bottom right
fig.text(0.95, 0.05, 'Property of MPL',
         fontsize=50, color='gray',
         ha='right', va='bottom', alpha=0.5)

Keywords: python, matplotlib, pylab, example, codex (see Search examples)