Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #2719
| From | Ethan A Merritt <sfeam@users.sourceforge.net> |
|---|---|
| Newsgroups | comp.graphics.apps.gnuplot |
| Subject | Re: problems with splot of equation in 3D as a plane |
| Date | 2015-01-20 10:52 -0800 |
| Organization | gnuplot development |
| Message-ID | <m9m85a$1du$1@dont-email.me> (permalink) |
| References | <960c0323-2ebb-4520-b273-900fc4896ba1@googlegroups.com> <m9m12o$2e2$1@news.rz.uni-karlsruhe.de> |
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
Back to comp.graphics.apps.gnuplot | Previous | Next — Previous in thread | Find similar | Unroll thread
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
csiph-web