Creating objects from text file
Creating objects from text file
I have a CSV text file having 1000 lines specifying 1000 circles, with fields x,y and r. Can anyone suggest how I can get these circles created in Inkscape? Perhaps some script or external SVG creator tool? Thanks.
Re: Creating objects from text file
Hi.
I have been barking up this tree a lot lately!
Perfect task for python using the csv and svgwrite modules.
Please revert back if help is needed writing the script.
RGDS
Ragnar
I have been barking up this tree a lot lately!
Perfect task for python using the csv and svgwrite modules.
Please revert back if help is needed writing the script.
RGDS
Ragnar
Good Luck!
( ͡° ͜ʖ ͡°)
RGDS
Ragnar
( ͡° ͜ʖ ͡°)
RGDS
Ragnar
Re: Creating objects from text file
ragstian wrote:Please revert back if help is needed writing the script.
I need avoiding writing the script
If anyone knows an existing script/tool, please do say. Thanks.
Re: Creating objects from text file
Hi.
Ok, I'll bark up a tree a little deeper in the woods;
Use Veusz, ready made for you, accepts CSV - outputs SVG.
http://home.gna.org/veusz/
If we can see (part of) your CSV file we can help you along.
RGDS
Ragnar
I need avoiding writing the script
Ok, I'll bark up a tree a little deeper in the woods;
Use Veusz, ready made for you, accepts CSV - outputs SVG.
http://home.gna.org/veusz/
If we can see (part of) your CSV file we can help you along.
RGDS
Ragnar
Last edited by ragstian on Fri Feb 15, 2013 1:04 pm, edited 1 time in total.
Good Luck!
( ͡° ͜ʖ ͡°)
RGDS
Ragnar
( ͡° ͜ʖ ͡°)
RGDS
Ragnar
Re: Creating objects from text file
ragstian wrote:http://home.gna.org/veusz/
Looks great - thanks. I see how to get the x and y - in an XY plot - but not the r.
ragstian wrote:If we can see (part of) your CSV file we can help you along.
Thanks. Here's the first three circles:
Code: Select all
x,y,r
0,0,5
0,10,5
10,0,7.5
Re: Creating objects from text file
Hi.
You "Scale Markers" to r.
See this;
https://www.dropbox.com/s/u367cl7r7rl2cjv/Circles_Veusz.vsz
(You have to change the import path to where your csv file is located.)
Result from Veusz using your data; (Grids and Labels can be turned off and image can be centered by adjusting borders.)

RGDS
Ragnar
Looks great - thanks. I see how to get the x and y - in an XY plot - but not the r.
You "Scale Markers" to r.
See this;
https://www.dropbox.com/s/u367cl7r7rl2cjv/Circles_Veusz.vsz
(You have to change the import path to where your csv file is located.)
Result from Veusz using your data; (Grids and Labels can be turned off and image can be centered by adjusting borders.)
RGDS
Ragnar
Good Luck!
( ͡° ͜ʖ ͡°)
RGDS
Ragnar
( ͡° ͜ʖ ͡°)
RGDS
Ragnar
Re: Creating objects from text file
Wow! Just the ticket. Thanks! Trying it now.