Mercurial > hg > octave-max
comparison src/graphics.cc @ 12041:1d4212b80713 release-3-2-x
graphics.cc (get_array_limits): require min_pos value to be greater than zero
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 16 Jul 2009 11:56:44 -0400 |
parents | 5183cee7a423 |
children | fe30458b1de8 |
comparison
equal
deleted
inserted
replaced
12040:5a68e3e748c5 | 12041:1d4212b80713 |
---|---|
470 emin = e; | 470 emin = e; |
471 | 471 |
472 if (e > emax) | 472 if (e > emax) |
473 emax = e; | 473 emax = e; |
474 | 474 |
475 if (e >= 0 && e < eminp) | 475 if (e > 0 && e < eminp) |
476 eminp = e; | 476 eminp = e; |
477 } | 477 } |
478 } | 478 } |
479 } | 479 } |
480 | 480 |
3362 void | 3362 void |
3363 axes::properties::calc_ticks_and_lims (array_property& lims, | 3363 axes::properties::calc_ticks_and_lims (array_property& lims, |
3364 array_property& ticks, | 3364 array_property& ticks, |
3365 bool limmode_is_auto, bool is_logscale) | 3365 bool limmode_is_auto, bool is_logscale) |
3366 { | 3366 { |
3367 | |
3368 // FIXME -- add log ticks and lims | 3367 // FIXME -- add log ticks and lims |
3369 | 3368 |
3370 if (lims.get ().is_empty ()) | 3369 if (lims.get ().is_empty ()) |
3371 return; | 3370 return; |
3372 | 3371 |