MATLAB: Removing Primary Tick Marks from Secondary Axis Using Plotyy

MATLABplotyysecondary axistick marks

I am trying to plot two sets of data using plotyy. Matlab automatically puts the tickmarks for the primary axis (left side) onto the secondary axis (right side). This makes the secondary axis difficult to read. How do I remove the primary ticks from the secondary axis?

Best Answer

Never mind, I figured it out. You have to set the 'Box' property to 'Off' for the primary axis.