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.
colorbar with numbers/values not visible
6 views (last 30 days)
Show older comments
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
Answers (0)
See Also
Categories
Find more on Annotations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!