Clear Filters
Clear Filters

How to make the Y axis line visible when using two axes one for displaying image and the other for plotting?

1 view (last 30 days)
I am using two axes as follows:
handles.axes2=axes('Units','pixels','Position',[58,311,665,191],'ycolor',[.4 .4 .4],'xcolor',[.4 .4 .4],'Color',[ 0.97647 0.89412 0.93333]);
axes('Units','pixels','Position',[60,537,175,22]);
[im, map, alpha] = imread('timer3.png');
f = imshow(im);
set(f, 'AlphaData', alpha);
axis off
axis image
PROBLEM:
The Y axis line (not the Y ticks) becomes invisible in the handles.axes2 plot. I have tried everything including reordering the visual stacking but I got nowhere. Any help would be much appreciated. Thanks .

Answers (0)

Categories

Find more on Graphics Object Properties in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!