From: Hans F. <H.F...@so...> - 2005-01-11 21:44:37
|
John, >>>>>> "Hans" == Hans Fangohr <H.F...@so...> writes: > > Hans> Hm. Done that. A figure window pops up immediately but is > Hans> not being updated correctly: a part of the graph is visible, > Hans> the other part of the figure (which was underneath another > Hans> window initially) appears white. The titel of the figure > Hans> says "Figure 1 (Not responding)". IDLE, however, responds > Hans> happily ;-) T > > Todd, many moons ago you wrote me and said I had inadvertently screwed > up something in tkagg show that broke the idle -n behavior. If I > recall correctly, we never reverted, since I didn't understand exactly > what to do. Perhaps you could revisit the current tkagg versus the > old one to make sure it is right. > > Hans, does it make a difference if you uncomment > > #os.environ['PYTHONINSPECT'] = '1' > > in the show method of > site-packages/matplotlib/backends/backend_tkagg.py? You should set > 'interactive : True' as Todd suggested. Do not use show, as it is not > designed for interactive use. I suggest carefully testing all 4 > combinations: with and without the PYTHONINSPECTmline, and with and > without -n. Setting 'interactive=True' in .matplotlibrc IDLE #os.environ['PYTHONINSPECT'] = '1' -> fail IDLE -n #os.environ['PYTHONINSPECT'] = '1' -> fail IDLE os.environ['PYTHONINSPECT'] = '1' -> fail IDLE -n os.environ['PYTHONINSPECT'] = '1' -> success So that's good. However, notice that also setting 'interactive=False' IDLE os.environ['PYTHONINSPECT'] = '1' seems to work! (Which is what I wanted initially and what didn't work.) So from my naive perspective the line "environ['PYTHONINSPECT'] = '1' " should not be commented. Thanks for you help -- hope this is useful, Hans |