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

Error bars in pulsed measurement not correctly displayed when x-axis is transformed to logscale #381

Open
jochen-scheuer opened this issue May 18, 2018 · 1 comment
Assignees

Comments

@jochen-scheuer
Copy link
Contributor

What is affected by this bug?

Error bars in pulsed measurement not correctly displayed when x-axis is transformed to logscale

When does this occur?

Always when changing the plot to log(x) in gui.

Where on the platform does it happen?

In pulsed measurement.

How do we replicate the issue?

Measuring a logarithmic decay. Right click on the graph and choose Plot options --> Transforms --> lox(x).

The error bars are displayed at the wrong position

Expected behavior (i.e. solution)

error bars should be transformed aswell, such that they match the values

Other Comments

In linear scale the error bars match the measurement points:

grafik

In log(x) the errorbars are not transformed
grafik

@Neverhorst
Copy link
Member

Apparently the pyqtgraph ErrorBarItem does not support log scaling and apparently this issue has been reported and known since 2014. 😒
So either one could modify it into our own version of ErrorBarItem by implementing

ErrorBarItem.setLogMode(x, y)
ErrorBarItem.paint()

or we need to do some ugly GUI module transformation that sets the log mode in the PlotItem and transforms only the error data points accordingly.
A pure logic solution (like with FFT and Delta) is not possible if you want to have the logarithmic axis scaling in the plot.

Given these choices I would prefer the ErrorBarItem mod.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants