我正在使用子图,然后使用冲浪功能在Matlab中生成3D图像.如何摆脱轴和轴的网格线并将颜色更改为全黄色或全绿色或类似的东西?谢谢.
看看AXES PROPERTIES.一旦获得了使用轴的句柄h=gca,就可以执行`set(h,'propertyName','propertyValue',...)来修改轴的所有属性.
这是一个例子(请注意,您也可以修改图形或表面的属性 - figure properties例如,在Matlab帮助中查看).
%# create a figure
fh = figure; %# store the figure handle to modify figure properties later
%# plot some data
ph = plot(randn(10,3)); %# this returns three handles, one to each line
%# get the axes handle
ah = gca;
%# hide the axes
set(ah,'Visible','off')
%# show the axes again
set(ah,'Visible','on');
%# change the color to green
set(ah,'Color','g');
%# change the figure color to red (yes, ugly)
set(fh,'Color','r')
%# change the line thickness of the first two lines
set(ph(1:2),'LineWidth',2)
Run Code Online (Sandbox Code Playgroud)