On 2/1/11 11:40 AM, Darren Dale wrote:
> On Tue, Feb 1, 2011 at 12:29 PM, Jason Grout
> <jas...@cr...> 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$")
Yes, both that and
pylab.plot([0,1],[1,2],label="$\sigma^'_0$")
work fine. So we know a (somewhat clumsy) workaround.
Jason
|