From: <par...@fr...> - 2008-11-06 15:35:54
|
Hi everybody, I have a problem with my application using Tkinter. To simplify, here follows a small program showing the encountered problem: ################ from pylab import * a = arange( 10 ) plot( 0.5*a, cos(a) ) gca().set_autoscale_on(False) plot( a, cos(a), 'r' ) gca().set_autoscale_on(True) show() ################ At this time, the problem is that by clicking on the "house" (first button in the pylab toolbar), it is impossible to get the two curves completely, whereas the "pan/zoom mode" (the cross button) shows that the red curve has been drawn completely. Is there a function to obtain a "true" autoscale, i.e. that looks at all data on the plot, and computes the best view? Thanks a lot Julien |