[yt-users] Plot collections on non-square slices

Mark Krumholz krumholz at ucolick.org
Tue Jul 24 16:33:43 PDT 2012


On Jul 24, 2012, at 4:29 PM, Nathan Goldbaum wrote:

> Hi Mark,
>
> You can manually specify the size of the figure that will be created  
> by setting the fig_size keyword.  For example:
>
> pf = load(fn)
>
> pc = PlotCollection(pf)
>
> fig_size = [4, 3]  # the figure size in inches
>
> pc.add_slice('Density',0,fig_size = fig_size)
>
> pc.save() # saves a slice of Density that is 4 x 3 inches.
>
> Hope that was helpful.
>
> -Nathan


I just tried it, and I'm afraid this doesn't work. Setting the figure  
size to, say [1,4] (the aspect ratio of my figure) just results in a  
squashed version of what I got before. The whitespace is still there,  
and the image of the data is now artificially compressed.

--
Mark Krumholz
krumholz at ucolick.org







More information about the yt-users mailing list