MCPcopy Create free account
hub / github.com/PyQt5/PyQt / __init__

Method __init__

QtChart/CustomXYaxis.py:131–146  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

129class Window(QWidget):
130
131 def __init__(self, *args, **kwargs):
132 super(Window, self).__init__(*args, **kwargs)
133 layout = QHBoxLayout(self)
134
135 # 自定义x轴(和原来的x轴值对应等分)
136 chart = getChart("自定义x轴(和原来的x轴值对应等分)")
137 customAxisX(chart)
138 layout.addWidget(QChartView(chart, self))
139 # 自定义添加右侧y轴(等分,与左侧不对应)
140 chart = getChart("自定义添加右侧y轴(等分,与左侧不对应)")
141 customAxisY(chart)
142 layout.addWidget(QChartView(chart, self))
143 # 自定义top x轴(按现有新的x轴划分)
144 chart = getChart("自定义top x轴(按现有新的x轴划分)")
145 customTopAxisX(chart)
146 layout.addWidget(QChartView(chart, self))
147
148
149if __name__ == "__main__":

Callers

nothing calls this directly

Calls 5

getChartFunction · 0.85
customAxisXFunction · 0.85
customAxisYFunction · 0.85
customTopAxisXFunction · 0.85
addWidgetMethod · 0.80

Tested by

no test coverage detected