Summary
In this chapter, we looked at various possibilities for performing scientific plotting in Scala. Scientific plotting is an important part of many areas of scientific research. It allows for the easy visualization of results and for exploratory data analysis. People can more readily discern possible trends or patterns in data when it is visualized.
Currently, there aren't that many professional-quality plotting options for Scala. We looked at three possible candidates. The first of these is JFreeChart, which is a powerful plotting library written in Java. We saw how to use JFreeChart in your project and how to implement basic plot types in it. We then looked at scala-chart, which is a Scala wrapper for JFreeChart. It provides much the same functionality but more idiomatic Scala can be used to interact with it.
Then we looked at Wisp, which is a very convenient option albeit one that is not very feature-rich or powerful at the moment. It uses your web browser to display plots in an interactive...