matlab - Octave subplots with plotyy, right Y-axis stacking -


i having issue octave plotting, right axis in second plot of subplot using plotyy has overlapping tick marks.

plot example

enter image description here

here snip of code, let me know if need more of code solve issue:

figure(4)  subplot(2,1,1)  [hay,hline1,hline2] = plotyy(t_i,y_gc(:,1),t_i,y_pos);  ylabel(hay(1),'cube angular velocity (rad/s)') % left y-axis  ylabel(hay(2),'cube angular position (rad)') % right y-axis  title('cube response')  xlabel('time (sec)')  subplot(2,1,2)  [hax,hline3,hline4] = plotyy(t_i(1:end-1),y_vel(1:end-1),t_i(1:end-1),y_torque);  ylabel(hax(1),'motor-a angular velocity (rad/s)') % left y-axis  ylabel(hax(2),'motor torque (mnm)') % right y-axis  title('motor response')  xlabel('time (sec)')

i don't think makes difference using gnuplot adding: graphics_toolkit("gnuplot")


Comments

Popular posts from this blog

libGdx unable to find files in android application data directory -

php - Webix Data Loading from Laravel Link -

python - Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] error -