<div dir="ltr">One issue: what happens when you use the plot callbacks (e.g. the methods like annotate_grids() that hang off the other PlotWindow plots)? Some of the callbacks make sense for all plots (i.e. they just add a line, arrow, or shape), others depend on metadata for a dataset. For your case, you'd have to somehow combine the metadata from two datasets, i guess?<div><br></div><div>Another option is to blacklist callbacks that don't make any sense, see:</div><div><br></div><div><a href="https://bitbucket.org/yt_analysis/yt/src/yt/yt/visualization/plot_window.py#plot_window.py-1783">https://bitbucket.org/yt_analysis/yt/src/yt/yt/visualization/plot_window.py#plot_window.py-1783</a><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Dec 20, 2016 at 4:45 PM, Matthew Krafczyk <span dir="ltr"><<a href="mailto:krafczyk.matthew@gmail.com" target="_blank">krafczyk.matthew@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi folks,<div><br></div><div>I'm currently working on implementing a couple of plots to help investigate differences between two similar datasets.</div><div><br></div><div>I've implemented DifferenceProjectionPlot, RelativeDifferenceProjectionPl<wbr>ot, and AsymmetryProjectionPlot.</div><div><br></div><div>These are available at my fork of yt <a href="https://bitbucket.org/krafczyk/yt" target="_blank">https://bitbucket.org/<wbr>krafczyk/yt</a> under the bookmark 'features/difference_plot'.</div><div><br></div><div>Essentially, Each of these Plots is a subclass of PWViewerMPL like ProjectionPlot, but create's it's FRB by first creating FRBs for the two data sets then applying an operation to each pixel value to get a new derived value which is a part of the new FRB.</div><div><br></div><div>For DifferenceProjectionPlot this is simply A-B</div><div>For RelativeDifferenceProjectionPl<wbr>ot this is (A-B)/A</div><div>For AsymmetryProjectionPlot this is (A-B)/(A+B)</div><div><br></div><div>It's already been suggested to me that I can avoid creating three new classes by moving the choice of combination algorithm to a keyword argument, but I'd like to hear more suggestions.</div><div><br></div><div>Thanks,</div><div>Matthew Krafczyk</div></div>
<br>______________________________<wbr>_________________<br>
yt-dev mailing list<br>
<a href="mailto:yt-dev@lists.spacepope.org">yt-dev@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org" rel="noreferrer" target="_blank">http://lists.spacepope.org/<wbr>listinfo.cgi/yt-dev-spacepope.<wbr>org</a><br>
<br></blockquote></div><br></div>