You are here

Multiplots

26 July, 2019 - 09:47
Available under Creative Commons-ShareAlike 4.0 International License. Download for free at http://cnx.org/contents/5b6e61df-b830-48cb-9764-94696cb47c80@1.3

In this example a sine wave and a noisy sine wave will be plotted. Modify the previous example to add noise to the sine operation as shown in Figure Sine and Noisy Sine Waveforms.

media/image19.png
Figure 7.21 Sine and Noisy Sine Waveforms 

Add a Build Array operator and wire the output of the Sine function and the multi-add operator containing the sine value plus some random noise between -0.5 and 0.5 to the Build Array operator. Wire the output of the Build Array operator to the Waveform Graph terminal.

media/image20.png
Figure 7.22 Bundle Arrays for Multiplotting 

You can continue adding 1D arrays to be multiplotted into a single Waveform Graph. Run the program. The multiplot result is shown in Figure Multiplot.

media/image21.png
Figure 7.23 Multiplot