Last active
May 25, 2024 10:19
-
-
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/c64840c83496cd2ab71fa5ce881a288667eb35fe
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 NON-AI License Version 2.0 (https://raw.githubusercontent.com/non-ai-licenses/non-ai-licenses/main/NON-AI-APACHE2) | |
// 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