Developing the 3D Plotting Function | Orbital Mechanics with Python 3

preview_player
Показать описание
Continuing on the prevous video where I explain how to develop a 3D plotting function to visualize orbits.

Pre-req videos:

Link to description of plotting a sphere:
I use "plot_surface" instead of "plot_wireframe" but that just depends on personal preference.

Link to all the options for plotting styles (colors, dashed lines, point markers, etc).
Рекомендации по теме
Комментарии
Автор

If anyone is having difficulty seeing their orbits due to the way 'ax.plot_surface' works, I have found success using 'ax.plot_wireframe(_x, _y, _z, color = "k", linewidth = 0.25)' instead. I set the line color to black and made the lines thinner to distract less from the orbits. This way the surface doesn't clip in front of your orbits as mine have seemed to do

joshuayeggy
Автор

This video was very useful to me, and helped my python skills. Unfortunately when I run the code no plot is produced despite no errors being produced either? Any suggestions would be appreciated.

adammousley
Автор

I'm getting an issue with line 31. It's returning an IndexError for too many indices for array. Any idea what I may have done wrong? It looks like I've copied over correctly

andrewmelchers
Автор

Hello, I am not getting the earth right, it's only showing a blue dot, and it's not zooming in or out either

mohd.farhanhassan
Автор

I'm encountering this weird problem. Every time I try to run the program, it just closes itself a few seconds later and there's no output. I included plt.show() and there are no errors in the program. It might be a problem with PyCharm instead? I doubt it because my other python Matplotlib programs are working just fine.
And did you use the Axes3D import? I believe it is unused.
Anyways, this is a great series. Subscribed!

SSran-ivlu
Автор

Volume is too low but maybe add subtitles it would make these better!

andrewdavies
Автор

hey, I'm trying this out, and I'm halfway there. I'm still learning python, could you suggest me how to learn the ODE part that you've written? the components of position, velocity and plotting it. Will be really grateful if you could suggest some ways!

antarikshparichha