<< Chapter < Page
  Digital signal processing - dsp     Page 2 / 27
Chapter >> Page >

How do you use these classes?

All that's necessary to use these classes to plot large quantities of data is to:

  1. Instantiate a plotting object of type PlotALot01 , PlotALot02 , PlotALot03 or PlotALot04 .
  2. Feed the data values that need to be plotted to the plotting object as they become available.
  3. Call a method named plotData on the plotting object when all of the data has been fed to the object.

It couldn't be easier

The choice among the four classes listed above depends on whether you need to plot one, two, or three channels of data, and the format in which you want toplot the data. The class named PlotALot01 is used to plot single-channel data. The classes named PlotALot02 and PlotALot03 are used to plot two-channel data in two different formats. The class named PlotALot04 is used to plot three-channel data.

A free plotting class

If you arrived at this page seeking a free Java class for plotting your data, you are in luck. Just copy the source code for the classes in Listing 35 through Listing 38 near the end of this module and feel free to use them as described in the comments in the source code.

On the other hand, if you would like to learn how the classes do what they do, and perhaps use your programming skills to improve them, keep reading.Hopefully, once you have finished the module, you will have learned quite a lot about plotting large quantities of data using Java.

Viewing tip

I recommend that you open another copy of this module in a separate browser window and use the following links to easily find and view the Figuresand Listings while you are reading about them.

Figures

  • Figure 1 . Sample output for PlotALot01 class.
  • Figure 2 . Sample output for PlotALot02 class.
  • Figure 3 . Sample output for PlotALot03 class.
  • Figure 4 . Sample output for PlotALot04 class.
  • Figure 5 . Self-test output for PlotALot01.

Listings

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Digital signal processing - dsp. OpenStax CNX. Jan 06, 2016 Download for free at https://legacy.cnx.org/content/col11642/1.38
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Digital signal processing - dsp' conversation and receive update notifications?

Ask