This works for the specific problem, and answers the question I asked (in retrospect I see that I phrased my question poorly). But it doesn't really solve the main problem I had: I need some way to make matplotlib to select the appropriate number of ticks. For example if return(number+1001) was return(number+10001). How could I then make matplotlib automatically select the right number of ticks to avoid overlap? Should I accept the answer and make a new question, or should I edit this question?
–
MagnusNov 17 '12 at 0:07