Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

The study of non-linear physics is like the study of non-elephant biology.


devel / comp.graphics.apps.gnuplot / Re: Generate `surf`-like plot from `scatter` base

SubjectAuthor
* Generate `surf`-like plot from `scatter` baseMichele Esposito Marzino
`- Generate `surf`-like plot from `scatter` baseGavin Buxton

1
Generate `surf`-like plot from `scatter` base

<461fc3b4-99a1-4336-88ac-a9b261e39be9n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=288&group=comp.graphics.apps.gnuplot#288

  copy link   Newsgroups: comp.graphics.apps.gnuplot
X-Received: by 2002:a05:620a:166a:b0:702:1a38:e42d with SMTP id d10-20020a05620a166a00b007021a38e42dmr4216070qko.306.1673451452924;
Wed, 11 Jan 2023 07:37:32 -0800 (PST)
X-Received: by 2002:a81:f206:0:b0:4ce:8fe3:d4d1 with SMTP id
i6-20020a81f206000000b004ce8fe3d4d1mr1169462ywm.229.1673451452736; Wed, 11
Jan 2023 07:37:32 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.graphics.apps.gnuplot
Date: Wed, 11 Jan 2023 07:37:32 -0800 (PST)
Injection-Info: google-groups.googlegroups.com; posting-host=212.224.228.235; posting-account=b9xd9woAAAD8QCVP_SlnW1wtcIdcCYum
NNTP-Posting-Host: 212.224.228.235
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <461fc3b4-99a1-4336-88ac-a9b261e39be9n@googlegroups.com>
Subject: Generate `surf`-like plot from `scatter` base
From: espositomichele96@gmail.com (Michele Esposito Marzino)
Injection-Date: Wed, 11 Jan 2023 15:37:32 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 3883
 by: Michele Esposito Mar - Wed, 11 Jan 2023 15:37 UTC

Hi everyone,

firstly, I'm quite new to GNUPlot (Just subscribed to this group :) ), so I do apologise if I might sound silly.

I need to visualise some 3D data.

I'd like to show you all a graphical example of what I have put in place, but I don't see how to do it (maybe it is not possible?).

If you'd want to, here's the SO link where I posted the same question:
https://stackoverflow.com/questions/75084396/gnuplot-generate-surf-like-plot-from-scatter-base

I try to explain (tough very hard to transmit) by words (or go to the link for a better understanding/visualisation).

I now generate a scatter-like plot, meaning I have the whole list oh (x, y, z) values for all points.

Is there a way to finally visualise data layed down like that as a surf-like plot, WITHOUT HAVING TO GENERATE A GRID-MESH ?

Thanks to everyone answering.

Michele

The script I have up to know:
```
# Main window settings
MAINFONT = ""
WINDOWTITLE = "BRM (mesher)"
WSIZEW = 3040 # base: 1980
WSIZEH = 2080 # base: 1080
set term wxt \
size WSIZEW, WSIZEH \
position 50, 50 \
font MAINFONT title WINDOWTITLE

#
# commands taken from GNU demo folder
#

# unset hidden3d
# set parametric
set view 45, 45
set border linestyle 102 linewidth 2

# draws a grid in the XY plane (at the base)
# set style line 102 lc rgb "#d6d7d9" lt 0 lw 1
set grid back ls 102

#
# setting styles
#

LINETYP = 8
LINEWDT = 2
POINTTY = 7
POINTIN = 0
POINTSZ = 1

# "#AARRGGBB"
set style line 1 linecolor rgb "#B5000000" \
linetype LINETYP linewidth LINEWDT \
pointtype POINTTY pointinterval POINTIN pointsize POINTSZ

set style line 2 linecolor rgb "#B5EEEEEE" \
linetype LINETYP linewidth LINEWDT \
pointtype POINTTY pointinterval POINTIN pointsize POINTSZ
set style data points

# #
# # LEGEND (related)
# #
# LEGENDTITLE = "brm"
# set key nobox \
# title LEGENDTITLE

#
# Annotation: title and labels
# FIGURETITLE = "Bispectrum (MESHER)"
XLABEL = "f_1"
YLABEL = "f_2"
set title FIGURETITLE
set xlabel XLABEL
set ylabel YLABEL

# ??
set ticslevel 0.1

#
# RANGES
# _xrange = 0
_yrange = 0

_xrangev_min = -0.58
_xrangev_max = 0.58
if (_xrange == 0) \
set autoscale x; \
else \
set xrange [_xrangev_min : _xrangev_max]

_yrangev_min = -0.58
_yrangev_max = 0.58
if (_yrange == 0) \
set autoscale y; \
else \
set yrange [_yrangev_min : _yrangev_max]

# by default, always autoscale Z axis
set autoscale z

#
# PALETTE (???)
# set palette defined

#
# DATA file - ACTUAL PLOTTING (end of script)
# DATAFILE = "brm_gnu.dat"
splot DATAFILE linestyle 1

set terminal png transparent \
size WSIZEW, WSIZEH \
truecolor enhanced
set out 'brm_gnu.png'
splot DATAFILE linestyle 2
```

Re: Generate `surf`-like plot from `scatter` base

<a51c2ae8-1832-457f-9b18-c564a01923den@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=296&group=comp.graphics.apps.gnuplot#296

  copy link   Newsgroups: comp.graphics.apps.gnuplot
X-Received: by 2002:a05:622a:506:b0:3b9:b4e3:1a3d with SMTP id l6-20020a05622a050600b003b9b4e31a3dmr306765qtx.306.1675260776081;
Wed, 01 Feb 2023 06:12:56 -0800 (PST)
X-Received: by 2002:a05:6830:1e58:b0:686:a40a:7080 with SMTP id
e24-20020a0568301e5800b00686a40a7080mr149788otj.18.1675260775769; Wed, 01 Feb
2023 06:12:55 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.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: Wed, 1 Feb 2023 06:12:55 -0800 (PST)
In-Reply-To: <461fc3b4-99a1-4336-88ac-a9b261e39be9n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=66.206.189.230; posting-account=yC8mVwkAAADuRBqBIdPVfec50l5EMdYn
NNTP-Posting-Host: 66.206.189.230
References: <461fc3b4-99a1-4336-88ac-a9b261e39be9n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <a51c2ae8-1832-457f-9b18-c564a01923den@googlegroups.com>
Subject: Re: Generate `surf`-like plot from `scatter` base
From: gavinbuxton@gmail.com (Gavin Buxton)
Injection-Date: Wed, 01 Feb 2023 14:12:56 +0000
Content-Type: text/plain; charset="UTF-8"
 by: Gavin Buxton - Wed, 1 Feb 2023 14:12 UTC

Sorry, I can't think of an answer. I know you said that you didn't want to grid the data, but your example of what you want it to look like is gridded?

dgrid3d is the way to do the gridding in gnuplot.

If you need to create a contour plot of irregularly spaced data in Octave/Matlab then you would need to first grid it to, which looks like the example you provided?

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor