X Tutup
Skip to content

Latex greek letters in axis labels #7274

@DanyPPage

Description

@DanyPPage

Here is a simple example were the use of greek letters with Latex fails:

import matplotlib.pyplot as plt
X = [[1.,1.], [2.,2.], [3.,3.]]
Y = [[1.,1.], [2.,2.], [3.,3.]]
fig = plt.figure()
ax = fig.add_subplot(111)
ax.scatter(X, Y)
ax.set_xlabel('$\rho$')
plt.show()

Notice that some letters, as \phi, work, and others don't.

I'm using Python2.7 on a Mac with Yosemite, and python and all packages were
installed using Macport and my Matplotlib is
py27-matplotlib @1.5.2_0+cairo (active)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      X Tutup