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
86 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 ...
0
votes
1answer
26 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
vote
1answer
27 views

TikZ: `behind path` Key Inoperative With Angles Library

I am using the angles library to label angles in my diagrams. I'm noticing, however, that the arc created by the angles package rests on a layer above the rest of the diagram by default, i.e., the ...
0
votes
0answers
46 views

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

I want to index an array of math symbols, passed to a TikZ pic as an argument, and draw that symbol as a node. The following attempt fails miserably. \documentclass{standalone} \usepackage{calc} \...
0
votes
0answers
11 views

Caption “Missing number, treated as zero”

Following code gives the error at 'caption' and I don't know what is the problem.. \begin{example} There are exactly $4$ root systems in two dimensional vector space: \begin{figure}[h] \...
1
vote
0answers
20 views

TikZ find out current rotation angle in definition of TikZ pic

Is there any way to find out what the current rotation angle is inside the definition of a TikZ pic? I need to define a pic with one component whose positioning is independent of the coordinate ...
2
votes
2answers
40 views

Arrows mess up bounding box of pics

I use pics to reuse more sophisticates images multiple times in a drawing. To easily connected them with lines/arrows I name the bounding box of each pic, so they get a bit a node-like behavior. Now I ...
0
votes
1answer
25 views

Problems in adaption of a blueprint column chart with TikZ

I use the following working code as a blueprint for my wishes. \begin{tikzpicture} \begin{axis}[ ybar, bar width=20pt, % nodes near coords, nodes near ...
0
votes
1answer
22 views

Insert content next to node in a tree

I created a Binary Tree. This is my code: \begin{tikzpicture}[level/.style={sibling distance=80mm/#1}] \node[circle,draw](z){$50$} child {node [circle,draw] {$30$} child {node [circle,draw]...
1
vote
1answer
19 views

color in block hides text

I have the following code, wicth I need to modify to include backgroud color, however when I do that the text is hidden. Could you help me soolve this issue? \documentclass{article} \usepackage{tikz} \...
0
votes
0answers
23 views

Ellipse tikzpicture as tabular cline

My purpose is to use a tikzpicture as tabular cline. Moreover, the tikzpicture should contain some small text. My tikzpicture is the following : \begin{tikzpicture} \draw (0,0) ellipse (4em and ...
0
votes
2answers
54 views

Setting background color in flowchart

I've a flowchart created in the following manner \tikzstyle{steps} = [rectangle, rounded corners, minimum width=3cm, minimum height=1cm, text centered, text width=3cm, draw=black, fill=gray!50] \...
0
votes
1answer
55 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
42 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
16 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
236 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} \...
1
vote
1answer
58 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
49 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
47 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[...
0
votes
2answers
72 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 ...
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
67 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
43 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 ...
2
votes
1answer
82 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
88 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 these two lines (the exact color doesn't matter): The ...
1
vote
1answer
42 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
66 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
68 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
457 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
39 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
102 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
331 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
32 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
66 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 ...
0
votes
1answer
42 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
76 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
67 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
117 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
106 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
167 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
46 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
91 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
82 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
121 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....