#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 jason):

 Replying to [comment:13 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'])
 > }}}
 >

 I figured out what the problem was.  I'm setting the x-axis label
 y-coordinate to y=0, which is obviously wrong if y=0 is not in the
 picture.  I'm doing a similar thing with the y-axis label.  I've emailed
 the matplotlib list for help on getting the right matplotlib transform to
 get the label to be offset from the actual axis in the picture.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5448#comment:16>
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to