diff scripts/plot/__go_draw_axes__.m @ 6527:2a04f026ef54

[project @ 2007-04-16 16:54:09 by jwe]
author jwe
date Mon, 16 Apr 2007 16:54:09 +0000
parents 747ba2dc157e
children f569cc721d3b
line wrap: on
line diff
--- a/scripts/plot/__go_draw_axes__.m	Fri Apr 13 20:31:50 2007 +0000
+++ b/scripts/plot/__go_draw_axes__.m	Mon Apr 16 16:54:09 2007 +0000
@@ -700,12 +700,12 @@
     if (isinf (min_pos))
       warning ("axis: logscale with no positive values to plot");
     endif
-    if (min_val < 0)
+    if (min_val <= 0)
       min_val = min_pos;
-      if (max_val < 0)
+      if (max_val <= 0)
 	max_val = min_pos;
       endif
-      warning ("axis: omitting negative data in log plot");
+      warning ("axis: omitting nonpositive data in log plot");
     endif
     ## FIXME -- maybe this test should also be relative?
     if (abs (min_val - max_val) < sqrt (eps))