Skip to content

Instantly share code, notes, and snippets.

@dacr
Last active February 3, 2026 20:21
Show Gist options
  • Select an option

  • Save dacr/715081999da3006ea0ee03c4ad15ba0f to your computer and use it in GitHub Desktop.

Select an option

Save dacr/715081999da3006ea0ee03c4ad15ba0f to your computer and use it in GitHub Desktop.
breeze visualization example / published by https://github.com/dacr/code-examples-manager #849ab856-1ba9-4b60-8b74-42d989be30ea/c507f9ccf29c951abe322b6554edb504a3fac6a6
// summary : breeze visualization example
// keywords : plotting, breeze, math
// publish : gist
// authors : breeze documentation
// license : Apache License Version 2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt)
// id : 849ab856-1ba9-4b60-8b74-42d989be30ea
// created-on : 2020-10-11T15:05:16Z
// managed-by : https://github.com/dacr/code-examples-manager
// run-with : scala-cli $file
// ---------------------
//> using scala "3.4.2"
//> using dep "org.scalanlp::breeze:2.1.0"
//> using dep "org.scalanlp::breeze-viz:2.1.0"
// ---------------------
// breeze viz documentation : https://github.com/scalanlp/breeze/wiki/Quickstart
import breeze.linalg._
import breeze.plot._
val f2 = Figure()
f2.subplot(0) += image(DenseMatrix.rand(200,200))
f2.saveas("image.png")
scala.io.StdIn.readLine("Press enter to quit")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment