Seaborn/Matplotlib Date Axis barplot minor-major tick formatting
https://github.com/mwaskom/seaborn/issues/498
image.pngax.xaxis.set_major_locator(matplotlib.dates.DayLocator(interval=2))
image.pngmatplotlib/seaborn heatmap using pandas dataframe with datetime index
plt.xticks(rotation=45)
axHM = sns.heatmap(df.T, cmap='coolwarm', xticklabels=df.index.strftime('%H:%M'))
网友评论