Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Possible Duplicate:
Tikz realistic 3D grid

I want to draw a finite set of 3d-points. I have been looking at examples on the web, but I have not found anything to do this (the tricky part seems to be that I only want to draw a discrete number of points).

Can anybody suggest what package (and extension) might be a good one to draw the points in the set {0,1,2,3,4}^3 ?

share|improve this question

marked as duplicate by Paul Gaborit, Marco Daniel, percusse, Claudio Fiandrino, Jake Sep 19 '12 at 7:38

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

"(the tricky part seems to be that I only want to draw a discrete number of points)." -- So, you do want the grid lines? –  kan Sep 15 '12 at 15:23
pgfplots, see the \addplot3 command –  cmhughes Sep 15 '12 at 15:25
This question is very similar to this other Tikz realistic 3D grid. Please take a look at it as the answers there might help you. If they do, that's great, and we'll probably close this question as a duplicate just to keep the place tidy and to help people find the answers quickly. If they don't, please edit your question here to explain why so that people can better focus their attention to help you. –  Paul Gaborit Sep 15 '12 at 23:21

1 Answer 1

Maybe I get your question wrong, but do you you search for something like this:


        \foreach \x in {0,1,2,3,4}
                \foreach \y in {0,1,2,3,4}
                    \foreach \z in {0,1,2,3,4}
                        \fill[black] (\x, \y, \z) circle (0.1);

The result isn't looking quite nice but it draws a dot at any permutation of the coordinates {0,...,4} in 3d space. So there's no further packages or extensions needed, just simple tikZ.

share|improve this answer

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