3
$\begingroup$

I just want to add a point (x,y,z) with a specific color using ListPointPlot3D.

My code:

ListPointPlot3D[p13, ImageSize -> Large, ColorFunction -> "Rainbow", 
 PlotLegends -> Automatic]
$\endgroup$

2 Answers 2

3
$\begingroup$
Show[
ListPointPlot3D[p13, ImageSize -> Large, ColorFunction -> "Rainbow", 
 PlotLegends -> Automatic]
,ListPointPlot3D[{x,y,z}, PlotStyle -> specificColor]
]
$\endgroup$
5
$\begingroup$

You can wrap the data value with Style directly.

Start with some random data,

SeedRandom[42];
data = RandomReal[40, {20, 3}];

Here I wrap the 4th element with Style,

ListPointPlot3D[
 MapAt[Style[#, Green] &, data, 4]
 ]

enter image description here

$\endgroup$
1
  • $\begingroup$ @kglr - that sounds like a question of having the cake vs eating the cake. This answer is probably the way to go if you want to have most points colored automatically except for one. $\endgroup$
    – Jason B.
    Jun 8, 2018 at 16:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.