comparison src/graphics.cc @ 14321:a9a42d630bd5 stable

use 8 minor tick marks per decade for log scale plots, not 9. * graphics.cc (axes::properties::calc_ticks_and_lims): Use 8 minor tick marks for log scale axes, not 9.
author John W. Eaton <jwe@octave.org>
date Fri, 03 Feb 2012 19:04:51 -0500
parents 1734c3a48f31
children 45f5a5d5656f
comparison
equal deleted inserted replaced
14317:7dee2bb231c1 14321:a9a42d630bd5
5824 tmp_ticks (i) = rev_ticks (i2-i1-i); 5824 tmp_ticks (i) = rev_ticks (i2-i1-i);
5825 } 5825 }
5826 5826
5827 ticks = tmp_ticks; 5827 ticks = tmp_ticks;
5828 5828
5829 int n = is_logscale ? 9 : 4; 5829 int n = is_logscale ? 8 : 4;
5830 Matrix tmp_mticks (1, n * (tmp_ticks.numel () - 1)); 5830 Matrix tmp_mticks (1, n * (tmp_ticks.numel () - 1));
5831 5831
5832 for (int i = 0; i < tmp_ticks.numel ()-1; i++) 5832 for (int i = 0; i < tmp_ticks.numel ()-1; i++)
5833 { 5833 {
5834 double d = (tmp_ticks (i+1) - tmp_ticks (i)) / (n+1); 5834 double d = (tmp_ticks (i+1) - tmp_ticks (i)) / (n+1);