Create a Test Plot

This example demonstrates how you can create a simple test plot with GCPy. You can use this test plot to verify that GCPy was installed properly onto your system.

_images/create_test_plot.png


Source code

Script location: gcpy/examples/plotting/create_test_plot.py

Usage

$ conda activate gcpy_env

(gcpy_env) $ export MPLBACKEND=tkagg   # Or MacOSX if you are on a Mac

(gcpy_env) $ python -m gcpy.examples.plotting.create_test_plot

At this point you should see the plot above on your screen. To close the plot window you may either X button or type q. You may then deactivate the Python environment:

(gcpy_env) $ conda deactivate