On 2014/03/03 11:40 AM, Ying Liu wrote:
> Hi,
>
> I want to know how to set the scientific ticker format in pylab. I know
> that I can set it to the form of 1e21, but what I want is something like
> x10^21, as follows:
>
> Inline image 1 -----> Inline image 2
>
>
> Can anybody tell me how to do this? I searched on this for a long time,
> but still I did not find the answer.
Execute this before plotting:
rcParams['axes.formatter.use_mathtext'] = True
or set it in your matplotlibrc file.
Eric
>
> Sorry to bother those who are not interested.
>
> Best regards
>
>
|