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

plotSection 'axisAngle' fails for orientation #151

Closed kilir closed 8 years ago

kilir commented 8 years ago

Hi Ralf, with mtex4.3.beta1 plotSection fails with the option 'axisAngle'

plotSection(ebsd('q').orientations,'axisAngle')
  plotting 2000 random orientations out of 126276 given orientations
Undefined function or variable 'project2FR'.

Error in quaternion/project2FundamentalRegion (line 23)
  q = project2FR(q,CS1,idquaternion);

Error in orientation/project2FundamentalRegion (line 17)
  q = project2FundamentalRegion(quaternion(ori),ori.CS,varargin{:});

Error in rotation/subsref (line 22)
      [varargout{1:nargout}] = builtin('subsref',r,s);

Error in axisAngleSections/project (line 58)
        ori = quaternion(ori.project2FundamentalRegion);

Error in ODFSections/plot (line 41)
  [vec,secAngle] = project(oS,ori,varargin{:});

Error in orientation/plotSection (line 24)
oS.plot(ori,varargin{:});

Mtex.4.2.1 also produces an error, athough a different one:

>> plotSection(ebsd('q').orientations,'axisAngle')
  plotting 2000 random orientations out of 126276 given orientations
Index exceeds matrix dimensions.

Error in axisAngleSections/plotSection (line 86)
        set(ax,'xlim',bounds([1,3]),'ylim',bounds([2,4]))

Error in ODFSections/plot (line 59)
    plotSection(oS,mtexFig.gca,s,iv,secData,varargin{:});

Error in orientation/plotSection (line 24)
oS.plot(ori,varargin{:});

Cheers, Rüdiger

ralfHielscher commented 8 years ago

Hi Rüdiger,

if you click 2929c2d you see the change required. Thank you for reporting this.

Ralf.

kilir commented 8 years ago

Thanks Ralf, that was fast. Cheers, Rüdiger