Created
August 8, 2021 23:58
-
-
Save hsteinshiromoto/18360b4f2bbeb80028f95f979537c648 to your computer and use it in GitHub Desktop.
Set dates in x tick labels
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fig, ax = plt.subplots(figsize=(20, 10)) | |
ax = sns.lineplot(x=xticks, y=y, ax=ax) | |
plt.xticks(xticks, data["datetime_column_label"].astype(str), rotation=30, ha="right") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment