Last active
February 3, 2026 20:21
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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