You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am attempting to simplify the presentation of my rotation data from a plot of every single point to a connected arrow hitting every, say, tenth point.
I'm using the orientation measured along a line through a selected deformed grain. An example snippet is below:
But when you run the code all of the arrows overshoot, as shown in the image below.
I was playing around in debug mode, trying to see how the arrows were drawn, and I stumbled across a fix: if one zooms in after the first point is drawn (so breakpoint at the beginning of the for loop, then zoom in on the first plotted point, then run the loop), the issue resolved. The lines draw properly.
This is where it gets stranger. When I repeated the test, I didn't zoom in quite as much and some of the arrows drew incorrectly. I tried to come up with a repeatable measurement, so I zoomed using MATLAB's figure zoom button in the top right corner of the figure:
Using that, I found that the arrows will appear to draw correctly if one clicks zoom 6x after the IPDF has been created, but before drawing any arrows. At 5x, errors will exist but will be small. At 4x, they will grow larger. So on until the no magnification case presented above. See images below. Also note that all images have been zoomed in to the same scale after all arrows were drawn for comparability.
5x:
4x:
I'm using MTEX 5.0.3.
The text was updated successfully, but these errors were encountered:
I am attempting to simplify the presentation of my rotation data from a plot of every single point to a connected arrow hitting every, say, tenth point.
I'm using the orientation measured along a line through a selected deformed grain. An example snippet is below:
But when you run the code all of the arrows overshoot, as shown in the image below.
I was playing around in debug mode, trying to see how the arrows were drawn, and I stumbled across a fix: if one zooms in after the first point is drawn (so breakpoint at the beginning of the for loop, then zoom in on the first plotted point, then run the loop), the issue resolved. The lines draw properly.
This is where it gets stranger. When I repeated the test, I didn't zoom in quite as much and some of the arrows drew incorrectly. I tried to come up with a repeatable measurement, so I zoomed using MATLAB's figure zoom button in the top right corner of the figure:
Using that, I found that the arrows will appear to draw correctly if one clicks zoom 6x after the IPDF has been created, but before drawing any arrows. At 5x, errors will exist but will be small. At 4x, they will grow larger. So on until the no magnification case presented above. See images below. Also note that all images have been zoomed in to the same scale after all arrows were drawn for comparability.
5x:
4x:
I'm using MTEX 5.0.3.
The text was updated successfully, but these errors were encountered: