Observe the following image:
import pylab
pylab.plot([0,1],[1,2],label="$\sigma'_0$")
pylab.legend()
pylab.savefig('test.png')
Notice that the \prime introduced by the single quote in the legend is not raised above the \sigma, like it would be in TeX (i.e., in TeX, $\sigma'_0$ is equivalent to $\sigma^\prime_0$, IIRC). Is this a design decision, or is it easy to fix? This is with matplotlib 1.0.0.
Thanks,
Jason
Did you try:
pylab.plot([0,1],[1,2],label="\\sigma^\\prime\_0")
?
···
On Tue, Feb 1, 2011 at 12:29 PM, Jason Grout <jason-sage@...2130...> wrote:
Observe the following image:
import pylab
pylab.plot([0,1],[1,2],label="\\sigma'\_0")
pylab.legend()
pylab.savefig('test.png')
Notice that the \prime introduced by the single quote in the legend is
not raised above the \sigma, like it would be in TeX (i.e., in TeX,
\\sigma'\_0 is equivalent to \\sigma^\\prime\_0, IIRC). Is this a design
decision, or is it easy to fix?
Yes, both that and
pylab.plot([0,1],[1,2],label="\\sigma^'\_0")
work fine. So we know a (somewhat clumsy) workaround.
Jason
···
On 2/1/11 11:40 AM, Darren Dale wrote:
On Tue, Feb 1, 2011 at 12:29 PM, Jason Grout > <jason-sage@...2130...> wrote:
Observe the following image:
import pylab
pylab.plot([0,1],[1,2],label="\\sigma'\_0")
pylab.legend()
pylab.savefig('test.png')
Notice that the \prime introduced by the single quote in the legend is
not raised above the \sigma, like it would be in TeX (i.e., in TeX,
\\sigma'\_0 is equivalent to \\sigma^\\prime\_0, IIRC). Is this a design
decision, or is it easy to fix?
Did you try:
pylab.plot([0,1],[1,2],label="\\sigma^\\prime\_0")