Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

New to MATLAB?

Thread Subject:
Ticks disappearing in matlab plot

Subject: Ticks disappearing in matlab plot

From: Jose Miguel

Date: 26 Jun, 2012 17:24:07

Message: 1 of 2

Dear all,

I'm using the drawShadedRectangle option to fill the box of several plots,

When using it, there's a problem, similar to know transparecy problems in matlab plots.
The ticks of the x and y axis disappear (just the ticks, not the labels or the box).

Would it be possible to any of you to give me hand, either through some code or doing some modification in the drawShadedRectablge function?

Thank you very much,
Best regards

Subject: Ticks disappearing in matlab plot

From: Nathan Orloff

Date: 26 Jun, 2012 22:07:09

Message: 2 of 2

Make sure you are referring to the correct axes handles. It could be that the function you are referring to is creating a new set of axes that are laid over the ones you are referring to. As a consequences your ticks disappear.

That's my guess anyway. I had a similar problem using plotyy.

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us