-
Notifications
You must be signed in to change notification settings - Fork 2
Plotting Scripts
UCVM Docker images now contain both the UCVM commandline codes, and the UCVM plotting codes. Users can generate basic plots, output the plots to png, preserve the data files, and view the plots on their system using whatever tools their system provides for viewing "png" image files.
A list of UCVM plotting scripts are give on the main UCVM plotting wiki at: UCVM Plotting Scripts
An example of creating a UCVM plot in a UCVM Docker image is below:
In this example, we assume the user is running a UCVM docker image on their system. We will assume they are running a UCVM Docker image that includes velocity model "cvms5".
The user started the image, and they have a terminal window open showing the UCVM Docker image command line, like this:
(Python2) $ plot_cross_section.py -b 34.0,-122.00 -u 34.0,-117.5 -s 0 -e 2000 -h 500 -v 10 -d vs -a d -c cvms5 -o cross-cvms5.png
This specifies the dimensions of the plot, the material properties to be plotted, "vs",and the output file name to be used "cross-cvms5.png". The plotting script will run, and write the output file to the "target" directory.
On a Mac, the utility program "Preview" can open and view the resulting "PNG" file. Other programs can also be used to view the file.

