comparison src/graphics.cc @ 14062:5b49cafe0599 stable

Use non-negative, non-positive with hyphens in error messages. * accumarray.m, polyfit.m, factorial.m, nchoosek.m, mcnemar_test.m, find.cc, graphics.cc, sparse.cc: Use non-negative, non-positive with hyphens in error messages for consistency with documentation.
author Rik <octave@nomad.inbox5.com>
date Thu, 15 Dec 2011 22:03:03 -0800
parents de90542b7afc
children 84f38aeb9f0e
comparison
equal deleted inserted replaced
14061:324b2ec6214d 14062:5b49cafe0599
5680 retval(1) = pow (10., retval(1)); 5680 retval(1) = pow (10., retval(1));
5681 return retval; 5681 return retval;
5682 } 5682 }
5683 if ((min_val <= 0 && max_val > 0)) 5683 if ((min_val <= 0 && max_val > 0))
5684 { 5684 {
5685 warning ("axis: omitting nonpositive data in log plot"); 5685 warning ("axis: omitting non-positive data in log plot");
5686 min_val = min_pos; 5686 min_val = min_pos;
5687 } 5687 }
5688 // FIXME -- maybe this test should also be relative? 5688 // FIXME -- maybe this test should also be relative?
5689 if (std::abs (min_val - max_val) < sqrt (DBL_EPSILON)) 5689 if (std::abs (min_val - max_val) < sqrt (DBL_EPSILON))
5690 { 5690 {