簡體   English   中英

Matlab中的3D繪圖

[英]3D plotting in Matlab

我正在使用子圖,然后使用沖浪功能在Matlab中以3D形式生成圖像。 如何擺脫軸和軸的網格線並將顏色更改為全黃或全綠或類似的顏色? 謝謝。

看看AXES PROPERTIES 一旦使用h=gca獲得軸的句柄,就可以執行set(h,'propertyName','propertyValue',...)來修改軸的所有屬性。

這是一個示例(請注意,您也可以修改圖形或曲面的figure properties例如,在Matlab幫助中查看figure properties )。

%# 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)

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM