Ticket #4008 (closed: fixed)
Understand 2D plots in MantidPlot better
Reported by: | Anders Markvardsen | Owned by: | Karl Palmen |
---|---|---|---|
Priority: | minor | Milestone: | Release 2.0 |
Component: | MantidPlot | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | Tester: | Jean Bilheux |
Description
Understand 2D plots in MantidPlot better. If say a 6 by 6 matrix is plotted, does it plot it on a 7 by 7 grid or a 6 by 6 grid.
1) Plot a small histogram workspace say chopped to 4 histograms each containing 4 bins. Since this is a histogram it means the x-values are bin boundaries and 5 x-values are stored. Understand how MantidPlot grids such a dataset for plotting. (Note MantidPlot build on top QTIPLOT, and currently it is not understood how QTIPLOT does the gridding for 2D plots).
2) Take the above workspace and run it through the algorithm ConvertToPointData, which will convert the workspace to a point data workspace, i.e. in this case there will now be 4 x-values instead of 5. 2D plot this workspace and see if what gridding is used.
Attachments
Change History
comment:2 Changed 9 years ago by Karl Palmen
Using the cropworkspace and rebin algorithms, I've created a 4x4 nexus file which I attach.
Changed 9 years ago by Karl Palmen
- Attachment argcrop2a.nxs added
4x4 plot for use with this ticket
Changed 9 years ago by Karl Palmen
- Attachment argcrop2apt.nxs added
argcrop2a after the ConvertToPointData algoithm has been applied.
comment:3 Changed 9 years ago by Karl Palmen
I've also found that the 3D wireplot is a few bins to the right of where it should be. This does not matter for large plots, but for the small ones here the right most part of the wireplot is not shown.
comment:5 Changed 9 years ago by Karl Palmen
- Status changed from accepted to verify
- Resolution set to fixed
comment:6 Changed 9 years ago by Jean Bilheux
- Status changed from verify to verifying
- Tester set to Jean Bilheux
First I need to understand what is meant by a bin. The wikipedia article http://en.wikipedia.org/wiki/Bin_(computational_geometry) does not provide a good introduction and so is confusing. Have you any book or web page that could be of help?