In short:
import matplotlib.dates as mdates
myFmt = mdates.DateFormatter('%d')
ax.xaxis.set_major_formatter(myFmt)
Many examples on the matplotlib website. The one I most commonly use is here
More Related Contents:
- matplotlib: can I create AxesSubplot objects, then add them to a Figure instance?
- Matplotlib scatter plot legend
- Store mouse click event coordinates with matplotlib
- Scrollbar on Matplotlib showing page
- How to draw vertical lines on a given plot
- Imshow: extent and aspect
- Plot a histogram such that bar heights sum to 1 (probability)
- A logarithmic colorbar in matplotlib scatter plot
- Removing Horizontal Lines in image (OpenCV, Python, Matplotlib)
- How to set a single, main title above all the subplots with Pyplot?
- Change grid interval and specify tick labels in Matplotlib
- Matplotlib: how to set the current figure?
- Strange error with matplotlib axes labels
- Using Pandas Value_Counts and matplotlib
- How to plot two columns of a pandas data frame using points
- How do I make a single legend for many subplots?
- What does the argument mean in fig.add_subplot(111)?
- Matplotlib plotting in wrong order
- Saving plots (AxesSubPlot) generated from python pandas with matplotlib’s savefig
- scipy.curve_fit() returns multiple lines
- Get data points from Seaborn distplot
- Line plot with arrows in matplotlib
- Plot a 3D surface from {x,y,z}-scatter data
- Double donut chart in matplotlib
- How to decode color mapping in matplotlib’s Colormap?
- Using pandas crosstab to create a bar plot
- How to shade region under the curve in matplotlib
- Setting different color for each series in scatter plot
- Annotate Time Series plot
- How to show minor tick labels on log-scale with Matplotlib