Existing curves can be edited individually and new curves can be added to the current plot using the Define Curves panel. The Define Curves panel also provides access to the program's curve calculator. Click the Define Curves panel button, , on the plotting toolbar to display the Define Curves panel.
Define Curves panel with Phase/Magnitude selected.
Define Curves panel with Real/Imaginary selected.
Select the Pha/Mag radio button to define Phase and Magnitude curves. Select the Real/Img radio button to define Real and Imaginary curves. The y-axis labels change depending on the curve type you select. When you change the curve type, HyperGraph 2D applies the following conversion equations to the plot data:
When converting real/imaginary curves to phase/magnitude curves, the conversion equation is:
y = a+bi
Phase = arctan(b/a)
Magnitude = sqrt(a*a+b*b)
When converting phase/magnitude curves to real/imaginary curves, the conversion equation is:
A = magnitude*cos(phase angle)
B = magnitude*sin(phase angle)
Note |
It is assumed that for phase/magnitude data, phase is in degrees, not radians. |
If *AutoDefaultCurves() is turned on in the preference file and a curve is added to a plot with existing curves, the new curve is a copy of the most recently added existing curve. If *AutoDefaultCurves() is turned off, the new curve is empty.
Note |
You can scale an x or y vector by placing a multiplier in the text box before or after the correct parameter field. For example: Previously: saefilter(p1w1c1.x, p1w1c1.y, 60) Currently: saefilter(p1w1c1.x*.001, p1w1c1.y*.001, 60) |
The Define Curves panel enables you to edit existing curves and create new ones. In order to edit a curve, it must first be selected either from the curve list or picked from the window. If you are creating phase/magnitude curves, the x, yp, and ym vectors are displayed at the top of the Define Curves panel. If you are creating real/imaginary curves, the x, yr, and yi vectors are displayed at the top of the Define Curves panel. The data sources for the X and Y vectors are displayed in the text fields. Click the x, yp, ym, yr, or yi vector radio button or in the corresponding text box to select that vector for editing.
The X and Y vectors on the Define Curves panel. The text field shows the data source for the vector. New data can be selected from a source file, mathematically defined using the program's curve calculator, or entered as values. The Define Curves panel changes depending on which source is selected. |
The curve list displays the names of all the curves in the active window. Curves can be renamed, added, cut, copied, and pasted using the curve list controls. Individual curves can be turned on or off. To turn a curve off, select the curve from the list or pick the curve from the window and deactivate the check box next to the curve name above the curve list. To turn a curve on that was turned off, activate the check box. The Cut, Copy, Paste, and Add buttons are used to maintain the curve list for the active window. Curves can be copied and pasted into other windows. Curves can also be added and deleted from the list. |
Expressions can reference any curve or vector in the current session. Curve vector references can be defined by picking the curve with the mouse or by using the following syntax: pmwnco.vector where: m is the number of the page on which the curve resides n is the number of the window which contains the curve o is the number of the curve in the window vector indicates the X, Y, or time vector of the referenced curve For example, p2w1c3.y references the Y vector (.y) of the third curve (c3), in first window (w1), on the second page (p2). When a referenced curve is edited or updated, the curves that reference that curve are updated as well. The Curves dialog provides a fast, easy way of referencing curves. To display the Curves dialog, click Curves...The dialog displays three lists: the Page list, the Window list, and the Curve list. Page list contains the names of pages in the current session. Window list contains the names of the windows on the page selected on the Page list. Curve list contains the names of the curves in the window selected on the Window list. OK inserts the vector into the active expression. Curves in the Complex Plot module are referenced with additional syntax. To indicate that a curve references phase values, phase curves have the letter p at the end. For example, pmwnco.vectorp. To indicate that a curve references magnitude values, magnitude curves have the letter m at the end. For example, pmwnco.vectorm. Real curves that reference real values have the letter r at the end, pmwnco.vectorr. Imaginary curves that reference imaginary values have the letter i at the end, pmwnco.vectori. |
A curve labeled "Curve 1" is appended to the list.
The new name is now displayed in the list and in the legend.
If Math is selected as the data source, define the vector using the curve calculator to create a mathematical expression. If File is selected as the data source, a small plot-building form is displayed that allows you to select new data such as subcases and components. If Values is selected as the data source, define the vector by entering x, yp, and ym values for phase/magnitude curves or x, yr, and yi values for real/imaginary curves. |
Cut a curve from the active window.
Copy a curve from the active window.