Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #3358
| From | Hans-Bernhard Bröker <HBBroeker@t-online.de> |
|---|---|
| Newsgroups | comp.graphics.apps.gnuplot |
| Subject | Re: Strange Mobius strip in rendering a cylinder with pm3d |
| Date | 2016-06-29 00:04 +0200 |
| Message-ID | <dtgakaF7thaU1@mid.dfncis.de> (permalink) |
| References | <baced62a-4792-4aa4-a004-25b172c98d41@googlegroups.com> |
Am 28.06.2016 um 06:43 schrieb musiphil@bawi.org: > splot "data" using (3*cos($1)):(2*sin($1)):2:3 palette with pm3d notitle > > where "data" is generated by the following program (made up for illustrative purposes): [...] Just FTR, there's not really a need to use a datafile to get that effect: set parametric splot [h=0:1][phi=-pi:pi] cos(phi),sin(phi),h w pm3d And the root cause is quite simple: pm3d doesn't actually respect the screen z coordinate (i.e. front-to-back) by default. It draws the patches of colour in the same order they have in your input. And yes, that drawing order is quite wrong in a large fraction of possible orientations of this particular surface. The solution is to read "help pm3d" and find out about "depthorder".
Back to comp.graphics.apps.gnuplot | Previous | Next — Previous in thread | Next in thread | Find similar
Strange Mobius strip in rendering a cylinder with pm3d musiphil@bawi.org - 2016-06-27 21:43 -0700
Re: Strange Mobius strip in rendering a cylinder with pm3d Michael Okuntsov <okuntsov.mikhail@yandex.ru> - 2016-06-28 16:20 +0700
Re: Strange Mobius strip in rendering a cylinder with pm3d musiphil@bawi.org - 2016-06-28 09:46 -0700
Re: Strange Mobius strip in rendering a cylinder with pm3d musiphil@bawi.org - 2016-06-28 10:27 -0700
Re: Strange Mobius strip in rendering a cylinder with pm3d Hans-Bernhard Bröker <HBBroeker@t-online.de> - 2016-06-29 00:04 +0200
Re: Strange Mobius strip in rendering a cylinder with pm3d musiphil@bawi.org - 2016-07-03 18:47 -0700
csiph-web