Ticket #4008 (closed: fixed)

Opened 9 years ago

Last modified 5 years ago

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

argcrop2a.nxs (91.9 KB) - added by Karl Palmen 9 years ago.
4x4 plot for use with this ticket
argcrop2apt.nxs (91.9 KB) - added by Karl Palmen 9 years ago.
argcrop2a after the ConvertToPointData algoithm has been applied.

Change History

comment:1 Changed 9 years ago by Karl Palmen

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?

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

4x4 plot for use with this ticket

Changed 9 years ago by Karl Palmen

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:4 Changed 9 years ago by Karl Palmen

  • Status changed from new to accepted

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

comment:7 Changed 9 years ago by Jean Bilheux

  • Status changed from verifying to closed

Works perfectly for me.

comment:8 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 4855

Note: See TracTickets for help on using tickets.