Skip to content

silx.gui.plot: Fixed axis scales#4643

Open
t20100 wants to merge 3 commits into
mainfrom
fix-axis-scales
Open

silx.gui.plot: Fixed axis scales#4643
t20100 wants to merge 3 commits into
mainfrom
fix-axis-scales

Conversation

@t20100

@t20100 t20100 commented Jun 19, 2026

Copy link
Copy Markdown
Member

PR summary

Some rework and fix spotted in plot axes scale support:

AI Disclosure

  • No AI used
  • AI tool(s) ... used for ...


_sigLogarithmicChanged = qt.Signal(bool)
"""Signal emitted when axis scale has changed to or from logarithmic"""

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

legacy unused signal

for item in plot.getItems():
item._updated()
plot._invalidateDataRange()
plot._setDirtyPlot()

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

make sure plot is updated when changing axis scale

roi=True,
mask=True,
fit=False,
axisScales=False,

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Moved as last argument to be fully backward compatible + renamed to be inline with other argument names

Comment on lines +781 to +786
def getXAxisScaleButton(self) -> PlotToolButtons.XAxisScaleToolButton:
return self._xAxisScaleButton

def getYAxisScaleButton(self) -> PlotToolButtons.YAxisScaleToolButton:
return self._yAxisScaleButton

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Make attributes added in #4529 private and expose them through methods

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