By default, pcolormesh and friends seem to not use tight boxes, leading to blank bars along the side or top of the figure depending on the range of values plotted. I see no positive results from this behaviour.
It sounds like this is a proposal for the default to execute what would need to be a new "tight" mode in Axes.autoscale_view. Presently, None triggers tight scaling if the artists include images but do not include lines or patches. If I understand correctly, the suggested alternative mode would trigger tight scaling if the artists include or result from any image-like elements (e.g. collections such as quadmesh, or LineCollection or PolyCollection from contour or contourf). This seems reasonable. In its simplest form it would not be difficult to implement: the judgment would be based exclusively on the artists without regard for how they were generated. An alternative would be to add an attribute to artists that would specify whether they should be treated as image-like for autoscaling purposes.
Activity
shoyer commented on Aug 4, 2015
This is also an issue for contour plots.
Tillsten commented on Oct 2, 2015
+1, always calling autoscale after contour & co should not be necessery.
mdboom commented on Nov 8, 2015
Related to #4891
tacaswell commented on Nov 12, 2015
This is going to cause interesting interactions with using margins by default.
efiring commented on Nov 12, 2015
It sounds like this is a proposal for the default to execute what would need to be a new "tight" mode in Axes.autoscale_view. Presently, None triggers tight scaling if the artists include images but do not include lines or patches. If I understand correctly, the suggested alternative mode would trigger tight scaling if the artists include or result from any image-like elements (e.g. collections such as quadmesh, or LineCollection or PolyCollection from contour or contourf). This seems reasonable. In its simplest form it would not be difficult to implement: the judgment would be based exclusively on the artists without regard for how they were generated. An alternative would be to add an attribute to artists that would specify whether they should be treated as image-like for autoscaling purposes.
tacaswell commented on Feb 8, 2016
This is handled in #5583