Issue #924: Annotated annotate_grids? (yt_analysis/yt)
New issue 924: Annotated annotate_grids? https://bitbucket.org/yt_analysis/yt/issue/924/annotated-annotate_grids Sam Skillman: According to the documentation: http://yt-project.org/doc/visualizing/callbacks.html#overplot-grids One should be able to annotate the grid lines with the grid id. Looks like this functionality is gone: ``` #!python In [2]: sl.annotate_grids(annotate=True) --------------------------------------------------------------------------- TypeError Traceback (most recent call last) /home/skillman/local/yt-x86_64/src/yt-3.0/yt/mods.py in <module>() ----> 1 sl.annotate_grids(annotate=True) /home/skillman/local/yt-x86_64/src/yt-3.0/yt/visualization/plot_container.pyc in newfunc(*args, **kwargs) 68 rv = f(*args, **kwargs) 69 args[0]._plot_valid = False ---> 70 args[0]._setup_plots() 71 return rv 72 return newfunc /home/skillman/local/yt-x86_64/src/yt-3.0/yt/visualization/plot_window.pyc in _setup_plots(self) 861 label.set_fontproperties(fp) 862 --> 863 self.run_callbacks(f) 864 865 if draw_axes is False: /home/skillman/local/yt-x86_64/src/yt-3.0/yt/visualization/plot_container.pyc in run_callbacks(self, f) 312 cbw = CallbackWrapper(self, self.plots[f], self.frb, f) 313 CallbackMaker = callback_registry[name] --> 314 callback = CallbackMaker(*args[1:], **kwargs) 315 callback(cbw) 316 for key in self.frb.keys(): TypeError: __init__() got an unexpected keyword argument 'annotate' ``` GridBoundaryCallback has an init like this now: ``` #!python 392 def __init__(self, alpha=0.7, min_pix=1, min_pix_ids=20, draw_ids=False, 393 periodic=True, min_level=None, max_level=None, 394 cmap='B-W LINEAR_r', edgecolors=None, linewidth=1.0): ```
participants (1)
-
Sam Skillman