andrewgleave commited on
Commit
ecca0d1
1 Parent(s): 5826177

Update plot margin

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -30,6 +30,8 @@ def group_by_entity(raw):
30
  def plot_to_figure(grouped):
31
  fig = plt.figure()
32
  plt.bar(x=list(grouped.keys()), height=list(grouped.values()))
 
 
33
  plt.xticks(rotation=90)
34
  return fig
35
 
 
30
  def plot_to_figure(grouped):
31
  fig = plt.figure()
32
  plt.bar(x=list(grouped.keys()), height=list(grouped.values()))
33
+ plt.margins(0.2)
34
+ plt.subplots_adjust(bottom=0.4)
35
  plt.xticks(rotation=90)
36
  return fig
37