#5448: [with patch, needs work] rework save/show in plot, use Matplotlib's axes
code, upgrade matplotlib
-------------------------+--------------------------------------------------
Reporter: mhansen | Owner: mhansen
Type: enhancement | Status: assigned
Priority: major | Milestone: sage-4.1.2
Component: graphics | Keywords:
Reviewer: | Author:
Merged: |
-------------------------+--------------------------------------------------
Comment(by kcrisman):
Replying to [comment:11 jason]:
> > 3. For some reasons, showing some plots yields the #5956 ValueError of
"ValueError: width and height must each be below 32768" which apparently
comes from matplotlib/backends/backend_agg.py, the RendererAgg (whatever
that is). I should point out these are plots which worked before.
Apparently it has something to do with adding axes_labels, because without
them, this problem does not appear. Did something get a LOT bigger on the
axis labels?
>
>
> For right now, I automatically expand things to not clip axes labels.
There might be a bug in that. Can you post an example?
>
It appears to have something to do with where the labels are located.
{{{
sage: plot(x**2,0,1,axes_labels=['x','y'])
}}}
is fine, but
{{{
sage: plot(x**2,99,100,axes_labels=['x','y'])
}}}
yields the problem. This also happens with point sets:
{{{
sage: data=[(1990,1611),(1991,1586)]
sage: plot1=point(data)
sage: show(plot1,axes_labels=['x','y'])
}}}
Back to the other issues, note that while the following does plot
{{{
sage: show(plot1)
}}}
it also is not ideal, as the axes don't even come close to touching. By
the way, the pointsize is irrelevant - even with no pointsize given, the
points are still cut off. Also, there is a mysterious cut-off thing at
the bottom which look like +1.00e3, but it's cut off so I can't tell for
sure. Any ideas on that?
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5448#comment:13>
Sage <http://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
-~----------~----~----~----~------~----~------~--~---