|
From: <md...@us...> - 2008-11-12 20:00:13
|
Revision: 6399
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6399&view=rev
Author: mdboom
Date: 2008-11-12 20:00:11 +0000 (Wed, 12 Nov 2008)
Log Message:
-----------
Add comment about minimum positive values.
Modified Paths:
--------------
trunk/matplotlib/src/_path.cpp
Modified: trunk/matplotlib/src/_path.cpp
===================================================================
--- trunk/matplotlib/src/_path.cpp 2008-11-11 22:02:34 UTC (rev 6398)
+++ trunk/matplotlib/src/_path.cpp 2008-11-12 20:00:11 UTC (rev 6399)
@@ -289,6 +289,8 @@
if (y < *y0) *y0 = y;
if (x > *x1) *x1 = x;
if (y > *y1) *y1 = y;
+ /* xm and ym are the minimum positive values in the data, used
+ by log scaling */
if (x > 0.0 && x < *xm) *xm = x;
if (y > 0.0 && y < *ym) *ym = y;
}
@@ -317,6 +319,8 @@
extents_data[1] = std::numeric_limits<double>::infinity();
extents_data[2] = -std::numeric_limits<double>::infinity();
extents_data[3] = -std::numeric_limits<double>::infinity();
+ /* xm and ym are the minimum positive values in the data, used
+ by log scaling */
xm = std::numeric_limits<double>::infinity();
ym = std::numeric_limits<double>::infinity();
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|