mirror of
https://github.com/jkriege2/JKQtPlotter.git
synced 2024-11-15 10:05:47 +08:00
bugfix in JKQTPfilledCurveYGraph and example for JKQTPfilledCurveYGraph
This commit is contained in:
parent
49bac25809
commit
5e0471d0eb
@ -340,7 +340,7 @@ void JKQTPfilledCurveYGraph::draw(JKQTPEnhancedPainter& painter) {
|
||||
} else {
|
||||
if (xok&&yok) {
|
||||
if (drawLine) pl.moveTo(x,y);
|
||||
pf.moveTo(x, y0);
|
||||
pf.moveTo(x0, y);
|
||||
pf.lineTo(x, y);
|
||||
//xold=x;
|
||||
yold=y;
|
||||
|
BIN
screenshots/jkqtplotter_simpletest_filledgraphs_yaxis.png
Normal file
BIN
screenshots/jkqtplotter_simpletest_filledgraphs_yaxis.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 30 KiB |
@ -74,6 +74,10 @@ The result looks like this:
|
||||
|
||||
![jkqtplotter_simpletest_filledgraphs](https://raw.githubusercontent.com/jkriege2/JKQtPlotter/master/screenshots/jkqtplotter_simpletest_filledgraphs.png)
|
||||
|
||||
If you use `JKQTPfilledCurveYGraph` instead of `JKQTPfilledCurveXGraph`, the curve will not be filled until the y=0-axis, but until the x=0-axis. Of course you will also have to swap the x- and y-data columns. The result will look like this:
|
||||
|
||||
![jkqtplotter_simpletest_filledgraphs_yaxis](https://raw.githubusercontent.com/jkriege2/JKQtPlotter/master/screenshots/jkqtplotter_simpletest_filledgraphs_yaxis.png)
|
||||
|
||||
|
||||
|
||||
[Back to JKQTPlotter main page](https://github.com/jkriege2/JKQtPlotter/)
|
Loading…
Reference in New Issue
Block a user