From: John H. <jdh...@ac...> - 2005-02-02 15:46:05
|
>>>>> "Delbert" == Delbert D Franz <dd...@lk...> writes: Delbert> I am now able to create multiple figures, each with one Delbert> or more subplots with my software. What a great Delbert> collection of software. Thanks for all the work. Great, glad it helped. I was pretty sure that was the answer. Delbert> I tried using mx.datetime to create an mx.datetime Delbert> instance which worked fine. However, mx2num() fails with Delbert> python claiming an undefined mxdates. I checked the Delbert> source and found only one mxdates. No idea how it should Delbert> be defined. In the mean time I am using a datetime Delbert> instance but I lose a small bit of precision with only Delbert> integer seconds. Oops, replace mx2num in matplotlib/dates.py with def mx2num(mxdates): """ Convert mx datetime instance (or sequence of mx instances) to the new date format, """ scalar = False if not iterable(mxdates): scalar = True mxdates = [mxdates] ret = epoch2num([m.ticks() for m in mxdates]) if scalar: return ret[0] else: return ret Thanks for the report! JDH |