Skip to content

Instantly share code, notes, and snippets.

@hsteinshiromoto
Created August 8, 2021 23:58
Show Gist options
  • Save hsteinshiromoto/18360b4f2bbeb80028f95f979537c648 to your computer and use it in GitHub Desktop.
Save hsteinshiromoto/18360b4f2bbeb80028f95f979537c648 to your computer and use it in GitHub Desktop.
Set dates in x tick labels
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