mantidproject / mantid

Main repository for Mantid code
https://www.mantidproject.org
GNU General Public License v3.0
211 stars 123 forks source link

Add option to set Y-axis label and values to ConjoinWorkspace #5824

Closed martyngigg closed 7 years ago

martyngigg commented 12 years ago

This issue was originally TRAC 4978

Both Rob (OFFSPEC) and Pascal (WISH) have cause to create a 2D plot from a series of single-spectrum workspaces. For the 2D plot work correctly the data needs to be joined together (which can be done with ConjoinWorkspaces) and the Y-Axis of the workspace needs to be able to be specified by the user.

This can be done in a long winded manner with CreateWorkspace but we are almost there with Conjoin, we just need some thing that can also take in a set of axis values and a label.

martyngigg commented 10 years ago

@NickDraper (2012-04-30T14:13:06): Moved at end of release 2.1


@martyngigg (2012-05-03T15:28:56): Note: Spencer would also find this algorithm very useful. We should consider doing it for the next release


@NickDraper (2012-08-10T12:43:43): Moved at the end of release 2.2


@NickDraper (2012-10-28T11:38:54): Moved to milestone 2.4


@KarlPalmen (2012-11-14T10:51:31): One possibility may be give each of the one spectra workspaces the desired Y-axis name when it is created then just use ConjoinWorkspace.

Another possibility is an algorithm to change the Y axis name of a workspace, which could be applied after using conjoin.

The latter possibility, suggests the question why change the Y axis name of any 2D workspace? Should this be allowed for any 2D workspace of only a certain class of 2D workspace?


@KarlPalmen (2012-12-20T16:30:50): Perhaps, we could add to optional properties VerticalAxisUnit and VerticalAxisValues of CreateWorkspace to ConjoinWorkspace to redefine the Y-axis.


@KarlPalmen (2012-12-20T16:40:47): ... and YUnitLabel not found in wiki for CreateWorkspace.


@NickDraper (2013-07-26T13:54:59): Moved to backlog at the code freeze for R2.6


@NickDraper (2014-02-14T11:04:56): Bulk move to assigned at the introduction of the triage step

martyngigg commented 9 years ago

http://trac.mantidproject.org/mantid/raw-attachment/ticket/4978/2D_TimeSeries.png 2D_TimeSeries.png (uploaded by @martyngigg on 2012-03-14T16:21:50)


KarlPalmen commented 8 years ago

After a chat with Martyn, it was decided that an option of specifying the Y-axis be added to ConjoinWorkspace.