gnuplot -> terminal svg -> datapoint symbols misinterpreted

Bug #392192 reported by madworm
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Inkscape
Invalid
Undecided
Unassigned

Bug Description

There's an issue with circles as markers. After replacing "currentColor" with a color value e.g. "black" the markers shop up just fine, no matter if filled or not filled. But I can't change the stroke width !

The point markers are defined in a <defs>...</defs> section right at the beginning of the .svg file and a stroke width is also set there. Later they are "drawn" with a translate command several times.

I can resize the circles, change stroke/fill color, but any input to stroke width is ignored. The stroke width always scales when the circle is resized.

The normal behaviour is restored by changing this to that:

<defs>
- <circle id='gpPt5' style='stroke-width:0.222' cx='0' cy='0' r='1'/>
+ <circle id='gpPt5' style='' cx='0' cy='0' r='1'/>
</defs>

I've attached both the original svg createb by gnuplot, and the "fixed" one.

gnuplot version: 4.2 patchlevel 3
inkscape version: 0.46, built Dec 3 2008
os: openSUSE 11.1

Oh, and e.g. a picture viewer like eog (eye of gnome) renders the "bad" svg file just fine !

Gimp: OK
F-Spot Viewer: OK
Firefox: some colors wrong
Konqueror: OK

Scribus barfs about unsupported "features" and crashes when trying to manipulated objects.

Tags: gnuplot
Revision history for this message
madworm (madworm-de-inkscape) wrote :
tags: added: defs
tags: added: gnuplot stroke-width
tags: added: xlink
Revision history for this message
madworm (madworm-de-inkscape) wrote :

It's also impossible to copy/paste such a gnuplot graph to a new svg document. The data point symbols magically disappear in the new document. It turns out that the content of the <defs> section, which contains the "parent object" for the symbols is not copied at all. Therefore >> xlink:href="#gpPt5" << points to nowhere.

Revision history for this message
madworm (madworm-de-inkscape) wrote :

Copying is possible if the linked objects are treated with "edit --> clone --> unlink clone shift+alt+d" before.

tags: removed: defs stroke-width xlink
Revision history for this message
su_v (suv-lp) wrote :

The original reported issue is not a bug - this is expected normal behavior of SVG <use> elements (called 'clone' in Inkscape). The clone inherits the style of the original, and can only be styled independently if the specific style property is 'Undefined' for the original object.

See also:
<http://tavmjong.free.fr/INKSCAPE/MANUAL/html/Clones.html>

Re clipboard issue described in comment #2: already tracked in bug #167907.

Closing as 'Invalid' for project Inkscape.

Changed in inkscape:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.