lunadebruyne commited on
Commit
f3aef14
·
1 Parent(s): 0e3d8df

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -137,12 +137,12 @@ def freq(output_file, input_checks):
137
  range_ = ['#999999', '#b22222', '#663399', '#ffcc00', '#db7093', '#6495ed']
138
  n = max(simple['Frequency'])
139
 
140
- plot = alt.Chart(simple, title="Emotion frequencies").mark_bar().encode(
141
  x=alt.X("Emotion category", sort=['neutral', 'anger', 'fear', 'joy', 'love', 'sadness']),
142
  y=alt.Y("Frequency", axis=alt.Axis(grid=False), scale=alt.Scale(domain=[0, (n + 9) // 10 * 10])),
143
  color=alt.Color("Emotion category", scale=alt.Scale(domain=domain, range=range_), legend=None),
144
  tooltip=['Emotion category', 'Frequency']).properties(
145
- width=300).configure_axis(
146
  grid=False).interactive()
147
 
148
  if "emotion distribution over time" in input_checks:
 
137
  range_ = ['#999999', '#b22222', '#663399', '#ffcc00', '#db7093', '#6495ed']
138
  n = max(simple['Frequency'])
139
 
140
+ plot = alt.Chart(simple).mark_bar().encode(
141
  x=alt.X("Emotion category", sort=['neutral', 'anger', 'fear', 'joy', 'love', 'sadness']),
142
  y=alt.Y("Frequency", axis=alt.Axis(grid=False), scale=alt.Scale(domain=[0, (n + 9) // 10 * 10])),
143
  color=alt.Color("Emotion category", scale=alt.Scale(domain=domain, range=range_), legend=None),
144
  tooltip=['Emotion category', 'Frequency']).properties(
145
+ width=600).configure_axis(
146
  grid=False).interactive()
147
 
148
  if "emotion distribution over time" in input_checks: