0

Using the following, I am able to get a 3D scatter plot in Octave:

figure()
scatter3( ...
    plot_data(:, 2),  ...
    plot_data(:, 3),  ...
    plot_data(:, 4), ...
    % Marker size ...
    9, ...
    % Color data using colormap ...
    plot_data(:, 1)
    );
colormap(copper())
shg

However, the markers are not filled. Alternatively, I could increase the linewidth but I have no idea how to do this in Octave when I am using colormap syntax.

How do I adjust the scatter3 call above to either fill the markers or increase the linewidth?

4

2 回答 2

0

只是通过filled选项。`scatter3 ()在独立于您随后选择的颜色图调用时使用以下内容:

scatter3 (plot_data(:, 2), plot_data(:, 3), plot_data(:, 4), 9, plot_data(:, 1), "filled");
于 2012-09-20T17:20:46.387 回答
0

很抱歉恢复这个,但我今天遇到了问题。我解决了它归因于假色标,然后绘制:

vet_x = rand(1,100);
vet_y = rand(1,100);
vet_z = rand(1,100);
size_scale = linspace(1,10,length(vet_x));
fake_color = linspace(1,10,length(vet_x));

scatter3(vet_x,vet_y,vet_z,size_scale,fake_color,'filled')
colormap('copper')

希望这可以帮助。

于 2015-06-29T20:00:04.343 回答