I have done an aggregation which resulted in the following dataframe
df2 = tweet.groupby(['Realdate', 'Type'])['Text'].count().unstack().fillna(0)
Type BLM Black
Realdate
2020-03-01 21.0 9.0
2020-03-02 20.0 13.0
2020-03-03 32.0 16.0
2020-03-04 3.0 9.0
2020-03-05 28.0 16.0
... ... ...
2020-07-10 4050.0 4474.0
2020-07-11 2815.0 3743.0
2020-07-12 3575.0 3863.0
2020-07-13 3435.0 4704.0
2020-07-14 3284.0 4352.0
I then created a stacked plot as follows:
df2[['BLM','Black']].plot(kind='bar', stacked=True, figsize=(20,10))
The output is:
I have too many days and i am struggling to space the xticks. Can someone help me please? I was tempted to replace my xticks and generate new ones but i have been unsuccessful so far.
Thanks very much