MCPcopy Create free account
hub / github.com/CoolProp/CoolProp / __init__

Method __init__

wrappers/Python/CoolProp/Plots/psy.py:42–50  ·  view source on GitHub ↗
(self, parent=None, width=15, height=5, dpi=100)

Source from the content-addressed store, hash-verified

40 """
41
42 def __init__(self, parent=None, width=15, height=5, dpi=100):
43 self.fig = Figure(figsize=(width, height), dpi=dpi)
44 FigureCanvasQTAgg.__init__(self, self.fig)
45 self.setParent(parent)
46 self.axes2D = self.fig.add_subplot(111)
47 FigureCanvasQTAgg.updateGeometry(self)
48 self.axes2D.figure.subplots_adjust(left=0.01, right=0.92,
49 bottom=0.05, top=0.98)
50 self.notes = []
51
52 def plot(self, *args, **kwargs):
53 self.axes2D.plot(*args, **kwargs)

Callers 1

__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected