Hello,

I haven’t carefully looked at your problem with GNUPlot but I wonder if
what you are trying to achieve could not be done with surface routines,
that’s with 3d ones ? Or maybe something like heatmap like this question:

https://stackoverflow.com/questions/76577557/trying-to-create-heat-map-using-ggplot-similar-to-density-contour-plot-but-wh

Just to give some hints on possible routines.

- Greg

Le jeu. 18 avr. 2024 à 01:53, Jovan Trujillo <[email protected]> a
écrit :

> Hi all,
>
> I've been wracking my brain all morning trying to figure this out, but how
> could I convert a set of 3 1D piddles containing xyz data into a matrix for
> plotting as an image using PDL::Graphics::Gnuplot? Say for example:
>
> use PDL;
> use PDL::Graphics::Gnuplot qw/image gplot/;
>
> my $x = flat(xvals(10,10)); # This is basically how x-coordinates are
> output from my machine.
> my $y = flat(yvals(10,10)); # Same format as x-coordinates
> my $z = sequence(100)*rand(1); # Some dummy data for this example.
>
> my $image; # How do I map $x,$y,$z into this 10x10 $image piddle?
> image($image);
>
> That's my basic problem. How do I map $x,$y,$z data into an $image matrix?
>
> Thank you,
> Jovan
> _______________________________________________
> pdl-general mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/pdl-general
>
_______________________________________________
pdl-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pdl-general

Reply via email to