[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: help with pan, rotate3d, and zoom functions

From: John W. Eaton
Subject: Re: help with pan, rotate3d, and zoom functions
Date: Sat, 13 Sep 2014 14:23:27 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Icedove/24.5.0

On 09/13/2014 11:47 AM, Andreas Weber wrote:
Am 12.09.2014 21:32, schrieb John W. Eaton:

Is there an objection to making the pan function operate on figures
instead of axes?  I think that's required for compatibility.

Do you want to make pan also work on figures or exclusively? We could
make pan and rotate3d make also work on figures by iterating over all
axes children except legends.

I don't think that's the way it should work.  Instead, the property
should be set for the figure, not the axes.  What happens in Matlab
for the following:

  ax1 = axes ('position', [0.1, 0.1, 0.3, 0.3])
  ax2 = axes ('position', [0.6, 0.6, 0.3, 0.3])
  hrf = rotate3d (gcf);
  hra1 = rotate3d (ax1);
  hra2 = rotate3d (ax2);
  get (hrf)
  get (hra1)
  get (hra2)
  rotate3d (ax2, 'on');
  get (hrf)
  get (hra1)
  get (hra2)

?  When you change the state of one of these rotat3d property objects,
do the others change as well?  If so, then it would appear that they
are per-figure properties rather than per-axis, even if you can
specify them using an axis handle.

For figures that have multiple axes, whatever is doing the rendering
can check the enclosing figure object to determine what the behavior
should be.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]