Commit efb46dea authored by Zoheyr Doctor's avatar Zoheyr Doctor 🔭
Browse files

Merge branch 'add_GWTC1' into 'master'

fixed spacing of plots and put titles on bottom

See merge request !6
parents 6f5db883 28c49539
......@@ -146,6 +146,7 @@ def main():
else:
figx,figy = 10,10
fig,ax = plt.subplots(n_side,n_side2,figsize=(figx,figy),gridspec_kw = {'hspace':0.25})
plt.subplots_adjust(left=0.05,right=0.95,top=0.95,bottom=0.05)
ax = ax.flatten()
for axi in ax:
axi.set_axis_off()
......@@ -215,14 +216,14 @@ def main():
print(args.no_names)
if not args.no_names:
print('putting names on events')
ax[ei].set_title(event)
ax[ei].set_title(event,y=-0.01)
return artist_dict
def animate(i):
for ei,event in enumerate(sorted(events)):
artist_dict.update(bbh_dict[event].get_artists(i))
#ax[ei].set_box_aspect(1)
return artist_dict
anim = animation.FuncAnimation(fig,animate,init_func=init,frames=n_frames)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment