MCPcopy Create free account
hub / github.com/ColdGrub1384/Pyto / __init__

Method __init__

site-packages/matplotlib/backends/backend_wx.py:1473–1489  ·  view source on GitHub ↗
(self, targetfig)

Source from the content-addressed store, hash-verified

1471@cbook.deprecated("2.2")
1472class SubplotToolWX(wx.Frame):
1473 def __init__(self, targetfig):
1474 global FigureManager # placates pyflakes: created by @_Backend.export
1475 wx.Frame.__init__(self, None, -1, "Configure subplots")
1476
1477 toolfig = Figure((6, 3))
1478 canvas = FigureCanvasWx(self, -1, toolfig)
1479
1480 # Create a figure manager to manage things
1481 figmgr = FigureManager(canvas, 1, self)
1482
1483 # Now put all into a sizer
1484 sizer = wx.BoxSizer(wx.VERTICAL)
1485 # This way of adding to sizer allows resizing
1486 sizer.Add(canvas, 1, wx.LEFT | wx.TOP | wx.GROW)
1487 self.SetSizer(sizer)
1488 self.Fit()
1489 tool = SubplotTool(targetfig, toolfig)
1490
1491
1492class NavigationToolbar2Wx(NavigationToolbar2, wx.ToolBar):

Callers

nothing calls this directly

Calls 4

FigureClass · 0.90
SubplotToolClass · 0.90
FigureCanvasWxClass · 0.85
__init__Method · 0.45

Tested by

no test coverage detected