<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jul 14, 2016 at 11:41 AM, Iapichino, Luigi <span dir="ltr"><<a href="mailto:Luigi.Iapichino@lrz.de" target="_blank">Luigi.Iapichino@lrz.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">




<div dir="ltr" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Arial,Helvetica,sans-serif;background-color:rgb(255,255,255)">
<p>Dear yt users,</p>
<p><br>
</p>
<p>I have a question on the "origin" parameter in SlicePlot: is it possible to have the location of the origin of the plot coordinate system in a user-defined point inside the slice? I am plotting a galaxy cluster where, for sake of visualisation, the center
 is neither in the slice center, nor in one of the corners, and I would like the coordinate origin there. It looks like something possible only with a lot of efforts, but I hope I am wrong! Looking forward to your suggestions,<br>
</p>
<p><br>
</p>
<p>Best regards,</p>
<p><br>
</p>
<p>  Luigi<br></p></div></blockquote><div><br></div><div>Hi Luigi,</div><div><br></div><div>That isn't implemented currently, although it sounds like a reasonable feature to add.</div><div><br></div><div>The place that needs to be modified is this function:</div><div><br></div><div><a href="https://bitbucket.org/yt_analysis/yt/src/1c339ea7619997cba6842e973cf5f0e13b2f30ee/yt/visualization/plot_window.py?at=yt&fileviewer=file-view-default#plot_window.py-627">https://bitbucket.org/yt_analysis/yt/src/1c339ea7619997cba6842e973cf5f0e13b2f30ee/yt/visualization/plot_window.py?at=yt&fileviewer=file-view-default#plot_window.py-627</a></div><div><br></div><div>You would need to add a new if statement to account for the case when origin is a two-element list, tuple or ndarray, and then just use that value. You would also need to update the docstrings for "origin" which are replicated a few places in that file. I think this would be a pretty simple modification.</div><div><br></div><div>If you're interested in working on this, we would very much appreciate it if you contributed this modification back to the yt project. You can get more information about contributing to yt on our developer guide:</div><div><br></div><div><a href="http://yt-project.org/docs/dev/developing/index.html">http://yt-project.org/docs/dev/developing/index.html</a><br></div><div><br></div><div>People on this list are also very happy to help out with questions about contributing to yt.</div><div><br></div><div>If you're not interested in implementing this then i'd suggest opening an issue for the feature request:</div><div><br></div><div><a href="https://bitbucket.org/yt_analysis/yt/issues/new">https://bitbucket.org/yt_analysis/yt/issues/new</a><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Arial,Helvetica,sans-serif;background-color:rgb(255,255,255)"><p>
</p>
<p><br>
</p>
<div>
<div name="divtagdefaultwrapper">
---<br>
<br>
Dr. Luigi Iapichino<br>
Leibniz-Rechenzentrum<br>
Application Support group<br>
Boltzmannstr. 1, 85748 Garching, Germany<br>
Tel.: <a href="tel:%2B49%2089%2035831%207824" value="+4989358317824" target="_blank">+49 89 35831 7824</a><br>
e-mail: <a href="mailto:luigi.iapichino@lrz.de" target="_blank">luigi.iapichino@lrz.de</a></div>
</div>
</div>

<br>_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" rel="noreferrer" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></div><br></div></div>