|
From: Jeffrey B. <je...@MI...> - 2010-02-10 17:42:38
|
Hi everyone,
This has been brought up before, but not completely addressed. Is it
possible to get the text in a Legend to match the rest of the text
when using LateX? Here is an example of the problem:
import matplotlib as mpl
mpl.rcParams['text.usetex'] = True
import matplotlib.pyplot as plt
fig = plt.figure()
ax = fig.add_subplot(111)
ax.plot([1,5,2,3]) # random data
plt.figlegend(ax.lines,[r'$\rm{label}$ label'],loc='upper left')
plt.show()
The first word is at least in a roman font, but the font size is
wrong. I am using svn revision 8005 with gtkagg backend on linux, and
confirm the behavior with 0.99.0 with tkagg on OS X.
Thanks,
Jeff
|