FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

new demo pm3d_clip.dem replaces part of pm3d.dem · gnuplot/gnuplot@072e770 · GitHub

Repository navigation

Commit 072e770

Browse files
Ethan A Merritt
committed
new demo pm3d_clip.dem replaces part of pm3d.dem
1 parent f526837 commit 072e770

9 files changed

Lines changed: 46 additions & 26 deletions

File tree

‎demo/all.dem‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,10 @@ print "********************** file pm3d.dem *********************"
245245
load "pm3d.dem"
246246
reset
247247

248+
print "********************** file pm3d_clip.dem *********************"
249+
load "pm3d_clip.dem"
250+
reset
251+
248252
print "********************** file pm3dcolors.dem *********************"
249253
load "pm3dcolors.dem"
250254
reset

‎demo/html/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ GNUPLOT_LIB = ..
1212
# Several of the demos need manual intervention:
1313
# fontfile vector epslatex
1414
#
15-
html: airfoil.html approximate.html armillary.html array.html arrowstyle.html barchart_art.html binary.html bins.html bivariat.html boxplot.html boxclusters.html candlesticks.html cerf.html circles.html cities.html complex_trig.html columnhead.html contours.html custom_contours.html controls.html custom_key.html dashtypes.html datastrings.html dgrid3d.html discrete.html electron.html ellipse.html enhanced_utf8.html epslatex.html errorbars.html fenceplot.html fillbetween.html fillcrvs.html fillstyle.html finance.html fit.html hidden.html hidden2.html hidden_compare.html histograms.html histograms2.html gantt.html image.html image2.html imageNaN.html index.html iterate.html jitter.html label_stacked_histograms.html layout.html lines_arrows.html linkedaxes.html map_projection.html margins.html monotonic_spline.html multiaxis.html multimsh.html multiplt.html nokey.html nonlinear1.html nonlinear2.html nonlinear3.html parallel.html param.html piecewise.html pm3dcolors.html pm3d.html pm3dgamma.html pm3d_lighting.html pointsize.html polar.html poldat.html polar_quadrants.html polygons.html prob2.html prob.html projection.html rainbow.html random.html rectangle.html rgba_lines.html rgbalpha.html rgb_variable.html rotate_labels.html rugplot.html running_avg.html sampling.html scatter.html simple.html singulr.html smooth.html solar_path.html spiderplot.html spline.html smooth_splines.html steps.html stringvar.html surface1.html surface2.html azimuth.html transparent.html transparent_solids.html textbox.html tics.html timedat.html ttics.html using.html varcolor.html vector.html violinplot.html walls.html world.html world2.html animate2.html heatmaps.html stats.html unicode.html zerror.html boxes3d.html voxel.html vplot.html isosurface.html
15+
html: airfoil.html approximate.html armillary.html array.html arrowstyle.html barchart_art.html binary.html bins.html bivariat.html boxplot.html boxclusters.html candlesticks.html cerf.html circles.html cities.html complex_trig.html columnhead.html contours.html custom_contours.html controls.html custom_key.html dashtypes.html datastrings.html dgrid3d.html discrete.html electron.html ellipse.html enhanced_utf8.html epslatex.html errorbars.html fenceplot.html fillbetween.html fillcrvs.html fillstyle.html finance.html fit.html hidden.html hidden2.html hidden_compare.html histograms.html histograms2.html gantt.html image.html image2.html imageNaN.html index.html iterate.html jitter.html label_stacked_histograms.html layout.html lines_arrows.html linkedaxes.html map_projection.html margins.html monotonic_spline.html multiaxis.html multimsh.html multiplt.html nokey.html nonlinear1.html nonlinear2.html nonlinear3.html parallel.html param.html piecewise.html pm3dcolors.html pm3d.html pm3dgamma.html pm3d_clip.html pm3d_lighting.html pointsize.html polar.html poldat.html polar_quadrants.html polygons.html prob2.html prob.html projection.html rainbow.html random.html rectangle.html rgba_lines.html rgbalpha.html rgb_variable.html rotate_labels.html rugplot.html running_avg.html sampling.html scatter.html simple.html singulr.html smooth.html solar_path.html spiderplot.html spline.html smooth_splines.html steps.html stringvar.html surface1.html surface2.html azimuth.html transparent.html transparent_solids.html textbox.html tics.html timedat.html ttics.html using.html varcolor.html vector.html violinplot.html walls.html world.html world2.html animate2.html heatmaps.html stats.html unicode.html zerror.html boxes3d.html voxel.html vplot.html isosurface.html
1616

1717
index.html: index.save
1818
cp index.save index.html

‎demo/html/Makefile.canvas‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ GNUPLOT_LIB = ..
99
#
1010
# Auto-generation of html demo set.
1111
#
12-
html_3d: binary.html bivariat.html contours.html custom_contours.html datastrings.html discrete.html errorbars.html fenceplot.html hidden.html hidden2.html hidden_compare.html margins.html multimsh.html pm3dcolors.html pm3d.html pm3d_lighting.html pointsize.html polygons.html random.html rgb_variable.html sampling.html scatter.html singulr.html surface1.html surface2.html azimuth.html projection.html transparent_solids.html vector.html walls.html world.html world2.html zerror.html boxes3d.html vplot.html voxel.html isosurface.html
12+
html_3d: binary.html bivariat.html contours.html custom_contours.html datastrings.html discrete.html errorbars.html fenceplot.html hidden.html hidden2.html hidden_compare.html margins.html multimsh.html pm3dcolors.html pm3d.html pm3d_clip.html pm3d_lighting.html pointsize.html polygons.html random.html rgb_variable.html sampling.html scatter.html singulr.html surface1.html surface2.html azimuth.html projection.html transparent_solids.html vector.html walls.html world.html world2.html zerror.html boxes3d.html vplot.html voxel.html isosurface.html
1313

1414
html_2d: airfoil.html approximate.html array.html barchart_art.html bins.html boxplot.html boxclusters.html candlesticks.html canvas_utf8.html circles.html cities.html columnhead.html controls.html custom_key.html dashtypes.html electron.html enhanced_utf8.html fillbetween.html fillcrvs.html fillstyle.html finance.html histograms.html histograms2.html hypertext.html gantt.html imageNaN.html index.html iterate.html jitter.html label_stacked_histograms.html layout.html lines_arrows.html linkedaxes.html map_projection.html monotonic_spline.html multiaxis.html multiplt.html nonlinear1.html nonlinear2.html nonlinear3.html nokey.html param.html piecewise.html polar.html poldat.html polar_quadrants.html prob2.html prob.html rainbow.html ellipse.html rectangle.html rgba_lines.html rgbalpha.html rotate_labels.html rugplot.html running_avg.html simple.html smooth.html solar_path.html smooth_splines.html spiderplot.html spline.html steps.html transparent.html timedat.html ttics.html using.html varcolor.html world.html heatmaps.html stats.html violinplot.html
1515

‎demo/html/Makefile.svg‎

Lines changed: 1 addition & 1 deletion
LoadingViewer requires iframe.

‎demo/html/index.canvas‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@
8686
<li><a href="hidden.html">hidden surfaces</a></li>
8787
<li><a href="pm3d.html">pm3d coloring</a></li>
8888
<li><a href="hidden2.html">pm3d hidden surfaces</a></li>
89+
<li><a href="pm3d_clip.html">pm3d clipping</a></li>
8990
<li><a href="world2.html">3D mapping</a></li>
9091
<li><a href="projection.html">2D projection of 3D surface</a></li>
9192
<li><a href="zerror.html">shaded error region</a></li>

‎demo/html/index.save‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ Here are samples of PNG output from some of the demos.
8585
<li><a href="hidden.html">hidden surfaces</a></li>
8686
<li><a href="pm3d.html">pm3d coloring</a></li>
8787
<li><a href="hidden2.html">pm3d hidden surfaces</a></li>
88+
<li><a href="pm3d_clip.html">pm3d clipping</a></li>
8889
<li><a href="world2.html">3D mapping</a></li>
8990
<li><a href="projection.html">2D projection of 3D surface</a></li>
9091
<li><a href="zerror.html">shaded error region</a></li>

‎demo/html/index.svg‎

Lines changed: 1 addition & 0 deletions
LoadingViewer requires iframe.

‎demo/pm3d.dem‎

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -329,29 +329,6 @@ set isosamples 40,40; set samples 40,40
329329
splot sin(y)/(y) w lines palette
330330
pause -1 "Hit return to continue"
331331

332-
reset
333-
334-
set title "Demo for clipping of 2 rectangles comes now. The xrange is [0:2]..."
335-
set pm3d; set palette
336-
set view map
337-
338-
set xrange [0:2]
339-
splot 'clip14in.dat'
340-
pause -1 "Hit return to continue"
341-
342-
set xrange [0:1.5]
343-
set yrange [*:*]
344-
set title "...and now xrange is [0:1.5] and 'set pm3d clip1in'"
345-
set pm3d clip1in
346-
replot
347-
pause -1 "Hit return to continue"
348-
349-
set title "...now xrange is [0:1.5] and 'set pm3d clip4in'"
350-
set pm3d clip4in
351-
replot
352-
pause -1 "Hit return to continue"
353-
354-
355332
reset
356333

357334
sinc(u,v) = sin(sqrt(u**2+v**2)) /sqrt(u**2+v**2)

‎demo/pm3d_clip.dem‎

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
set border 4095
2+
set bmargin 6
3+
set style fill transparent solid 0.50 border
4+
unset key
5+
unset colorbox
6+
set view 60, 60, 1.1, 0.6
7+
set samples 40, 40
8+
set isosamples 40, 40
9+
set xyplane 0
10+
set pm3d depthorder border linewidth 0.100
11+
set pm3d clip z
12+
set pm3d lighting primary 0.5 specular 0.2 spec2 0
13+
14+
set xrange [-1 : 5]
15+
set yrange [-3 : 3]
16+
set zrange [-10 : 10]
17+
set xtics 2 offset 0,-0.5
18+
set ytics 2 offset 0,-0.5
19+
set ztics 5
20+
21+
f(x,y) = x**2 + y**2 * (1 - x)**3
22+
23+
set multiplot layout 1,2 title "new pm3d option for smooth clipping against zrange"
24+
set title "set pm3d clip4in (old default)"
25+
set pm3d clip4in
26+
27+
splot f(x,y) with pm3d fc "cyan"
28+
29+
set title "set pm3d clip z (new default)"
30+
set pm3d clip z
31+
32+
replot
33+
unset multiplot
34+
35+
pause -1 "<return> to continue"
36+
reset

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL