HG3D-3000: Define Line Plots

In this tutorial, you will learn how to create line plots from a file and create line plots using a math expression.

The Define Curves panel can be accessed one of the following ways:
  • From the HyperGraph 3D toolbar, click the Define Curves icon, .
  • From the menu bar, select Curves > Define Curves


Figure 1.


Figure 2.

The Define Curves panel enables you to edit existing curves and create new ones. New data can be selected from a source file, mathematically defined using the program's curve calculator, or entered as values. The options in the panel change depending on which source is selected. If the source chosen is Math, the panel looks as shown below:

The Curve list displays the names of all curves in the active window. Curves can be renamed, added, cut, copied, and pasted using the curve list controls.

Create a Line Plot from a File

  1. Go to the Define Curves panel, .
  2. Click Add under the Curve list.
    A curve labeled Curve 1 is added to the list.
  3. Rename Curve 1 to Line Curve 1 and press Enter.
    The new name is now displayed in the list and in the legend.
  4. Under Vector, select X.
  5. Set the Source type as File.
  6. From the dyna folder, select the file nodout.
  7. Ensure X is selected for the vector.
    1. For Type, select Time.
    2. For Request, select Time.
    3. For Component, select Time.
  8. Under Vector, select Y. Then, make the following selections:
    1. For Type, select Node Data.
    2. For Request, select Nodal Point 26742.
    3. For Component, select Resultant Displacement.
  9. Under Vector, select Z. Then, make the following selections:
    1. For Type, select Node Data.
    2. For Request, select Nodal Point 26742.
    3. For Component, select Resultant Displacement.
  10. Click Apply.
  11. Click Add under the curve list to add another curve.
  12. Repeat steps 4 through 10 choosing Nodal Point 26766 as the Y and Z Request and Resultant Displacement as the Component.
  13. (Optional) Plot for other Requests and Components.

Create a Line Plot from a Math Expression

  1. Click the Add Page icon, , to add a page or press the Shift and F3 keys.
  2. Click Add under the curve list.
    A curve labeled Curve1 is added to the list.
  3. Rename the curve to Math_curve.
    The new name is now displayed in the list and in the legend.
  4. For Source, select Math.
  5. Under Vector, click All.
  6. Set X to sin(2*u)*(10.0 + 6*cos(3*u)).
  7. Set Y to cos(2*u)*(10.0 + 6*cos(3*u)).
  8. Set Z to 6*sin(3*u).
  9. Set U to 0:(2*PI):(PI/50).
    Figure 3.
  10. Click OK to close the dialog.
  11. Click Apply to create the plot.
    Figure 4.