
Hi all,
As it currently stands, PlotWindow now saves with the bbox_inches='tight'. This can unfortunately lead to different images sizes based on whether or not the text labels and colorbar tick labels extend too far. This gets annoying if you want to make a movie with frames where the limits change.
Would there be any objection to adding a **kwargs to the end of PW.save() that gets passed through to canvas.savefig? That way we can accept things like bbox_inches directly in the PW.save().
+/- 1 ?
Sam

+1
On Aug 8, 2012, at 9:43 AM, Sam Skillman samskillman@gmail.com wrote:
Hi all,
As it currently stands, PlotWindow now saves with the bbox_inches='tight'. This can unfortunately lead to different images sizes based on whether or not the text labels and colorbar tick labels extend too far. This gets annoying if you want to make a movie with frames where the limits change.
Would there be any objection to adding a **kwargs to the end of PW.save() that gets passed through to canvas.savefig? That way we can accept things like bbox_inches directly in the PW.save().
+/- 1 ?
Sam _______________________________________________ yt-dev mailing list yt-dev@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org

I'm okay with it being added to PW.save(), although with the new PlotWindow it is so easy to iterate over axes and figures that maybe we should encourage that. I'd also be *very* +1 on not having differing image sizes!
On Wed, Aug 8, 2012 at 12:42 PM, Sam Skillman samskillman@gmail.com wrote:
Hi all,
As it currently stands, PlotWindow now saves with the bbox_inches='tight'. This can unfortunately lead to different images sizes based on whether or not the text labels and colorbar tick labels extend too far. This gets annoying if you want to make a movie with frames where the limits change.
Would there be any objection to adding a **kwargs to the end of PW.save() that gets passed through to canvas.savefig? That way we can accept things like bbox_inches directly in the PW.save().
+/- 1 ?
Sam
yt-dev mailing list yt-dev@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org

I'm not entirely sure of what the best solution is for this issue, but I'm game for adding that to **kwargs. We might want to think more about a solution to producing fixed image sizes (preferable!) with length-width ratios perhaps based on their proximity to the aspect ratio of the domain. I'm guessing there will still be situations in which axis labels end up cutoff, but a solution that is completely free of drawbacks might not exist. I'm glad that rectangular domains now are handled more naturally in yt though! Thanks Sam.
On Wed, Aug 8, 2012 at 9:44 AM, Matthew Turk matthewturk@gmail.com wrote:
I'm okay with it being added to PW.save(), although with the new PlotWindow it is so easy to iterate over axes and figures that maybe we should encourage that. I'd also be *very* +1 on not having differing image sizes!
On Wed, Aug 8, 2012 at 12:42 PM, Sam Skillman samskillman@gmail.com wrote:
Hi all,
As it currently stands, PlotWindow now saves with the bbox_inches='tight'. This can unfortunately lead to different images sizes based on whether or not the text labels and colorbar tick labels extend too far. This gets annoying if you want to make a movie with frames where the limits change.
Would there be any objection to adding a **kwargs to the end of PW.save() that gets passed through to canvas.savefig? That way we can accept things like bbox_inches directly in the PW.save().
+/- 1 ?
Sam
yt-dev mailing list yt-dev@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org
yt-dev mailing list yt-dev@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org
participants (4)
-
Devin Silvia
-
Matthew Turk
-
Nathan Goldbaum
-
Sam Skillman