# bug #44502: zoom.m docs for 3D plots incorrect?

 Submitted by: Philip Nienhuis Submitted on: Tue 10 Mar 2015 08:37:32 PM UTC Category: Plotting Severity: 3 - Normal Priority: 5 - Normal Item Group: None Status: Confirmed Assigned to: None Originator Name: Philip Nienhuis Open/Closed: Open Release: dev Operating System: Any

You are not logged in

## Discussion

Fri 23 Dec 2016 09:14:00 PM UTC, comment #4:

This issue is still the same in Octave 4.2.0.

Hartmut <hardy>
Thu 12 Mar 2015 09:39:21 PM UTC, comment #3:

Seems like the reasonable solution to me.  Octave will be a superset of Matlab supporting xon and yon, but also zon.  Nobody porting their code in the direction of Matlab -> Octave will have a problem.

Rik <rik5>
Thu 12 Mar 2015 09:28:59 PM UTC, comment #2:

Yeah, when I first wrote zoom, I think it did zoom on the three axes.  But then when I tried to move in the direction of compatibility with the zoom object thing that Matlab has, and the zoom xon, zoom yon feature, I punted because it wasn't clear to me how to handle that.  Matlab doesn't have zoom zon, or zoom xyon or zoom xyzon, etc.  Should we allow those modes to be selected?  Likewise for the pan function.

John W. Eaton <jwe>
Thu 12 Mar 2015 09:18:18 PM UTC, comment #1:

Confirmed.

I think it would be nice to fig bug #44323 by sizing the Z axis at the same time that the X and Y axes are changed.  If that approach is adopted then I think it makes sense to expand zoom.m to cover the case of a third input for zoom.

Rik <rik5>
Tue 10 Mar 2015 08:37:32 PM UTC, original submission:

help zoom gives:

Given a numeric argument greater than zero, zoom by the given
factor.  If the zoom factor is greater than one, zoom in on the
plot.  If the factor is less than one, zoom out.  If the zoom
factor is a two- or three-element vector, then the elements
specify the zoom factors for the x, y, and z axes respectively.

Trying to set zoom factor for x & y, then x,y & z-axes:

>> zoom ([2 2])   # OK
>> zoom ([2 2 2])
error: zoom: invalid factor
error: called from
zoom at line 107 column 11
>>

The switch statement in zoom.m starting on L.101 clearly has no provisions for zoom factors in 3D, unlike the texinfo docs state.

(I hit this when investigating bug #44323 to check if I had overlooked the obvious)

Philip Nienhuis <philipnienhuis>

## Attached Files

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

Comment:

No files currently attached

## Dependencies

Depends on the following items: None found

Items that depend on this one: None found

Carbon-Copy List
• -email is unavailable- added by hardy (Posted a comment)
• -email is unavailable- added by jwe (Posted a comment)
• -email is unavailable- added by rik5 (Posted a comment)
• -email is unavailable- added by philipnienhuis (Submitted the item)
•

Do you think this task is very important?
This task has 0 encouragements so far.

Only project members can vote.

## History

Follows 1 latest change.

Date Changed by Updated Field Previous Value => Replaced by
2015-03-12 rik5 StatusNone Confirmed