hannorein / rebound

💫 An open-source multi-purpose N-body code.
https://rebound.readthedocs.io/
GNU General Public License v3.0
849 stars 219 forks source link

Rebound OrbitPlot Issues #652

Closed ofoofoo closed 1 year ago

ofoofoo commented 1 year ago

I'm having an issue with rebound.OrbitPlot. I've been trying to follow the example given at https://rebound.readthedocs.io/en/latest/ipython_examples/OrbitPlot/. Specifically, I have tried to copy the first three code cells and run them directly. However, whenever I run the third cell (op.fig.savefig("orbit.png")), I get the following error: AttributeError: 'tuple' object has no attribute 'fig'. Is there a known fix to this issue? I also have the same error when trying to run op.ax.text(). `

hannorein commented 1 year ago

Are you using the latest version of rebound?

ofoofoo commented 1 year ago

Just updated and the problem is resolved. Thank you!

hannorein commented 1 year ago

You’re welcome. I’m glad it was a simple fix.