Ticket #3494 (closed: fixed)
Mantid cannot plot 2 Workspaces with different units together
Reported by: | Wenduo Zhou | Owned by: | Russell Taylor |
---|---|---|---|
Priority: | major | Milestone: | Iteration 30 |
Component: | MantidPlot | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | Tester: | Janik Zikovsky |
Description
I tried to plot 2 Workspaces (each has one spectral) together. They were without unit. And they have different range on x-axis. I could plot each of them separately. But I failed to plot them together. I tried dragging one onto another. I tried selecting both of them and plotting the spectral. Neither worked.
Attachments
Change History
comment:1 Changed 9 years ago by Wenduo Zhou
In order to reproduce what I found, please (1) use LoadAscii() to load goft.dat. (2) run importNomadIDLData.py. It will read NOM_1818ftf.gr stored in the same directory, and create a Workspace for it.
comment:2 Changed 9 years ago by Russell Taylor
This is to do with plotting curves from workspaces that have different units on top of one another. Look at Graph.cpp line 3286. If the units don't match it returns NULL from here which results in the curve (silently) not being added.
We should let people make nonsense plots if they want to! (and I'm sure what Wenduo was trying to do wasn't nonsense).
comment:3 Changed 9 years ago by Russell Taylor
- Status changed from new to accepted
- Owner set to Russell Taylor
comment:5 Changed 9 years ago by Russell Taylor
- Status changed from accepted to verify
- Resolution set to fixed
- Component changed from Mantid to MantidPlot
- Summary changed from Mantid cannot plot 2 Workspaces together to Mantid cannot plot 2 Workspaces with different units together
comment:6 Changed 9 years ago by Janik Zikovsky
- Status changed from verify to verifying
- Tester set to Janik Zikovsky