Increase the dot size

3 次查看(过去 30 天)
ahmad albngali
ahmad albngali 2020-6-16
i used this code
This code was used to find the Relationship of DEq, CTDIvol and scanning length, also the code was used to show the error bar for DEqvalues (The error bars for all DEqvalues are difficult to see in the graph , so I multiplied them by 5)
% x= CTDIv
x=[2.6,5.2,14,23.3,28.3,2.6,5.2,14,23.3,28.3,2.6,5.2,14,23.3,28.3 ];
% y= planar average equilibrium dose (DEq)
y=[3.5,6.9,17.7,29.1,35.2,3.5,6.8,17.5,28.7,34.8,3.4,6.6,16.9,27.6,33.5 ];
% z= scanning length
z=[450,450,450,450,450,350,350,350,350,350,250,250,250,250,250];
% ysd= DEq standard deviation
ysd = [0.047140452, 0.047140452, 0.047140452, 0.124721913, 0.047140452, 0.047140452, 0.047140452, 0.047140452, 0.124721913, 0.124721913, 0.047140452, 0.047140452, 0.047140452, 0.124721913, 0.124721913];
xr = reshape(x, [], 3);
yr = reshape(y, [], 3);
zr = reshape(z, [], 3);
ysdr = reshape(ysd, [], 3)*5;
%for visualisation
figure
hold on
for k1 = 1:size(xr,2)
for k2 = 1:size(xr,1)
plot3((xr(k2,k1)*[1 1]), (yr(k2,k1)+ysdr(k2,k1)*[-1 1]), (zr(2,k1)*[1 1]), '-r')
plot3((xr(k2,k1)), (yr(k2,k1)), (zr(2,k1)), '.r')
end
end
hold off
view(-60,30)
grid on
the Error bars are too small in the figher as i have attached . and i want to Increase the dot size and fit a grid or lines to the dots ??
  2 个评论
John D'Errico
John D'Errico 2020-6-22
编辑:John D'Errico 2020-6-22
I'm so confused. Could artificially increasing dot size have resulted in the dot-com bust? ;-)
(Sorry, really.)

请先登录,再进行评论。

回答(1 个)

Steven Lord
Steven Lord 2020-6-16
Specify the MarkerSize name-value pair argument when you call plot3. See the "Customize Color and Marker" example on that page.
  2 个评论
ahmad albngali
ahmad albngali 2020-6-22
hi i try to do it but i cant
could you please show me hoe i do it in my examble ( in my code )
Steven Lord
Steven Lord 2020-6-22
plot3((xr(k2,k1)), (yr(k2,k1)), (zr(2,k1)), '.r', 'MarkerSize', 20)

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Numerical Integration and Differential Equations 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by