Ticket #2378 (closed: fixed)

Opened 10 years ago

Last modified 5 years ago

Add 'Plot Style' to MuonAnalysis Plot Options tab

Reported by: Anders Markvardsen Owned by: Robert Whitley
Priority: major Milestone: Release 2.0
Component: Mantid Keywords:
Cc: Blocked By:
Blocking: Tester: Anders Markvardsen

Description

Add plot option connect line to MuonAnalysis

Appears to be not straightforward to do from python, which is how plots are controlled from MuonAnalysis.

Investigating doing this by from a script window

l=plotSpectrum('b',0) a=l.activeLayer() print dir(a)

However from the list provided by dir(a) there may not be a function exposed to change connection style.

May also be worth surfing the QTI document: http://soft.proindependent.com/doc/manual-en/index.html

May have to change plotSpectrum to take extra arguments to do this (i.e. modifications to mantidplot.py in Code/Mantid/MantidPlot).

Attachments

UDA plot options (revised).png (49.3 KB) - added by Anders Markvardsen 9 years ago.
Plot Options tab revised

Change History

comment:1 Changed 9 years ago by Nick Draper

  • Milestone changed from Iteration 28 to Iteration 29

Bulk move of tickets at the end of iteration 28

comment:2 Changed 9 years ago by Nick Draper

  • Milestone changed from Iteration 29 to Iteration 30

"New" tickets moved at the code freeze of iteration 29

comment:3 Changed 9 years ago by Anders Markvardsen

  • Owner changed from Anders Markvardsen to Robert Whitley
  • Status changed from new to assigned

comment:4 Changed 9 years ago by Nick Draper

  • Milestone changed from Iteration 30 to Iteration 31

Bulk move of tickets to iteration 31 at the iteration 30 code freeze

Changed 9 years ago by Anders Markvardsen

Plot Options tab revised

comment:5 Changed 9 years ago by Anders Markvardsen

  • Priority changed from minor to major
  • Summary changed from Plot option 'connect line' to MuonAnalysis to Add 'Plot Style' to MuonAnalysis Plot Options tab

Replace the 'connect line' tickbox current greyed out with Plot Style combobox as shown in attached file above. (note this is the same combobox you can get by right clicking on a plot then Preperties then click on the item for a curve and look to your bottom left)

Also change title 'Default Plot Style' to 'Default Data Plot Style' since these options are not styles for calculated fitted curves.

I previously found it nontrivial to force a 'style' when initiating a plot from the MuonAnalysis code, however you may find this easy!

comment:6 Changed 9 years ago by Robert Whitley

In [15059]:

Refs #2378. Changed the title to Default Data Plot Style and added a new option in the menu which is connect line. This is a combo box and chooses the style of the plot whether it is line, scatter or line + symbol. (Note: I reorganised the way it looks so that connect line is now the first option on that tab.

comment:7 Changed 9 years ago by Robert Whitley

  • Status changed from assigned to accepted

comment:8 Changed 9 years ago by Robert Whitley

In [15211]:

Refs #2378. Included a plot option style and fit option style to the curves. These can be either line, line + symbol or scatter. There is also some code that relates to ticket #3806. The default style for fitting and data is line. I changed the UI layout to include these new options.

comment:9 Changed 9 years ago by Robert Whitley

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

comment:10 Changed 9 years ago by Robert Whitley

  • Status changed from verify to reopened
  • Resolution fixed deleted

comment:11 Changed 9 years ago by Robert Whitley

In [15283]:

Refs #2378. Plot style should now work with group and not just pair.

comment:12 Changed 9 years ago by Robert Whitley

  • Status changed from reopened to accepted

comment:13 Changed 9 years ago by Robert Whitley

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

comment:14 Changed 9 years ago by Anders Markvardsen

  • Status changed from verify to verifying
  • Tester set to Anders Markvardsen

comment:15 Changed 9 years ago by Anders Markvardsen

  • Status changed from verifying to closed

Looks good

comment:16 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 3225

Note: See TracTickets for help on using tickets.