Ticket #3635: matrix_plot-rebased.patch

File matrix_plot-rebased.patch, 1.1 kB (added by jason, 4 months ago)
  • a/sage/matrix/matrix2.pyx

    old new  
    40764076        to color the matrix elements different RGB colors: 
    40774077 
    40784078            sage: A = random_matrix(RDF, 50) 
    4079             sage: A.plot(cmap='hsv') 
     4079            sage: plot(A, cmap='hsv') 
    40804080 
    40814081        Another random plot, but over GF(389): 
    40824082            sage: A = random_matrix(GF(389), 10) 
    40834083            sage: A.plot(cmap='Oranges') 
    40844084        """ 
    4085         from sage.plot.plot import MatrixPlotFactory 
    4086         matrix_plot = MatrixPlotFactory() 
     4085        from sage.plot.plot import matrix_plot 
    40874086        return matrix_plot(self, *args, **kwds) 
    4088                  
     4087     
    40894088def _dim_cmp(x,y): 
    40904089    """ 
    40914090    Used internally by matrix functions.  Given 2-tuples (x,y),