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
4
votes
1answer
65 views

Create projection inside matrix - tikz 3dplot

I can create two nodes in tikz-3dplot, and create a projection like view, like this : But how to create view like this(the right one- only those projection lines) ? I have created the basic, I just ...
0
votes
1answer
83 views

PDFA generated with pdfathesis is 20 times as big as the normal PDF

I was happy to being able to create a PDFA document of my dissertation by means of the pdfathesis package. However, my dissertation in PDF format uses 3MB while the PDFA file is 85.3MB big. I found ...
0
votes
0answers
30 views

How to add a Data Table, Error Bar and Grid Line like below diagram? [duplicate]

I created a bar graph, but struggle in added in Data Table, Error bar, Grid line. \documentclass[tikz,border={10pt 20pt 5pt 5pt}]{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.16} % <-...
1
vote
1answer
47 views

Trend line is not matching with the excel trend line

I am plotting a scattered graph with trend line using following code \RequirePackage{fix-cm} \documentclass[smallextended]{svjour3} \usepackage{tikz, pgfplots,pgfplotstable} \begin{document} \begin{...
1
vote
1answer
58 views

Editing pic TIKZ block

I'm drawing the following diagram: And I'd like to pass "PWM Inverter" as a parameter when creating the block, which I couldn't do... Also, I'd like to increase the size of the text inside the block. ...
1
vote
1answer
42 views

TikZ - Figure depicting the equilibrium structure of a game (with text within two axes)

I am trying to produce the following figure depicting the equilibrium/equilibria structure of a game (game theory) with some text within two axes (X and C, separating them by dashed lines connected to ...
-1
votes
1answer
74 views

Need help to draw the following picture?

How to draw the following picture in latex? I do not have much experience in tikz, could anyone kindly help? Thanks a lot!
2
votes
1answer
68 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
298 views

How can I draw this figure about Hidden Markov Model?

How can I draw this figure about Hidden Markov Model?
6
votes
3answers
345 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
43 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
60 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
90 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
104 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
62 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
63 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
114 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
259 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
172 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
39 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
153 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
88 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
299 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
406 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
83 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
57 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
35 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
58 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
51 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
97 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
45 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
36 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
60 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
116 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
123 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
591 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
722 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
111 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
82 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 ...
4
votes
1answer
128 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
29 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
185 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
295 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
87 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
50 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
91 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
155 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
112 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
290 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
208 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 ...