Open creuzige opened 3 years ago
Just a hint where the problem may be situated:
this not happen on gridded polefigures such as the ptx dataset (72-by-51) since this check here:
https://github.com/mtex-toolbox/mtex/blob/a8b2d20dddb17fa74b4463c1aa2b90655dd78518/geometry/%40vector3d/smooth.m#L48
doesn't turn out to be true and the normal contourf()
cuts the data correctly. However it only works on a grid.
In the other case, 'cutOutSide'
in vector3d/interp
should actually take care of that case but doesn't seem to do it right.
Uncommenting this linehttps://github.com/mtex-toolbox/mtex/blob/a8b2d20dddb17fa74b4463c1aa2b90655dd78518/geometry/%40vector3d/interp.m#L80 and comment the previous one gives me the following result which may be better - no idea when we'd need the all()
.
Cheers, Rüdiger
What do you want to do? I have a series of partial pole figures, and I wanted to plot them using filled contours. Unfortunately the data from the points with the largest polar angles (tilt) extend out to the boundaries of the plot, which looks a little wrong.
What data do you have?
CrMnFeNi_23_12_20_20_111.txt
What code do you use? Please provide minimalist code with code in the following form
What result do you get Here's the plot as discrete points:
Here's the plot as a filled contour
What result do you expect Is it possible to set a range that the filled contour function will not try to plot over? I'm thinking something similar to the non-convex data sets example in EBSD grain reconstruction (https://mtex-toolbox.github.io/GrainReconstruction.html)
What MTEX version do you use? Mtex 5.3