MCPcopy
hub / github.com/pydata/xarray / _finalize_grid

Method _finalize_grid

xarray/plot/facetgrid.py:720–731  ·  view source on GitHub ↗

Finalize the annotations and layout.

(self, *axlabels: Hashable)

Source from the content-addressed store, hash-verified

718 return self
719
720 def _finalize_grid(self, *axlabels: Hashable) -> None:
721 """Finalize the annotations and layout."""
722 if not self._finalized:
723 self.set_axis_labels(*axlabels)
724 self.set_titles()
725 self.fig.tight_layout()
726
727 for ax, namedict in zip(self.axs.flat, self.name_dicts.flat, strict=True):
728 if namedict is None:
729 ax.set_visible(False)
730
731 self._finalized = True
732
733 def _adjust_fig_for_guide(self, guide) -> None:
734 # Draw the plot to set the bounding boxes correctly

Callers 5

map_dataarrayMethod · 0.95
map_plot1dMethod · 0.95
map_dataarray_lineMethod · 0.95
map_datasetMethod · 0.95
mapMethod · 0.95

Calls 2

set_axis_labelsMethod · 0.95
set_titlesMethod · 0.95

Tested by

no test coverage detected