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

Method getSeries

QtChart/SplineChart.py:48–59  ·  view source on GitHub ↗
(self, chart)

Source from the content-addressed store, hash-verified

46 chart.legend().setVisible(False)
47
48 def getSeries(self, chart):
49 # 第一组
50 series = QSplineSeries(chart)
51 series << QPointF(1, 5) << QPointF(3, 7) << QPointF(7, 6) << QPointF(9, 7) \
52 << QPointF(12, 6) << QPointF(16, 7) << QPointF(18, 5)
53 chart.addSeries(series)
54
55 # 第二组
56 series = QSplineSeries(chart)
57 series << QPointF(1, 3) << QPointF(3, 4) << QPointF(7, 3) << QPointF(8, 2) \
58 << QPointF(12, 3) << QPointF(16, 4) << QPointF(18, 3)
59 chart.addSeries(series)
60
61
62if __name__ == '__main__':

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected