Ticket #9738 (closed: fixed)

Opened 6 years ago

Last modified 5 years ago

Plot legend shows very un-rounded values for S(Q,w)

Reported by: Samuel Jackson Owned by: Dan Nixon
Priority: minor Milestone: Release 3.3
Component: GUI Keywords:
Cc: Blocked By:
Blocking: Tester: Harry Jeffery

Description (last modified by Samuel Jackson) (diff)

Reported by Vicky Garcia-Sakai. When plotting an S(Q,w) the legend fills the entire plot with the un-rounded Q values for each spectrum. This is rather annoying as the first thing you need to do is move or delete it to view the data.

Investigate if this could be rounded to a more sensible value.

Attachments

sqw_rounding.png (563.2 KB) - added by Samuel Jackson 6 years ago.
Screenshot showing the reported issue.

Change History

comment:1 Changed 6 years ago by Samuel Jackson

  • Description modified (diff)

comment:2 Changed 6 years ago by Samuel Jackson

  • Milestone changed from Backlog to Release 3.3

comment:3 Changed 6 years ago by Martyn Gigg

  • Status changed from new to assigned

A screenshot would be helpful if you have one.

Changed 6 years ago by Samuel Jackson

Screenshot showing the reported issue.

comment:4 Changed 6 years ago by Nick Draper

  • Owner changed from Samuel Jackson to Dan Nixon

comment:5 Changed 6 years ago by Dan Nixon

  • Status changed from assigned to inprogress

Added rounding to numeric axis

Use boost::format instead of boost::lexical_cast to avoid precision errors and remove training zeros

Refs #9738

Changeset: 4abbff05d41466a535cf8ac0cce6d5b6debf9422

comment:6 Changed 6 years ago by Dan Nixon

  • Status changed from inprogress to verify
  • Resolution set to fixed

To test:

  • Follow steps to create an S(Q,w) reduction
  • Plot the *_sqw workspace
  • Ensure that spectra legend values are nicely rounded
Last edited 6 years ago by Dan Nixon (previous) (diff)

comment:7 Changed 6 years ago by Harry Jeffery

  • Status changed from verify to verifying
  • Tester set to Harry Jeffery

comment:8 Changed 6 years ago by Harry Jeffery

  • Status changed from verifying to closed

Merge remote-tracking branch 'origin/bugfix/9738_fix_plot_legend_sigfig_rounding'

Full changeset: 1371a810cd97171e0c21c5cc9f797067506e0d3c

comment:9 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 10580

Note: See TracTickets for help on using tickets.