How to change matplotlib axes so that that it does not display in scientific notation? [duplicate]


This question already has an answer here:

<ul><li> <a href="/questions/14711655/how-to-prevent-numbers-being-changed-to-exponential-form-in-python-matplotlib-fi" dir="ltr" rel="nofollow">How to prevent numbers being changed to exponential form in Python matplotlib figure</a> <span class="question-originals-answer-count"> 3 answers </span> </li> </ul>

How to change matplotlib axes so that that it does not display in scientific notation? (i.e. displaying 626.70 ... 626.77 in this case) I tried changing the x ticks by doing ax.xaxis.set_ticks(np.arange(626.720, 626.727, 0.001)), but the axes is all crammed on the left hand side.

Thanks. <img alt="enter image description here" class="b-lazy" data-src="https://i.stack.imgur.com/aJXcd.png" data-original="https://i.stack.imgur.com/aJXcd.png" src="https://etrip.eimg.top/images/2019/05/07/timg.gif" />


x_formatter = matplotlib.ticker.ScalarFormatter(useOffset=False) x_formatter.set_scientific(False) ax.xaxis.set_major_formatter(x_formatter)


  • Duplicate javascript for Codrops MULTI-LEVEL PUSH MENU
  • Storing large decimal numbers in Java
  • Validate field and throw exception in JSF, but attach error message to another field?
  • How to load Google map in background in android?
  • Birt script behaves differently via web viewer
  • Storing a TimeSpan between two DateTimes
  • Loading RTF file having Table in TRichEdit without Table borders
  • how to use Openlayers map
  • Paging toolbar on custom component querying local data store
  • Multiple scatterplots using Core Plot and Swift
  • AngularJs ng-repeat filtering by a deeper tier of data
  • Custom .ToString() Formats in .rdlc Reports
  • plotting spatial points over a raster layer in r
  • d3js: time scaling and “1901”
  • Modifying files nested in tar archive
  • Einsum optimize fails for basic operation
  • @DateTimeFormat not working properly
  • Keep same scale in different graphs ggplot2
  • Vue props data not updating in child component
  • What does a hyphen at end of a term mean
  • Best way to produce 'colour correct' raster from a PDF or PS with ghostscript
  • CloseOptionsMenu doesn't work?
  • Reading space separated values file in c++ error
  • how to set variables in a php include file?
  • Plotting line graph with factors in R
  • Array with custom indexes in Ionic2
  • Textfile Structure (tables)
  • How to define and use opencv mat of user type
  • Extracting HTML between tags
  • WinForms: two way TextBox problem
  • vba code to select only visible cells in specific column except heading
  • ActionScript 2 vs ActionScript 3 performance
  • To display the title for the current loaction in map in iphone
  • Calling of Constructors in a Java
  • Traverse Array and Display in markup
  • Transpose CSV data with awk (pivot transformation)
  • Why can't I rebase on to an ancestor of source changesets if on a different branch?
  • How to set the response of a form post action to a iframe source?
  • Setting background image for body element in xhtml (for different monitors and resolutions)
  • JaxB to read class hierarchy