X-Received: by 2002:a37:aad0:: with SMTP id t199mr2393847qke.285.1586492071241; Thu, 09 Apr 2020 21:14:31 -0700 (PDT) X-Received: by 2002:a9d:748a:: with SMTP id t10mr2957326otk.244.1586492070981; Thu, 09 Apr 2020 21:14:30 -0700 (PDT) Path: csiph.com!xmission!news.snarked.org!border2.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: Thu, 9 Apr 2020 21:14:30 -0700 (PDT) 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 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <9f707fe3-4339-4485-a037-876d3d43e12e@googlegroups.com> Subject: How to draw polygon on contour plot From: eridanibrew@gmail.com Injection-Date: Fri, 10 Apr 2020 04:14:31 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Lines: 42 Xref: csiph.com comp.graphics.apps.gnuplot:4316 I would like to draw a polygon on "top of" a contour plot. My code sample b= elow "almost" gets there; I can see the polygon lines around the edges of t= he plot, but not the diagonal lines connecting the edge lines. The only rea= son I can see the edge lines is because I plotted with a line width of 5. T= he contour coloring seems to cover the diagonal lines. I don't see a way to attach an image to my post to show the problem in the = resulting plot:( [code] f=3D"PlywoodSpace.csv" reset set term windows size 800,1100=20 set pm3d 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"gr= een", 5"yellow", 6"red", 7"white" ) set title "Plywood" =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 # Axes set tics scale 1,0.2 set format z '%.0f' unset xtics unset ytics # Now plot splot f using 1:2:3 notitle with lines lt 1 [/code]