Plotting with ScalaLab

Plotting is discussed in a separate chapter in this book. However, plotting is a very important part of any interactive computing system. Also ScalaLab is not a Scala library per se. It does own thing but uses Scala as a scripting language. As such, we will discuss ScalaLab's plotting here briefly. Hopefully, this will make explorative computing with ScalaLab much more interesting. Plus, ScalaLab supports a fairly extensive plotting API modeled after MATLAB. An example is shown in the following screenshot:

Plotting with ScalaLab

Let's see how to create a simple plot. We use the plot method to plot a sinusoid as well as well as the title method to ...

Get Scientific Computing with Scala 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.