Skip to content

Commit 98d3896

Browse files
committed
optimize code
1 parent 9b97a98 commit 98d3896

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

run.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,8 @@
1313
]
1414
rp = RockyPlanet()
1515
pred = rp.predict(planet_params)
16-
rp.plot(pred, save=True, filename="pred.png")
16+
rp.plot(pred,
17+
save=True, # save to file
18+
filename="pred.png" # save to current directory, filename is pred.png, you can change the extension to eps
19+
# or pdf
20+
)

0 commit comments

Comments
 (0)