<div dir="ltr">Thank you Nathan! This works! Hope that can be fixed soon.<div><br></div><div>Best,</div><div>Chuhong</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">------------------------------------------------------------------------------------------<div>Chuhong Mai,</div><div>PhD Student,</div><div>NASA Earth & Space Science Fellow,</div><div>School of Earth & Space Exploration,</div><div>Arizona State University</div><div>Email: <a href="mailto:Chuhong.Mai@asu.edu" target="_blank">Chuhong.Mai@asu.edu</a></div></div></div></div></div></div>
<br><div class="gmail_quote">On Tue, Mar 14, 2017 at 8:19 AM, Nathan Goldbaum <span dir="ltr"><<a href="mailto:nathan12343@gmail.com" target="_blank">nathan12343@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 Chuhong,<div><br></div><div>Thank you for the report about this. I think the current behavior violates the principle of least surprise. I've gone ahead and filed a pull request that should fix this issue:</div><div><br></div><div><a href="https://bitbucket.org/yt_analysis/yt/pull-requests/2546" target="_blank">https://bitbucket.org/yt_<wbr>analysis/yt/pull-requests/2546</a><br></div><div><br></div><div>There is a sort of hacky workaround for this issue that will work with the current version of yt without my pull request. Take a look at the following example, which uses a test dataset available at <a href="http://yt-project.org/data" target="_blank">yt-project.org/data</a> if you want to try running it yourself:</div><div><br></div><div><a href="http://paste.yt-project.org/show/7083/" target="_blank">http://paste.yt-project.org/<wbr>show/7083/</a><br></div><div><br></div><div>Hope that's helpful,</div><div><br></div><div>Nathan</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Mon, Mar 13, 2017 at 11:27 PM, Chuhong Mai <span dir="ltr"><<a href="mailto:cmai4@asu.edu" target="_blank">cmai4@asu.edu</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Hi yt-users,<div><br></div><div>I am pretty new to yt. I am using ProfilePlot to visualize Flash output data and find that set_xlim is not functioning as expected. Here's my script:</div><div><br></div><div>import yt</div><div>ds=yt.load('bondiAccr_mgd_full<wbr>mass_eddi_try24_plt_cnt_9217')</div><div>ad=ds.all_data()</div><div>plot=yt.ProfilePlot(ad,"r",["s<wbr>ound_speed"])</div><div>plot.set_unit("r","cm")</div><div>plot.set_xlim(2.5e12, 2.5e13)</div><div>plot.set_ylim(5e8, 1e10)</div><div>plot.save()</div><div><br></div><div><img src="cid:ii_15acb0f791d69c48" alt="Inline image 1" width="455" height="349"><br></div><div>While set_ylim functions as expected, set_xlim does cut the range of the data but not the axis itself. What can I do to cut the x axis to the range I want? Thank you very much!</div><div><br></div><div>Best,</div><div>Chuhong</div><div><img><br></div><div><img><img>------------------------------<wbr>------------------------------<wbr>------------------------------</div><div><div><div class="m_-3380382412797384839m_2328904023132577042gmail_signature"><div dir="ltr"><div dir="ltr"><div>Chuhong Mai,</div><div>PhD Student,</div><div>NASA Earth & Space Science Fellow,</div><div>School of Earth & Space Exploration,</div><div>Arizona State University</div><div>Email: <a href="mailto:Chuhong.Mai@asu.edu" target="_blank">Chuhong.Mai@asu.edu</a></div></div></div></div></div>
</div></div>
<br></div></div>______________________________<wbr>_________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org" target="_blank">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/lis<wbr>tinfo.cgi/yt-users-spacepope.<wbr>org</a><br>
<br></blockquote></div><br></div>
<br>______________________________<wbr>_________________<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/<wbr>listinfo.cgi/yt-users-<wbr>spacepope.org</a><br>
<br></blockquote></div><br></div>