Questions tagged [nodes]

{nodes} is about nodes in {diagrams}. A node typically consists of a shape which may or may not have a border and a filling, as well as some (text) content but it may also be empty. It can be connected with other nodes or parts of the diagram via edges.

This tag should be used for questions related to nodes in , e.g. \node in TikZ diagrams.

A node is in general a rectangle or circle or some other shape which may or may not have a border and/or a filling drawn in a TikZ diagram (inside a tikzpicture environment) with a defined position. It can also contain some text. It can be connected with other nodes or parts of the diagram via edges. A node can have a name which can be used to refer to it later.

General syntax:

\node [<options>] (<name>) at (<coordinate>) {<contents>};

or

\node (<name>) at (<coordinate>) [<options>] {<contents>};

The macro \node is a shorthand for \path node. An introduction about nodes and how to use them in the TikZ context can be found in chapter 3.3 of the TikZ/PGF manual.

1458 questions
6
votes
1 answer

Thought bubble in latex

I wish to draw illustration nodes with text box as shown, But my latex is poor. Any startups?
Gauss
  • 343
  • 3
  • 7
5
votes
2 answers

How can I make a Tikz picture into a node?

I am trying to produce a mechanics worksheet to teach Newtons 2 Law! I want an engine pulling trucks. I have used savebox to save the tikz image of the engine and truck and hoped i could store as a named node to be able to 'join' the objects. When…
ToyBoy
  • 117
2
votes
2 answers

node shadowed extra } error

try to get pgf manuals title page code into own areas. I have copied the code snippet of titlepage for nodeshadowed, but get error: \nodeshadowed has an extra }. I don't see the error. Additionally it seems I have troubles to put the code right in…
gizeh
  • 491
2
votes
1 answer

nodes near coords = value + word

In the following histogram from my.dat I would like that nodes near coords take the value of the number followed by a text. For example: nodes near coords = {
Stefano
  • 1,038
2
votes
1 answer

trigonometric tikz

I modified someone's code and get the trigonometric graph I want. But I wonder if there is an easier/elegant code than this. Specifically, I'd like to have an automatic node setting instead of listing them all. Also, is there an easier way to graph…
Sean N
  • 183
1
vote
2 answers

Start arrow from a point at a certain distance from a node

I want to do something like this: Please tell me how to do it. Thanks in advance.
el_maxx
  • 163
1
vote
1 answer

Node positions do not change while changing the x,y values

I am using use textblock with tikz. If I change the x,y values of \node (Point) at (xcm,ycm) the image position does not change? Example: (x=12, y = 13) or (x = 2, y = 5) display same position of the image Thank in advance. My minimal…
latexforti
  • 2,091
1
vote
1 answer

Text placed at distance from line, given radius and angle

Assume a line from A to B. At p% (or p mm/cm) of the distance from A to B, starting from A, I want to "turn" using a radius r and an angle y relative to the AB direction (y=0 is in the direction of the line AB, 90=90 degrees to the left of the…
mf67
  • 666
1
vote
1 answer

Proper arrangement of nodes in graph

See what i made in below example. You can observe that in my graph there are six nodes. Now my question is How can i put all this nodes manually without using \foreach. Because in graph some nodes are not properly arranged. Here is my…
SandyM
  • 2,757
1
vote
1 answer

Text out of \axis

I would like to shift text of nodes out of axis area like in the first image. If this is difficult to realize, would be nice also the solution in the second image, in which the right margin of area is shifted in order to let enough space for the…
Stefano
  • 1,038
0
votes
1 answer

Simply add more space between node and its content

Let's say I create a node at a specific coordinate and I want its content to be displayed at 2 cm from it's coordinate. What is the simplest way to do this?
el_maxx
  • 163
0
votes
1 answer

How can I modify nodes

How can I insert two little boxes bellow a node in a tikZ picture and then fill those with numbers like this?
0
votes
1 answer

How to make the size of the node bigger?

How do I make the size of the node larger? \begin{tikzpicture} \node [left,ultra thick] at (0,6) {$V_i$}; \node [left,ultra thick] at (0,3) {$V_f$}; \end{tikzpicture}
0
votes
2 answers

Place a node at a given pixel value within an image

I have and pdf image that is 4903 × 314 pixels. How can I place a node in the image at (3903, 251)? The image itself will be scaled to fit the page width.
mdf
  • 47