<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=utf-8">
<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:宋体;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@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:微软雅黑;
        panose-1:2 11 5 3 2 2 4 2 2 4;}
@font-face
        {font-family:"\@微软雅黑";}
@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;}
@font-face
        {font-family:BitstreamVeraSansMono-Roman;
        panose-1:0 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        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;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.apple-converted-space
        {mso-style-name:apple-converted-space;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F3864;}
span.PlainTextChar
        {mso-style-name:"Plain Text Char";
        mso-style-priority:99;
        mso-style-link:"Plain Text";
        font-family:"Calibri",sans-serif;
        color:#1F3864;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@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="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F3864">Hi Jody,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F3864"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F3864">Please check the red ellipse in the picture.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F3864"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:16.0pt;color:#1F3864">I want the value 1.85092e+06 to be 1850922 in the red ellipse in the following picture.<o:p></o:p></span></b></p>
<p class="MsoNormal"><span style="color:#1F3864"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F3864"><o:p> </o:p></span></p>
<p class="MsoNormal" style="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.6in" id="Picture_x0020_1" src="cid:image001.jpg@01D35169.F2F33F40"><o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoNormal"><span style="color:#1F3864"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F3864"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal" style="text-align:justify"><b><span style="font-size:10.5pt;color:#1F3864">Best Regards,<o:p></o:p></span></b></p>
<p class="MsoNormal" style="text-align:justify"><b><span style="font-size:10.5pt;color:#1F3864">Ardeal Liang<o:p></o:p></span></b></p>
</div>
<p class="MsoNormal"><span style="color:#1F3864"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b>From:</b> Jody Klymak [mailto:jklymak@uvic.ca] <br>
<b>Sent:</b> 2017<span lang="ZH-CN" style="font-family:"微软雅黑",sans-serif">年</span>10<span lang="ZH-CN" style="font-family:"微软雅黑",sans-serif">月</span>30<span lang="ZH-CN" style="font-family:"微软雅黑",sans-serif">日</span> 10:24<br>
<b>To:</b> Ardeal LIANG <ardeal.liang@philips.com><br>
<b>Cc:</b> Firing Eric <efiring@hawaii.edu>; matplotlib-users@python.org<br>
<b>Subject:</b> Re: [Matplotlib-users] Scientific notation digits at left-bottom corner of figure<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal"><br>
<br>
<o:p></o:p></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal">On Oct 29, 2017, at  17:46 PM, Ardeal LIANG <<a href="mailto:ardeal.liang@philips.com">ardeal.liang@philips.com</a>> wrote:<o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"BitstreamVeraSansMono-Roman",serif">HI Eric,<br>
<br>
Did you review the picture attached in my former email?<br>
I suspect you go to the wrong direction about what I want to ask.<br>
<br>
Best Regards,<br>
Ardeal Liang</span><o:p></o:p></p>
</div>
</blockquote>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Hi Ardeal,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Its not clear to me what you want.  Do you want 3.2 x 10^3 instead of 0.0032?  The former is scientific and the latter decimal.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Thanks,  Jody<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<p class="MsoNormal"><br>
<br>
<o:p></o:p></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"BitstreamVeraSansMono-Roman",serif"><br>
-----Original Message-----<br>
From: Eric Firing [</span><a href="mailto:efiring@hawaii.edu"><span style="font-size:9.0pt;font-family:"BitstreamVeraSansMono-Roman",serif">mailto:efiring@hawaii.edu</span></a><span style="font-size:9.0pt;font-family:"BitstreamVeraSansMono-Roman",serif">]<br>
Sent: 2017</span><span lang="ZH-CN" style="font-size:9.0pt;font-family:宋体">年</span><span style="font-size:9.0pt;font-family:"BitstreamVeraSansMono-Roman",serif">10</span><span lang="ZH-CN" style="font-size:9.0pt;font-family:宋体">月</span><span style="font-size:9.0pt;font-family:"BitstreamVeraSansMono-Roman",serif">28</span><span lang="ZH-CN" style="font-size:9.0pt;font-family:宋体">日</span><span style="font-size:9.0pt;font-family:"BitstreamVeraSansMono-Roman",serif">
 1:23<br>
To: Ardeal LIANG <</span><a href="mailto:ardeal.liang@philips.com"><span style="font-size:9.0pt;font-family:"BitstreamVeraSansMono-Roman",serif">ardeal.liang@philips.com</span></a><span style="font-size:9.0pt;font-family:"BitstreamVeraSansMono-Roman",serif">>;<span class="apple-converted-space"> </span></span><a href="mailto:matplotlib-users@python.org"><span style="font-size:9.0pt;font-family:"BitstreamVeraSansMono-Roman",serif">matplotlib-users@python.org</span></a><span style="font-size:9.0pt;font-family:"BitstreamVeraSansMono-Roman",serif"><br>
Subject: Re: [Matplotlib-users] Scientific notation digits at left-bottom corner of figure<br>
<br>
I'm getting a different result, but on the basic point we now agree:<br>
the ScalarFormatter is not the right tool for this.  What you need is a function that takes a number and returns the kind of string you want.<br>
<br>
Examples:<br>
<br>
def format_as_int(num):<br>
    return str(int(num))<br>
<br>
def format_float_no_sci(num):<br>
    return "%f" % num<br>
<br>
Eric<br>
<br>
On 2017/10/26 10:07 PM, Ardeal LIANG wrote:<br style="font-variant-caps: normal;text-align:start;-webkit-text-stroke-width: 0px;word-spacing:0px">
<br>
</span><o:p></o:p></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"BitstreamVeraSansMono-Roman",serif">Hi Eric,<br>
<br>
I added your code to my code:<br>
<br>
*from *matplotlib.ticker *import *ScalarFormatter<br>
<br>
fmt_no_sci = ScalarFormatter(useOffset=False)<br>
fmt_no_sci.set_scientific(False)<br>
<br>
/# ax.fmt_xaxis = fmt_no_sci<br>
<br>
/prow = 4<br>
pcol = 1<br>
pidx = 0<br>
fig = plt.figure()<br>
pidx += 1<br>
axx = fig.add_subplot(prow, pcol, pidx, ylabel=*'rawdata'*)<br>
axx.plot(np.abs(testdata))<br>
<br>
axx.fmt_xaxis = fmt_no_sci<br>
<br>
The *x axis value displayed at the left-bottom corner of the figure*is<br>
still scientific notation, but not decimal notation.<br>
<br>
Best Regards,<br>
<br>
Ardeal Liang<br>
<br>
-----Original Message-----<br>
From: Matplotlib-users<br>
[<a href="mailto:matplotlib-users-bounces+ardeal.liang=philips.com@python.org">mailto:matplotlib-users-bounces+ardeal.liang=philips.com@python.org</a>]<br>
On Behalf Of Eric Firing<br>
Sent: 2017</span><span lang="ZH-CN" style="font-size:9.0pt;font-family:宋体">年</span><span style="font-size:9.0pt;font-family:"BitstreamVeraSansMono-Roman",serif">10</span><span lang="ZH-CN" style="font-size:9.0pt;font-family:宋体">月</span><span style="font-size:9.0pt;font-family:"BitstreamVeraSansMono-Roman",serif">27</span><span lang="ZH-CN" style="font-size:9.0pt;font-family:宋体">日</span><span style="font-size:9.0pt;font-family:"BitstreamVeraSansMono-Roman",serif">
 16:00<br>
To: <a href="mailto:matplotlib-users@python.org">matplotlib-users@python.org</a><br>
Subject: Re: [Matplotlib-users] Scientific notation digits at<br>
left-bottom corner of figure<br>
<br>
On 2017/10/26 9:50 PM, Ardeal LIANG wrote:<br>
<br>
<br>
<o:p></o:p></span></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"BitstreamVeraSansMono-Roman",serif">Hi,<o:p></o:p></span></p>
</blockquote>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"BitstreamVeraSansMono-Roman",serif"><br>
<br>
<o:p></o:p></span></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"BitstreamVeraSansMono-Roman",serif"><o:p> </o:p></span></p>
</blockquote>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"BitstreamVeraSansMono-Roman",serif"><br>
<br>
<o:p></o:p></span></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"BitstreamVeraSansMono-Roman",serif">If I put the mouse on the figure, x and y axis are displayed on the<o:p></o:p></span></p>
</blockquote>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"BitstreamVeraSansMono-Roman",serif"><br>
<br>
<o:p></o:p></span></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"BitstreamVeraSansMono-Roman",serif">left-bottom corner of the figure.<o:p></o:p></span></p>
</blockquote>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"BitstreamVeraSansMono-Roman",serif"><br>
<br>
<o:p></o:p></span></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"BitstreamVeraSansMono-Roman",serif">but the x axis is displayed as scientific notation, I want it to be<o:p></o:p></span></p>
</blockquote>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"BitstreamVeraSansMono-Roman",serif"><br>
<br>
<o:p></o:p></span></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"BitstreamVeraSansMono-Roman",serif">displayed as decimal notation.<o:p></o:p></span></p>
</blockquote>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"BitstreamVeraSansMono-Roman",serif"><br>
<br>
<o:p></o:p></span></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"BitstreamVeraSansMono-Roman",serif"><o:p> </o:p></span></p>
</blockquote>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"BitstreamVeraSansMono-Roman",serif"><br>
<br>
<o:p></o:p></span></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"BitstreamVeraSansMono-Roman",serif">how to make x axis or y axis values displayed as decimal notation<o:p></o:p></span></p>
</blockquote>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"BitstreamVeraSansMono-Roman",serif">on<br>
<br>
<br>
<o:p></o:p></span></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"BitstreamVeraSansMono-Roman",serif">the left-bottom corner?<o:p></o:p></span></p>
</blockquote>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"BitstreamVeraSansMono-Roman",serif"><br>
<br>
<o:p></o:p></span></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"BitstreamVeraSansMono-Roman",serif"><o:p> </o:p></span></p>
</blockquote>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"BitstreamVeraSansMono-Roman",serif"><br>
<br>
<o:p></o:p></span></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"BitstreamVeraSansMono-Roman",serif">*Best Regards,*<o:p></o:p></span></p>
</blockquote>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"BitstreamVeraSansMono-Roman",serif"><br>
<br>
<o:p></o:p></span></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"BitstreamVeraSansMono-Roman",serif"><o:p> </o:p></span></p>
</blockquote>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"BitstreamVeraSansMono-Roman",serif"><br>
<br>
<o:p></o:p></span></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"BitstreamVeraSansMono-Roman",serif">*Ardeal Liang*<o:p></o:p></span></p>
</blockquote>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"BitstreamVeraSansMono-Roman",serif"><br>
Something like this, assuming your Axes is ax:<br>
<br>
from matplotlib.ticker import ScalarFormatter<br>
<br>
fmt_no_sci = ScalarFormatter(useOffset=False)<br>
<br>
fmt_no_sci.set_scientific(False)<br>
<br>
ax.fmt_xaxis = fmt_no_sci<br>
<br>
Eric<br>
<br>
_______________________________________________<br>
<br>
Matplotlib-users mailing list<br>
<br>
<a href="mailto:Matplotlib-users@python.org">Matplotlib-users@python.org</a> <<a href="mailto:Matplotlib-users@python.org">mailto:Matplotlib-users@python.org</a>><br>
<br>
<a href="https://mail.python.org/mailman/listinfo/matplotlib-users">https://mail.python.org/mailman/listinfo/matplotlib-users</a><br>
<br>
<br>
----------------------------------------------------------------------<br>
-- The information contained in this email may be confidential and/or<br>
legally protected under applicable law. The message is intended solely<br>
for the addressee(s). If you are not the intended recipient, you are<br>
hereby notified that any use, forwarding, dissemination, or<br>
reproduction of this email is strictly prohibited and may be unlawful.<br>
If you are not the intended recipient, please contact the sender by<br>
return e-mail and destroy all copies of the original email.<o:p></o:p></span></p>
</blockquote>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"BitstreamVeraSansMono-Roman",serif"><br>
<br>
________________________________<br>
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>
_______________________________________________<br>
Matplotlib-users mailing list<br>
</span><a href="mailto:Matplotlib-users@python.org"><span style="font-size:9.0pt;font-family:"BitstreamVeraSansMono-Roman",serif">Matplotlib-users@python.org</span></a><span style="font-size:9.0pt;font-family:"BitstreamVeraSansMono-Roman",serif"><br>
</span><a href="https://mail.python.org/mailman/listinfo/matplotlib-users"><span style="font-size:9.0pt;font-family:"BitstreamVeraSansMono-Roman",serif">https://mail.python.org/mailman/listinfo/matplotlib-users</span></a><o:p></o:p></p>
</div>
</blockquote>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</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>