Skip to main content

Questions tagged [tikz-pic]

{tikz-pic} is about questions concerning “pics” in a Ti*k*Z context. 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
0 answers
21 views

Putting labels below each bar in TikzPicture

I'm trying to create a graph like this: But I can only get it to look like this using legend text, but I want to put the text directly below the bar graphs (like 0ms, 50ms, 150ms) My code: \...
Erik's user avatar
  • 1
0 votes
0 answers
16 views

Issue with scaling every pic (angles tikzlibrary)

Hi everyone I need to scale a tikzpicture so I did it by \begin{tikzpicture}[scale=<factor>] but pics don't get scaled accordingly (It is reported in the TikzManual section 18.2 The Pic syntax). ...
Antonio's user avatar
  • 95
0 votes
1 answer
54 views

Where is the origin of coordinates in tikz

I am trying to create an equilateral triangle on my paper using LaTeX, but I do not understand how tikz (or tikzpicture) choose where is the origin (0,0) of its coordinates. After writing a text, I ...
Grieljis's user avatar
3 votes
3 answers
190 views

Node in unwanted position using tikzpicture

I am trying to adjust the position of a node in a tikz figure but for some reason the dot that I create doesn't show in the appropriate coordinate (0,8/3) that is imposed. @codeR suggested me to put ...
Waxler's user avatar
  • 712
0 votes
1 answer
38 views

How to set this tikzpicture on the right and texts on left of it using below mentioned preamble

\documentclass[11pt]{book} \usepackage[paperheight=9.5in,paperwidth=7.5in, top=1in, bottom=0.8in]{geometry} \setlength{\columnseprule}{0.4pt} \usepackage{amssymb,amsfonts} \usepackage{mathrsfs} \...
Noor Aslam's user avatar
0 votes
1 answer
33 views

Plotting a log graph with pgfplots

I've just found that we can draw plots from existing data directly with pgfplots : which is amazing. By curioisty, I tried to plot a series of data in a log scale and I keep having an error that I don'...
Waxler's user avatar
  • 712
1 vote
1 answer
50 views

TikZ and Tabular - Connect Cells with Lines

I would like to connect the cells with the same color using diagonal lines. How can I do that with TikZ? I have tried using overlay and remember picture, but it somehow shifts the entire table. \begin{...
Hrvoje Krizic's user avatar
3 votes
1 answer
98 views

Change \includegraphics to a TikZ \pic in \pgfplotstabletypeset

I would like to change the content of my pgf table column "Image" from using an included graphic to a predefined TikZ \pic based on the information in column "Type". The \pic ...
PascalS's user avatar
  • 826
3 votes
2 answers
229 views

Generate TikZ \pics dynamically

I want to generate TikZ \pics dynamically. All information I need to setup the pic (name, x-coord, y-coord) are given in a tabular. Is there a way to inject these information to the TikZ environment ...
PascalS's user avatar
  • 826
1 vote
1 answer
52 views

How to print a \pic in TiKz aligned to one of its border?

The following MWE shows how to draw a background image with scaling and adding a predefined "PowerSupply" pic to it. This works great but the problem is, that the position where I want to ...
PascalS's user avatar
  • 826
4 votes
2 answers
175 views

wheelchart and danish letter æ ø å

Why can't I get the danish letter æ, ø, å ind the names in my wheelchart I want to write Mængder but it will not work for me. \documentclass[dvipsnames]{standalone} \usepackage[latin1]{inputenc} ...
Jakob Christian Kruse's user avatar
2 votes
1 answer
55 views

Name \pic object using loop variable

What is the good way to name \pic object when \foreach variable is used? I use the variable in \foreach as part of the node name. If I do not using local bounding box, then there is no shape name ...
CNDominic's user avatar
0 votes
1 answer
57 views

Cross-Referencing Label Affects Vertical Spacing

Consider the code with \label{L} (immediately above the second tikzpicture) commented out: \documentclass[12pt]{book} \usepackage[paperwidth=5.5in,paperheight=8.25in]{geometry} \textwidth=4in \...
DDS's user avatar
  • 8,826
0 votes
1 answer
85 views

Extracting an Interior Portion from a Tikz ClipPicture

Consider the MWE: \documentclass{article} \usepackage{tikz} \usepackage{graphicx} % % COMPILED WITH PDFLATEX \newif\ifdeveloppath \tikzset{/tikz/develop clipping path/.is if=...
DDS's user avatar
  • 8,826
4 votes
1 answer
196 views

Split a Tikzpicture Across Two Pages

Often enough, I run into the problem of a tikzpicture being too large to fit on the page where I would like it to be. Consider the MWE (compiled with pdfLatex): \documentclass[a5paper,12pt,openany]{...
DDS's user avatar
  • 8,826
3 votes
2 answers
217 views

How to Neutralize TikZpicture Codings without Deleting Them?

I have a document which contains over one hundred tikzpictures similar to the ones seen below. I would like to (easily, if possible) produce two different documents from that set of code---(1) as it ...
DDS's user avatar
  • 8,826
0 votes
1 answer
65 views

How to draw the shape shown in the below image using tikz?

\documentclass[12pt]{article} \usepackage{graphics} \usepackage[dvipsnames, xllsnames, svgnames, table]{xcolor} \usepackage{tikz} \usepackage{tikzpagenodes} \usetikzlibrary{arrows, shapes, ...
Vishakha's user avatar
  • 119
-2 votes
1 answer
52 views

How to draw the depicted contour in tikz? [closed]

How may I draw the following image as a tikzpicture?
Robin's user avatar
  • 179
7 votes
2 answers
1k views

How to Sharpen a PDF Drawing

The following Wikipedia image is in the public domain: Using \includegraphics, I incorporated the image into some LaTeX code, edited out the border, and saved the remaining portion as a PDF. Now, ...
DDS's user avatar
  • 8,826
0 votes
1 answer
49 views

Problem with tikzpicture and matrix for Flowchart

I have a problem with my generated Flowchart using \matrix and tikzpicture. I want to create a chart like the one which i drew in the attached image. So i was using as a base the Flowchart in: https:/...
philbill's user avatar
1 vote
1 answer
102 views

How to Type a Scaled Greek Letter to Fit an Arched Page of a Tikzpicture

MWE (compiles with XeLaTeX): \documentclass{tufte-book} \usepackage{xcolor} \definecolor{PrussianBlue}{cmyk}{1,.41,0,.67} \usepackage{geometry} \usepackage{scalerel,scalefnt} \usepackage[LGR,T1]{...
DDS's user avatar
  • 8,826
1 vote
0 answers
84 views

How to Arch an Image to Fit a Tikz Decorations Page

Consider: \documentclass{tufte-book} \usepackage{xcolor} \definecolor{PrussianBlue}{cmyk}{1,.41,0,.67} \usepackage{geometry} \usepackage{tikz} \usetikzlibrary{decorations.text} \tikzset{mydecor/.style ...
DDS's user avatar
  • 8,826
0 votes
1 answer
71 views

How to make a tetragonal pyramid?

I have the following code for an octahedron. I need to remove the below part of that and write A, B, C, D, E for each vertex. I do not know how to do that. Your help will be appreciated. \[ \begin{...
user118746's user avatar
3 votes
1 answer
98 views

Getting pics to act like a chain

I am taking the code I put together in With TikZ, is it possible to split a node horizontally and vertically?, and make it into a pic. This is doable, but placing successive pics is problematic: pics, ...
sgmoye's user avatar
  • 8,621
1 vote
1 answer
75 views

How to uniformly distribute pics on a curve?

I want to create a path in the form of a Bezier curve and place pic figures evenly along the path. In this example, the pics are only placed between the last two points of my curve and they are not ...
krysttof's user avatar
0 votes
1 answer
58 views

Convex hull of a line and a circle

How to draw the convex hull of a circle and a line in a grid. The picture is attached.
6-0's user avatar
  • 217
1 vote
1 answer
108 views

Draw loop on a torus [duplicate]

How to add loops winding all the way around the torus and simple loops to this torus: \documentclass[tikz,border=1.14mm]{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.15} \begin{document} ...
ale_7's user avatar
  • 11
4 votes
1 answer
54 views

Relative positioning of pic elements

I've started using pic elements to avoid excessive copy-pasting, but I am likely doing something wrong when trying to place such elements using relative coordinates. The vertical placement on the left ...
Atcold's user avatar
  • 1,727
0 votes
1 answer
57 views

removing lines from a graph

Is there any way I can remove the straight lines from this image? it should look like this (first image) but it appears to be like this second one \begin{tikzpicture}[line cap=round,line join=round,&...
RIRM506's user avatar
  • 65
0 votes
1 answer
66 views

How to find "missing number, treated as zero" error in a code [closed]

There's an error on the end of the code and it says that there is "missing number, treated as zero" and i have no idea what that means. how do i find it in this code? \begin{axis}[ x=1....
RIRM506's user avatar
  • 65
-3 votes
1 answer
92 views

Diagram a bit cramped

I got this codes off an Al bot but they are a bit cramped. I need an edit please \documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture}[every node/.style={circle, draw, ...
Megamind's user avatar
0 votes
0 answers
21 views

Tensile Load a load that stretches or pulls the body or structure along its length

\begin{tikzpicture} \draw[thick] (0,0) -- (4,0); % rod \draw[->,>=stealth] (0,0) -- (-1,0) node[left] {$P$}; % left force \draw[->,>=stealth] (4,0) -- (5,0) node[right] {$P$}; % right ...
simi's user avatar
  • 1
1 vote
0 answers
34 views

Relative positioning of tikz pic containing multiple nodes

I have a tikz pic that contains more than one node, but I am running into a problem when trying to position the pic relative to something else. \documentclass{standalone} \usepackage{tikz} \...
Frink's user avatar
  • 47
2 votes
1 answer
77 views

Why don't pic prefixes in TikZ work with matrix cell names?

When I have a pic whose code includes a matrix, things don't work when I use a name prefix for the pic: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{matrix} \begin{document} \begin{...
Frink's user avatar
  • 47
2 votes
2 answers
132 views

Automatic rotation and symmetry of a pic

I've got a tile that I need to rotate or to symmetrize a certain amount of times to make a pattern. I defined the pic itself and made the pattern manually. I failed to automatize the process. Is ...
SebGlav's user avatar
  • 19.2k
2 votes
1 answer
77 views

How to properly set optional boolean parameter for pic in tikz?

I try to draw beam on tikz with the possibility to hide its axis. I created the following: \documentclass{article} \usepackage{tikz} \usetikzlibrary{math, shadings} \usepackage{ifthen} \tikzset{ ...
Sindzicat's user avatar
  • 143
0 votes
1 answer
47 views

TikZ's pin option: problem with positioning ordered pair

In a separate post, @00dani provided a nifty way of labeling points with TikZ's pin option which I'm trying to mimic. options for labeling single point Specifically, in a system of 1 quadratic and 1 ...
Siuslaw Math's user avatar
0 votes
0 answers
27 views

\pgf plot: fatal compile error when replacing quadratic with linear function

I'm trying to slightly modify code that graphs 2 quadratic functions (h/t @TorbjørnT). The revision should graph 1 quadratic and 1 linear function. But when I replace \addplot [red] {x^2}; with \...
Siuslaw Math's user avatar
1 vote
1 answer
37 views

LaTeX reserving space for undrawn coordinates

I'm trying to write a function to ease the drawing of figures. I called this function \drawcurve as is shown below. It's purpose is to create a curve between 2 lines indicated by coordinates in it's ...
Siebe Arnout's user avatar
1 vote
0 answers
31 views

Instances of Background Boxes keep increasing with each Chapter/function call

I'm using the following MWE to create a PDF and when I edit the created PDF it reveals that with each chapter or \chapframe call the number of instances of boxes keep increasing. This can also be made ...
Paco89's user avatar
  • 11
3 votes
2 answers
179 views

Adapting a TikZ drawing

\documentclass{scrartcl} \usepackage{amsmath} \usepackage{sfmath} \usepackage{tikz} \usetikzlibrary{positioning} \usetikzlibrary{calc} \usetikzlibrary{shadings} \usetikzlibrary{shapes.geometric, ...
KevinC's user avatar
  • 99
2 votes
2 answers
76 views

Centering tikzpicture of a few centimetres

Good afternoon. I have to center this scheme. It's just a matter of a few centimetres :) The code of that part is the following: \tikzstyle{startstop} = [rectangle, rounded corners, minimum width=3cm,...
Dan_Mir's user avatar
  • 23
1 vote
1 answer
115 views

Project diagram with tikz

I want to draw the following project diagram with tikz. My attempt is below: \documentclass[border=10pt]{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw (0, 0) rectangle (...
MYaseen208's user avatar
  • 8,587
3 votes
1 answer
144 views

Adding braces above other braces on timeline graph

I am trying to add two orange braces as shown in the picture below: I am struggling to place them (in orange) on my diagram. Below is my MWE: \documentclass{standalone} \newcommand{\ImageWidth}{11cm} ...
itc's user avatar
  • 657
1 vote
1 answer
99 views

Tikz pic: alias to internal node

How could I define an alias to a node inside a TikZ pic? On this MWE, the black line is the line I'd like to obtain (using alias instead of relative positioning), while the red one is the best I can ...
tobiasBora's user avatar
  • 8,724
2 votes
1 answer
47 views

Right bracket marker in tikzpicture axis to draw closed set

I'm trying to draw a simple set interval with left/right paranthis for open sets and left/right brackets for closed sets. Here's how I'm drawing it: \begin{adjustbox}{width=\textwidth} \begin{...
squirem's user avatar
  • 123
4 votes
3 answers
342 views

Tikz pic: use internal nodes as anchor name

I'd like to use pics to easily and quickly create new node shapes. Sadly, I can't find how to use internal nodes to define anchors. For instance, I'd like the B to point to the small x in the ground ...
tobiasBora's user avatar
  • 8,724
1 vote
0 answers
104 views

Creating swimlane diagrams with flow charts

I want to create a vertical swimlane with 2 groups. In each lane I want to add a complex flow chart. How can I do that? I'm not familiar with a package that could facilitate this. I have the first ...
Missael's user avatar
  • 185
4 votes
1 answer
131 views

Arrow directions in a flowchart

I am trying to create a flowchart. So far, I have all the blocks I need. I simply need to create the appropriate 'flow'. I want the arrows in the following directions: How do I do that? I've tried ...
Missael's user avatar
  • 185
6 votes
2 answers
1k views

How to bend a word around the circle

I would like to bend the ``commutative rings'' around the circle. I would appreciate any help. \documentclass[a4paper, 12pt, openany]{book} \usepackage{tikz} \usetikzlibrary{calc} \colorlet{euler1}{...
Abdulhafeez Ayinde Abdulsalam's user avatar

1
2 3 4 5
7