<< Chapter < Page | Chapter >> Page > |
A generalized plotting program
This module develops a generalized plotting program, which is easy to connect to other programs, (whether they are simple or complex) , in order to display the output from those programs in two-dimensional Cartesian coordinates .. The plotting program is specifically designed to be useful to persons having very little knowledge of Java programming.
(Actually, the module develops two very similar plotting programs each designed to display the data in a different format.)
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.
Figure 1 shows a typical display produced by one of the plotting programs that I will develop in this module. (The other program superimposes all of the curves on the same set of axes instead of spacing them vertically as shownin Figure 1 .)
Figure 1. Sample Display. |
---|
While the plotting program itself is quite complex, the code required to produce the data to be plotted can be very simple. For example, because of theuse of the Java Math library, only fourteen lines of simple Java code were required to produce the data plotted in Figure 1 .
Notification Switch
Would you like to follow the 'Digital signal processing - dsp' conversation and receive update notifications?