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


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

Re: Discontinuities in fill plot

X-Received by 10.50.87.97 with SMTP id w1mr14344507igz.1.1425305577650; Mon, 02 Mar 2015 06:12:57 -0800 (PST)
X-Received by 10.140.91.10 with SMTP id y10mr343214qgd.39.1425305577523; Mon, 02 Mar 2015 06:12:57 -0800 (PST)
Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!peer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!hl2no2146849igb.0!news-out.google.com!n6ni190qar.0!nntp.google.com!j7no10227822qaq.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups comp.graphics.apps.gnuplot
Date Mon, 2 Mar 2015 06:12:57 -0800 (PST)
In-Reply-To <94137469-3f70-455a-a38f-0d7c93e7a77c@googlegroups.com>
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=18.189.46.171; posting-account=2vExlgoAAACpT5c3hpPGapsYdqc_jT3G
NNTP-Posting-Host 18.189.46.171
References <5c049f40-c989-4fa8-8945-6a03cfdfff63@hh9g2000vbb.googlegroups.com> <94137469-3f70-455a-a38f-0d7c93e7a77c@googlegroups.com>
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <a32ff268-c6d5-44c0-9c22-68bf9da702f9@googlegroups.com> (permalink)
Subject Re: Discontinuities in fill plot
From dkeathley@gmail.com
Injection-Date Mon, 02 Mar 2015 14:12:57 +0000
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding quoted-printable
X-Received-Bytes 3277
X-Received-Body-CRC 1526793211
Xref csiph.com comp.graphics.apps.gnuplot:2804

Show key headers only | View raw


This seems like an old question, but I had the same issue.  I think the suggestion to draw a polygon is a good one.  However, I found that this is actually what happens when you use filledcurves to fill a region between the x-axis and a single curve, so this is not an issue for one curve.  However, if you are trying to fill between two curves with the notation suggested by most demo scripts as shown here (i.e. plot ... using 1:2:3 ...), it uses a bunch of separate trapezoids rather than one solid polygon.  You can see this by making the sampling larger.  The issue seems to be that tikz is always making a very find border that has a slightly different color than the transparent fill.

I found the solution to be in the end to plot one vector where each point is a vertex of the polygon that would fill between the curves.  In other words, the vector sarts by specifying all of the x-y points of the top curve, moving from left to right in x, followed by all of the x-y points of the bottom curve, moving from right to left.  Then just plot this one vector with plot ... using 1:2 ... This makes one polygon with a single face so you don't have this stitching/border error between a bunch of separate polygons.

   
On Monday, January 13, 2014 at 8:41:22 PM UTC-5, marcell...@gmail.com wrote:
> The problem disappears when instead of plotting with a filledcurve style, you explicitly define a polygon with the "set object" command. 
> 
> set object 1 polygon fc rgb 'red' front \
> from 0 , 0.0886798 \
> to 0.01 , 0.0938408 \
> to 0.02 , 0.0990018 \
> # ... add more points as you please
> 
> plot 'something'
> 
> The "set object" man page is of great help.
> 
> You cannot use the same data file this way, but if you have a program that generates your data, then you can easily modify it a little to output the polygon object for you. Or you can use a macro or search and replace with regular expressions to modify your data file to polygon object syntax.

Back to comp.graphics.apps.gnuplot | Previous | Next | Find similar


Thread

Re: Discontinuities in fill plot dkeathley@gmail.com - 2015-03-02 06:12 -0800

csiph-web