Ask Your Question

Revision history [back]

matrix_plot not returning any outputs in subroutines

 A=identity_matrix(2)
    def f(n):
        matrix_plot(n*A)
    f(5)

I'm puzzled as the command matrix_plot(5*A) works fine on itself, but it produces no output when it goes inside a subroutine as in the above SageMath code.

I'd appreciate any help with understanding why this is so/resolving this.

PS I have tested this both on Sagecell.sagemath.org and a local installation.