This task demonstrates how to use a script to create the plot from tasks 1 and 2. Although the script runs without modification, you will have the opportunity to explore changing the script to produce the plot of your choice.

NOTE: The script expects the sample DSS file to be in the C:\Class\DSS\Plotting Capabilities directory, 

  1. Open the sample.dss file in the workshop directory.
  2. Go to the Tools menu and choose Script Editor.  
  3. Create a new script named PlotExample and populate it with the contents of the PlotScript.txt file in the workshop directory.
  4. Run the script. It should create plot as shown below.
    Plot created by the PlotScript
  5. The script also creates an image file in the workshop directory. View the image file.
  6. Try to answer the following questions by looking at the script.
    1. Question 1. How does the script get the DSS file name?
    2. Question 2. What are the viewport weights used in the script?
    3. Question 3. What is the value passed to the setReversed() method for the precip axis?
    4. Question 4. What is the specified size of the plot image file ReservoirPlot.png generated by the script?
  7. Modify the script by replacing some of the line and fill properties in the script with those listed in the various property categories. 
    1. Navigate to Plotting in your browser.
    2. Re-run the script and view the changes on-screen and in the image file.