MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / swap_if_landscape

Method swap_if_landscape

lib/matplotlib/backends/backend_ps.py:961–962  ·  view source on GitHub ↗
(self, shape)

Source from the content-addressed store, hash-verified

959 portrait, landscape = range(2)
960
961 def swap_if_landscape(self, shape):
962 return shape[::-1] if self.name == "landscape" else shape
963
964
965class FigureCanvasPS(FigureCanvasBase):

Callers 2

_print_figureMethod · 0.80
_print_figure_texMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected