<div dir="ltr">I agree with John and Matt on this one.  I don't think we should necessarily be optimizing for just the notebook, since there are various ways in which we interact with the code.  I'm not sure if it is possible, but could we potentially have a line in the yt.cfg file which sets the default resolution to use?  If a user only uses the notebook on a low-resolution screen, they could edit this file and set it to a smaller figsize.  It's obviously not an ideal fix, but it could alleviate some of the problems here.<div>

<br></div><div>Cameron</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Mar 16, 2014 at 2:50 PM, Kacper Kowalik <span dir="ltr"><<a href="mailto:xarthisius.kk@gmail.com" target="_blank">xarthisius.kk@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 class="">On 16.03.2014 19:47, Nathan Goldbaum wrote:<br>
> On Sun, Mar 16, 2014 at 11:42 AM, John Wise <<a href="mailto:jwise@physics.gatech.edu">jwise@physics.gatech.edu</a>>wrote:<br>
><br>
>> Hi Nathan,<br>
>><br>
>> I think the default image size is fine at 1000x1000px, which fits on a<br>
>> 1920x1080 screen nicely.  Screen resolution is going to continue<br>
>> increasing, and I don't think it's a good idea to decrease the default.  If<br>
>> anything, it should increase in the future.  For data inspection, I'd<br>
>> rather scroll around large (e.g. 4000x4000) image than zooming/re-centering<br>
>> a 600x600 image numerous times.<br>
>><br>
>> Also, I agree with Matt that we shouldn't be optimizing for notebook<br>
>> operation yet.  Although notebooks are great for interactivity, I find it<br>
>> painfully slow to edit and re-run scripts (even with keyboard shortcuts)<br>
>> when compared to an editor + image viewer.<br>
>><br>
>> Is there a way to make the plot window aware that it's embedded in a<br>
>> notebook and adjust the default image size accordingly?  I think that would<br>
>> be a good plan, if it's technically possible.<br>
>><br>
><br>
> Unfortunately no.  See this e-mail thread:<br>
> <a href="http://mail.scipy.org/pipermail/ipython-dev/2014-February/013234.html" target="_blank">http://mail.scipy.org/pipermail/ipython-dev/2014-February/013234.html</a><br>
><br>
> We could scale down the plot using css, but I don't think that's a good<br>
> solution since it will make the axes text, tick marks, and colorbar label<br>
> harder to read.<br>
<br>
</div>Hi Nathan,<br>
you could make PlotWindow respect default figsize from InlineBackend.rc.<br>
AFAIR, but of course this needs to be verified, this dict is defined<br>
only for ipython notebook --inline, and the default figsize is 6' x 4'<br>
Cheers,<br>
Kacper<br>
<div class="HOEnZb"><div class="h5"><br>
><br>
>><br>
>> Cheers,<br>
>> John<br>
>><br>
>><br>
>> On 03/16/2014 01:42 PM, Nathan Goldbaum wrote:<br>
>><br>
>>> Hi all,<br>
>>><br>
>>> I recently opened a PR that fixes a number of bugs in yt's plotting<br>
>>> code.  Hopefully this will fix many common visual issues that show up in<br>
>>> yt plots.<br>
>>><br>
>>> As part of the PR I decided to change the default size of yt plots from<br>
>>> 8 inches to 6.  My justification is that the current default will create<br>
>>> a plot that overflows an IPython notebook output cell, particularly on<br>
>>> small displays.<br>
>>><br>
>>> The PR is here:<br>
>>> <a href="https://bitbucket.org/yt_analysis/yt/pull-request/723/" target="_blank">https://bitbucket.org/yt_analysis/yt/pull-request/723/</a><br>
>>> fixing-some-longstanding-issues-with-plot/diff#comment-1433174<br>
>>><br>
>>> The discussion about the figure size is here:<br>
>>> <a href="https://bitbucket.org/yt_analysis/yt/pull-request/723/" target="_blank">https://bitbucket.org/yt_analysis/yt/pull-request/723/</a><br>
>>> fixing-some-longstanding-issues-with-plot/diff#comment-1432943<br>
>>><br>
>>> As I mention in the PR description I'm willing to back down on this<br>
>>> change if the consensus is that this is a bad idea.<br>
>>><br>
>>> Matt has already come out against the change, but before I revert it I<br>
>>> wanted to bring it up here and get opinions from other people.<br>
>>><br>
>>> Thanks for your help :)<br>
>>><br>
>>> -Nathan<br>
>>><br>
>>><br>
>>> _______________________________________________<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" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org</a><br>
>>><br>
>>><br>
>> --<br>
>> John Wise<br>
>> Assistant Professor of Physics<br>
>> Center for Relativistic Astrophysics, Georgia Tech<br>
>> <a href="http://cosmo.gatech.edu" target="_blank">http://cosmo.gatech.edu</a><br>
>><br>
>> _______________________________________________<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" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org</a><br>
>><br>
><br>
><br>
><br>
> _______________________________________________<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" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org</a><br>
><br>
<br>
<br>
</div></div><br>_______________________________________________<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" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Cameron Hummels<div>Postdoctoral Researcher</div><div>Steward Observatory</div><div>University of Arizona</div><div><a href="http://chummels.org" target="_blank">http://chummels.org</a></div>


</div>