ajhynes7/scikit-spatial

plot_3d doesn't work. Am I missing dependencies?

pauljurczak opened this issue · 4 comments

I have scikit-spatial 6.1.0 and Python 3.8.10 un Ubuntu 20.04.3 MATE. Basic examples work, matplotlib works, but plot_3d fails to produce anything. I was trying this example: https://scikit-spatial.readthedocs.io/en/stable/gallery/projection/plot_vector_line.html

How are you running this code? In JupyterLab or another way?

From command line. Specifically, VS Code terminal window.

Try adding this to your script:

import matplotlib.pyplot as plt

# All of your code

plt.show()

Thank you. That's what was missing. I wasn't aware that matplotlib is used in the background.