Issue with slanted y-axis ticks when using UIAxes component in app designer.
Hi,
I’m attempting to create a MATLAB app that displays a 2D plot but I’m intermittently having issues with the Y-axis tick when inserting a UIAxes plot.
It only seems to happen for certain combinations of x and y data. My guess is it has something to do with how the UIAxes supports all 3 axis. For some reason there isn’t an option to lock the UIAxes into a 2d format what I can tell.
I’ve tried programmatically resetting the viewing angle after plotting but that doesn’t seem to fix it.
Here is the code I’m using to plot:
plot(Ax,X,Y,’-k’);
view(Ax, 0, 90);
grid(Ax,’minor’);
Any help would be much appreciated.Hi,
I’m attempting to create a MATLAB app that displays a 2D plot but I’m intermittently having issues with the Y-axis tick when inserting a UIAxes plot.
It only seems to happen for certain combinations of x and y data. My guess is it has something to do with how the UIAxes supports all 3 axis. For some reason there isn’t an option to lock the UIAxes into a 2d format what I can tell.
I’ve tried programmatically resetting the viewing angle after plotting but that doesn’t seem to fix it.
Here is the code I’m using to plot:
plot(Ax,X,Y,’-k’);
view(Ax, 0, 90);
grid(Ax,’minor’);
Any help would be much appreciated. Hi,
I’m attempting to create a MATLAB app that displays a 2D plot but I’m intermittently having issues with the Y-axis tick when inserting a UIAxes plot.
It only seems to happen for certain combinations of x and y data. My guess is it has something to do with how the UIAxes supports all 3 axis. For some reason there isn’t an option to lock the UIAxes into a 2d format what I can tell.
I’ve tried programmatically resetting the viewing angle after plotting but that doesn’t seem to fix it.
Here is the code I’m using to plot:
plot(Ax,X,Y,’-k’);
view(Ax, 0, 90);
grid(Ax,’minor’);
Any help would be much appreciated. app designer, plotting MATLAB Answers — New Questions