story645 / ccp-viz-toolkit

Automatically exported from code.google.com/p/ccp-viz-toolkit
1 stars 0 forks source link

Exporting hi-res figures #12

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
It would be great for users to be able to export figures generated on the site 
in a somewhat higher resolution than the png files that can be saved by 
right-clicking the figures appearing in the browser.
Savefig can do this server-side, so the issue is : how to allow the resulting 
file to be channeled to the client?
http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.savefig

a dpi = 200 or mode would be desirable, and a PDF export would do the job. 
Also, a landscape orientation makes more efficient use of space given the 
aspect ratio of our plots. 

Original issue reported on code.google.com by julien.e...@gmail.com on 24 Aug 2011 at 8:24

GoogleCodeExporter commented 9 years ago
Um, it's a pyramid view, a couple of if statements, and using the write 
print_filetype function from: 
http://matplotlib.sourceforge.net/api/backend_bases_api.html?highlight=figure#ma
tplotlib.backend_bases.FigureCanvasBase

which is dependent on the backend. 

I don't use savefig server side, 'cause I'm not working with pyplot in the 
first place (or at all). 

Original comment by story...@gmail.com on 25 Aug 2011 at 1:18

GoogleCodeExporter commented 9 years ago

Original comment by story...@gmail.com on 26 Aug 2011 at 6:56