0
$\begingroup$

Has Mathematica integrated Epilog in ListPointPlot3D yet? I have a list of {x,y,z} points, which I am supposed to plot in a 3D space. At the same time I also need to put an Identifier(say Jhon, kay, ross etc) next to each point, the function Epilog does in a 2D plot. Also, is there any workaround? Thank you

$\endgroup$
1
  • $\begingroup$ Anyone who did it. why is it downvoted? I am simply asking if this feature has been added and it's not. I have used Mathematica for about 4 years now and I don't think you can do this without an explanation!!! If you can show me how post a solution, or a link to the solution. It's just ridiculous $\endgroup$
    – Rupesh
    Commented Mar 2, 2022 at 17:03

1 Answer 1

4
$\begingroup$

You can use LabelingFunction

$VersionNumber

12

The data

data = {{0, 0, 1}, {0, 1, 0}, {1, 0, 0}};

and then you can try

ListPointPlot3D[data -> {"John", "Kay", "Ross"}, 
 LabelingFunction -> Center]

p1

$\endgroup$
8
  • 1
    $\begingroup$ @Rupesh Sorry but I am not sure I understand what you would like to do. Could you explain more thoroughly with an edit in the OP so I can read? Many thanks. $\endgroup$
    – user49048
    Commented Mar 2, 2022 at 1:06
  • 1
    $\begingroup$ @Rupesh oh ok. Thanks for that. Will have a look a bit later :-) $\endgroup$
    – user49048
    Commented Mar 2, 2022 at 1:08
  • 1
    $\begingroup$ @Rupesh I tried various different things from the documentation, but I have not manged to produce what you want. sorry. maybe you can take the ListPointPlot3D, create another plot with the PlotMarkers and combine the two using Show(??) $\endgroup$
    – user49048
    Commented Mar 3, 2022 at 0:02
  • 1
    $\begingroup$ no worries, I was thinking the same using show feature. But, for now your solution of labelfunction (without specifying the position) works good. Thanks a lot for your help $\endgroup$
    – Rupesh
    Commented Mar 3, 2022 at 1:27
  • 1
    $\begingroup$ @Rupesh glad I was able to help. $\endgroup$
    – user49048
    Commented Mar 3, 2022 at 1:28

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.