|
From: Tony Yu <ts...@gm...> - 2012-06-01 17:24:03
|
>
>
>> On 06/01/2012 02:58 PM, Mark Bakker wrote:
>>
>> Hello List,
>>
>> I want to plot plot([1000,2000])
>> Then on the y-axis, I want labels 1 and 2, and at the top of the y-axis I
>> want E3.
>> This works automatically with plot([1e7,2e7]).
>> But I assume that is something that can be set for plot([1e3,2e3]) as
>> well.
>>
>> I have been browsing the examples, and tried the (for me) obvious things,
>> but couldn't find the answer.
>>
>> Any help is appreciated,
>>
>> Mark
>>
>> Hi Mark,
You can set the (exponent) limits at which scientific notation is activated:
plt.ticklabel_format(scilimits=(-3, 3))
-Tony
|