jeremieSimon / scalalab

Automatically exported from code.google.com/p/scalalab
0 stars 0 forks source link

export figure as eps or pdf #12

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. plot
2. switch to figure window
3. export figure and it seems that the only option is PNG

So, is there any method to export the figure as eps or pdf? thanks!

Original issue reported on code.google.com by G.ShiZha...@gmail.com on 15 Oct 2013 at 4:13

Attachments:

GoogleCodeExporter commented 9 years ago
I will try to support more figure exporting options at new ScalaLab versions.

For now, you can easily convert the .png file to .jpg for example,
using e.g. Paint in Windows,
from the JPEG format the OpenOffice can read it,
and can export the figure as .pdf

Original comment by st...@teikav.edu.gr on 15 Oct 2013 at 12:45

GoogleCodeExporter commented 9 years ago
Thank you for contributing to this nice project!

BTW: it seems that there are a few posts on how to play with jFreeChart, some 
indicate batik can be used to translate the figure into SVG, then it can be 
converted to other vector graphics with high quality.

the post: 
http://thinktibits.blogspot.com/2013/01/JFreeChart-SVG-XY-Line-Chart-Graph-Java-
Example.html
batik: http://xmlgraphics.apache.org/batik/

Original comment by G.ShiZha...@gmail.com on 15 Oct 2013 at 6:13

GoogleCodeExporter commented 9 years ago
I added today (October 17 version) support for exporting to many common image 
formats (i.e. pdf, eps, jpg and bmp)  from ScalaLab figures.

Thank you, for noting the need for this useful feature,
I think is also useful for many other users. 

Original comment by st...@teikav.edu.gr on 17 Oct 2013 at 8:29

GoogleCodeExporter commented 9 years ago
Awesome!
Thank you for the patch.

Original comment by G.ShiZha...@gmail.com on 17 Oct 2013 at 8:49