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
1answer
52 views

How to get this graphics using tikz

How to use this code, to get something like in the picture ? \documentclass[10pt]{article} \usepackage{mathtools,relsize,tikz} \usetikzlibrary{calc,intersections,through} \begin{figure}[h] \def\...
1
vote
1answer
41 views

Equal boxes in tikzpicture

I have written below latex script to make a table, but the size of boxes depends on the amount of text inside them and it makes everything messy. My questions are: 1- Is there any way of making the ...
1
vote
1answer
26 views

/.store in, with default value in brackets

I would expect the following code to draw a red line, but it doesn't. \tikzset{ ls/.store in = \ls,ls={draw,red}, myline/.pic = {\path[\ls] (0,0)--(1,0);} } \begin{tikzpicture} \pic (0) at (0,0) {...
0
votes
1answer
14 views

problem with y label and x label

I have a problem with the axis labels. When I scale down the graph it changes my location and they don't look like they should. If I set the scale to 1 it looks good but I change the scale and mess up ...
5
votes
2answers
234 views

Tikz and lines with the Q letter

I do have a tex, that always show me a twolines, in a tikzfigure when letter Q is in the line. Let me share the TEX with you \documentclass[parskip]{scrartcl} \usepackage[margin=10mm]{geometry} \...
0
votes
1answer
48 views

How can I reproduce this image in a simple way?

I need to draw this simple scheme in latex, how would you do it in a simple way ?
0
votes
1answer
36 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[...
1
vote
1answer
28 views

Why does rotate option not rotate all objects (except labels) of my pic?

I've a pic including a spacecraft and a local frame attached to it as below. pics/spacecraft/.style n args={2}{ code={ \node [shape=rectangle, draw, fill=gray!30, inner sep=0pt, ...
4
votes
1answer
64 views

problem with fadings and pic

I try to generate several copies of a faded text using the PG 3.0 pic feature but something with the placement went wrong. Only the one at the origin is drawn. Here is what I have done: \...
2
votes
1answer
41 views

Drawing curved objects side by side with braces

I am trying to recreate the two following diagrams, but don't know how to shift the beaker to the right. I tried hspace but it did nothing. Also, how would I do the braces on the left with the text in ...
0
votes
2answers
71 views

How to insert 6 tikzpictures in a landscape page?

I inserted a landscaped page in my document to containing 6 figures. I want 4 small figures in the first row and 2 big figures in the second row. I have tried many ways but can't find a beautiful ...
2
votes
1answer
76 views

How to prevent from overlapping nodes in tikz

I have created a tree-like structure using tikz package. The problem I faced is that the nodes haven't got enough distance from each other and I want to avoid giving the static distance. How can I ...
1
vote
1answer
41 views

Failed to use the local bounding box produced by \foreach and \pic

I was confronted with a problem of \pic and \foreach in Tikz. Below is an MWE: \documentclass[tikz]{standalone} \tikzset{% pics/abc/.style={% code={ \node {this is some path}; } } } \begin{...
0
votes
1answer
64 views

how to draw $\ln(x+\sqrt{x^2-1})$ with tikz

I try this but it doesn't work \def\Xmin{-2} \def\Xmax{2} \def\Ymin{-2} \def\Ymax{2} \def\Xunit{1.5cm} \def\Yunit{1.5cm} \def\Xleg{\small \sffamily $x$} % légende en abscisse \def\Yleg{\small \...
0
votes
1answer
65 views

Drawing a section of a burette

Im trying to draw the following figure. But don't know enough of the tikzpicture package to create it. I didn't know where to begin. Please help.
5
votes
1answer
448 views

Perfect crossing of two dashed lines

I need to draw to dashed line which cross at the center of a circle using the tikz package. I would like to obtain a pefect cross at the center of the circle so I wonder if there is a method to force ...
2
votes
2answers
36 views

TikZ - Block with no margin problem

I want to eliminate the margin and put a red retangle along the left margin. I have a white space with the code: \newgeometry{top=0cm,bottom=0.0cm,left=0.0cm,right=0cm} \begin{tikzpicture} \fill[red]...
0
votes
0answers
45 views

Scale tikzpicture size with axis

How can I make the size of the tikzpicture be proportional to the axis length? For example, if I plot a function on ranges [0,2*Pi] and [0,3*Pi], how can I make the latter one be 1.5 times wider than ...
-1
votes
1answer
100 views

Drawing a mountain look figure in latex

I am not sure where I can start from and is it easy to draw a figure below using latex?
5
votes
1answer
322 views

Spherical Polar Diagram

I'm trying to recreate (pretty much copy) the Example image with Latex, but I can't really figure out how to draw the xz plane arc and the other arcs. I got it to a certain point, as seen below. ...
0
votes
1answer
28 views

Using tikzpicture as robust command within section title

I was trying to use a tikzpicture using a robust custom command in a section title as is it described here. I'm not getting error when using the robust command but my custom symbols definition is ...
1
vote
1answer
60 views

Edge between two tikz pictures

I am trying to draw some edges between tikzpictures in latex. I will post the code sample and a picture of what it looks like and a pic that gives an idea of how I would like the edges to look. I have ...
1
vote
1answer
50 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
1answer
41 views

unknown tikz picture error

I really don't know what the problem is but for some reason, this piece of codes works only once. I have it in an active document and it works fine, but now when I try to copy and paste it for a ...
3
votes
1answer
41 views

Ghostly lines in tiled clipped pics

I am trying to tile two clipped pic elements like this. \documentclass[tikz,border=2mm]{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} \tikzset{ one/.pic = { \path[clip] (0,...
1
vote
1answer
73 views

Drawing a cone and coloring it without its basis

How can I draw a cone and color it except its basis (circle). Then drawing an arrow from the colored part and adding a comment?
1
vote
1answer
61 views

Draw arrows between nodes defined in a pic

How can I draw an arrow between two nodes that are defined in a pic please. For example, how can I draw an edge from node A in the left hand side to the node A in the right hand side? Thank you. My ...
7
votes
1answer
109 views

How to use composite Tikz pics with rotation

I am trying to draw a tiled pattern, building it from simpler elements using pic. This is a simplified version of my code \documentclass[tikz,border=2mm]{standalone} \usepackage{tikz} \begin{...
1
vote
0answers
40 views

Is \tikzpictextoptions not supposed to contain the text after the quotes only?

\documentclass{article} \usepackage{tikz} \usetikzlibrary{quotes} \begin{document} \tikzset{ thing/.pic={ \node {\tikzpictext}; \node at (0,1) {\tikzpictextoptions}; } } \...
4
votes
1answer
101 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
147 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
43 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
72 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
88 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
78 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
88 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
109 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
540 views

How can I draw this figure about Hidden Markov Model?

How can I draw this figure about Hidden Markov Model?
6
votes
3answers
405 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
130 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
123 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
133 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
318 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
88 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
85 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
176 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} \...
16
votes
1answer
306 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 \...
2
votes
2answers
373 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
49 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
226 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-...