Convert vector lineplot to a data table

Post questions on how to use or achieve an effect in Inkscape.
User avatar
ottadini
Posts: 34
Joined: Thu Sep 24, 2009 4:27 pm
Location: Australia

Convert vector lineplot to a data table

Postby ottadini » Wed Jun 02, 2010 8:47 pm

Hi,
I have some vector lineplots given to me from some plotting software, but I can't get the original data table. The line plots have axes with values, so I'm wondering if anyone has any ideas how I could discretise the line itself to produce values at every nth length? E.g., assume it's a time series, I would want to get values for the line at every 10 seconds.

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: Convert vector lineplot to a data table

Postby brynn » Sat Jun 05, 2010 12:24 am

I have not any idea even of what you're asking. But since no one else has answered, my best guess is that you might find the info in the XML Editor (Path menu)?

User avatar
tomh
Posts: 218
Joined: Sat Feb 14, 2009 10:14 pm

Re: Convert vector lineplot to a data table

Postby tomh » Sat Jun 05, 2010 4:07 am

There are always things like this: http://www.uniphiz.com/digitizing.htm or http://www.sharewareconnection.com/xyex ... itizer.htm , although obviously this involves saving the drawing to a bitmap first, which isn't ideal.

Alternatively, if you can make use of the path data in the XML editor. The location of the nodes should be in the form of (x,y) pairs (in pixels). See http://www.w3schools.com/svg/svg_path.asp or http://www.w3.org/TR/SVG/paths.html for details of the format.

You would of course have to do some linear re-scaling to make sure the data you extract is scaled to the scale on the graph.

You can also use the "Add nodes" extension (Extension -> Modify Path -> Add Nodes ) to make sure there are nodes close enough together.

User avatar
ottadini
Posts: 34
Joined: Thu Sep 24, 2009 4:27 pm
Location: Australia

Re: Convert vector lineplot to a data table

Postby ottadini » Sat Jun 05, 2010 1:26 pm

thanks tomh and brynn. i think extracting data from the xml nodes is the only way. too confusing for me to attempt for the current job. crazy to think i need to convert a vector line to a bitmap to extract data out of it (quickly).

i guess there is no way to set a user-defined coord reference, or reset the Origin in inkscape? i see that i can set a grid to have its own origin, but i can't see if i can get coords in that grid displayed.


Return to “Help with using Inkscape”