Re: is painting with corners2color working incorrectly for Y axis?
Norwid Behrnd via gnuplot-info <[email protected]> Thu, 11 Apr 2024 10:47:46 +0200
| Newsgroups | gmane.comp.graphics.gnuplot.user |
|---|---|
| Message-ID | <20240411104746.627a0fe4@debian> |
Hello, not sure if I understood you well, I see two approaches for the task ahead. However in both instances, because it is about the visualization of a grid -- regardless if the visualization retains the 3D perspective, or is a 2D projection / a map -- I would use `isosamples` instead of `samples`. Option i) retains the pm3d map and offers a smoother visual representation by increase of the `isosample` parametre alone ``` set terminal x11; set size square; set xrange [-3:3]; set yrange [-3:3]; set isosamples 100, 100; # number of isosample points along (x,y) sigma = 2.0; f(x,y) = (1/(2*pi*sigma**2)) * exp(-(x**2+y**2)/(2*sigma**2)); set grid; set pm3d map corners2color c1; splot f(x,y); ``` Option ii) presumes you seek a presentation with contour lines, can both afford gnuplot defines the corresponding levels, and the absence of the pm3d map: ``` set terminal x11; set size square; set xrange [-3:3]; set yrange [-3:3]; set isosamples 100; # number of isosample points along x equals the along y sigma = 2.0; f(x,y) = (1/(2*pi*sigma**2)) * exp(-(x**2+y**2)/(2*sigma**2)); set grid; set contour base; unset surface; # no need to display the grid by `isosample` set view map; splot f(x,y); ``` Both approaches were tested with gnuplot 6.0.0 as provided by Linux Debian 13/trixie. Norwid _______________________________________________ gnuplot-info mailing list [email protected] Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info