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.
Convert vector lineplot to a data table
Re: Convert vector lineplot to a data table
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)?
Basics - Help menu > Tutorials
Manual - Inkscape: Guide to a Vector Drawing Program
Inkscape Community - Inkscape FAQ - Gallery
Inkscape for Cutting Design
Manual - Inkscape: Guide to a Vector Drawing Program
Inkscape Community - Inkscape FAQ - Gallery
Inkscape for Cutting Design
Re: Convert vector lineplot to a data table
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.
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.
Re: Convert vector lineplot to a data table
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.
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.