<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:DengXian;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"\@等线";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        text-align:justify;
        text-justify:inter-ideograph;
        font-size:11.0pt;
        font-family:DengXian;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {mso-style-priority:99;
        mso-style-link:"Plain Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        color:#1F3864;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.PlainTextChar
        {mso-style-name:"Plain Text Char";
        mso-style-priority:99;
        mso-style-link:"Plain Text";
        font-family:"Calibri",sans-serif;
        color:#1F3864;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:"Courier New";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:DengXian;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoPlainText">Hi Eric,<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">I add you code to my code:<o:p></o:p></p>
<p class="MsoNormal" align="left" style="text-align:left;background:white"><span style="font-size:9.5pt;font-family:Consolas;color:black;background:#FFE4FF">fmt_no_sci</span><span style="font-size:9.5pt;font-family:Consolas;color:black"> = ScalarFormatter(</span><span style="font-size:9.5pt;font-family:Consolas;color:#660099">useOffset</span><span style="font-size:9.5pt;font-family:Consolas;color:black">=</span><span style="font-size:9.5pt;font-family:Consolas;color:navy">False</span><span style="font-size:9.5pt;font-family:Consolas;color:black">)<br>
<span style="background:#E4E4FF">fmt_no_sci</span>.set_scientific(</span><span style="font-size:9.5pt;font-family:Consolas;color:navy">False</span><span style="font-size:9.5pt;font-family:Consolas;color:black">)<br>
</span><i><span style="font-size:9.5pt;font-family:Consolas;color:gray"># ax.fmt_xaxis = fmt_no_sci<br>
<br>
</span></i><span style="font-size:9.5pt;font-family:Consolas;color:black">fig = plt.figure()<br>
ax = fig.add_subplot(</span><span style="font-size:9.5pt;font-family:Consolas;color:blue">111</span><span style="font-size:9.5pt;font-family:Consolas;color:black">)<br>
ax.plot(testdata)<br>
ax.fmt_xaxis = <span style="background:#E4E4FF">fmt_no_sci</span><br>
plt.show(</span><span style="font-size:9.5pt;font-family:Consolas;color:blue">0</span><span style="font-size:9.5pt;font-family:Consolas;color:black">)<o:p></o:p></span></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">The <b><span style="font-size:16.0pt">x axis value displayed at the left-bottom corner of the figure</span></b><span style="font-size:16.0pt">
</span>is still scientific notation, but not decimal notation.<o:p></o:p></p>
<p class="MsoPlainText">Please check the <b><span style="font-size:14.0pt">x axis value displayed at the left-bottom corner of the figure</span></b><span style="font-size:14.0pt">
</span>in the red circle.<o:p></o:p></p>
<p class="MsoPlainText"><img width="1294" height="730" style="width:13.4833in;height:7.6083in" id="Picture_x0020_1" src="cid:image001.jpg@01D34F42.FD042720"><o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Best Regards,<o:p></o:p></p>
<p class="MsoPlainText">Ardeal Liang<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">-----Original Message-----<br>
From: Matplotlib-users [mailto:matplotlib-users-bounces+ardeal.liang=philips.com@python.org] On Behalf Of Eric Firing<br>
Sent: 2017<span lang="ZH-CN" style="font-family:DengXian">年</span>10<span lang="ZH-CN" style="font-family:DengXian">月</span>27<span lang="ZH-CN" style="font-family:DengXian">日</span> 16:00<br>
To: matplotlib-users@python.org<br>
Subject: Re: [Matplotlib-users] Scientific notation digits at left-bottom corner of figure</p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">On 2017/10/26 9:50 PM, Ardeal LIANG wrote:<o:p></o:p></p>
<p class="MsoPlainText">> Hi,<o:p></o:p></p>
<p class="MsoPlainText">> <o:p></o:p></p>
<p class="MsoPlainText">> If I put the mouse on the figure, x and y axis are displayed on the
<o:p></o:p></p>
<p class="MsoPlainText">> left-bottom corner of the figure.<o:p></o:p></p>
<p class="MsoPlainText">> but the x axis is displayed as scientific notation, I want it to be
<o:p></o:p></p>
<p class="MsoPlainText">> displayed as decimal notation.<o:p></o:p></p>
<p class="MsoPlainText">> <o:p></o:p></p>
<p class="MsoPlainText">> how to make x axis or y axis values displayed as decimal notation on
<o:p></o:p></p>
<p class="MsoPlainText">> the left-bottom corner?<o:p></o:p></p>
<p class="MsoPlainText">> <o:p></o:p></p>
<p class="MsoPlainText">> *Best Regards,*<o:p></o:p></p>
<p class="MsoPlainText">> <o:p></o:p></p>
<p class="MsoPlainText">> *Ardeal Liang*<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Something like this, assuming your Axes is ax:<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">from matplotlib.ticker import ScalarFormatter<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">fmt_no_sci = ScalarFormatter(useOffset=False)<o:p></o:p></p>
<p class="MsoPlainText">fmt_no_sci.set_scientific(False)<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">ax.fmt_xaxis = fmt_no_sci<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Eric<o:p></o:p></p>
<p class="MsoPlainText">_______________________________________________<o:p></o:p></p>
<p class="MsoPlainText">Matplotlib-users mailing list<o:p></o:p></p>
<p class="MsoPlainText"><a href="mailto:Matplotlib-users@python.org"><span style="color:#1F3864;text-decoration:none">Matplotlib-users@python.org</span></a><o:p></o:p></p>
<p class="MsoPlainText"><a href="https://mail.python.org/mailman/listinfo/matplotlib-users"><span style="color:#1F3864;text-decoration:none">https://mail.python.org/mailman/listinfo/matplotlib-users</span></a><o:p></o:p></p>
</div>
<br>
<hr>
<font face="Arial" color="Gray" size="1">The information contained in this email may be confidential and/or legally protected under applicable law. The message is intended solely for the addressee(s). If you are not the intended recipient, you are hereby notified
 that any use, forwarding, dissemination, or reproduction of this email is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender by return e-mail and destroy all copies of the original email.<br>
</font>
</body>
</html>