Questions tagged [tikz-pic]

A “pic” is a “short picture” that can be inserted anywhere in TikZ picture where you could also insert a node.

Filter by
Sorted by
Tagged with
0
votes
0answers
13 views

Aligning bullet in tikz with some other issues

I want to change a few things in the following picture: (1) Aligning the bullet (d) vertically upwards from where the picture starts. (2) The self loop at q4 slightly upwards [may be using angle and \...
0
votes
1answer
52 views

In tikz, how to pass named coordinates to a named pic?

I have found problems when passing a named argument to a pic, but only when the pic is also named. Follows the illustrative code and the problem occurs in the line tagged with %NOT OK. That line gives ...
0
votes
2answers
43 views

Tikz standalone the border is not working

I'm currently developing an LFSR drawing library that the latex is output from Python code. One main issue that has been left is the border. \documentclass[convert={density=300,size=1080x800,outext=....
2
votes
1answer
40 views

Tikz standalone the background is transparent make it white

I'm using the below Latex code to draw a tikzpicture \documentclass[convert={density=300,size=1080x800,outext=.png},tikz, border=1cm]{standalone} \usepackage{{xcolor}} \usetikzlibrary{arrows.meta} \...
1
vote
1answer
67 views

Is TikZ most appropriate for drawing cartoon for Latex documents? If not, is there any suggestion on which software might be preferable?

For example, I wish to draw simple figures such or and include them as vector graphics in Latex documents Is TikZ the most appropriate tool to use? Meaning, how difficult/time consuming would it be ...
3
votes
1answer
74 views

Tikz: Setting an anchor in a pic for relative positioning

I have created a pic of a simple polygon which I want to use and reuse to create tikzpictures containing copies of it positioned relative to each other. How do I do that? If I did not have the pic, I ...
0
votes
1answer
27 views

graph on latex with too many data points, giving me timeout [closed]

So, I am writing a report which contains graphs, graphs are with a huge amount of data points. one graph only could contain more than 32,000 points, and I am using tikzpicture and adding coordinates ...
2
votes
1answer
26 views

Unexpected capacity exceeded

The following code gives me an unexpected capacity exceeded error, and I don't understand why... \[\begin{tikzpicture}[xscale=5, yscale=5.5] node (1) at (0,0){ $\begin{tikzpicture}[xscale=0.6, ...
3
votes
1answer
162 views

Enhanced animation

I started with a simple animation and tried in the second step to improve it. In the second frame I included a long horizontal rectangle, filled by white squares (foreach loop). Is there a way to save ...
0
votes
1answer
139 views

labeling points on the circle with the same symbol

I am trying to draw a circle centered at A(1,1) and radius 1. I also want to draw 2 dashed lines from center to the points B(1,0) and C(0,1). here is my progress \begin{tikzpicture} \tkzInit[xmin=-...
0
votes
0answers
18 views

How to zooming out multiple figures in a single slide? [duplicate]

I'm preparing for a presentation. I have four figures (fig 1, fig 2, fig 3 and fig 4). I want to show the fig 1 in the whole slide and then zooming it out to the top left corner of the slide. Then to ...
3
votes
0answers
101 views

What Causes (and How to Reproduce) a Tikz Pencildraw Anomaly

The code: \documentclass[12pt]{book} \usepackage{tikz} \usetikzlibrary{decorations.pathmorphing} \definecolor{darklavender}{rgb}{0.45, 0.31, 0.59} \begin{document} \thispagestyle{empty} \begin{center}...
2
votes
1answer
49 views

Simple toggle animation won't work

I tried a simple toggleanimation. First i create a bool value If I set it to true, the if path is performed, set it to false results in the else path. So far so good. Within an animateinline i want to ...
0
votes
1answer
55 views

Text and tikz animation in one slide

I found a TikZ animation example here. In the next step I tried to put text beside the animation, doing the following: \documentclass{beamer} \usepackage{tikz} \usepackage{animate} \usepackage{ifthen} ...
0
votes
0answers
28 views

Package pgf Error: No shape named A known

I am trying to draw a 2-coloured graph, but my code does not compile. Interestingly enough, I had no problems with it until I used the babel package to change my document's language. Here is my code: ...
1
vote
0answers
22 views

Combination of babel - czech and tikzpicture

Why does \usepackage[czech]{babel} make problem in this code, please? I obtain an error: Missing number, treated as zero. \documentclass[11pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[...
0
votes
1answer
93 views

Absolute position of a drawing on the sheet

I would like to correct a little the position of the drawing (it's a very large drawing, but it's a block in itself). The code is really simple (I'm just starting with Tikz): \documentclass{article} \...
1
vote
1answer
98 views

How to enhance the background of a Tikzpicture or a Tcolorbox

I would like to produce either a tcolorbox or a tikzpicture that closely resembles the following image: The following code produces as reasonable facsimile, but not great: \documentclass[12pt]{book} \...
0
votes
1answer
47 views

How to put series of small graphics on the graph?

I am making plots with y-axis breaks by placing one \nextgroupplot above the second one. These plots have not only curves but also some additional graphics, which are assigned to bottom coordinate ...
1
vote
1answer
43 views

assign a name for pic in tikz

I have a /.pic in tikz, but I can not assign a name for that. I want to draw some block in the right of that pic. I have attached the figure which I want. Could you help me with how to solve that? ...
0
votes
1answer
140 views

How to draw a complicated tikzpicture in LaTeX

Recently, I am learning to use LaTeX to draw a tikzpicture, and found there was a attractive figure in the IEEE paper. May I ask how to draw the figure like this? I know there is the /node structure ...
2
votes
1answer
72 views

LaTeX Produces a Tikzpicture with the Color I Want---but with Error Messages Indicating the Color is Not Defined

I have written some code to produce a tikzpicture with a lavender color that I later want to add some text to. \documentclass[12pt]{book} \usepackage{tikz} \usetikzlibrary{decorations.pathmorphing} \...
2
votes
1answer
127 views

Positioning rasters using Tikz

I am trying to position a raster which span on multiple pages using tikz, but cannot figure out how to do so. MWE without positioning which works: \documentclass[a4paper,12pt]{article} \usepackage{...
0
votes
0answers
35 views

Control text in Tikz picture that is turned a certain degree

I am making a small picture to explain the capacity of a car driving up a slope. I have problem controlling the labels that are next to each arrow. I would like to have them either perpendicular or ...
1
vote
1answer
68 views

How can I draw a line segment from an anchor node inside a pic?

I'm trying to draw a line from an anchor node inside a configurable object constructed as a TikZ pic, but it doesn't work. Is there an explanation and solution for this? \documentclass[10pt]{...
0
votes
1answer
53 views

Updating code for everypage from Overleaf document

I have a large document that I've written in Overleaf (pdfLaTex 2020 compiler). Each section compiles fine, but the whole thing takes more than 4 minutes to compile, so I need to download and compile ...
2
votes
1answer
63 views

Blotting Out the Curve Used to Bend Text in a Tikzpicture

This is a follow-up to a question I posted yesterday: How to Bend Words to Conform to the Arching Pages of an Open Book Image After receiving no answer to the above question, I have since been able to ...
0
votes
0answers
59 views

Self Learning (pgfplots, asymptote) in systematic manner from ab initio

Kindly guide in order to self learn in a systematic manner the following Pgfplots Asymptote for 2D and 3D drawings. Thanks
0
votes
0answers
37 views

How to make a path between multiple nodes follow a gradient in TikZ?

I'm trying to show trails on graphs. I thought a good way to display this would be to create a gradient of 2 or 3 colors. Each edge could have a solid coloring throughout, or the color could be a ...
0
votes
1answer
49 views

How to properly position text over full-page image (background) using Tikz?

I would like to be able to position text using coordinates using number of millimeteres from top left corner. Using Tikz, I have the following tex code, which does appear to position the text above ...
0
votes
0answers
23 views

\includegraphics with angle results in loss of quality of pictures

In a tikzpicture, in order to include pictures, I usually use a command like that \includegraphics[origin=c,height=5cm]{pic.png} and everything goes fine. But if I insert an "angle" option ...
3
votes
2answers
53 views

Referring a \pic by its name that is generated in a for-loop

I use a loop to place a list of pics, each of which has a bounding box. Then I refer to one of these bounding boxes, but tikz does not seem to get names generated by the for-loop. This is the code: \...
2
votes
0answers
71 views

Left-align TikZ pics and issue with TikZ graph

I'm trying to put together a more complex drawing from several TikZ pics. I have constructed a minimal example from which the challenges become visible (see below). After the styles, first the two ...
1
vote
0answers
54 views

Is there an option to simulate the drawing of a TikZ pic without really drawing it?

Currently, I draw a TikZ picture with lots of TikZ elements and subelements. To do this, I use TikZ pic. Sometimes, I need to know the size of a pic prior to its drawing for the correct positioning. ...
0
votes
0answers
36 views

how I can draw this using tikz [duplicate]

Please help me. How can I draw this using tikzpicture. Thank you.
2
votes
2answers
221 views

using Tikz to create a maze

I created this figure with microsoft powerpoint but I'd like to make a similar one using latex because I am writing my document in latex. I already asked how I can make similar maze structure but in ...
0
votes
0answers
35 views

How to mirror and position the analog clock dials

I am trying the create analog clock dial with roman or standard numbers on display and at the same time create another one but the mirror image of it. I managed to do that but for some reason a third ...
1
vote
1answer
58 views

How to create a simple box that contains another box in Beamer?

I would like to create something like, or Does anyone know how to create these simple diagrams? Note: corner need not be rounded. Text need not be Hello World. Edge color need not to be blue.
0
votes
0answers
29 views

Problem with TexWork PDF generator in plotting TikzPicture

I have to export a PDF composed of a lot of pages, but OverLeaf can't compile (I use the free license). So I'm using the TeXWork program but among all the TikzPicture images, only one of these fails. ...
0
votes
0answers
21 views

Fill unbounded region between 3 or more lines

How can I fill the unbounded region between (A, B, C) with color red, I'm not talking about the triangle between these 3 lines, I'm talking about the region that is 3 way bounded by (A, B, C) with an ...
1
vote
1answer
109 views

Using tikz to generate some figures

Is it possible to use tikz to make the following figure: \documentclass{article} \usepackage{tikz} \begin{document} % Radius of regular polygons \newdimen\R \R=5cm \begin{tikzpicture} \draw [...
0
votes
0answers
36 views

Vertical graph issues

I have some difficulty creating a vertical graph with text attached. This is what i want to create: The graph allways starts and end with a "oplus" symbol and need to be 15cm at all times (...
2
votes
1answer
106 views

How to draw the the following directed graph with TikZ?

I am new to TikZ. I am trying to realize the photo using the TikZ package. I know how to draw these individual figures using tikzpicture. However I am not sure how I can place them in order and use ...
1
vote
0answers
104 views

Making a fairly general variational autoencoder with tikzpicture

I'm new to the forum due to having recent problems with a picture of the network-architechture of a variational autoencoder. Currently I have this code: \documentclass[tikz]{standalone} \newcommand\...
2
votes
2answers
48 views

horizontal alignment of multiple \pic objects

I want to group some tikz drawings together, and am using a pic for this. I further wish to use the pics as though they're ordinary nodes, and draw some connecting arrows. How can I horizontally align ...
0
votes
1answer
117 views

How to debug token positions in petri nets in TikZ?

Following an example given in How to make this TikZ picture more idiomatic? (environment diagram) I tried to use the pre-defined "pic" to place more "function definition icons" on the canvas using ...
0
votes
2answers
150 views

Nested TikZ pics (double angle symbol) [duplicate]

Edit: @js bibra pointed me to How do I mark an angle with multiple arcs? It seems like my question is kind of a duplicate, but there is still the matter of whether it makes sense and how to nest pics, ...
0
votes
1answer
44 views

Graph a function with \frac

I need to graph the function f(s)=\frac{s^3+7s^2+9s-128} {s^2+15s+24} ,where s greater than zero, please help me...
2
votes
2answers
162 views

Printing an element of a non-numeric array as the node label

I want to retrieve a member of a non-numeric array passed to a TikZ pic as an argument, to use it as a node label. \foreach easily does it while iterating over the array, but I cannot do it for the ...
0
votes
1answer
49 views

How to remove coordinate axes in tikzpicture?

I created this tikzpicture in geogebra. I just want the vector instead of coordinate axes shown in picture after running. I do not how to set the code given so that axes are removed and get just the $\...

1
2 3 4 5