Hi David,

Here's a quick and dirty example using a SlicePlot:


Note that PlotWindow plots have control over their own axis ratios, so you will need to construct you plot around the known axis ratio.

This will also look somewhat different if you use a ProfilePlot, since that plotting class has a somewhat different underlying implementation.



On Thu, Jan 8, 2015 at 10:13 PM, David Ketcheson <david.ketcheson@kaust.edu.sa> wrote:

I would like to insert a yt-generated plot in a particular matplotlib axes object that I created. In matplotlib, I can do this via

fig2 = plt.figure()
ax2 = fig2.add_axes([0.15, 0.1, 0.7, 0.3])

which will place the plot on the axes ax2.  Is there any way to do this in yt?

This message and its contents including attachments are intended solely for the original recipient. If you are not the intended recipient or have received this message in error, please notify me immediately and delete this message from your computer system. Any unauthorized use or distribution is prohibited. Please consider the environment before printing this email.

yt-users mailing list