Questions tagged [tikz-pgf]
TikZ is a higher-level drawing language built on top of the PGF graphics framework. For questions specifically about the PGF layer use {pgf-core} instead. Both tags are possible on the same question. The tag {diagrams} is also compatible with this tag.
34,787
questions
0
votes
1
answer
1k
views
Annoying space between nodes in a matrix
How to force this matrix to look like a regular table?
\matrix[matrix of nodes, ampersand replacement=\&, row sep=-\pgflinewidth, column sep=-\pgflinewidth, nodes={draw,minimum size=10mm},
column ...
13
votes
1
answer
589
views
Drawing the p,T-diagram with TikZ/pgfplots
I am trying to draw a p,T-diagram with TikZ using pgfplots as shown in the picture. All I have so far is:
\documentclass[a4paper, 11pt]{scrartcl}
\usepackage{tikz}
\usepackage{pgfplots}
\...
1
vote
0
answers
270
views
pgfplot - keep legends widthin \linewidth when the are set outside [closed]
I'm using pgfplots, but i want to have my legends next to the plot.
This is easy by setting legend style and anchor. But i also want the plot to be as big as possible.
So if my labels are to long, ...
12
votes
3
answers
10k
views
tikz trees: How to not draw a single edge
I want to draw a tree and not draw specific edges. I try it like this
\documentclass[preview]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[every node/.style={circle,draw}]
...
2
votes
2
answers
2k
views
Tikz environment
How can I get the following figure using Tikz environment please?
4
votes
1
answer
639
views
How can I apply a style to elements of a submatrix of a tikz matrix?
I'm trying to apply a style for a submatrix of a matrix and ended up by passing arguments through two .list-handlers. Things don't work as I expected, again I'm just able to set either rows or columns ...
9
votes
0
answers
755
views
TikZ — logarithmic (golden) spiral in a golden rectangle [closed]
I'm almost happy with my golden spiral in golden rectangles:
\documentclass[a4paper,class=article,border=5pt,tikz]{standalone}
\usepackage{fp}
\usetikzlibrary{fixedpointarithmetic}
\...
2
votes
1
answer
326
views
Curve with Tikz
How can I plot this curve in Tikz
\begin{gather*}
x(t)=
\begin{cases}
2(t-n+1), & t\in [n-1,n-1/2] \\
2-2(t-n+1), & t\in [n-1/2, n]
\end{cases}
\\
y (t)=
\begin{cases}
2(\sqrt{2}t-n+1),...
3
votes
1
answer
3k
views
what is the origin point in a TikZ picture?
What determines the origin point when I draw a rectangle with TikZ? In the example below the x coordinate of the origin seems arbitrary...
\documentclass{article}
\usepackage[showframe, paperwidth=3....
5
votes
3
answers
501
views
Recreating this TikZ image
I need to recreate the following image in TikZ.
I'm able to draw the boxes using the following TikZ code, but I'm unable to correctly place the underbraces and the symbols.
\begin{figure}[H]
\begin{...
8
votes
1
answer
908
views
Create corner-aligned dashed rectangles using TikZ
Does anyone know how to create corner-aligned dashed rectangles using TikZ-PGF? I am looking for a similar feature that exists in Adobe Illustrator (see http://tv.adobe.com/watch/learn-illustrator-cs5/...
1
vote
0
answers
2k
views
How to reduce file size of eps file when I generate the file from Tikz?
I have read those posts like How to reduce the size of an .eps file? , Eps file is so large [closed] ,Sun life: Linux: how to reduce eps file size? but find little can help my problem.
Sun life: Linux:...
2
votes
1
answer
1k
views
TikZ: shading a ball with colors
I am interested in plotting a ball similar to the ones below:
where the color of the surface of the ball depends on the distance from a chosen point (where the vector arrow points to). How can I ...
1
vote
1
answer
1k
views
Flow chart Latex ! Positioning of two nodes
I need to split the two boxes N9 and N10 below N8 and side by side to each other. Help appreciated
\begin{figure}[h]
\centering
\tikzstyle{startstop} = [rectangle, minimum width=3cm, minimum height=...
15
votes
1
answer
15k
views
Multi-line legend entry in pgfplots
In some of my plots the curve description in the legend is too long, making the legend going over the plot, even if the legend is placed as far away as possible. Therefore I want to have multiple ...
2
votes
1
answer
336
views
Draw a class diagramm in black and white
I want to draw a class diagramm (and later on other diagramms) in black and white using LaTeX and Tikz-uml as the default color is a kind of yellow.
Is there an easy parameter to attach to the ...
3
votes
1
answer
200
views
Simple way to move side by side tikzpicture?
I have two graph side by side in two different tikzpicture. But I'd like to move the left one up a bit. I know an elaborate way to do it but I am sure the is a simple way. The options yshift=-2cm ...
2
votes
2
answers
870
views
How to prevent pgf/tikz from drawing a circle as an ellipse when using relative coordinates?
I am trying to draw a simple tikz-picture including a pgf-plot and some simple tikz-graphics. I want to place a circle so that it touches a parabola at point (0,0). That works well when I use values ...
2
votes
1
answer
478
views
Combined background gradient with custom centering
I am using the genealogytree package (based on tikz) to create a family tree. Code example can be found in this question. Basically, I have a simple tree of just me and my wife with imaginary baby, ...
0
votes
1
answer
286
views
Figure with tikz composed by a graph and other object
I drawn a graph with tiKz package.
\begin{figure}[htp]
\centering
\begin{tikzpicture}
[shorten >=1pt,node distance=2cm,on grid,>=stealth',initial text=,
every state/.style={draw=blue!50,very ...
2
votes
1
answer
4k
views
Tikz, text outside plot
I just included matlab figures using matlab2tikz.
I have annotations in my figures. These annotations are outside the plot area to prevent overlap with the data. But now I also want the annotations ...
6
votes
2
answers
979
views
TikZ — golden triangles in a logarithmic spiral
I'm trying to redraw this image (source) in TikZ.
Here is my code for a triangle with an arbitrary length of the base (just straight forward construction):
\begin{tikzpicture}[x=1mm, y=1mm]
% ...
3
votes
1
answer
151
views
How to create a folded surface from a contour
I am computing the coordinates of a circuit on the sphere using several (heavy) pgfmath macros. This results in a costly production of what is basically a table of two dimensional coordinates.
Using ...
3
votes
2
answers
2k
views
Beamer boxes with flat shadows
Is there a possibility to change the 'faded out' shadows from beamer boxes to 'flat shadows'?
With flat shadow I am referring to a shadow of a single color without a gradient. Ideally, I would like ...
6
votes
1
answer
6k
views
Rotating axes in 3D for better viewing planes
I have this code:
\begin{figure}[h!]
\centering
% Generat amb TikZ
\begin{tikzpicture}
% Note: the points have coordinates (x,z,y)
\coordinate (O) at (0,0,0);
...
3
votes
1
answer
1k
views
How to change shadedraw color
With, this code
\begin{figure}[h!]
\centering
\begin{tikzpicture}
\shadedraw[shading=radial, color=blue] (0,0) circle (4);
\end{tikzpicture}
\end{figure}
I get this
But is it ...
1
vote
1
answer
258
views
How to make tikz box with text longer?
I would like to make tikz box with a letter (thumb index) longer (stretch it over the cropping edge), but I need to leave the position of the letter and placement of the box untouched.
Creation of ...
2
votes
1
answer
209
views
Specifying an angle and a length using the `let-in` syntax
I have $\triangle{ABC}$ and a line $\ell$ through the midpoints of two sides of the triangle drawn. $\ell$ is parallel to $\overline{BC}$. In the last few lines of the code, I am trying to draw ...
1
vote
0
answers
128
views
is there a library to print blank calendars? [duplicate]
I would like to be able to easily generate calendars like the following:
Is there some package or library to easily generate something like this, given the initial year and month? TiKZ has a ...
-1
votes
1
answer
54
views
Unable to label bar graph axes properly? [closed]
I'm having this issue of labeling my axes.
\documentclass{article}
\usepackage{tikz,pgfplots}
\begin{document}
\hspace*{-1cm}\begin{tikzpicture}
\begin{axis}[
symbolic x coords={0.4894, ...
1
vote
1
answer
145
views
PDF/Braids undefined control sequence
I'm trying to compile my script to make a simple braid diagram using the 'braids' package, using the following code:
\documentclass[a4paper,12pt]{article}
\usepackage[a4paper, margin=2.5cm, top=4cm]{...
4
votes
2
answers
344
views
Get red green and blue channels of a defined color
In LaTeX one can define colors with the command:
\definecolor{somecolor}{RGB}{0,42,14}
I was wondering if it is possible to obtain the value for the red, green and blue channels for a given color, ...
1
vote
1
answer
870
views
Need help for a circuit diagram using Circuitikz
I am a beginner with drawing circuits in Latex. And there is one circuit where I am stuck and it would be great if someone could help. The circuit is as shown below:
The upper half is the difficult ...
1
vote
2
answers
145
views
Chaptertitle boxed in twoside book-document
\documentclass[11pt,a4paper,twoside,openany]{scrbook}
\usepackage{tikz}
\usepackage[explicit]{titlesec}
\usepackage{blindtext}
\titleformat{\section}[hang]{\large\bfseries}{\thesection\quad}{0pt}{#1}
...
2
votes
1
answer
2k
views
Draw dotted line with circled dots and automatic spacing
I'm trying to create dotted lines with tikz where every dot has a defined size and a circle around it, with also a defined size.
First I applied this answer to create a dash pattern:
\tikzset{
...
1
vote
0
answers
411
views
Suggestions Request / App for drawing that code generate a tikz code
Do you know an application that I can use to draw diagrams or flowcharts or anything and then export a Tikz code for tex?
I downloaded "Tikzit" and it looks like I have to have a tikz file to open ...
1
vote
2
answers
3k
views
How can I make one legend for two pie charts?
I am using the package pgf-pie and want to have two pie charts next to each other but using the same legend. How can I have the legend centered below the two charts?
Mini example:
\documentclass[...
1
vote
1
answer
328
views
Close scope for global options in a tikz-pgf path
As an example, I wish to draw two segments, one in blue, one in red.
\begin{tikzpicture}
\draw [color=blue](0,0)--(1,1);
\draw [color=red](1,0)--(0,1);
\end{tikzpicture}
I wish I could issue only ...
5
votes
2
answers
7k
views
How to change the position of arrows in tikzpicture
I want to draw the arrows at these positions, how can i change the position of the arrows.
Thanks,
Code:
\usepackage[hmargin=2cm,vmargin=1cm]{geometry}
\renewcommand{\rmdefault}{bch} % change ...
1
vote
0
answers
1k
views
Multiple PGFPlots in single figure [closed]
I'm trying to remake these plots from an article about Nested Containment List by Alekseyenko:
I have managed to do one plot:
\documentclass{article}
\usepackage[english]{babel}
\usepackage{...
3
votes
1
answer
177
views
How to clip a gap between a word and its "shadow"
I want to achive a text effect like this:
It is the "gap" between the word and the shadow.
I understand I have to use two layers to create shadow and word. But I don't know how to clip the shadow ...
1
vote
1
answer
363
views
Horizontal align the TikZ picture in itemize label position
I am going to use custom itemize label created by TikZ, however can not align it as other labels:
I tried shift but it is no work. I know that maybe I should change the itemize settings, however it ...
3
votes
2
answers
677
views
Automatically place sloped nodes on the outside of a path
When I was plaing around with this answer, I came across some unexpected behaviour when using the options sloped and below together. This code
\documentclass[tikz, border=2mm]{standalone}
\begin{...
5
votes
1
answer
4k
views
Draw connected line segments using tikz
In the following example, I want the line segments to be connected at each vertex. For example, I want E1 and E2 to have a common end point and label V2 should be used to label that end point. How ...
0
votes
1
answer
1k
views
How to span brackets on some rows in longtable?
The goal is to place a brackets into the table (longtable) to embrace some rows of this table:
The solution which involves rdelim and \multirows command (described here: usage of \rdelim) gives not ...
1
vote
2
answers
4k
views
Path diagram using Tikz
How can I make a path diagram like this
using Tikz?
(Still a noob to Tikz)
2
votes
1
answer
611
views
3D surface mesh from external data with pgfplots
I have 5 Lines each with a varies values in y. The line in the middle (z constant = 30), The bottom two lines (left and right) are constant at z=0. The other 2 lines constant at z=15. For a give x-...
1
vote
1
answer
89
views
Width of columns with circled numbers in a table
I think my question is similar to this one: Wrong spacing of circled numbers using Tikz and exam class
but I'm not quite sure.
In a talk using the beamer class I used a table and it involved tikz ...
1
vote
1
answer
241
views
A right angle not drawn
I have a right triangle drawn with its right angle at C. The vertex C is located via the formula for the altitude of a right triangle from the vertex at which the triangle has its right angle. Since ...
1
vote
2
answers
369
views
How to draw following digram using TikZ in latex
I tried to draw this diagram
rpapa's showed me how to start by posting code to draw the 3 big boxes with circles at the top and the labels on the left and the arrows between them. That was a great ...