All Questions
1 question
0
votes
1
answer
77
views
Build a LaTeX label programmatically in matplotlib
I can render hardcoded LaTeX expressions in matplotlib labels, no problem:
import matplotlib.pyplot as plt
import numpy as np
x = np.linspace(0., 2.* np.pi, 20)
y = 2. * np.pi * np.stack((np.sin(x), ...