How can I make this plot's x-axis looks better?
Is there any way to show only 3 values in x-axis while plotting all values in my dataframe?
I tried using plt.xticks(rotation=70) but it still cuts my numbers..
As you can see, it shows the date in the format MMM DD YYYY.
I wanna something like MMM DD or DD MMM. Or even writing in 2
lines DD MM \n YYYY.
How can I achieve that?
This is the code used for generating the chart:
plt.plot(df_21d["Timestamp"], df_21d["Close"], label="Price", color="b")
plt.title("BTC - 21 Dias")
plt.xlabel("Data")
plt.ylabel("Preco (em USD)")
plt.grid(True)
plt.show()
Here's my data:
df_