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
2
votes
1answer
51 views

Division by zero error when using adjustbox and makebox

first question in this stack community. I'm trying to create a new style for title page: \documentclass{article} \usepackage[italian]{babel} \usepackage[paper=a4paper, top=4cm, bottom=2.5cm, left=2....
1
vote
2answers
202 views

How can I draw this figure about Hidden Markov Model?

How can I draw this figure about Hidden Markov Model?
6
votes
3answers
303 views

Tikz Payoff Matrix

I am trying to remove the bottom two rows (C and D) completely so as to create a 2*4 payoff matrix. In addition to this, I would also like to move "Player 2" up slightly once they have been removed (...
2
votes
1answer
36 views

Reflecting object in tikzpicture

I'm trying to use tikzpicture to draw the different conics. To finish, I want to reflect the two arcs I drew around the y axis to get a hyperbola but I don't know how to do that. The reflected part ...
1
vote
2answers
51 views

Drawing parabola shape using Tikz

I had like to draw a general curve shape (kind of parabola) using Tikz. I have managed to draw half circle as follows (black line): \begin{figure}[htbp] \centering \begin{tikzpicture}[...
1
vote
2answers
84 views

Behavior of coordinates when using TikZ

I am trying to position node(2) in a page in coordinates related to the page (origin at upper left corner of the body of the page). My code is: \documentclass[border=10pt,a4paper]{memoir} \usepackage[...
1
vote
2answers
72 views

Tikz: Block diagram with summation block having crossed lines

I want to draw the block diagram as shown in the below figure. I have made the following code \documentclass{article} \usepackage{tikz} \usetikzlibrary{shapes,arrows} \begin{document} \...
1
vote
1answer
46 views

How to pass position arguments correctly from pic to new command in tikz?

I am currently trying to draw an cannibals and missionaries diagram, so far I have gotten to , but some of my code is inefficient, in particular is there any way to functionize the positioning for the ...
1
vote
1answer
59 views

Chalenge in tikz

I'm working on a aerodynamic proyect and i have to do something like this in the report. I'm just interesed in the vectors, not in the airplane. How can I do to make a tikz picture to be as similar ...
2
votes
1answer
101 views

Making an environment to draw over a picture with TikZ

Following up on this answer, I've decided to just make this a new environment. Below is my MWE using packages xparse and tikz: \documentclass[10pt,a4paper]{article} \usepackage{xparse,tikz} \...
15
votes
1answer
251 views

pic versus macro in TikZ

Consider this code in the TikZ - PGF manual, which uses a macro % Main code from % The TikZ - PGF manual % Author: Till Tantau et al % Version 3.1.3, released May 9, 2019 % Page 40 \...
1
vote
2answers
107 views

creating a square 9x9 grid

I am new to latex. Is there a way to create shogi diagram like this picture using tikzpicture? I have tried tabular with square cell and rotating package for rotating kanji and created some very plain ...
0
votes
0answers
37 views

Drawing piecewise-defined function using TikZ [duplicate]

I have a function f(x):=\hat{f}(x-\lfloor x\rfloor), where \hat{f}(x) = \left\{ \begin{array}{lcl} 2x & \mbox{for} & 0\leq x\leq \frac{1}{5} \\ \frac{1}{2}+\frac{1}{3}(2x-1) & \...
1
vote
1answer
126 views

How can I draw a wavelet system in Latex?

I'm trying to draw a figure to introduce a wavelet transform system as follows. I used tikzpicture to draw a lot of block nodes and connected them using arrow. However, I am struggling in the left-...
1
vote
1answer
62 views

different colours and customizations for individual vertices/nodes for a tikz graph

So I draw my graphs like \documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} \tikzset{Bullet/.style={fill=black,draw,color=black,circle,minimum size=3pt,...
7
votes
3answers
268 views

Overlapping nodes in a decision tree

I have the following decision tree taken from this example with little modification. When I added two sub-nodes to the second right node, the inner left and inner right nodes have been overlapped. How ...
4
votes
2answers
325 views

Generating adjacency matrices from isomorphic graphs

Here are some isomorphic graphs and their corresponding adjacency matrices. I can draw the graphs with tikz. But I'm not sure the best way to draw the matrices. Is it possible to generate one from ...
3
votes
1answer
53 views

Two side by side flowchart (tikz-flowchart) with box and label for each

I need to draw two flowchart using TikZ with a box around each flowchart and a label. I'm new to Tikz library and I have looked similar questions regarding pictures and tables and figures. They ...
1
vote
1answer
50 views

Caption of tikzpicture and modify vertical space

Caption of tikzpicture placed in wrong postion (see image) My code is: \documentclass[8pt]{article} \usepackage{caption} \usepackage{pgfplots} \usepackage{translator, tikz, array} \usepackage{...
1
vote
1answer
34 views

How to draw a curly brace at a correct location between 2 points with coordinates in a plot?

\documentclass{article} \usepackage{tikz} \usetikzlibrary{decorations.pathreplacing} \usepackage{pgfplots} \usepackage{xcolor} \begin{document} \begin{center} \begin{tikzpicture} \begin{...
3
votes
2answers
54 views

Named paths inside a tikz/pic

I am trying to understand the naming behavior of paths inside a pic definition. Consider the following \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{intersections} \tikzset{% ...
1
vote
1answer
43 views

Illustrate segments along a function in tikz

What is a good way to illustrate certain intervals along a curve? I start a MC-curve. Between SR and LR there should be one additional line-segment. Finally a third line starts at LR on MC. All in ...
2
votes
1answer
90 views

Tikz in xetex - Recreate two ways of presenting/displaying old sources

I would like to present old digitalised sources with tikz picture in LaTeX for private purposes similar to the presentation of Luther's sources by Google, which you can see here: https://...
0
votes
1answer
39 views

Tikzpicture / PGF layers rendering in the margin

Alrightly folks, I have one that has stumped me thoroughly and hopefully one of you beautiful brilliant people can help me out. I am attempting to use tikz/pgf to enable me to use absolute ...
1
vote
1answer
29 views

tikz: left side of line rounded, right side of line faded out

So I'm new to the Tikz-package and I would like to know how I can make following line: Now I don't know how to do that, but I'm able to make this two lines (the color doesn't matter): The two lines ...
2
votes
1answer
54 views

Length of matrix delimiters using TikZ

I'm trying to explain the Sarrus method and to draw the lines between nodes I'm using the tikz and matrix packages. However, when the delimiters are not parentheses but vertical bars (and also ...
3
votes
1answer
95 views

TikZ: How to pass default option to pic?

Is there a way to pass default options to a pic? In the MWE, the option transform shape is passed to an instance of a pic. Is it possible to make this option the default for all pics square such that ...
2
votes
1answer
119 views

How to pass boolean value to a tikz option key

I have trouble understanding how to properly use tikz keys and pass them. Let's say I want to code two tikz pics with both a "fill" argument. I sometimes end up writing things like the example below. ...
9
votes
3answers
525 views

How to fill a split node with two different colors?

I have that issue when try to fill a split node with two different colors. After using rectangle split part fill={red,blue} as an node argument the drop shadow overlap the node because I don't use the ...
0
votes
2answers
617 views

Triangular Prism in LaTex [duplicate]

How do you draw a triangular prism like this in LaTex? Thank you I also please need help in labeling all the vertices, thank you
2
votes
1answer
90 views

Labeling a a tikzpicture vertex in math mode

I'm surprised I cannot find this answer on here yet; I want to label a vertex with math mode, no equals sign, and to clarify, this is not a node, but a vertex, perhaps rewriting a tikzpic might work ...
3
votes
1answer
71 views

How do I draw a bar under a node in tikz?

I have the following tikz template (in the file template.tex), where I define a tikzpicture \def\mysearchtree{ \begin{tikzpicture}[-, >=stealth', level/.style={sibling distance = 4cm/##1, level ...
3
votes
1answer
108 views

How to move tikzpicture with named nodes?

I am trying to position an image with rounded corners to a specific position on screen. However, according to the following post, yshift and xshift do not affect nodes that are named and I am still a ...
2
votes
1answer
28 views

Aligning minipage with a tikz picture vertically simply with tabular and makecell

Why does the top argument of minipage not effect the tikz content of the minipage, when it does effect simple text? Here is my code: \documentclass{article} \usepackage{makecell} \usepackage{tikz} \...
3
votes
4answers
165 views

How to make a flow chart with the arrows across the box?

I want to draw a flow chat like this But I have no idea how to make those arrows across the box, and make the boxes larger. \documentclass{beamer} \usepackage{amsmath} \usepackage{tikz} \usepackage{...
3
votes
2answers
277 views

How to use fit tikzpicture in a LaTeX file

I use tkiz to draw a picture in LaTeX. It works with me with \documentclass[border=5pt,tikz]{standalone}. However, when I try to use the same code in my original LaTeX file \documentclass[english]{...
3
votes
1answer
71 views

How to implement an image as TikZ pic?

In my never ending effort to learn more about Tikz, I tried to visualize a RAID system data flow. ;-) I tried to "convert" at least the cylinders into a pic, but totally failed. Now a have a ...
1
vote
1answer
48 views

Change global tikz style from inside a tikz pic

OK, guys. I had a strange idea and wanted to check with you if there is a way to do it. I couldn't get any insight from the pgfmanual, and I couldn't find similar questions either. I wanted to use a ...
2
votes
2answers
74 views

How can I put two bayesnet object in a row?

How can I put two bayesnet object in a row with one caption for the whole? The post about tikzpicture Two tikzpictures side by side does not work in the sense that: picture size is in fact not ...
1
vote
2answers
148 views

Drawing a block diagram in Latex

I am a new user to Latex. Recently I have decided to use latex for preparing my project instead of using MS word. Can any one please help me to draw this block diagram for my project. Thanks in ...
1
vote
0answers
107 views

Placing a tikz under a text [closed]

I drew two tikz pictures and I placed them side by side. The issue I have that that how to make them placed right below the text "The above remarks completes all the steps we need for Green's approch."...
1
vote
0answers
240 views

Best strategy to import and annotate CAD-drawings in Tikz

I would like to import CAD-drawings into TikZ to add some annotations/arrows/... . My CAD-software is able to export drawings as DWG/DXF and PDF. I could of course import the drawing as a picture ...
0
votes
1answer
187 views

how to draw a hollow cylinder using tikzpicture

Can any one please suggest modifications of the following code so that I end up with a pretty hollow cylinder as the hand drawn image below? Tried this for a few minutes but it is a bit of struggle ...
3
votes
2answers
65 views

Currency symbol not working in tikzpicture

I want to create a currency exchange graph as shown with currency symbol instead of wordings in nodes. and this is the original code \documentclass[10pt,a4paper]{article} \usepackage{tikz,tkz-berge} ...
4
votes
1answer
99 views

making a cartoon plot of some grids using tikz

I want to use latex to generate similar figure as following plot using tikzpicture. For instance using the example given here \documentclass{article} \usepackage{tikz} \begin{document} \begin{...
0
votes
2answers
101 views

(easy) How to remove the solid boundary of a shaded region

I would like to remove the solid boundary of this shaded area. How should I do that? Here is my code \begin{tikzpicture} \draw[fill=gray!30] plot[smooth, samples=100, domain=1:3.8] (-\x,\x) -| (0,0) ...
8
votes
2answers
357 views

Tikzpicture scope background image

I copied and modified the code given on http://www.texample.net/tikz/examples/swan-wave-model/ \begin{figure}[H] \begin{tikzpicture}[scale=.5,every node/.style={minimum size=1cm},on grid] \...
0
votes
1answer
76 views

How to fill in node names and node values in pic environment with predefined variables?

I got a graphic with many nodes (~40). I want to add the same type of "sub-nodes" to each of them (view image, one node with a label that contains a name and another node with a label that contains a ...
7
votes
1answer
125 views

How to give a name to \pic (part II)

When I was looking for the solutions of How to give a name to \pic, I discovored that it looks like that the problem is only with the code of \tikztostart in the to path and not with the \tikztotarget....
0
votes
1answer
133 views

tikz pic scaling with line width

How can I scale also the values of line width in this MWE? \documentclass[tikz,border=5mm]{standalone} \begin{document} \tikzset{ mytest/.pic = { \draw[blue, line width=0.5cm](0,0)--(90:1....