Skip to content

Apply the log mode to the displayed dataset, export the mapped one#2188

Closed
StSav012 wants to merge 1 commit intopyqtgraph:masterfrom
StSav012:patch-3
Closed

Apply the log mode to the displayed dataset, export the mapped one#2188
StSav012 wants to merge 1 commit intopyqtgraph:masterfrom
StSav012:patch-3

Conversation

@StSav012
Copy link
Copy Markdown
Contributor

@StSav012 StSav012 commented Feb 2, 2022

My next try to export the actual data plotted in log mode. That's what #2187 should have been.

I believe that the log mode is something of displaying, not of the actual data. So, I moved the applyLogMapping function call down to self._datasetDisplay.

Next, I return the data saved into self._datasetMapped in PlotDataItem.getData function. It's a kind of expected behavior when it comes to returning the data, not the position of screen points.

I realize that it better be two tiny commits.

My next try to export the actual data plotted in log mode. It should be pyqtgraph#2187.

I believe that the log mode is something of displaying, not of the actual data. So, I moved the `applyLogMapping` function call down to `self._datasetDisplay`.

Next, I return the data saved into `self._datasetMapped` in `PlotDataItem.getData` function. It's a kind of expected behavior when it comes to returning the data, not the position of screen points.

I realize that it better be two tiny commits.
@StSav012
Copy link
Copy Markdown
Contributor Author

StSav012 commented Mar 3, 2022

The tests don't seem to be adequate. My code is fine, the tests are not. Please take a look at the tests.

The test do expect the data to change when the log mode is on. I contradict the behavior.

StSav012 added a commit to StSav012/pyqtgraph that referenced this pull request Mar 24, 2022
@StSav012 StSav012 closed this Mar 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant