Go to file
openKylinBot 664682f073 Import Debian changes 5.92.0-ok1
kplotting (5.92.0-ok1) yangtze; urgency=medium

  * Build for openKylin.
2022-05-16 16:02:21 +08:00
LICENSES Import Upstream version 5.92.0 2022-05-16 16:02:21 +08:00
autotests Import Upstream version 5.92.0 2022-05-16 16:02:21 +08:00
debian Import Debian changes 5.92.0-ok1 2022-05-16 16:02:21 +08:00
examples Import Upstream version 5.92.0 2022-05-16 16:02:21 +08:00
src Import Upstream version 5.92.0 2022-05-16 16:02:21 +08:00
.git-blame-ignore-revs Import Upstream version 5.92.0 2022-05-16 16:02:21 +08:00
.gitignore Import Upstream version 5.92.0 2022-05-16 16:02:21 +08:00
.gitlab-ci.yml Import Upstream version 5.92.0 2022-05-16 16:02:21 +08:00
.kde-ci.yml Import Upstream version 5.92.0 2022-05-16 16:02:21 +08:00
CMakeLists.txt Import Upstream version 5.92.0 2022-05-16 16:02:21 +08:00
KF5PlottingConfig.cmake.in Import Upstream version 5.92.0 2022-05-16 16:02:21 +08:00
README.md Import Upstream version 5.92.0 2022-05-16 16:02:21 +08:00
metainfo.yaml Import Upstream version 5.92.0 2022-05-16 16:02:21 +08:00

README.md

KPlotting

Data plotting

Introduction

KPlotWidget is a QWidget-derived class that provides a virtual base class for easy data-plotting. The idea behind KPlotWidget is that you only have to specify information in "data units"; i.e., the natural units of the data being plotted. KPlotWidget automatically converts everything to screen pixel units.

KPlotWidget draws X and Y axes with tick marks and tick labels. It automatically determines how many tick marks to use and where they should be, based on the data limits specified for the plot. You change the limits by calling setLimits(double x1, double x2, double y1, double y2).

Data to be plotted are stored using the KPlotObject class. KPlotObject consists of a QList of QPointF's, each specifying the X,Y coordinates of a data point. KPlotObject also specifies the "type" of data to be plotted (POINTS or CURVE or POLYGON or LABEL).