Skip to content

Conversation

KyleQianliMa
Copy link
Contributor

@KyleQianliMa KyleQianliMa commented Oct 11, 2024

Description of work

This PR adds a crosshair toggle functionality in mantidplot.
EWM 5302

Summary of work

After loading a workspace in mantid. Right click on the workspace -> plot data. At the upper right corner there is a '+' option which enables a crosshair being drawn on the plot. Current color option of the crosshair is set to red to distinguish black background if one choose to do color contour plot.

Further detail of work

To test:

Load data into mantid workspace. Right click on the workspace -> plot. Toggle on the crosshair option in the upper right panel with an icon of '+'.


Reviewer

Please comment on the points listed below (full description).
Your comments will be used as part of the gatekeeper process, so please comment clearly on what you have checked during your review. If changes are made to the PR during the review process then your final comment will be the most important for gatekeepers. In this comment you should make it clear why any earlier review is still valid, or confirm that all requested changes have been addressed.

Code Review

  • Is the code of an acceptable quality?
  • Does the code conform to the coding standards?
  • Are the unit tests small and test the class in isolation?
  • If there is GUI work does it follow the GUI standards?
  • If there are changes in the release notes then do they describe the changes appropriately?
  • Do the release notes conform to the release notes guide?

Functional Tests

  • Do changes function as described? Add comments below that describe the tests performed?
  • Do the changes handle unexpected situations, e.g. bad input?
  • Has the relevant (user and developer) documentation been added/updated?

Does everything look good? Mark the review as Approve. A member of @mantidproject/gatekeepers will take care of it.

Gatekeeper

If you need to request changes to a PR then please add a comment and set the review status to "Request changes". This will stop the PR from showing up in the list for other gatekeepers.

@sf1919 sf1919 added this to the Release 6.12 milestone Oct 14, 2024
@KyleQianliMa KyleQianliMa added GUI Issues and pull requests specific to the Mantid Workbench GUI. ORNL Team Issues and pull requests managed by the ORNL development team labels Oct 15, 2024
Copy link
Contributor

@rboston628 rboston628 left a comment

Choose a reason for hiding this comment

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

Works as expected. Where the crosshairs line up matches the printed mouse location. Good work.
image
Screenshot from 2024-10-15 11-47-37

@peterfpeterson peterfpeterson merged commit e46f3ab into main Oct 22, 2024
10 checks passed
@peterfpeterson peterfpeterson deleted the crosshair branch October 22, 2024 14:36
@KyleQianliMa KyleQianliMa restored the crosshair branch October 22, 2024 15:05
@KyleQianliMa KyleQianliMa deleted the crosshair branch October 22, 2024 19:05
@jhaigh0
Copy link
Contributor

jhaigh0 commented Feb 24, 2025

During smoke testing for release 6.12, we've found issues with the crosshair option.

  • Works incorrectly for tiled plots (when hovering over any plot the crosshair only displayed in the lower-right plot.
  • Shouldn't be enabled for 3D plots
  • If you have the crosshair activated and change the normalisation (via the right-click menu) you get a crash. It also seems to block the axes rescaling in this case?

@sf1919
Copy link
Contributor

sf1919 commented Feb 24, 2025

This was not included in manual testing so the manual testing instructions need to be updated too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GUI Issues and pull requests specific to the Mantid Workbench GUI. ORNL Team Issues and pull requests managed by the ORNL development team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants