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.

learn more… | top users | synonyms (3)

2
votes
1answer
45 views

How to define the default vertical distance between nodes?

Use positioning can control the individual vertical position of nodes. But is there any way to control the default vertical spacing? \documentclass{article} \usepackage[utf8]{inputenc} ...
1
vote
1answer
99 views

opacity and shading of an ellipse

I am making a picture of the tidal force effects on the Earth. My current picture is decent but I would like where the bulging occurs on the edges to be little bit darker in blue, but I don't want ...
1
vote
1answer
102 views

Syntax Highlight in Winedt

I am using Winedt 7.1 and learning TikZ and I am thinking about to add the commands to the keyword.ini, in the help they mentioned, adding to many keywords may affect the performance. Is there a ...
0
votes
1answer
61 views

pgfplots: How to fix the number of yticks?

With max space between ticks= it is possible to set space between ticks, but I would like to setup the number of ticks, so all my graphs will look similar. I would be happy with 4 ticks, so if y vary ...
0
votes
1answer
65 views

Tikzpicture horizontal alignment with to[grid with coordinates]

I'm trying to align horizontally three grids, two of them in one figure. Below is the sample code: \documentclass[twocolumn]{article} %% ...
2
votes
0answers
63 views

Stretching each cell to the same height

I'm building a TikZ diagram in a row-by-row fashion. Each row is composed of a sequence of blobs, and the end of the row is signalled by issuing \newrow. Here is the code I have produced so far: ...
2
votes
0answers
61 views

Pass a coordinate via pgfkeys

I'm using 3dplot to draw in 3D. Now I want to define my own environment, called pose, that is supposed to be used inside a tikzpicture-environment. It should perform a coordinate system tansformation ...
2
votes
0answers
84 views

Dependent node size in TikZ

I'm producing some control theory flow sheets in TikZ where I have specified the node box size. Since I'm making a lot of these flow sheets, I have set global styles for them, for instance the box ...
2
votes
0answers
92 views

Stacked bargraph nodes near coords too bunched up vertically tikz

How do I center the coordinates in their bars vertically? This shows horizontally in ybar \documentclass[tikz,border=12pt]{standalone} \usepackage{pgfplots} \pgfplotsset{compat=newest} ...
2
votes
0answers
110 views

My tikzpicture is to large for my beamer frame

I'm extremely new to LaTeX and this is my first post on this site. I have a major presentation coming in a couple weeks, and I'm in great need of your help. I export Geogebra code for my graphs, it's ...
2
votes
0answers
106 views

Improve diagram TikZ

I want to improve the visual appearance of the following diagram. \documentclass{standalone} \usepackage{lmodern} \usepackage{mathtools} \usepackage{tikz} ...
2
votes
0answers
83 views

Chemfig artifacts next to bonds

When drawing reaction schemes with chemfig I get unwanted small dots next to certain molecules. These dots remain the same size weither I zoom in the document or not. \documentclass{article} ...
2
votes
0answers
133 views

How do I replace an XYZ coordinate system on an already available plot?

I have an eps file looking like this: I have no access to the original dataset, so replotting it is not an option. I would like to replace the ugly 80s style coordinate system (Both the captions ...
2
votes
0answers
72 views

Horizontal bargraph pgfplot

I'd like to make two graphs using TiKz pgfplots or otherwise using this table below. But get the error ! Package pgfplots Error: Sorry, the input coordinate `Bloodstream Infection (B SI' has not ...
2
votes
0answers
167 views

Scatterplot with TikZ/pgfplots

I have 7 *.txt files each with 2 columns of data thus: time(mins) contacts 3.25 8 1.166666667 4 3.2 6 3.2 7 2.25 8 5.466666667 12 2.25 3 2.166666667 7 I'd like to plot them in separate ...
2
votes
0answers
83 views

PGF: Externalize + Fadings differences in viewer

I've been working with the fadings library in PGF and I was having trouble getting it working with externalize. I finally figured out that it was working, but Apple's Preview does not display the ...
2
votes
0answers
161 views

How to draw clipart icons in tikz?

Is there a way to draw clipart icons in tikz? Or is there a way to export them or should I use some other software for this purpose? I want to draw the following 5 icons:
2
votes
0answers
87 views

How do I change properties of a cube in TikZ?

I am looking at an example from How to draw a cube with TikZ where all faces have a distinct color? \documentclass{minimal} \usepackage{tikz,tikz-3dplot} \begin{document} ...
2
votes
0answers
63 views

Shorten both ends of a line with on key

Consider the following snippet: \begin{tikzpicture} \def\ptRad{2pt} \fill (0,0) circle (\ptRad); \fill (1,1) circle (\ptRad); \draw[<->, shorten <=\ptRad,shorten >=\ptRad] ...
2
votes
0answers
73 views

Creating an invitation printable matrix

I'd like to create an 'invitation matrix' which will be printed on both sides of A2 or A3 paper and looks like this: |front_11|front_12|...|front_1n| |back_11|back_12|...|back_1n| ...
2
votes
0answers
200 views

Off Grid Circuitikz Symbols

Shouldn't circuits line up on the grids? Otherwise, drawing code get messy -- really quick. I have found pins-to-grid alignment to be common practice in most the Schematic/Diagram programs I have ...
2
votes
0answers
161 views

How legend-entry can be possible in Tikz

I want to use legend-entry for straight line & dotted line. \begin{figure}[htp] {\small \centering \begin{tikzpicture} \draw [color=black, fill=gray!50] ( 0.2 , 1.975 )-- ( 0.3 , 2.05 )-- ( 0.4 ...
2
votes
0answers
120 views

How to make nodes on branchy TikZ chain lay on regular grid (trangular or square) automatically?

How to ensure that nodes on chain with branches (generated using chains library) are laid out on regular grid, regardless of node shape? I am interested in automatic placement on triangular or ...
2
votes
0answers
68 views

TikZ: clipping nodes outside current picture

I would like to clip a node that is outside the current picture. (I do this so that I can re-use a relatively complicated TikZ picture that I use several times in different places.) I can't get it to ...
2
votes
0answers
284 views

TikZ: How to use \tikzexternalize in TeXstudio or How to create Makefile for using \tikzexternalize

This question is based on Draft option in TikZ like graphicx. From pgf manual, 33.4 Externalizing Graphics The probably most comfortable way is to use the default conguration with ...
2
votes
0answers
610 views

Visualizing broad Tikz tree graph

Modules of software I created produce Tikz QTree diagrams for visualisation. The problem is that some trees grow quite broad... Even when I try to massively shrink them by Tikz settings, I cannot ...
1
vote
0answers
34 views

Define tikz node based on pagenodes

I want to define a tikz node called current grid area based on the nodes defined by the tikzpagenodes package. This node is a rectangle that contains the 4 nodes defined in the package; current page ...
1
vote
0answers
75 views

Plotting a histogram from a dat file using pgfplot

I want to create a histogram from a dat file with two columns, error and frequency. It also has a large amount of bins, 501. I have followed instructions provided elsewhere on this site but the data ...
1
vote
0answers
65 views

Issue with PGFPlots text

I'm trying to generate some plots using TikZ, with the following code: It's not about babel, fontenc, or inputenc; I've tried removing them to no avail. \documentclass[a4paper]{article} ...
1
vote
0answers
110 views

Drawing lozenges in Tikz

I'm creating a simple flowchart using Tikz, and I'd really like the "decision" nodes to be lozenge-shaped (think "tilted parallelogram") rather than square, in order to fit text better. Here's a ...
1
vote
0answers
137 views

How to draw a 3d cylinder using TikZ-3dplot?

I'm trying to draw a 3d cylinder using TikZ-3dplot, but the cylinder walls are not aligned properly (as you can see in the image). Does anybody knows what am I doing wrong? \documentclass{article} ...
1
vote
0answers
39 views

Node only partially rendered near edge of plot

I'm trying to draw a relatively simple chart of a number line, and when one of the nodes is too close to the edge of the plot, it gets cut off. The code: \documentclass{article} \usepackage{natbib} ...
1
vote
0answers
91 views

Alignment of TikZ object

I'm using the classic thesis style by André Miede. As I have to import a lot of Matlab plots, I'm using matlab2tikz. In the LaTeX document, I want the TikZ object to act like a normal jpg/png ...
1
vote
0answers
100 views

How to remove the frame of a plot in tikz but keep the axes?

I want to have a plot in tikz, with the horizantal an vertical directed axes, without numbering and without frame. Right now my code is as follows: \documentclass{article} ...
1
vote
0answers
122 views

understanding how to rotate arrows in tikz

I have seen the post on the rotation of arrows and one of the post is mine. However, I don't understand how to do accomplish it myself. For instance, I am making a picture of Hohmann transfer where ...
1
vote
0answers
83 views

Why is centering a TikZ picture from an external file not the same as a centering a .png figure?

Why can't I put a Tikz picture inside \makebox? \begin{figure}[!ht] \centering \makebox[\textwidth][c]{\includegraphics[width=.8\textwidth]{./Figures/chapter5/procedure_contacts.pdf}} \end{figure} ...
1
vote
0answers
55 views

how to translate coordinate in tikz 3dplot?

\tdplotsetmaincoords{30}{30} \begin{tikzpicture}[scale=5,tdplot_main_coords] \def\x{1}; \def\y{1}; \def\z{1}; \coordinate (O) at (\x,\y,\z); ...
1
vote
0answers
210 views

drawing directed acyclic graph DAG with minimal crossing arrows

I'm working on DAGs to solve different combinatorial problems in Computer Science. Now, each time I try a simple example, I need to visualize the DAG and test its properties. I iteratively add ...
1
vote
0answers
1k views

Install Gnuplot on Mac OS-X 10.8.2 for use with 'tkz-fct' package

I have recently discovered the TikZ packages for LaTeX: http://altermundus.com/pages/tkz/index.html I have run the examples for tkz-euclide with success. I would also like to use the tkz-fct ...
1
vote
0answers
113 views

How can I customize a plot produced by matlab and exported by matlab2tikz script as I would do with subfigures and the \includegraphics command?

I.e: I had my plots arranged with a 3-in-a-row style with this code: \begin{figure*} \centering \subfigure[Figure A]{\includegraphics[width=55mm]{a.jpg}} \subfigure[Figure ...
0
votes
0answers
51 views

Missing number treated as zero \end{tikzpicture}

I got this error and I try all suggestion in many website, also I canceled some chapter that I got the error from it. but I got another error. Please can any one help me, this is the text ...
0
votes
0answers
38 views

TikZ triming text based on an other node placement

I am using tikz to create a page layout comprising different nodes, each node containing a bit of text. The nodes are placed relative to each other. What I would like to achieve is that for some ...
0
votes
0answers
57 views

Exporting TikZ figures to .EPS

i'm trying to export a TikZ picture to .eps using the following on Win7 (MikTeX), compiling with pdflatex: \documentclass{article} \usepackage{tikz} \usetikzlibrary{external} ...
0
votes
0answers
80 views

Irregular Flowchart using tikz

I have to draw a flowchart similar to Watch the original flowchart here I have made some changes using the answer provided in this question Flowchart in tikz and using this code in middle of my tex ...
0
votes
0answers
62 views

Package error in tikz

I took an example of a code of flow chart in tikz and tried it but i am encountering an error. \documentclass{article} \usepackage[latin1]{inputenc} \usepackage{tikz} ...
0
votes
0answers
47 views

Tkz-2d problem

I am new to tkz-2d. The code I put together is not loading as a PDF. Any help would be appreciated. Thanks. \documentclass[11pt]{article} \usepackage{tikz} %optional libraries ...
0
votes
0answers
46 views

Emacs and Auctex automatic compilation (and syntax highlighting) of extental TikZ files

I am using Emacs with Auctex. Is it possible to make files with .tikz extension to enter latex-mode automatically? Also, what is the best practice for compiling .tikz files that will be included in ...
0
votes
0answers
45 views

How to stop pdflatex from mixing up already compiled tikz pdfs

I am rather at a loss as to how this happened: I don't even know what MWE to paste in here. I'll just hope someone has seen something like the overlapping of tikz pictures before. In fact none of the ...
0
votes
0answers
48 views

Can't find tikz subfiles

I've the following project structure: ./main.tex ./ch1/ch1.tex ./ch1/tikz1/tikz1.tex The main.tex looks like: \documentclass{book} \begin{document} \subfile{./ch1/ch1.tex} \end{document} The ...
0
votes
0answers
72 views

pgf-umlsd and externalize

What would be the best solution to make pgf-umlsd and externalize compatible? The latter expects \end{tikzpicture} which is "hidden" within sequencediagram environment the first provides. I guess I ...

1 2