Tagged Questions
6
votes
1answer
84 views
Pgfplots: Drawing Arrows Along Contour Plots
I would like to draw "stealth" arrows in place of the "0" labels along the trajectory in the phase portrait pictured below. I decided to draw the trajectory using the contour functionality of ...
9
votes
2answers
218 views
High level digital design in TikZ
I am very new to TikZ and I have trouble making a diagram similar to the one here:
My problems are specifically making MUX to get to inputs which would be on 1/3 and 2/3 of the width. Taking sigma ...
2
votes
1answer
59 views
Labeling user-defined shapes in TikZ
I have modified code for rotating a primitive 'match' shape (adapted from rotating camera code found here (Use a custom shape as a "building block").
How do I pass the label parameter in ...
4
votes
1answer
77 views
Creating labes on diagram edges
I want to add labels 3, 4, 5 on tree edges like you can see on picture, but I don't know how :(
My minimal example:
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{tikz}
...
13
votes
2answers
225 views
Complicated tikzpicture for theorem of multivariabe continuous functions
I'm attempting to construct a tikzpicture that looks like this:
Here's what I have:
\documentclass[12pt]{article}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage[english]{babel}
...
6
votes
1answer
201 views
tikz label coordinates using mathematical expression from foreach variables
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\foreach \x [count=\xi from 1] in {-3.0,-2.8,...,1.8}
\draw[thin] (0,0) ++(\x,2) rectangle ++(0.2, 0.2) ...
4
votes
1answer
151 views
How to place label in middle of line (above and below) with TikZ
\fbox{
\begin{tikzpicture}[scale=1,auto=center]
\node[circle,fill=gray!20] (n1) at (2,8) {Node A};
\node[circle,fill=gray!20] (n2) at (8,8) {Node B};
\foreach \from/\to in {n1/n2}
\draw ...
3
votes
2answers
88 views
How to reference an axis label, e.g. xlabel
I'm new to that forum but it already helped a lot, thanks for this!
But now I really got stuck. Basically I'm looking for a possiblity to reference the xlabel of an axis in a TikZ picture. The ...
6
votes
1answer
230 views
How to introduce a line break in a TikZ node label?
I need to introduce line breaks into the label of a node. This is what I've tried so far, but none of it worked:
1:
\node[node, label={[split parts = 4]alpha \nodepart{two} bravo \nodepart{three} ...
3
votes
1answer
75 views
How to place a textnode at the center of a drawed rectangle
A rectangle label does not appear inside the rectangle but on the corner of it.
\tikzstyle{every node} = [align=center]
\begin{tikzpicture}
\draw (0, 0) rectangle (2, 2) node [center] ...
10
votes
1answer
334 views
Comprehensive list of TikZ style options?
I'm aware that one can use \tikzstyle{every label}=[...] to apply styles to every label within a tikzpicture; or \tikzset{mystyle/.style={...}} to apply style specs to a specific type of node mystyle ...
9
votes
1answer
140 views
TikZ: positioning label at the end of a path
I'm trying in TikZ to find a general way to draw an arrow and label it at the end. Something like this works reasonably well:
\draw[->] (0, 0) -- (1, 3) node[pos=1.1]{$\vec{v}$};
However, ...
5
votes
1answer
222 views
labelling with arrows in an automated way
In adding-labels-to-a-formula is a tikz scheme that puts rounded boxes around parts of an equation so that they can be labelled. It looks nicer than plain old \underbrace, and can be automated ...
2
votes
2answers
126 views
caption in a tikz object
I created markov's chain using tikz package. Now I would add to to it caption and label but I got error.How can I add a caption and a label to a tikz object?
11
votes
1answer
156 views
Adding a label to a bent arrow in TikZ
In this question Is there a TikZ equivalent to the PSTricks \ncbar command? Jake provided a very nice TikZ version of the PSTricks \ncbar command.
With normal node connections in TikZ, I can use the ...
4
votes
0answers
183 views
3d axis label ovelapping [closed]
I'm using matlab2tikz to generate the tikz code for my figures. When compiling the document with the figure code as below, I get an ovelapping with the axis label y and z.
Here is what I've got:
...
4
votes
1answer
244 views
Labeling a box in tikz
As shown in the working example below, I have red box around all the boxes. I want to label the box but I couldn't manage to do it. I tried to use some of the ways in given in the tikz examples but I ...
1
vote
1answer
356 views
TikZ Label multiple plots outside of axis box
I'm endeavouring to make a graph similar to the following using PgfPlots and TikZ.
I can make all of this work, except for the placement of the R=2, R=3, R=5, and R=10 markers on the left-hand ...
4
votes
1answer
616 views
label curve and/or contour name created with pgfplot via gnuplot
I will want to name different contour as one can see it on topographic card. How to do that?
I want label on different curve with the parameter that distinguish the curves. I have created 10+10 curves ...
11
votes
1answer
175 views
How can I put “=” in a TikZ node label specified as an option
When I try to put an = symbol into a TikZ node label specified as an option (using label=), I get an error:
Extra }, or forgotten $.
Is there a way to specify = in such cases that I'm missing?
...
10
votes
1answer
603 views
How to use “fit” to frame the nodes and labels
I'm using the fit TikZ library to fit a rectangle around two nodes which include labels. However, the rectangle is only fit around the actual nodes, not about their labels:
\documentclass{article}
...
16
votes
4answers
11k views
TikZ set node label position more precisely
This seems like it should be really easy but I can't seem to find it anywhere...
I'd like to be able to fine-tune the positioning of a node label.
I'm aware of the ...
7
votes
1answer
472 views
Titles aligned horizontally above nodes in figure
I am trying to create a flow chart going left-right where each stage has a header aligned with it, at a certain height above the chart. I am trying to use the Hydrogen Splitting Example (see the ...
10
votes
1answer
2k views
Place label in middle of line with TikZ
What is the best way to place a label in the middle of a line with TikZ? I mean smack dab in the middle of the line, not above or below it. The following is close
\begin{tikzpicture}
\draw[|->, ...
8
votes
1answer
348 views
Label automatically positioned so that it doesn't overlap anything
I produce automatically generated LaTeX-files with nodes and links.
Is it possible to put the label of the node outside of the node and it is automatically positioned somewhere, such that there is no ...
5
votes
1answer
252 views
Is it possible to refer to node label and reuse it for labeling other nodes in tikz?
I would like to "reuse" some nodes' labels, as in example below
\documentclass[a4paper,12pt,oneside,titlepage]{report}
\usepackage{tikz}
\usetikzlibrary{positioning}
\tikzset{
label ...
1
vote
2answers
436 views
Spacing circuit element labels from their elements with CircuiTikz
I want to draw a resistor with a resistance value showing and a voltage label showing as well. This is content-wise an MWE of everything I want:
\documentclass{article}
...
4
votes
2answers
398 views
Nested labeled colored boxes with TikZ
I need nested boxes, as they are shown in this question, but colored ones.
I tried both solutions. Using shapes.multipart I totally failed when tried to generate the nodeparts by a foreach command. ...
4
votes
1answer
357 views
Label near start when using myncbar
My problem is quite simple, yet i can't find answer.
Pre:
\usepackage{tikz}
\usetikzlibrary{matrix, shapes, arrows, positioning, fit, calc}
Styles:
\tikzstyle{decision} = [diamond, draw, ...
4
votes
1answer
1k views
Using [midway] to label a curved path at its centre
I am trying to label two curved paths connecting two nodes with labels placed at their centres using the node[midway] option. This is something that should be very simple but I have not been able to ...
17
votes
3answers
584 views
Draw dimension of a line as a decoration in TikZ
Is it possible to define in TikZ a new decoration or something like that, such that it is possible to write something like:
\draw[dim={text,above}] (A) -- (B);
\draw[dim={text,below}] (C) -- (D);
...
1
vote
1answer
605 views
Labelling and drawing at rotated/shifted objects
I'm trying to draw an image from a mathematical publication (see the crop at the end of my post). You can find a recent version of the drawing at page 37 of my script (PDF). The complete source is ...
18
votes
3answers
3k views
TikZ: Bend text so that it follows a line
I have two arrows going from a node on the left to a node on the right. Both arrows are slightly bent. I want to label the arrows with text that is bent just like the arrows. This is as far as I've ...
3
votes
2answers
1k views
TikZ: position a node depending on width of text?
I need to use TikZ to draw two horizontally-spaced nodes, and an arrow between them, labelled by some text. But the arrow has to be exactly the right length to fit the text, and this will be part of a ...
3
votes
1answer
777 views
Label sides of rectangles and triangles
What is the easiest way to label the sides of rectangles and triangles in TikZ?
7
votes
2answers
590 views
Tikz: Labeling objects and referencing them
According to the Tikz manual I can use "name=" to assign a label to the drawings, but when I do the following:
\begin{tikzpicture}
\draw [ blue, thick, name=e1] (10pt,10pt) ellipse (50pt and ...
