Two-dimensional plotting
In the second part of this chapter, we will discuss how you can make plots with Octave. Since version 3.0.0, the Octave development team has done a lot to improve the plotting interface in order to obtain larger compatibility with MATLAB. At the same time, the plotting programs have improved significantly, and the plotting facilities have now become quite impressive. Depending on the Octave version you are using, the plotting program may not support all the plotting commands and facilities that we will go through here. Also, the graphical output may be different.
Note
From version 3.4.0, Octave has a built-in native plotting program based on the Fast Light Toolkit4 (FLTK), but the default plotting program will likely be gnuplot. Therefore, if you have Octave version 3.4.0 or higher installed with the FLTK plotting backend, you can load and change the default plotting toolkit to FLTK by using:
octave:1>graphics_toolkit("fltk")
To change back to gnuplot:
octave:2>...