Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #2717 > unrolled thread
| Started by | seb.leeb@gmail.com |
|---|---|
| First post | 2015-01-19 21:40 -0800 |
| Last post | 2015-01-20 10:52 -0800 |
| Articles | 3 — 3 participants |
Back to article view | Back to comp.graphics.apps.gnuplot
problems with splot of equation in 3D as a plane seb.leeb@gmail.com - 2015-01-19 21:40 -0800
Re: problems with splot of equation in 3D as a plane Karl <mail.kfr@gmx.net> - 2015-01-20 17:51 +0100
Re: problems with splot of equation in 3D as a plane Ethan A Merritt <sfeam@users.sourceforge.net> - 2015-01-20 10:52 -0800
| From | seb.leeb@gmail.com |
|---|---|
| Date | 2015-01-19 21:40 -0800 |
| Subject | problems with splot of equation in 3D as a plane |
| Message-ID | <960c0323-2ebb-4520-b273-900fc4896ba1@googlegroups.com> |
Hi guys, i need to do a gnuplot of a plane in 3D. I have the equation of the plane. The problem is that the plane is nearly vertical. How can i adjust the output of gnuplot to "rasterize" my plane in z-direction properly My code: set zrange[100:170] set isosamples 200 splot [0:140] [0:100] (-0.00304622*x--0.999983*y-39.7027)/(-0.00491253) with lines Thanks, Sebastian
[toc] | [next] | [standalone]
| From | Karl <mail.kfr@gmx.net> |
|---|---|
| Date | 2015-01-20 17:51 +0100 |
| Message-ID | <m9m12o$2e2$1@news.rz.uni-karlsruhe.de> |
| In reply to | #2717 |
Am 20.01.2015 um 06:40 schrieb seb.leeb@gmail.com: > Hi guys, > > i need to do a gnuplot of a plane in 3D. I have the equation of the plane. The problem is that the plane is nearly vertical. > How can i adjust the output of gnuplot to "rasterize" my plane in z-direction properly > > My code: > set zrange[100:170] > set isosamples 200 > splot [0:140] [0:100] (-0.00304622*x--0.999983*y-39.7027)/(-0.00491253) with lines > (do you also get that one strange line in your plot? I guess you´re testing the numerical precision here.) (don´t set the x/y axis ranges in the plot command. that´s widely regarded as "bad practice" ;-)) You could first plot to a table using a stongly reduced yrange (so you don´t get a billion points outside of the desired zrange), and then plot that tabulated data. set sample 20; set isos 20 set table $data set xr [10:12]; set yr [4:5] splot x*y unset table set xr [0:40]; set yr [2:8] splot $data using 1:2:3 w l If you don´t have gp50, simply replace $data by a file name. Another possibility: Use parametric mode, and change the u/vrange. Karl
[toc] | [prev] | [next] | [standalone]
| From | Ethan A Merritt <sfeam@users.sourceforge.net> |
|---|---|
| Date | 2015-01-20 10:52 -0800 |
| Message-ID | <m9m85a$1du$1@dont-email.me> |
| In reply to | #2718 |
Karl wrote: > Am 20.01.2015 um 06:40 schrieb seb.leeb@gmail.com: >> Hi guys, >> >> i need to do a gnuplot of a plane in 3D. I have the equation of the >> plane. The problem is that the plane is nearly vertical. How can i adjust >> the output of gnuplot to "rasterize" my plane in z-direction properly >> >> My code: >> set zrange[100:170] >> set isosamples 200 >> splot [0:140] [0:100] (-0.00304622*x--0.999983*y-39.7027)/(-0.00491253) >> with lines >> > > (do you also get that one strange line in your plot? I guess you´re > testing the numerical precision here.) > > (don´t set the x/y axis ranges in the plot command. that´s widely > regarded as "bad practice" ;-)) > > You could first plot to a table using a stongly reduced yrange (so you > don´t get a billion points outside of the desired zrange), and then plot > that tabulated data. > > set sample 20; set isos 20 > set table $data > set xr [10:12]; set yr [4:5] > splot x*y > unset table > > set xr [0:40]; set yr [2:8] > splot $data using 1:2:3 w l > > If you don´t have gp50, simply replace $data by a file name. > > Another possibility: Use parametric mode, and change the u/vrange. > > Karl Or if the plane is supposed to contain some information (contours? heat map?) you might want to create it first as an image file and then map that into 3D as in plots 5/6/7 in this demo: http://gnuplot.sourceforge.net/demo_4.6/image2.html Ethan
[toc] | [prev] | [standalone]
Back to top | Article view | comp.graphics.apps.gnuplot
csiph-web