#13625: matrix_plot and title don't mix well (yet)
----------------------------+-----------------------------------------------
Reporter: kcrisman | Owner: jason, was
Type: defect | Status: new
Priority: major | Milestone: sage-5.5
Component: graphics | Resolution:
Keywords: | Work issues:
Report Upstream: N/A | Reviewers:
Authors: | Merged in:
Dependencies: | Stopgaps:
----------------------------+-----------------------------------------------
Comment (by ppurka):
It's a bug in mpl. It shouldn't be our job to move title positions around.
The bug is because of `tick_top()` that is used.
{{{
sage: from matplotlib.figure import Figure
sage: figure = Figure()
sage: subplot = figure.add_subplot(111)
sage: import numpy as np
sage: M = np.identity(50)
sage: subplot.imshow(M)
<matplotlib.image.AxesImage object at 0x8bc0650>
sage: subplot.xaxis.tick_top() # <--------- this introduces the bug
sage: subplot.set_title('a title')
<matplotlib.text.Text object at 0x8c54610>
sage: from matplotlib.backends.backend_agg import FigureCanvasAgg
sage: figure.set_canvas(FigureCanvasAgg(figure))
sage: figure.savefig('/tmp/a.png')
sage: !feh /tmp/a.png
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13625#comment:6>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.