# HG changeset patch # User Konstantinos Poulios # Date 1288524242 -3600 # Node ID e03412aebfc5122aa534779caac28a8756d14044 # Parent 51beeeff9027ff5cb21d6e0d9b86a2dd2f4952af Remove deprecated code handling manual pbaspect and daspect for the gnuplot backend diff -r 51beeeff9027 -r e03412aebfc5 scripts/ChangeLog --- a/scripts/ChangeLog Sat Oct 30 12:14:27 2010 -0700 +++ b/scripts/ChangeLog Sun Oct 31 12:24:02 2010 +0100 @@ -1,3 +1,10 @@ +2010-10-31 Konstantinos Poulios + + * 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 * strings/dec2base.m: Update algorithm to handle numbers up to 2^64-1. diff -r 51beeeff9027 -r e03412aebfc5 scripts/plot/__go_draw_axes__.m --- a/scripts/plot/__go_draw_axes__.m Sat Oct 30 12:14:27 2010 -0700 +++ b/scripts/plot/__go_draw_axes__.m Sun Oct 31 12:24:02 2010 +0100 @@ -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.