Python plot: Unequal positioning of axis labels

34 Views Asked by At

I generated the following plot using plt.plot(x,y)

This is the plot

As you can see, the position of the label 1/epsilon is different from the positioning of the other labels.

How can this issue be fixed?

This is the array with the labels:

x = [s.strip('\(\)') for s in ['$\epsilon^2$', '$\epsilon^1$', '$1/\epsilon$','$1/\epsilon^2$',
                               '$1/\epsilon^3$']]

I have not found a solution so far. Could I show the labels using \frac{}{}?

0

There are 0 best solutions below