“SVG”:-graphics_

Make sure we can embed SVG graphics. Use title that has punctuation marks.

plot svg

Out:

Text(0, 1, 'svg')

import numpy as np
import matplotlib.pyplot as plt

from local_module import N  # N = 1000

t = np.arange(N) / float(N)
win = np.hanning(N)
plt.figure()
plt.plot(t, win, color='r')
plt.text(0, 1, 'svg', size=40, va='top')

Total running time of the script: ( 0 minutes 0.093 seconds)

Gallery generated by Sphinx-Gallery