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:
- Changing the “tick frequency” on x or y axis in matplotlib
- Changing the tick frequency on the x or y axis
- How to force integer tick labels
- Format axis offset-values to whole numbers or specific number
- X-axis tick labels are too dense when drawing plots
- Date ticks and rotation [duplicate]
- Change tick frequency on X (time, not number) frequency
- Change grid interval and specify tick labels
- Matplotlib: Specify format of floats for tick labels
- Matplotlib y axis values are not ordered [duplicate]
- pyplot common axes labels for subplots
- How to add value labels on a bar chart
- Plot two histograms on single chart with matplotlib
- Matplotlib scatter plot with legend
- Seaborn showing scientific notation in heatmap for 3-digit numbers
- How to annotate each segment of a stacked bar chart
- matplotlib: how to draw a rectangle on image
- How do I align gridlines for two y-axis scales using Matplotlib?
- Matplotlib cannot find basic fonts
- How to plot time series in python
- how to save a pylab figure into in-memory file which can be read into PIL image?
- Broken axis example: uneven subplot size
- My plot in ipython does not show with pyplot.show()
- My matplotlib.pyplot legend is being cut off
- How can I show figures separately?
- countplot() with frequencies
- Changing position of vertical (z) axis of 3D plot
- Putting arrowheads on vectors in a 3d plot
- Horizontal stacked bar chart in Matplotlib
- get_xticklabels() contains empty text instances