Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #2295

Re: spurious horizontal lines in svg output (impulses plot)

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From Ethan A Merritt <merritt@u.washington.edu>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: spurious horizontal lines in svg output (impulses plot)
Date Wed, 05 Feb 2014 14:47:04 -0800
Organization University of Washington
Lines 52
Message-ID <lcuf1a$k4a$1@dont-email.me> (permalink)
References <4b39dad2-b266-4cbd-9989-229c46388b82@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding 7Bit
Injection-Date Wed, 5 Feb 2014 22:47:07 +0000 (UTC)
Injection-Info mx05.eternal-september.org; posting-host="8e86a57dfa599721f116da4577f3d1af"; logging-data="20618"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX192c/I/DdD2ZaYqP8g2lPTT"
User-Agent KNode/4.10.5
Cancel-Lock sha1:UNzP7nT7F3po4Ny7UR1sww3gVGg=
Xref csiph.com comp.graphics.apps.gnuplot:2295

Show key headers only | View raw


martin.kraska@googlemail.com wrote:

> Hello,
> 
> we get rendering problems with svg output of the file below. See the
> problem description, the input files and the svg file here:
> 
> http://en.smath.info/forum/yaf_postsm12035_Image-Region.aspx#post12035
> 
> The following part from the svg file is meant to create the vertical lines
> (impulses). Possibly, due to a gnuplot bug there is a small horizontal
> line in the end (h0.01). If that line is removed from the file, then the
> plots are correct in whatever viewer. Is there a way to avoid this
> spurious line?

Sometimes you can't win.  That extra step (h0.01) was added to work around a
bug in earlier svg toolkits, most widely seen by users of Firefox versions
3.X.    At the time, this magic workaround fixed the rendering in Firefox
and did not seem to break anything else.  Now it seems that a new generation
of svg viewers exhibits a contrary bug; the tiny horizontal increment
should be invisible, but apparently some viewers handle it badly.

Since Firefox version 3.x and its ilk are long gone, I will see to it
that the old work-around is removed from future gnuplot releases.
I regret that I cannot offer a workaround for your currently problematic
viewers.  The gnuplot output displays correctly in current Firefox, 
for whatever that is worth.

	Ethan (gnuplot development team)


> 
> 
> <g style="fill:none; color:red; stroke:currentColor; stroke-width:8.00;
> stroke-linecap:butt; stroke-linejoin:miter">
> <path stroke='rgb(  0,   0, 255)'  d='M41.9,126.0 L41.9,24.5 M54.4,126.0
> L54.4,24.7 M66.8,126.0 L66.8,25.0 M79.3,126.0 L79.3,25.5 M91.7,126.0
> L91.7,26.2 M104.2,126.0 L104.2,27.1 M116.6,126.0 L116.6,28.1 M129.1,126.0
> L129.1,29.4 M141.5,126.0 L141.5,31.0 M154.0,126.0 L154.0,32.7 M166.4,126.0
> L166.4,34.7 M178.8,126.0 L178.8,37.0 M191.3,126.0 L191.3,39.5 M203.7,126.0
> L203.7,42.3 M216.2,126.0 L216.2,45.3 M228.6,126.0 L228.6,48.5 M241.1,126.0
> L241.1,52.0 M253.5,126.0 L253.5,55.7 M266.0,126.0 L266.0,59.5 M278.4,126.0
> L278.4,63.5 M290.9,126.0 L290.9,67.6 M303.3,126.0 L303.3,71.7 M315.8,126.0
> L315.8,75.8 M328.2,126.0 L328.2,80.0 M340.7,126.0 L340.7,84.1 M353.1,126.0
> L353.1,88.0 M365.6,126.0 L365.6,91.9 M378.0,126.0 L378.0,95.5 M390.5,126.0
> L390.5,99.0 M402.9,126.0 L402.9,102.3 M415.4,126.0 L415.4,105.3
> M427.8,126.0 L427.8,108.0 M440.3,126.0 L440.3,110.6 M452.7,126.0
> L452.7,112.8 M465.1,126.0 L465.1,114.8 M477.6,126.0 L477.6,116.6
> M490.0,126.0 L490.0,118.1 M502.5,126.0 L502.5,119.4 M514.9,126.0
> L514.9,120.5 M527.4,126.0 L527.4,121.4 M539.8,126.0 L539.8,122.0
> M552.3,126.0 L552.3,122.6 M564.7,126.0 L564.7,122.9 M577.2,126.0
> L577.2,123.0 h0.01'/></g>

Back to comp.graphics.apps.gnuplot | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

spurious horizontal lines in svg output (impulses plot) martin.kraska@googlemail.com - 2014-02-05 13:00 -0800
  Re: spurious horizontal lines in svg output (impulses plot) Ethan A Merritt <merritt@u.washington.edu> - 2014-02-05 14:47 -0800
    Re: spurious horizontal lines in svg output (impulses plot) martin.kraska@googlemail.com - 2014-02-05 16:29 -0800

csiph-web