mtex-toolbox / mtex

MTEX is a free Matlab toolbox for quantitative texture analysis. Homepage:
http://mtex-toolbox.github.io/
GNU General Public License v2.0
281 stars 185 forks source link

Pole figures at high point counts #138

Closed jhiscocks closed 8 years ago

jhiscocks commented 8 years ago

I've noticed an issue with plotPDF at high point numbers. My EBSD data includes a total of 333468 points, and is of the magnesium symmetry

>> CS = grains.CS
 CS = crystalSymmetry (show methods, plot)

  mineral        : Magnesium        
  color          : light blue       
  symmetry       : 6/mmm            
  a, b, c        : 3.2, 3.2, 5.2    
  reference frame: X||a*, Y||b, Z||c)

First I enter my data using the import wizard, and it looks good when I plot it.

Then I define the pole figures I want using

h=[Miller(0,0,1,ebsd('Magnesium').CS), Miller(1,0,0,ebsd('Magnesium').CS)];

and finally I plot the pole figures using

plotPDF(ebsd('Magnesium').orientations,h,'points',10000,'antipodal')

If I plot 8300 points pastedimage1

if I plot 8400 points pastedimage2

if I plot 30 000 points pastedimage3

So it looks like this is something to do with very large point quantities, which is probably only an issue when working with EBSD data.

ralfHielscher commented 8 years ago

I guess you are asking about the markerSize. You can set it explicitly by

plotPDF(ebsd('Magnesium').orientations,h,'points',10000,'MarkerSize',10)

Change the number to adjust the marker size to your needs.

Ralf

jhiscocks commented 8 years ago

That's interesting, if you don't specify a marker size, then with a few points you get small markers, and with many points you get larger markers. Thank you for showing me how to fix this.

Jessica