colorbar with numbers/values not visible

조회 수: 10 (최근 30일)
Mary Caroline
Mary Caroline 2014년 3월 3일
댓글: Mary Caroline 2014년 3월 3일
Hello everyone,
Slight problem I created this GUI with surfaces being plotted on my panel. Everything worked fine. I changed couple of details, and now the numbers which indicates the range of the colour bar are in white ( checked by changing the background colour to black), which means non visible on all of the plots. For info, I created a function which plots the surface plot:
function [] = surf_plot(axes_name, x,y,z,x_name,y_name,title_name )
surf(axes_name,x,y,z,'EdgeColor', 'None', 'facecolor', 'interp');
view(axes_name,2);
xlabel(axes_name,x_name);
ylabel(axes_name,y_name);
datacursormode on;
caxis(axes_name,[60,105]);
colorbar1 = colorbar('peer',axes_name ,'EastOutside', 'Box', 'on');
title(axes_name ,title_name);
end
Does anyone knows the command to set the frame, ticks and number of the color bar back to black? ( as I have no clue how I changed it in the first place...)
Cheers
  댓글 수: 1
Mary Caroline
Mary Caroline 2014년 3월 3일
I think it is linked to my GUI directly, as the problem appeared after I changed the background colour of my panels. But I checked the property inspector of the panels having the problem, and cannot get to find the origin of the problem. The axes of the surface are in black, as wished, it is just the edgecolor of the colorbar. I tried to set manually the edgecolor of the colorbar to black, but no success.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by