This question is related to a question I'd asked earlier on this thread:
I have some for loops creating a graph and I'd like to position a node OVER another node whose co-ordinates I don't know.
For instance, let's say the for loop generates a node at (1.35, 0.8). I'd like to place another node at those co-ordinates, masking the original node there. These are rather odd co-ordinates that I can only find by trial and error and is rather tedious. Is there a way to position a node using something along the lines of
\node[disc] at (c-1-1) {};
where disc is some pre-specified shape and (c-1-1) is the node at (1.35,0.8) that I'd like to mask?
Apologies if this has already been asked. I searched for how to position a node using another node's label on Google and every response was how to position a node label.
Thanks
\node[circle,fill=blue] at (c-1-1) {};
you'll see that it works perfectly fine. For some reason though thedisc
style defined in that answer doesn't work after the loop, I don't know why. Note though that that style takes an argument, i.e. it should be used asdisc=namefornode
.\path (c-1-1) node[disc=b];
works.disc
style requires an argument and defines a node without content: it uses an emptynode contents
option.