# tikz-pgf's questions - Chinese 1answer

19.671 tikz-pgf questions.

### 1 How do I deactivate tikz output to the document and only generate PNGs?

0 answers, 7 views tikz-pgf tex4ht tikz-external htlatex
I want to use tikz images but include them in my document via PNG with includegraphics. This works nicely both for PDF and HTML, but the original tikz image is displayed, too. The reason why I need ...

### 1 TikZ: Is it possible to use ocgx or ocgx2 with scaling?

0 answers, 20 views tikz-pgf ocgx2 ocgx
To obtain a handout, I drew polygons on A4 paper arranged in landscape mode. In order to create a beamer slide show associated with these handouts, I had to reduce the dimensions by 4 with scale=.25 ...

### Is there a maximum number of tikzpictures with \label that can be compiled successfully with the tikz external library?

The title says it all pretty much. More details as to why I am asking this: I am trying to compile a large document with pdflatex. In this document I have a very large number of figures made using ...

### 2 Draw filled surfaces on sphere

I know there's already topics on this subject (for example here and here). But, as a result of the excellent solutions brought here and here to other questions, I wonder if there's a way to do that in ...

### 5 TikZ-plots get recompiled every time when using tikzscale

For my thesis I have a lot of tikzplots exported from Matlab using the matlab2tikz library. I want to use the tikzscale-package together with externalization of the plots to save compiling time. Using ...

### 3 Tikz - Why is relative positioning not working?

MWE: \documentclass[]{article} \usepackage{tikz} \usetikzlibrary{calc,intersections,through,backgrounds} \begin{document} \begin{tikzpicture}[scale=0.5] \draw[<->] (0,8.5) node[above]{P}--(0,...

### 1 How to draw two charts in same figure using tikz?

2 answers, 50 views tikz-pgf floats
I want to draw two charts (one in left and other one in right) using tikz. This is my code but it only can draw one chart in a figure. Thanks so much \begin{figure}[htb] \centering \begin{...

### 3 Dividing and selectively filling regions in tikz

Drawing a simple shield-shape with TikZ like: \documentclass{article} \usepackage{tikz} \begin{document} \tikz \draw (0,0) --+ (0,-1) arc [radius=1, start angle=-180, end angle=0] -...

### 3 How to plot a function and its derivative

1 answers, 77 views tikz-pgf plot
How can I plot this with \begin{tikzpicture}? the red line should be the derivative at x_0 Pls help :) Thanks!

### 2 How can i rotate circuitkz figure vertical?

4 answers, 59 views tikz-pgf circuitikz
I have a pretty bigcircuit for a band pass filter that uses two opamps in cascade.Now this looks pretty small when aligned horizontal A4 layout.I want to to rotate this figure vertical(or 90) so that ...

### left rule affected if change courier font to other font

0 answers, 25 views tikz-pgf leftrule
My code are follows: \documentclass{book} \usepackage{fontspec} \defaultfontfeatures{Ligatures=TeX} \usepackage{unicode-math}% \setmonofont[Path = ./Fonts/ , UprightFont= Iosevka ,]{Iosevka} \...

### 2 Tikz: drawing border or line with shade

I want to draw a line with a shade, not a big rectangle. As per the documentation, Shading is caused by the shade option (there are \shade and \shadedraw abbreviations). Shouldn't therefore ...

### 1 Drawing a convolution with Tikz

3 answers, 129 views tikz-pgf asymptote draw
I need to draw something like this, can anyone tell me how to do this with Tikz or recommend a program to draw diagrams like this one?

### drawing a line inside a node

Is it possible to draw a line with a specific length, angle and colour inside a node. I use the following code to draw a circle and something that imitates a line inside a node. \documentclass{...

### 1 Hf-tikz anh tikz package

I have some problems with these packages; if anyone of you could help me I would really appreciate. Here's my code: \documentclass[ignorenonframetext,fleqn]{beamer} \usepackage[english]{babel} \...

### 8 Labeling a circuit element with its symbol and value on both sides

3 answers, 5.060 views tikz-pgf circuitikz
I have modified the circuit code given in Voltage sign convention (European vs. American) in Circuitikz to serve my presentation in circuit making. However, I am unable to change the voltage source ...

### 1 PGFplots: extract coordinates, assign to global with dynamic name

1 answers, 31 views tikz-pgf pgfplots intersections
I would like to loop over nodes, extract their coordinates in the axis coordinate system, and assign these to dynamically named macros. (This is a followup on this and this.) Following this answer, I ...

### 2 Want to replicate this graph and don't know packages to get started ?

4 answers, 148 views tikz-pgf pstricks
Want to replicate this graph and don't know packages very well to get started drawing. Please any direction would help.

### 3 Unwanted extra vertical spacing with tikz: is it a bug?

1 answers, 213 views tikz-pgf spacing boxes
I am writing an environment to format its content in a box with a background and that can be split across pages. I am using a splitting algorithm similar to the one used in the boites package. I want ...

### 4 How to make invisible a line in TikZ

1 answers, 156 views tikz-pgf pgfplots
I tried unsuccessfully to remove or to make invisible the line connecting the left wall to the first block $m_1$. How can I do this ? I think it's an easy thing, but I don't know exactly. The code is:...

### 2 Why coordinates are shifted but not scaled

1 answers, 31 views tikz-pgf scoping spy
I'm trying to draw on the spy'ed area \documentclass[multi={tikzpicture,wrapper}]{standalone} \usepackage{amsfonts} \usepackage{tikz} \usetikzlibrary{calc,spy} \begin{document} \begin{...

### 3 Is it possible to create a newcommand using tikzpicture with multiple arguments?

1 answers, 81 views tikz-pgf macros

### 2 Tikz + breqn: Compiling never finishes with |-Symbol

1 answers, 50 views tikz-pgf debugging breqn
I just occurred a strange error in tikz. The following MWE never finishes on my machine (MikTeX, breqn Version 0.98e, tikz Version 3.0.1a): \documentclass[11pt,a4paper]{article} \usepackage{tikz} \...

### 1 position and align of label

I have to move the text of a node such that the text is right of the node, but I do not see how to combine this with align=left. In the following MWE (much simplified) the node (c) should have the ...

### 2 How to plot boolean (digital) variables using pgfplots?

1 answers, 260 views tikz-pgf pgfplots groupplots
I work with electrical power systems and always I need to plot voltage and current signals. Sometimes I need to plot boolean signals. I'm using pgfplots and groupplots specifically to do this work as ...

### 18 How can I draw a chord of a unit circle?

3 answers, 2.009 views tikz-pgf diagrams
How can I draw this? Here's what I've been able to do until now \documentclass{report} \usepackage{tikz} \usepackage{amsmath} \usepackage{amssymb} \usepackage[latin1]{inputenc} \usepackage[francais]{...

### 2 How to draw the Errera's graph

1 answers, 68 views tikz-pgf graphs tkz-graph
someone could you give me an example to draw this graph? My difficulty is set lengths in each vertex, I use tkz-graph Uncompleted example \documentclass[tikz]{standalone} \usepackage{tkz-graph} \...

### Beamer + TikZ-foreach: Every step a new frame on handout

1 answers, 31 views tikz-pgf beamer graphs handout
I'm preparing a presentation with Beamer and TikZ to explain Dijkstra. The following graph is explored step by step and for each step there's a new frame. \tikzstyle{vertex}=[circle,fill=black!25,...

### 1 LaTeX matplotlib pgf shows no colorbar - instead shows colorbar png image filename [duplicate]

0 answers, 22 views tikz-pgf python matplotlib
Moved from Stack Overflow I'm producing various plots with matplotlib and save them as PGF files. These are then imported in my LaTeX file and compiled using the pgf package. The problem is, I can't ...

### 1 No shape named … is known

For this error I can not find a correct answer %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % Welcome to Overleaf --- just edit your LaTeX on the left, % and we'...

### 4 TikZ macro for mathematical operation

1 answers, 193 views tikz-pgf math-mode macros
I have the following code \documentclass[12pt,oneside]{book} \setlength{\parindent}{0em} \setlength{\parskip}{1em} \usepackage[a4paper,bindingoffset=0.2in,% left=0.5in,right=0.5in,top=1in,bottom=1in,...

### 3 Rectangle parallel to a radial direction

3 answers, 139 views tikz-pgf coordinates polar
I wanted to draw a rectangle parallel to a radial direction and I achieved this, but I would like to know if there is a more elegant way to do it. Here is my MWE: \documentclass[border = 0.5cm]{...

### 2 How to align subfigures of different heights in the same row (2)

2 answers, 38 views tikz-pgf subfloats matrices
(This question is related to "How to align subfigures of different heights in the same row"). I plot have plotted an array of 2x2 matrices with this code: \documentclass[journal,twocolumn,10pt]{...

### 2 How to add options to a graph from within a Lua layout algorithm

0 answers, 32 views tikz-pgf luatex tikz-graphdrawing
I'm working on a graph layout algorithm for use with the graphdrawing library in TikZ, and part of what I'd like to do is use the length of an edge label in calculating edge lengths. If the label is ...

### 2 Drawing a triangular array with a nested \foreach loop in TikZ

I am trying to draw a triangular array of dots with the following code: \begin{tikzpicture} \foreach \x in {1,2,...,5} { \foreach \y in {1,2,...,\x} { \draw[fill=black] (\x,\y) circle (.25); }} ...

### 1 Wrongly calculated (or displayed) x-coordinate in tikz

1 answers, 26 views tikz-pgf nodes pgfmath
I would like to plot the following figure: but only that in the nodes x_1,x_2,x_3 the right coordinates of the points displayed. The corresponding MWE is the following - I have included the entire ...

### How to align subfigures of different heights in the same row

2 answers, 79 views tikz-pgf graphics subfloats subcaption
The following code: \documentclass[journal,twocolumn,10pt]{IEEEtran} \usepackage[compress]{cite} \usepackage{times} % Font Times New Roman throughout the document \usepackage{subfigure} \usepackage{...

### 4 tikz postaction using edge

2 answers, 76 views tikz-pgf tikz-styles tikz-arrows edge
Problem I want to add a tikz style which affects only some arrows in a large diagram, and adds a postaction. I also need to bend and label these arrows, so many are created using the edge command. ...

### 2 Create “modulo 360” x-axis in pgfplots

I have the following code: \documentclass{article} \usepackage{tikz} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{axis} \addplot coordinates{(10, 20)(90, 80)(170, -50)(...

### 1 \includegraphics with transparent

Description I wanted to create a PDF with resource images (square). With this resource image (See below), it contains transparent space. I use \includegraphics to include an image. But when I ...

### 4 Strange behaviour of \path coordinate in \foreach loop

For me (using pdflatex: pdfTeX 3.14159265-2.6-1.40.17 (TeX Live 2016)) the following code compiles fine, but if I uncomment the second loop it fails to compile with a "Giving up on this path..." error ...

### 2 Drawing a graph with dashed line [on hold]

0 answers, 63 views tikz-pgf pgfplots
I wanted to draw a graph like this but I got this Which I consider very good as I'm just a beginner, now I need to know how to put the dashed line and the point of interest on the graphs and how to ...

### 1 Problems drawing curves on ellipsoid

I'm trying to draw an ellipsoid but I have trouble matching this dashed curve with the limit of the shading in the picture, as you can see in the image ... what am I forgetting? \documentclass{...

### 9 Plot Fibonacci Sequence (with tikzpicture)

How do I plot the Fibonacci sequence (using tikzpicture preferably)? \documentclass{article} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{axis}[xmin=0, xmax=30, ymin=2, ymax=3]...

### 8 Complex Count in \foreach for number line

2 answers, 624 views tikz-pgf counters foreach
I am looking to create simple number lines. I have asked a similar question: Resetting numerical labels in \foreach commands on a numberline. But now I am in a different situation. I know how to ...

### 3 Plotting sin(x) over generated interval using tikz

I have the following code to generate a simple interval \begin{tikzpicture}[scale=3, nodes={ execute at begin node=$, execute at end node=$ }] \draw[-, thick] (-1,0) -- (1,0) node[...

### 15 Embed a graph on a Sphere with TikZ?

1 answers, 275 views tikz-pgf tikz-styles
I want to draw a graph on a sphere using TikZ. Something like this (please excuse my crude drawing): Is there a way this can be done automatically? I'm sure there's a way to perform a change of ...

### 4 How to draw differently, visible and hidden part of arbitrary circle on a sphere

1 answers, 128 views tikz-pgf tikz-3dplot
I would like to draw a sphere with several circles (not necessarily passing through the center of the sphere). I would like to give a style to the visibles parts of circles and another to hidden parts....

### 13 Plotting the chi square distribution with TikZ

I have tried without success to plot the curve of the chi-squared distribution. Is there a generous soul who can come to my rescue.

### 1 Tweak anchor points and direction of zig zags for TikZ digram

1 answers, 23 views tikz-pgf tikz-arrows
I have an example here for a database diagram: \documentclass{tufte-handout} \usepackage{tikz} \usetikzlibrary{shapes.multipart} \usetikzlibrary{matrix} \usetikzlibrary{positioning} \usetikzlibrary{...