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 4076 4076 to color the matrix elements different RGB colors: 4077 4077 4078 4078 sage: A = random_matrix(RDF, 50) 4079 sage: A.plot(cmap='hsv')4079 sage: plot(A, cmap='hsv') 4080 4080 4081 4081 Another random plot, but over GF(389): 4082 4082 sage: A = random_matrix(GF(389), 10) 4083 4083 sage: A.plot(cmap='Oranges') 4084 4084 """ 4085 from sage.plot.plot import MatrixPlotFactory 4086 matrix_plot = MatrixPlotFactory() 4085 from sage.plot.plot import matrix_plot 4087 4086 return matrix_plot(self, *args, **kwds) 4088 4087 4089 4088 def _dim_cmp(x,y): 4090 4089 """ 4091 4090 Used internally by matrix functions. Given 2-tuples (x,y),