Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #3623 > unrolled thread
| Started by | Francisco Pontiga <pontiga@us.es> |
|---|---|
| First post | 2017-04-18 02:53 -0700 |
| Last post | 2017-04-18 04:59 -0700 |
| Articles | 6 — 2 participants |
Back to article view | Back to comp.graphics.apps.gnuplot
Problems with ellipse object Francisco Pontiga <pontiga@us.es> - 2017-04-18 02:53 -0700
Re: Problems with ellipse object Karl Ratzsch <mail.kfr@gmx.net> - 2017-04-18 12:41 +0200
Re: Problems with ellipse object Karl Ratzsch <mail.kfr@gmx.net> - 2017-04-18 13:12 +0200
Re: Problems with ellipse object Karl Ratzsch <mail.kfr@gmx.net> - 2017-04-18 21:02 +0200
Re: Problems with ellipse object Karl Ratzsch <mail.kfr@gmx.net> - 2017-04-21 09:57 +0200
Re: Problems with ellipse object Francisco Pontiga <pontiga@us.es> - 2017-04-18 04:59 -0700
| From | Francisco Pontiga <pontiga@us.es> |
|---|---|
| Date | 2017-04-18 02:53 -0700 |
| Subject | Problems with ellipse object |
| Message-ID | <f5c070e8-ad29-4812-9e84-91e3889ca4a0@googlegroups.com> |
Hello, I would appreciate any help with these two problems. I am trying to draw an ellipse inside a splot at a convenient place, but I found the following problems (or bugs?) Here is a short sample of a test file: reset set terminal windows color enhanced set pm3d set view map set palette color unset surface set object 1 ellipse at 0.0,0.0 size 0.5,0.5 angle 0 front fillcolor rgbcolor "white" splot [-2:2][-2:2] x**2+y**2 notitle with lines I would expect the ellipse to be drawn with its center at the origin (coordinates (0.0,0.0)) but instead, it is drawn with its center at (0.0,2.0). Why? I have tried writing explicitly "at first 0.0,first 0.0" , but the result is identical. Indeed, I must write " at 0.0,-2.0" in order to have the ellipse drawn with its center at the origin. Things become worse when I try to use a log scale for the z-axis. If I write reset set terminal windows color enhanced set pm3d set view map set palette color unset surface set log z set object 1 ellipse at 0.0,0.0 size 0.5,0.5 angle 0 front fillcolor rgbcolor "white" splot [-2:2][-2:2] x**2+y**2 notitle with lines I got the following error: "ellipse has z coord of 0; must be above 0 for log scale! " How can I modify the z coordinate of the ellipse? Thank you in advance for any help. Francisco
[toc] | [next] | [standalone]
| From | Karl Ratzsch <mail.kfr@gmx.net> |
|---|---|
| Date | 2017-04-18 12:41 +0200 |
| Message-ID | <od4qgh$evk$1@solani.org> |
| In reply to | #3623 |
Am 18.04.2017 um 11:53 schrieb Francisco Pontiga: > set terminal windows color enhanced > set pm3d > set view map > set palette color > unset surface > set object 1 ellipse at 0.0,0.0 size 0.5,0.5 angle 0 front fillcolor rgbcolor "white" > splot [-2:2][-2:2] x**2+y**2 notitle with lines > > I would expect the ellipse to be drawn with its center at the origin (coordinates (0.0,0.0)) but instead, it is drawn with its center at (0.0,2.0). Why? I have tried writing explicitly "at first 0.0,first 0.0" , but the result is identical. Indeed, I must write " at 0.0,-2.0" in order to have the ellipse drawn with its center at the origin. I only see that problem with version 4.6pl5 and older, but not with 4.6pl6 or any 5.0 release I tried. Must be some long fixed bug. Can you upgrade? https://sourceforge.net/projects/gnuplot/files/gnuplot/5.0.6/ Karl
[toc] | [prev] | [next] | [standalone]
| From | Karl Ratzsch <mail.kfr@gmx.net> |
|---|---|
| Date | 2017-04-18 13:12 +0200 |
| Message-ID | <od4saq$g4p$1@solani.org> |
| In reply to | #3623 |
Am 18.04.2017 um 11:53 schrieb Francisco Pontiga: > Things become worse when I try to use a log scale for the z-axis. If I write > set log z > set object 1 ellipse at 0.0,0.0 size 0.5,0.5 angle 0 front fillcolor rgbcolor "white" > splot [-2:2][-2:2] x**2+y**2 notitle with lines > > I got the following error: "ellipse has z coord of 0; must be above 0 for log scale! " > > How can I modify the z coordinate of the ellipse? Well, you just can give a bogus positive z coordinate : set view map set log z set object 1 ellipse at 0.0,0.0,1 size 0.5,0.5,1 angle 0 front splot [-2:2][-2:2] x**2+y**2 notitle with lines , but the error (message) is of course nonsense. File a bug report about it on https://sourceforge.net/p/gnuplot/bugs ? Karl
[toc] | [prev] | [next] | [standalone]
| From | Karl Ratzsch <mail.kfr@gmx.net> |
|---|---|
| Date | 2017-04-18 21:02 +0200 |
| Message-ID | <od5nsh$3u1$1@solani.org> |
| In reply to | #3625 |
Am 18.04.2017 um 13:12 schrieb Karl Ratzsch: > Well, you just can give a bogus positive z coordinate : > > set view map > set log z > set object 1 ellipse at 0.0,0.0,1 size 0.5,0.5,1 angle 0 front > splot [-2:2][-2:2] x**2+y**2 notitle with lines This is of course not intended to work, really, and the trick falls to the side with latest cvs of both the stable and development tree, most likely due to the latest changes (2017-04-10) in src/graphics.c.
[toc] | [prev] | [next] | [standalone]
| From | Karl Ratzsch <mail.kfr@gmx.net> |
|---|---|
| Date | 2017-04-21 09:57 +0200 |
| Message-ID | <odce1b$7fk$1@solani.org> |
| In reply to | #3627 |
Am 18.04.2017 um 21:02 schrieb Karl Ratzsch: > Am 18.04.2017 um 13:12 schrieb Karl Ratzsch: >> Well, you just can give a bogus positive z coordinate : >> >> set view map >> set log z >> set object 1 ellipse at 0.0,0.0,1 size 0.5,0.5,1 angle 0 front >> splot [-2:2][-2:2] x**2+y**2 notitle with lines > > This is of course not intended to work, really, and the trick falls > to the side with latest cvs of both the stable and development tree, > most likely due to the latest changes (2017-04-10) in src/graphics.c. And as of 2017-04-18, map mode disregards the z coordinate for placing objects. Thanks, Ethan!
[toc] | [prev] | [next] | [standalone]
| From | Francisco Pontiga <pontiga@us.es> |
|---|---|
| Date | 2017-04-18 04:59 -0700 |
| Message-ID | <7fbe8f4e-c97e-456e-b4c2-1073993f9faa@googlegroups.com> |
| In reply to | #3623 |
Thank you very much for your advise!
[toc] | [prev] | [standalone]
Back to top | Article view | comp.graphics.apps.gnuplot
csiph-web