Mercurial > octave-nkf
diff src/graphics.h.in @ 14314:17de694961f5
make panning work for logscale axes
* graphics.cc (do_translate): New static function.:
* graphics.cc, graphics.h.in (axes::properties): Use it.
Args are now beginning and ending coordinates, not deltas.
* __init_fltk__.cc (plot_window::handle): Pass beginning and ending
* coordinates to translate_view, not deltas.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 02 Feb 2012 12:04:21 -0500 |
parents | b4d7de953066 |
children | 5a2b012b10c7 |
line wrap: on
line diff
--- a/src/graphics.h.in Thu Feb 02 11:59:50 2012 -0500 +++ b/src/graphics.h.in Thu Feb 02 12:04:21 2012 -0500 @@ -3663,7 +3663,7 @@ void zoom_about_point (double x, double y, double factor, bool push_to_zoom_stack = true); void zoom (const Matrix& xl, const Matrix& yl, bool push_to_zoom_stack = true); - void translate_view (double delta_x, double delta_y); + void translate_view (double x0, double x1, double y0, double y1); void rotate_view (double delta_az, double delta_el); void unzoom (void); void clear_zoom_stack (void);