Breeze-viz reference

Writing a reference in a programming book is a dangerous exercise: you quickly become out of date. Nevertheless, given the paucity of documentation for breeze-viz, this section becomes more relevant – it is easier to compete against something that does not exist. Take this section with a pinch of salt, and if a command in this section does not work, head over to the source code:

Command

Description

plt += plot(xs, ys)

This plots a series of (xs, ys) values. The xs and ys values must be collection-like objects (Breeze vectors, Scala arrays, or lists, for instance).

plt += scatter(xs, ys, size)

plt += scatter(xs, ys, size, color)

This plots a series of (xs, ys) values as a scatter plot. The size argument is an (Int) ...

Get Scala for Data Science 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.