gnuplot -> terminal svg -> datapoint symbols misinterpreted
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='
+ <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: | removed: defs stroke-width xlink |
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.