From: John H. <jdh...@ac...> - 2004-12-14 15:56:36
|
>>>>> "Ted" == Ted Drain <ted...@jp...> writes: Ted> At least where I work, our style guidelines make it a little Ted> more verbose. I need to use descriptive variable names (for The new short names were meant for easy, interactive use, to minimize the number of keystrokes. For scripts, especially if you have verbose coding guidelines, I suggest you use the functions that are already defined in the matplotlib __init__ file import matplotlib b = matplotlib.is_interactive() matplotlib.interactive(False) ....your plot commands here.... matplotlib.interactive(b) The short names call these functions, anyhow. Note that this discussion may be moot, because when writing plotting functions I rarely use the drawing commands of the pylab interface since these are by and large wrappers of other methods, eg Axes methods. Since only the pylab plotting commands trigger the draw_if_interactive method, you can safely do things like ax.plot([1,2,3]) ax.set_xlabel('time') ax.set_title('this is a test') ax.grid(True) w/o worrying about the interactive setting. JDH |