Mercurial > hg > octave-nkf
changeset 11171:bc3fa8f6c4dc
Remove deprecated code handling manual pbaspect and daspect for the gnuplot backend
author | Konstantinos Poulios <logari81@googlemail.com> |
---|---|
date | Sun, 31 Oct 2010 12:24:02 +0100 |
parents | a2437f70fe6c |
children | 7e8ce65f73cf |
files | scripts/ChangeLog scripts/plot/__go_draw_axes__.m |
diffstat | 2 files changed, 7 insertions(+), 16 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,10 @@ +2010-10-31 Konstantinos Poulios <logari81@googlemail.com> + + * plot/__go_draw_axes__.m: Removing deprecated code handling the case + of both plotboxaspectratiomode and dataaspectratiomode set to manual + for the gnuplot backend. Now this case is handled already in + src/graphics.cc where xlim, ylim, zlim are recalculated if necessary. + 2010-10-30 Gunnar Farnebäck <gunnar@lysator.liu.se> * strings/dec2base.m: Update algorithm to handle numbers up to 2^64-1.
--- a/scripts/plot/__go_draw_axes__.m +++ b/scripts/plot/__go_draw_axes__.m @@ -134,22 +134,6 @@ fputs (plot_stream, sz_str); endif - if (strcmp (axis_obj.plotboxaspectratiomode, "manual") - && strcmp (axis_obj.dataaspectratiomode, "manual")) - if (nd == 2 || all (mod (axis_obj.view, 90) == 0)) - dy = diff (axis_obj.ylim); - dx = diff (axis_obj.xlim); - ar = dx / dy; - if (ar > dr) - axis_obj.ylim = mean (axis_obj.ylim) + (ar/dr) * dy * [-1, 1] / 2; - elseif (ar < dr) - axis_obj.xlim = mean (axis_obj.xlim) + (dr/ar) * dx * [-1, 1] / 2; - endif - else - ## FIXME - need to implement 3D - endif - endif - ## Reset all labels, axis-labels, tick-labels, and title ## FIXME - We should have an function to initialize the axis. ## Presently, this is dispersed in this function.