Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #3623

Problems with ellipse object

Newsgroups comp.graphics.apps.gnuplot
Date 2017-04-18 02:53 -0700
Message-ID <f5c070e8-ad29-4812-9e84-91e3889ca4a0@googlegroups.com> (permalink)
Subject Problems with ellipse object
From Francisco Pontiga <pontiga@us.es>

Show all headers | View raw


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

Back to comp.graphics.apps.gnuplot | Previous | NextNext in thread | Find similar


Thread

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

csiph-web