Hello,
I have a problem with scatter3 function. It seems to display 3D points not correctly.
For the line of code:
scatter3([0.001069, 1.001552, 0.999379, 0.090724],[0.000001, 0.013140, 0.033245, 0.996423],[1.003260, 0.070949, 0.049154, 0.010725],100,'.')
it does display 4 points, but Z value of none of these points exeeds 1.0! See the figure below:
What is strange, the Z axis is automatically correctly set to min 0 and max 1.2.
Please help.
Thank you in advance,
J. Szlapczynska

2 Kommentare

KSSV
KSSV am 2 Mai 2019
Bearbeitet: KSSV am 2 Mai 2019
Try to change the viewing angle...the z value is as expected.
Jan
Jan am 2 Mai 2019
[MOVED from section for comments] Joanna wrote:
Thank you very much, indeed changing by hand the viewing angle did help!
Anyway, still I think that the view with initial displaying angle is wrong and might be misleading.
Kind regards,
Joanna

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Jan
Jan am 2 Mai 2019

0 Stimmen

I do not see any problem in the screenshot and do not understand, what you consider as "wrong" or "misleading".
Which axis do you call "Z-Axis"? The one with the "Goal func #3" label? The length of the axis is determined automatically by the scaling, not only by the values of the displayed points. Try:
axis equal
pause(2)
axis tight

Produkte

Version

R2018a

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by