Owning Class: plots
Requires: MathScript RT Module
ref_plotarea
obj = ref_plotarea
Legacy Name: gca
Returns the reference to the current plot area. If no plot area exists, ref_plotarea creates a new plot.
| Name | Description |
|---|---|
| obj | Returns the reference to the current plot area. obj is a reference to a plot area. |
This function is not supported in the LabVIEW Run-Time Engine if you request an output from the function. Either do not request an output or remove this function from scripts before you build a stand-alone application or shared library.
X = 0:0.1:1;
Y = X.*X;
plot(X, Y)
obj = ref_plotarea;
set(obj, 'Color', 'c')