mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 08:47:28 +01:00
[python] matplotlib: make pyplot a submodule of matplotlib
This commit is contained in:
24
python/port/mod/matplotlib/pyplot/plot_view.h
Normal file
24
python/port/mod/matplotlib/pyplot/plot_view.h
Normal file
@@ -0,0 +1,24 @@
|
||||
#ifndef PYTHON_MATPLOTLIB_PLOT_VIEW_H
|
||||
#define PYTHON_MATPLOTLIB_PLOT_VIEW_H
|
||||
|
||||
#include <apps/shared/labeled_curve_view.h>
|
||||
#include "plot_store.h"
|
||||
|
||||
namespace Matplotlib {
|
||||
|
||||
class PlotView : public Shared::LabeledCurveView {
|
||||
public:
|
||||
PlotView(PlotStore * s) : Shared::LabeledCurveView(s), m_store(s) {}
|
||||
void drawRect(KDContext * ctx, KDRect rect) const override;
|
||||
private:
|
||||
void traceDot(KDContext * ctx, KDRect r, PlotStore::Dot dot) const;
|
||||
void traceSegment(KDContext * ctx, KDRect r, PlotStore::Segment segment) const;
|
||||
void traceRect(KDContext * ctx, KDRect r, PlotStore::Rect rect) const;
|
||||
void traceLabel(KDContext * ctx, KDRect r, PlotStore::Label label) const;
|
||||
PlotStore * m_store;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user