colorbar with numbers/values not visible

6 次查看(过去 30 天)
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 中查找有关 Annotations 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by