Search found 11 matches

by geotheory
Mon Feb 11, 2013 9:32 pm
Forum: Help with using Inkscape
Topic: Missing node selectors on imported line data
Replies: 10
Views: 2930

Re: Missing node selectors on imported line data

Thanks Ragnar and Druban, two geniotic solutions :)
by geotheory
Sat Feb 09, 2013 1:03 am
Forum: Help with using Inkscape
Topic: Missing node selectors on imported line data
Replies: 10
Views: 2930

Re: Missing node selectors on imported line data

I was reproducing this example using the networkx library: http://networkx.github.com/documentation/latest/examples/drawing/simple_path.html Instead of using.. plt.savefig("simple_path.png") # save as png I outputted to file with.. plt.savefig("simple_path.svg")
by geotheory
Fri Feb 08, 2013 8:19 pm
Forum: Help with using Inkscape
Topic: Missing node selectors on imported line data
Replies: 10
Views: 2930

Re: Missing node selectors on imported line data

Thanks but sadly none of these work. Here is an example SVG if anyone wants to see what I mean.

simple_line.svg
(9.38 KiB) Downloaded 272 times
by geotheory
Fri Feb 08, 2013 4:01 am
Forum: Help with using Inkscape
Topic: Missing node selectors on imported line data
Replies: 10
Views: 2930

Missing node selectors on imported line data

Opening up an SVG created by a Python script, I cannot manipulate the lines at all. In fact the lines are missing node selectors, and can only be manipulated by the bounding box as if they were raster images (and they get thicker/thinner in this way). But they certainly seem to be vector data as the...
by geotheory
Wed Jan 16, 2013 11:36 pm
Forum: Programming
Topic: Appending new nodes by python
Replies: 2
Views: 2810

Re: Appending new nodes by python

Well I've done a script to calculate and report on intersections - available at https://dl.dropbox.com/u/46043231/apps/AddIntersectNodes.zip To run it needs to be unzipped into the ..Inkscape/share/extensions folder, and will appear as 'AddIntersectNodes' in the 'Modify Path' submenu. It calculates ...
by geotheory
Wed Jan 16, 2013 12:42 am
Forum: Help with using Inkscape
Topic: Creating line networks
Replies: 6
Views: 2000

Re: Creating line networks

I posted a 'quick reply' but it didn't appear - are my posts all still moderated? Trying 'postreply' instead.. Thanks both for your advice. @Flamingolady, as I understand it your suggestion closes the path to create a polygon, which is not what I want. Also if you path/union 2 simple lines they disa...
by geotheory
Tue Jan 15, 2013 11:25 pm
Forum: Programming
Topic: Appending new nodes by python
Replies: 2
Views: 2810

Appending new nodes by python

I'm working on a script to calculate if selected line objects intersect (and if so where), and to create new nodes in both objects at the intersection point. I'm about half way through the script, and can extract node info and process it to check for intersections. But being fairly new to Inkscape I...
by geotheory
Tue Jan 15, 2013 11:08 pm
Forum: Help with using Inkscape
Topic: Creating line networks
Replies: 6
Views: 2000

Re: Creating line networks

Hi brynn, flamingolady - thanks this is useful advice
by geotheory
Tue Jan 15, 2013 8:17 am
Forum: Help with using Inkscape
Topic: Exporting Nodes Coordinates
Replies: 24
Views: 35769

Re: Exporting Nodes Coordinates

In addition, line 17:

Code: Select all

for node in self.selected.iteritems():
is a duplication of line 23 and causes data output duplication. Suggest removal.
by geotheory
Tue Jan 15, 2013 8:02 am
Forum: Help with using Inkscape
Topic: Exporting Nodes Coordinates
Replies: 24
Views: 35769

Re: Exporting Nodes Coordinates

Useful little script, thanks Simarilius for sharing. Just to note that it was omitting the last vertex of each path object because of line 37 of the script

Code: Select all

for i in range( len(pathData)-1):
. You can correct this by replacing it with:

Code: Select all

for i in range( len(pathData)):

Good node hunting ;)
by geotheory
Tue Jan 15, 2013 1:04 am
Forum: Help with using Inkscape
Topic: Creating line networks
Replies: 6
Views: 2000

Creating line networks

I'm exploring if Inkscape can be used to create network comprised of lines and nodes - something like a train map or stick man. I gather that lines cannot be fused at their intersections - is this right? If so I wonder how to go about creating seperate nodes at the intersecting point of two lines an...

Go to advanced search