Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  nodelist  faq  login

The documentation is in Japanese. Good luck. -- Rich $alz


computers / comp.graphics.apps.gnuplot / How to draw polygon on contour plot

SubjectAuthor
* How to draw polygon on contour ploteridanibrew
`- Re: How to draw polygon on contour ploteridanibrew

1
Subject: How to draw polygon on contour plot
From: eridanib...@gmail.com
Newsgroups: comp.graphics.apps.gnuplot
Date: Fri, 10 Apr 2020 04:14 UTC
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: i2pn2.org!i2pn.org!weretis.net!feeder7.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!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: eridanib...@gmail.com
Injection-Date: Fri, 10 Apr 2020 04:14:31 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
View all headers
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 reason 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.

I don't see a way to attach an image to my post to show the problem in the resulting plot:(


[code]
f="PlywoodSpace.csv"
reset
set term windows size 800,1100
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"green", 5"yellow", 6"red", 7"white" )
set title "Plywood"  

# 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"

# 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]


Subject: Re: How to draw polygon on contour plot
From: eridanib...@gmail.com
Newsgroups: comp.graphics.apps.gnuplot
Date: Sun, 12 Apr 2020 23:14 UTC
References: 1
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: i2pn2.org!i2pn.org!aioe.org!peer01.am4!peer.am4.highwinds-media.com!news.highwinds-media.com!tr2.eu1.usenetexpress.com!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: <c9a259a7-8ed5-4d6f-ad6d-5e90de067f87@googlegroups.com>
Subject: Re: How to draw polygon on contour plot
From: eridanib...@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
X-Received-Bytes: 2944
X-Received-Body-CRC: 1837977478
View all headers
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 reason 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.

I don't see a way to attach an image to my post to show the problem in the resulting plot:(


[code]
f="PlywoodSpace.csv"
reset
set term windows size 800,1100
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"green", 5"yellow", 6"red", 7"white" )
set title "Plywood"  

# 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"

# 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]

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.


1
rocksolid light 0.7.2
clearneti2ptor