X-Received: by 2002:a37:85c2:: with SMTP id h185mr13493318qkd.446.1586733240734; Sun, 12 Apr 2020 16:14:00 -0700 (PDT) X-Received: by 2002:a9d:1786:: with SMTP id j6mr11955424otj.235.1586733240463; Sun, 12 Apr 2020 16:14:00 -0700 (PDT) Path: csiph.com!xmission!news.alt.net!feeder.usenetexpress.com!tr1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.graphics.apps.gnuplot Date: Sun, 12 Apr 2020 16:14:00 -0700 (PDT) In-Reply-To: <9f707fe3-4339-4485-a037-876d3d43e12e@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: google-groups.googlegroups.com; posting-host=174.17.94.97; posting-account=JlHXFwoAAAB-Z4lpNURZF7izOESwbDb8 NNTP-Posting-Host: 174.17.94.97 References: <9f707fe3-4339-4485-a037-876d3d43e12e@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: How to draw polygon on contour plot From: eridanibrew@gmail.com Injection-Date: Sun, 12 Apr 2020 23:14:00 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Lines: 51 Xref: csiph.com comp.graphics.apps.gnuplot:4318 On Thursday, April 9, 2020 at 9:14:32 PM UTC-7, erida...@gmail.com wrote: > I would like to draw a polygon on "top of" a contour plot. My code sample= below "almost" gets there; I can see the polygon lines around the edges of= the plot, but not the diagonal lines connecting the edge lines. The only r= eason I can see the edge lines is because I plotted with a line width of 5.= The contour coloring seems to cover the diagonal lines. >=20 > I don't see a way to attach an image to my post to show the problem in th= e resulting plot:( >=20 >=20 > [code] > f=3D"PlywoodSpace.csv" > reset > set term windows size 800,1100=20 > set pm3d >=20 > set dgrid3d > unset surface # don't need surfaces > set view map > set contour > set key outside > set cntrparam cubicspline # smooth out the lines > set cntrparam levels 50 # 50 sets the num of contour lines > set pm3d interpolate 20,20 # interpolate the color > # Set a nice color palette > set palette model RGB defined ( 0"black", 1"blue", 2"purple", 3"cyan", 4"= green", 5"yellow", 6"red", 7"white" ) > set title "Plywood" =20 >=20 > # draw a paddle > set object 1 polygon from -2.5,-4,99 to -3,-3,99 to -3,4,99 to -2.5,5,99 = to 2.5,5,99 to 3,4,99 to 3,-3,99 to 2.5,-4,99 lw 5 fc rgb "red"=20 >=20 > # Axes > set tics scale 1,0.2 > set format z '%.0f' > unset xtics > unset ytics >=20 > # Now plot > splot f using 1:2:3 notitle with lines lt 1 >=20 > [/code] Tried a million differrent things to try and get the polygon object to show= up on top. Finally figured out to do splot now define the object polygon with "front" replot Now the object shows up higher than than the contour.