<div dir="ltr">You need to do two things to adjust the plot resolution.<div><br></div><div>First, to adjust the resolution of the image array that yt is plotting (i.e. if 800x800 for each subpanel is too low), use the set_buff_size() member function of the yt plotting class.</div><div><br></div><div>Next, in order to actually save it at high resolution, you will need to specify the dpi when you call savefig. Matplotlib assumes resolution-independent scaling up until the point when the plot is actually displayed or saved to disk.</div><div><br></div><div>Note that the dpi (dots per inch) interacts with the size of the plotting window (specified in inches). You can fully control the image resolution through a combination of calling the set_buff_size() and set_figure_size() functions that are attached to yt plotting classes.</div><div><br></div><div>I've made a couple minor modifications to the multiplot_2x2_time_series.py script to produce a higher resolution version. I also switched out the dataset since I don't have a copy of Enzo_64 on my laptop.  Here it is:</div><div><br></div><div><a href="http://paste.yt-project.org/show/5769/">http://paste.yt-project.org/show/5769/</a><br></div><div><br></div><div>This produces an image with a resolution of 3255 x 2760, whereas if I don't specify the dpi in the savefig call, the resolution is 1085 x 920.</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">On Sat, Aug 1, 2015 at 7:57 AM, Shankar Agarwal <span dir="ltr"><<a href="mailto:agarwalshankar@gmail.com" target="_blank">agarwalshankar@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"><div><div>Hi,<br><br></div><div>When making a typical 1x1 plot, I see that the final image has 800x800 pixels.<br></div><div><br>I then used the following script to make a 2x2 multipanel plot, with each panel showing the projected density:<br><a href="http://yt-project.org/doc/cookbook/complex_plots.html#time-series-multipanel" target="_blank">http://yt-project.org/doc/cookbook/complex_plots.html#time-series-multipanel</a><br><br>However, I see that each of the four panels is not 800x800. It is about 388x388. As such, some of the details in each panel is lost (which I can see if I plot the four panels separately on 1x1 plots).<br><br></div><div>Is there an easy way to tell the above script that each panel be 800x800 pixel? By the way, I see there is a statement<br><pre>Npixels = 512</pre>in <a href="http://yt-project.org/doc/cookbook/complex_plots.html#off-axis-projection-an-alternate-method" target="_blank">http://yt-project.org/doc/cookbook/complex_plots.html#off-axis-projection-an-alternate-method</a> <br></div><br></div><div>Cheers,<br></div>Shankar<br><div><br></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>