I'm trying to compile matplotlib-0.54.2 on FreeBSD 4.8, using gcc-2.95.3.
In _transforms.cpp, std::numeric_limits<double>::max() and ::min() aren't present, so I've tried replacing them with #include<float.h>, DBL_MIN and DBL_MAX.
However, now an error is being raised in ticker.py:get_locator(), line 638:
try: ld = math.log10(d)
print >> sys.stderr, 'AutoLocator illegal dataInterval range %s; returning NullLocator'%d
I.e., the OverflowError is occurring. I'm assuming this is cause of the change I made; I can run the same test script under Windows with no problems (but the test script is a little too involved for me to paste here).
Does anyone have ideas on a better workaround?