Changeset 1559
- Timestamp:
- 03/30/09 17:03:01 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/asapplotter.py
r1556 r1559 163 163 164 164 text.__doc__ = matplotlib.axes.Axes.text.__doc__ 165 165 166 def arrow(self, *args, **kwargs): 166 167 if kwargs.has_key("interactive"): … … 174 175 175 176 arrow.__doc__ = matplotlib.axes.Axes.arrow.__doc__ 177 178 def annotate(self, text, xy=None, xytext=None, **kwargs): 179 if kwargs.has_key("interactive"): 180 if kwargs.pop("interactive"): 181 xy = self._plotter.get_point() 182 xytext = self._plotter.get_point() 183 if not kwargs.has_key("arrowprops"): 184 kwargs["arrowprops"] = dict(arrowstyle="->") 185 self._axes_callback("annotate", text, xy, xytext, **kwargs) 186 187 annotate.__doc__ = matplotlib.axes.Axes.annotate.__doc__ 188 176 189 def axvline(self, *args, **kwargs): 177 190 if kwargs.has_key("interactive"): … … 180 193 args = (pos[0],)+args 181 194 self._axes_callback("axvline", *args, **kwargs) 195 182 196 axvline.__doc__ = matplotlib.axes.Axes.axvline.__doc__ 183 197 … … 188 202 args = (pos[1],)+args 189 203 self._axes_callback("axhline", *args, **kwargs) 204 190 205 axhline.__doc__ = matplotlib.axes.Axes.axhline.__doc__ 191 206 … … 216 231 # This doesn't happen in a test script??? 217 232 #del self._plotter.axes.patches[-1] 233 218 234 axhspan.__doc__ = matplotlib.axes.Axes.axhspan.__doc__ 219 235
Note:
See TracChangeset
for help on using the changeset viewer.