Sage: Ticket #13812: unify visualize_matrix with matrix_plot
https://trac.sagemath.org/ticket/13812
<p>
This function (in <code>sage.matrix.matrix_modn_sparse</code> and perhaps elsewhere) gives pngs that show up in the current working directory, which is not standard Sage behavior for graphics. In particular, in the notebook and <code>EMBEDDED_MODE</code> they don't show up at all, anywhere (unless you have admin access, I suppose).
</p>
<p>
At <a class="closed ticket" href="https://trac.sagemath.org/ticket/13807" title="defect: Fix remaining temporary filename issues (like in animate.py) (closed: fixed)">#13807</a> (where this was originally not working anyway due to a previous bugfix), it is pointed out that <code>visualize_matrix</code> does one thing that <code>matrix_plot</code> does not: it lets you put a bound on the size of the figure, and then scales the picture accordingly. So if you have a 20x20 matrix and plot it in a 10x10 picture, each pixel corresponds to the entries in a 2x2 block.
</p>
<p>
There we thought it might make sense to merge this functionality into <code>matrix_plot</code> and then deprecate <code>visualize_matrix</code>, which after all dates from 2007. But maybe there is a reason not to do this? Anyway, any more consistent behavior would be nice here.
</p>
en-usSagehttps://trac.sagemath.org/chrome/site/logo_sagemath_trac.png
https://trac.sagemath.org/ticket/13812
Trac 1.1.6malbSun, 09 Dec 2012 12:10:29 GMT
https://trac.sagemath.org/ticket/13812#comment:1
https://trac.sagemath.org/ticket/13812#comment:1
<p>
I wrote <code>visualize_structure()</code> back in the day for visualising the structure of dense (!) matrices over GF(2). Currently, <code>matrix_plot()</code> doesn't behave as nicely as <code>visualize_structure()</code> for these matrices:
</p>
<ul><li>by default zero is plotted black and one is plotted white
</li><li>structure visualisation (non-zero vs. zero) is only available for sparse matrices, but it should be also available for dense matrices (those can be structured too).
</li></ul><p>
Currently, both <code>visualize_structure()</code> and <code>matrix_plot()</code> seem to behave the same performance wise. We should allow a matrix to plot itself though, i.e., allow specialised code which is called by <code>matrix_plot()</code>. For example, the M4RI library can plot matrices and it is a lot faster than what we have in Sage.
</p>
TicketjdemeyerTue, 13 Aug 2013 15:35:53 GMTmilestone changed
https://trac.sagemath.org/ticket/13812#comment:2
https://trac.sagemath.org/ticket/13812#comment:2
<ul>
<li><strong>milestone</strong>
changed from <em>sage-5.11</em> to <em>sage-5.12</em>
</li>
</ul>
Ticketvbraun_spamThu, 30 Jan 2014 21:20:52 GMTmilestone changed
https://trac.sagemath.org/ticket/13812#comment:3
https://trac.sagemath.org/ticket/13812#comment:3
<ul>
<li><strong>milestone</strong>
changed from <em>sage-6.1</em> to <em>sage-6.2</em>
</li>
</ul>
Ticketvbraun_spamTue, 06 May 2014 15:20:58 GMTmilestone changed
https://trac.sagemath.org/ticket/13812#comment:4
https://trac.sagemath.org/ticket/13812#comment:4
<ul>
<li><strong>milestone</strong>
changed from <em>sage-6.2</em> to <em>sage-6.3</em>
</li>
</ul>
Ticketvbraun_spamSun, 10 Aug 2014 16:51:03 GMTmilestone changed
https://trac.sagemath.org/ticket/13812#comment:5
https://trac.sagemath.org/ticket/13812#comment:5
<ul>
<li><strong>milestone</strong>
changed from <em>sage-6.3</em> to <em>sage-6.4</em>
</li>
</ul>
Ticket