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

Bug in sphericalRegion (?) #1082

Closed kilir closed 3 years ago

kilir commented 3 years ago

Hi Ralf, the following occurred to me:

cK = HSVDirectionKey(crystalSymmetry('m'))
plot(cK)
Error using surf (line 71)
Z must be a matrix, not a scalar or vector.

Error in vector3d/surf (line 36)
  h(j) = surf(x,y,zeros(size(x)),real(data),'parent',sP(j).hgt,...

Error in Miller/surf (line 16)
[varargout{1:nargout}] = surf@vector3d(m,cdata,varargin{:},m.CS);

Error in vector3d/plot (line 107)
    [varargout{1:nargout}] = v.surf(varargin{:});

Error in directionColorKey/plot (line 61)
      [h,caxes] = plot(v,d,defaultPlotCMD,varargin{:});

which I suspect to happen because the plotting grid comes up with 181x361 - I guess 181x181 should be enough. Using only 'upper' for example works.

Cheers, Rüdiger