6

Plotting

Data visualization or plotting is an important part of scientific computing. In this chapter, we will demonstrate how to invoke the plotting capabilities of gnuplot through numEclipse. It is assumed that the user has installed the latest version of gnuplot and numEclipse preferences are configured to point to the gnuplot as shown in the installation guide on the numEclipse project website (http://www.numeclipse.org/install.html).

6.1 Simple Function Plot (fplot)

The “fplot” method is used to plot a mathematical function. It is very different from the MATLAB or Octave implementation. It can only plot the functions recognized by gnuplot. Fortunately, gnuplot has a good collection of built-in functions.

Figure 6.1

Unlike MATLAB, ...

Get Practical Scientific Computing now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.