|
From: James R. V. Z. <jr...@co...> - 2009-09-14 17:47:13
|
I'm trying to use the svg terminal in a recent version of gnuplot:
G N U P L O T
Version 4.3 patchlevel 0
last modified March 2009
I can generate a sample file like this:
set term svg enhanced
set out "sine.svg"
set label "e^{i{/Symbol p}}=-1" at graph .5,.5
plot sin(x)
set out
When I display the output using inkscape 0.46, I see three problems:
- All the lines are missing
- The superscripted characters are spaced out
- The Greek letter pi appears as "p".
By googling I came up with workarounds for the first two problems:
perl -p -i -e 's/color:([^;]*); *stroke:[^;]*;/color:$1; stroke:$1;/' sine.svg
perl -p -i -e 's/xml:space=.preserve.//' sine.svg
Does anyone have suggestions about the Greek letters?
- Jim Van Zandt
|