scalation / scalation_kernel

ScalaTion kernel for Jupyter
MIT License
3 stars 5 forks source link

Implement ::plotm to plot Matrices #1

Closed mepcotterell closed 6 years ago

mepcotterell commented 6 years ago

Currently, given a matrix mat, the user needs to use ::plotv and specify each column, for example:

val mat = MatrixD((3, 2), 1, 2, 2, 4, 3, 9)
::printv mat.col(0) mat.col(1)

Instead, let's let the user use a command (proposed ::plotm) to automatically plot all columns in a matrix, for example:

val mat = MatrixD((3, 2), 1, 2, 2, 4, 3, 9)
::printm mat