Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QwtPlotGappedCurve: Include the last point in the plot #2678

Conversation

riccioclista
Copy link
Contributor

@riccioclista riccioclista commented Nov 1, 2017

The last line in QwtPlotGappedCurve is omitted, which leaves the graph unfinished as can be seen in this graph of PMax (CP History):
screenshot from 2017-10-31 11-34-46

Extending the upper bound to include all data points fixes this.
QwtPlotGappedCurve is also used for the power plot in AllPlot. However, the effect on AllPlot is minimal (if not even beneficial):
lastptinclcompare

@riccioclista riccioclista force-pushed the fix_QwtPlotGappedCurve_upper_bound branch from b334e79 to 16f4b9a Compare July 22, 2018 09:24
@riccioclista riccioclista force-pushed the fix_QwtPlotGappedCurve_upper_bound branch from 16f4b9a to 90688f2 Compare August 15, 2018 20:01
@amtriathlon amtriathlon added this to the 3.6 milestone Apr 1, 2020
@amtriathlon amtriathlon self-requested a review April 1, 2020 16:01
Copy link
Member

@amtriathlon amtriathlon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can reproduce the issue with Measures, which also use a gapped curve, and verified this PR solves it.
It seems save after inspecting the code.
Thanks for your contribution!

@amtriathlon amtriathlon merged commit 685c176 into GoldenCheetah:master Apr 1, 2020
human705 pushed a commit to human705/GoldenCheetah that referenced this pull request May 13, 2020
…#2678)

Also solves the same issue is present when plotting Measures in Trends.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants