johnowhitaker commited on
Commit
4cdbd0a
·
1 Parent(s): 768cc89

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -5
app.py CHANGED
@@ -102,10 +102,7 @@ if submitted:
102
  axs[0].hexbin(tweets['tweet_length'], tweets['sentiment']*1,
103
  gridsize=20, bins=12, cmap='inferno')
104
  axs[0].set_title('Tweet Sentiment and Length')
105
- axs[0].xlabel('Tweet Length')
106
- axs[0].ylabel('Sentiment')
107
- axs[1].scatter(tweets['tweet_length'], tweets['sentiment'])
108
  axs[1].set_title('Tweet Sentiment vs Length')
109
- axs[1].xlabel('Tweet Length')
110
- axs[1].ylabel('Sentiment')
111
  st.pyplot(fig)
 
102
  axs[0].hexbin(tweets['tweet_length'], tweets['sentiment']*1,
103
  gridsize=20, bins=12, cmap='inferno')
104
  axs[0].set_title('Tweet Sentiment and Length')
 
 
 
105
  axs[1].set_title('Tweet Sentiment vs Length')
106
+ plt.setp(axs[-1, :], xlabel='Tweet Length')
107
+ plt.setp(axs[:, 0], ylabel='Sentiment')
108
  st.pyplot(fig)