Save a graph as SVG
Naym
Does anyone know if there is a way to extract the graphic vector information off an Igor graph? Say for the purpose of saving an Igor graph as an SVG file. None of the functions seem to be able to do this.
Does anyone know if the contents of the procedure window can be read by a procedure?
John Weeks
WaveMetrics, Inc.
support@wavemetrics.com
June 8, 2011 at 09:30 am - Permalink
Try the ProcedureText function.
--Jim Prouty
Software Engineer, WaveMetrics, Inc.
June 8, 2011 at 07:01 pm - Permalink
June 9, 2011 at 12:44 am - Permalink
June 10, 2011 at 01:51 am - Permalink
It costs only 1 min and probably 2-4 steps to get a mostly uncluttered svg. That's how I do it (after importing the pdf):
1) most elements in the graph are horribly grouped several times. I just remove all groups by repeatedly hitting ctrl+shift+g.
2) That was my main problem with pdf: All letters in the text have an absolute position saved in the pdf. That is utterly annoying when you want to actually edit the text. But I can easily get rid of this by selecting everything and use 'text' -> 'remove manual kerns'.
3) Every point in the graph is converted to a node. This can be a bit much in huge graphs with thousands of points. When the graph is smooth it may be ok to simplify certain parts.
4) Apply the automatic document constrains under 'document settings' to fit the graph into the frame.
There is no scripting option yet in inkscape itself, but you can run it from the command line. I guess there is a way to automate all this.
June 10, 2011 at 06:30 am - Permalink
This is very helpful, thanks! I still wish there was a simple "export as SVG" option in the main program though...
January 2, 2012 at 12:32 pm - Permalink