Commit 815f5384 authored by Zoheyr Doctor's avatar Zoheyr Doctor 🔭
Browse files

added argument to put credit into orrery

parent 28c49539
......@@ -71,6 +71,12 @@ def make_parser():
type = float
)
parser.add_argument(
"--credit",
help="credit text at the bottom",
type=str
)
return parser
def file_handler(filename,names=None):
......@@ -147,11 +153,19 @@ def main():
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)
# add credit
if args.credit:
plt.figtext(0.5, 0.01, args.credit, horizontalalignment='center',
fontsize=12)
# turn off axes
ax = ax.flatten()
for axi in ax:
axi.set_axis_off()
axi.axis("equal")
# set frame rate and movie length
fps = 30. # frames per second
length = 10. # seconds
......
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