<div dir="auto">Thanks very much for the discussions and suggestions Timothy, Nathan and Matt. I will follow the links and follow up with you. <div dir="auto"><br></div><div dir="auto">Best</div><div dir="auto">Tazkera</div></div><div class="gmail_extra"><br><div class="gmail_quote">On May 30, 2017 10:48 AM, "Matthew Turk" <<a href="mailto:matthewturk@gmail.com">matthewturk@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Tue, May 30, 2017 at 9:44 AM, Nathan Goldbaum <<a href="mailto:nathan12343@gmail.com">nathan12343@gmail.com</a>> wrote:<br>
> Assuming these are slices through an AMR simulation, you could try manually<br>
> plotting the images using matplotlib's imshow command:<br>
><br>
> <a href="https://matplotlib.org/devdocs/api/_as_gen/matplotlib.axes.Axes.imshow.html#matplotlib-axes-axes-imshow" rel="noreferrer" target="_blank">https://matplotlib.org/<wbr>devdocs/api/_as_gen/<wbr>matplotlib.axes.Axes.imshow.<wbr>html#matplotlib-axes-axes-<wbr>imshow</a><br>
><br>
> In particular experimenting with the "interpolation" keyword argument. By<br>
> default, yt uses "interpolation='nearest'" (see<br>
> <a href="https://github.com/yt-project/yt/blob/master/yt/visualization/base_plot_types.py#L218" rel="noreferrer" target="_blank">https://github.com/yt-project/<wbr>yt/blob/master/yt/<wbr>visualization/base_plot_types.<wbr>py#L218</a>)<br>
> as this is the "truest" representation of voxelized data in a pixelized<br>
> representation.<br>
<br>
One thing to note that the interpolation matplotlib will apply is not<br>
based on the AMR cells, but the regularization of those cells to a<br>
fixed buffer.  So you'll still see the voxels, but they'll be fuzzy at<br>
the very edges.<br>
<br>
><br>
> You can see how different interpolation choices look in this example in the<br>
> matplotlib docs:<br>
><br>
> <a href="https://matplotlib.org/examples/images_contours_and_fields/interpolation_methods.html" rel="noreferrer" target="_blank">https://matplotlib.org/<wbr>examples/images_contours_and_<wbr>fields/interpolation_methods.<wbr>html</a><br>
><br>
> This choice to use "interpolation='nearest'" in SlicePlot was intentional<br>
> and I don't think we want to expose the ability to customize the<br>
> interpolation, but of course you can create your own visualizations outside<br>
> of SlicePlot using a FixedResolutionBuffer and the manual plotting<br>
> interface.<br>
><br>
> On Tue, May 30, 2017 at 9:34 AM, Matthew Turk <<a href="mailto:matthewturk@gmail.com">matthewturk@gmail.com</a>> wrote:<br>
>><br>
>> Hi Tazkera,<br>
>><br>
>> There's not, unfortunately.  We have experimented with this in the<br>
>> past, but the results weren't ever satisfactory.  You might try a very<br>
>> thin slice with an off-axis projection, which may accomplish the same<br>
>> result.<br>
>><br>
>> -Matt<br>
>><br>
>> On Tue, May 30, 2017 at 12:06 AM, tazkera haque <<a href="mailto:h.tazkera@gmail.com">h.tazkera@gmail.com</a>><br>
>> wrote:<br>
>> > Hi People,<br>
>> ><br>
>> > I was wondering if yt can produce smooth images of zoomed-in sliceplots,<br>
>> > where the pixelated AMR grids are not clearly visible. I was interested<br>
>> > to<br>
>> > see the colors get mixed in smoothly (something like<br>
>> > tetrahedralization), is<br>
>> > that possible anyway in yt?<br>
>> ><br>
>> > Best<br>
>> > Tazkera<br>
>> ><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>
>> ______________________________<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>
><br>
><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>
______________________________<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>
</blockquote></div></div>