From: John H. <jdh...@ac...> - 2004-06-17 14:13:33
|
>>>>> "Peter" == Peter Groszkowski <pgr...@ge...> writes: Peter> self.nonsingular(self.dataInterval.get_bounds()) TypeError: Peter> nonsingular() takes exactly 3 arguments (2 given) Peter> ------------- Should be self.nonsingular(*self.dataInterval.get_bounds()) Peter> 2) The auto-scaling in plot_date() does not scale properly Peter> in some special cases. Consider this: The example seems to work now with the above change and the changes you suggested in below. Peter> ticks.Base when int() gives zero. Also, to finalize this, Peter> one would have to write a DayMultiLocator type class for I added DayMultiLocator to matplotlib.ticker Peter> the Weeks, otherwise when the number of weeks is close, but Peter> less then the number of weeks in numticks*months it will Peter> get crowded. This will probably be a little more involved Peter> than dealing with days, but perhaps one could use your Peter> existent WeekdayLocator class to simplify the problem. A WeekMultiLocator would be useful, but it's not a priority for me. If you come up with one, send it my way. Peter> Also note that there was an error in defining months in Peter> your code; I changed the line to: Peter> months = span/(SEC_PER_DAY*31) # approx Thanks for the fix. Peter> Let me know what you think. Looks good; thanks! JDH |