mirror of
https://github.com/jkriege2/JKQtPlotter.git
synced 2025-01-13 17:22:11 +08:00
17 lines
710 B
Markdown
17 lines
710 B
Markdown
# Example (JKQTPlotter): Simple Graph Labels Example {#JKQTPlotterGraphLabels}
|
|
This project (see [`graphlabels`](https://github.com/jkriege2/JKQtPlotter/tree/master/examples/graphlabels) demonstrates the use of JKQTPXYGraphLabels to add labels to the datapoints of a graph.
|
|
|
|
The source code of the main application is (see [`graphlabels.cpp`](https://github.com/jkriege2/JKQtPlotter/tree/master/examples/graphlabels/graphlabels.cpp):
|
|
```.cpp
|
|
```
|
|
|
|
|
|
The result looks like this:
|
|
|
|
![graphlabels](https://raw.githubusercontent.com/jkriege2/JKQtPlotter/master/screenshots/graphlabels.png)
|
|
|
|
or this:
|
|
|
|
![graphlabels_hor](https://raw.githubusercontent.com/jkriege2/JKQtPlotter/master/screenshots/graphlabels_hor.png)
|
|
|