Changes between Initial Version and Version 1 of Ticket #12326


Ignore:
Timestamp:
01/20/12 01:41:35 (7 years ago)
Author:
kcrisman
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #12326 – Description

    initial v1  
    1515# display graph (note that only single sage Graphics object has to be saved )
    1616g_ins.save('a.svg', figure=figure, sub=inset)
     17UPD: if figures are drawn strangely, add
     18aspect_ratio='automatic'
     19to matplotlib() parameters. By default it is 1.0, which may be undesired.
     20Also, you may want to draw the figure itself, not by Graphics().save() function. Replace the last line with the following:
     21from matplotlib.backends.backend_agg import FigureCanvasAgg
     22figure.set_canvas(FigureCanvasAgg(figure))
     23figure.savefig('a.svg')
    1724}}}
    1825The user says