mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 08:47:28 +01:00
[pyton/matplotlib] Support plot
This commit is contained in:
committed by
Émilie Feral
parent
a6773ad73b
commit
a3b1b51f75
@@ -14,6 +14,25 @@ void PlotView::drawRect(KDContext * ctx, KDRect rect) const {
|
||||
for (PlotStore::Dot dot : m_store->dots()) {
|
||||
drawDot(ctx, rect, dot.x(), dot.y(), dot.color());
|
||||
}
|
||||
|
||||
for (PlotStore::Label label : m_store->labels()) {
|
||||
drawLabel(ctx, rect,
|
||||
label.x(), label.y(), label.string(),
|
||||
KDColorBlack,
|
||||
CurveView::RelativePosition::Before,
|
||||
CurveView::RelativePosition::None
|
||||
);
|
||||
}
|
||||
|
||||
for (PlotStore::Segment segment : m_store->segments()) {
|
||||
drawSegment2(
|
||||
ctx, rect,
|
||||
segment.xStart(), segment.yStart(),
|
||||
segment.xEnd(), segment.yEnd(),
|
||||
segment.color()
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user