Using inkscape to draw from the command line?

Discuss SVG code, accessible via the XML Editor.
daviddoria
Posts: 56
Joined: Fri Oct 03, 2008 7:57 am

Using inkscape to draw from the command line?

Postby daviddoria » Fri May 22, 2009 3:36 am

What I would like to do is draw a bunch of lines between pairs of coordinates (end points of the lines)
I've been doing this:
Open Inkscape, draw a line and set the color, size etc that I want. Then go to "edit -> XML Editor" and copy/paste my coordinates with an "M" in front of them from a text file

Code: Select all

M 110,650 590,350
M 10,50 570,30
etc...


This works perfectly - but is there a way to automate it further - ie pass that text file of coordinates to inkscape from the terminal and produce a svg or png without ever opening inkscape? Or is there a better tool for this job?

Thanks,

Dave

Guest

Re: Using inkscape to draw from the command line?

Postby Guest » Wed Aug 19, 2009 3:00 pm

Hi.

Have a look at this tool: http://home.gna.org/veusz/

It will plot anything - excellent program!

RGDS Ragstian


Return to “SVG / XML Code”