See the relevant documentation in general and specifically
from matplotlib.ticker import FormatStrFormatter
fig, ax = plt.subplots()
ax.yaxis.set_major_formatter(FormatStrFormatter('%.2f'))
More Related Contents:
- Specify format of floats for tick labels
- Specifying and saving a figure with exact size in pixels
- FutureWarning: elementwise comparison failed; returning scalar, but in the future will perform elementwise comparison
- A tool to convert MATLAB code to Python [closed]
- scipy: savefig without frames, axes, only content
- Installing scipy in Python 3.5 on 32-bit Windows 7 Machine
- Colorize Voronoi Diagram
- plotting results of hierarchical clustering ontop of a matrix of data in python
- How to plot empirical cdf (ecdf)
- What do all the distributions available in scipy.stats look like?
- warning about too many open figures
- How to remove or hide x-axis labels from a seaborn / matplotlib plot
- How to reverse a color map image to scalar values?
- Creating a Confidence Ellipses in a sccatterplot using matplotlib
- how to annotate heatmap with text in matplotlib
- Fit a gaussian function
- Add Legend to Seaborn point plot
- Error “Import Error: No module named numpy” on Windows
- How to share numpy random state of a parent process with child processes?
- No outlines on bins of Matplotlib histograms or Seaborn distplots
- MatPlotLib: Multiple datasets on the same scatter plot
- setting spacing between grouped bar plots in matplotlib
- ImportError: Cannot load backend ‘TkAgg’ which requires the ‘tk’ interactive framework, as ‘headless’ is currently running
- multidimensional confidence intervals [closed]
- new pythonic style for shared axes square subplots in matplotlib?
- Python making combined bar and line plot with secondary y-axis
- Matplotlib FuncAnimation: How to gray out previous trajectory of in 3D pixel tracking?
- Multiple lines of x tick labels in matplotlib
- combining a log and linear scale in matplotlib
- How to display a 3D plot of a 3D array isosurface with mplot3D or similar