From: John H. <jdh...@ac...> - 2004-11-12 14:35:04
|
>>>>> "Dimitri" == Dimitri D'Or <dim...@fs...> writes: Dimitri> Hello, I would like to know if there is a mean for Dimitri> testing on the hold status of a figure, i.e. to know if Dimitri> hold is 'on' or 'off' ? Dimitri> In fact, I use frequently the ISHOLD function in Matlab Dimitri> and I can't find a similar one in Matplotlib. A sin of omission. I just added it to CVS. If you don't have CVS access, in the meantime, you can either use the ax._ishold variable to inspect the axes hold status, or add the following to matplotlib.axes.Axes: def ishold(self): 'return the HOLD status of the axes' return self._hold and to matplotlib.matlab def ishold(b=None): """ Return the hold status of the current axes """ return gca().ishold() Should cure what ails ya ... JDH |