BUG DESCRIPTION:
----------------
mfile2sci: errors in axis(..) conversions.
Several errors can be found along the AXIS.m vs AXIS.dia.ref.
Several improvements are also possible:
edit SCI/modules/m2sci/tests/unit_tests/mfilesnoexec/AXIS.m
edit SCI/modules/m2sci/tests/unit_tests/conversion/AXIS.dia.ref
1) improvement
axis([xmin xmax ymin ymax])
axis([xmin xmax ymin ymax zmin zmax])
=> currently:
set(gca(),"data_bounds",matrix([xmin,xmax,ymin,ymax],2,-1))
set(gca(),"data_bounds",matrix([xmin,xmax,ymin,ymax,zmin,zmax],2,-1))
=> Improvements:
* matrix() is useless. Inputs is now very tolerant.
* set(): use recursive insertion instead (more compact)
gca().data_bounds = [xmin,xmax,ymin,ymax]
gca().data_bounds = [xmin,xmax,ymin,ymax,zmin,zmax]
2) Error
v = axis
=> Currently: v = set(gca(),"data_bounds") // set() returns nothing
=> Right conversion: v = gca().data_bounds
3) Improvements with recursive insertions:
mfile Current translation Proposed translation
axis auto set(gca(),"auto_scale","on") gca().auto_scale = "on"
axis manual set(gca(),"auto_scale","off") gca().auto_scale = "off"
axis tight set(gca(),"tight_limits","on") gca().tight_limits = "on"
axis ij set(gca(),"rotation_angles",[180;270]) gca().rotation_angles = [180;270] // no matter the orientation
axis xy set(gca(),"rotation_angles",[0;270]) gca().rotation_angles = [0;270] // idem
axis equal set(gca(),"isoview","on") gca().isoview = "on" | isoview on (to be investigated)
axis square set(gca(),"cube_scaling","on") gca().cube_scaling = "on" | isoview on (To be investigated)
axis vis3d set(gca(),"view","3d") gca().view = "3d"
axis off set(gca(),"axes_visible","off") gca().axes_visible = "off"
axis on set(gca(),"axes_visible","on") gca().axes_visible = "on"
4) Errors
axis([h1 h2],'auto') set(gca(),"auto_scale","on") : BUG = [h1 h2] is ignored
axis auto manual tight set(gca(),"axes_visible","on"): BUG = auto, manual and tight are ignored
OTHER INFORMATION:
------------------
These are not regressions. Errors come from M2SCI first ages.