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
2answers
137 views

using Tikz to create a maze

I created this figure with microsoft powerpoint but I'd like to make a similar one using latex because I am writing my document in latex. I already asked how I can make similar maze structure but in ...
0
votes
0answers
13 views

How to mirror and position the analog clock dials

I am trying the create analog clock dial with roman or standard numbers on display and at the same time create another one but the mirror image of it. I managed to do that but for some reason a third ...
1
vote
1answer
47 views

How to create a simple box that contains another box in Beamer?

I would like to create something like, or Does anyone know how to create these simple diagrams? Note: corner need not be rounded. Text need not be Hello World. Edge color need not to be blue.
0
votes
1answer
35 views

How to put series of small graphics on the graph?

I am making plots with y-axis breaks by placing one \nextgroupplot above the second one. These plots have not only curves but also some additional graphics, which are assigned to bottom coordinate ...
0
votes
0answers
22 views

Problem with TexWork PDF generator in plotting TikzPicture

I have to export a PDF composed of a lot of pages, but OverLeaf can't compile (I use the free license). So I'm using the TeXWork program but among all the TikzPicture images, only one of these fails. ...
0
votes
0answers
15 views

Fill unbounded region between 3 or more lines

How can I fill the unbounded region between (A, B, C) with color red, I'm not talking about the triangle between these 3 lines, I'm talking about the region that is 3 way bounded by (A, B, C) with an ...
1
vote
1answer
90 views

Using tikz to generate some figures

Is it possible to use tikz to make the following figure: \documentclass{article} \usepackage{tikz} \begin{document} % Radius of regular polygons \newdimen\R \R=5cm \begin{tikzpicture} \draw [...
0
votes
0answers
34 views

Vertical graph issues

I have some difficulty creating a vertical graph with text attached. This is what i want to create: The graph allways starts and end with a "oplus" symbol and need to be 15cm at all times (...
2
votes
1answer
70 views

How to draw the the following directed graph with TikZ?

I am new to TikZ. I am trying to realize the photo using the TikZ package. I know how to draw these individual figures using tikzpicture. However I am not sure how I can place them in order and use ...
1
vote
0answers
46 views

Making a fairly general variational autoencoder with tikzpicture

I'm new to the forum due to having recent problems with a picture of the network-architechture of a variational autoencoder. Currently I have this code: \documentclass[tikz]{standalone} \newcommand\...
0
votes
1answer
32 views

In tikz, how to pass named coordinates to a named pic?

I have found problems when passing a named argument to a pic, but only when the pic is also named. Follows the illustrative code and the problem occurs in the line tagged with %NOT OK. That line gives ...
2
votes
2answers
45 views

horizontal alignment of multiple \pic objects

I want to group some tikz drawings together, and am using a pic for this. I further wish to use the pics as though they're ordinary nodes, and draw some connecting arrows. How can I horizontally align ...
0
votes
2answers
101 views

Nested TikZ pics (double angle symbol) [duplicate]

Edit: @js bibra pointed me to How do I mark an angle with multiple arcs? It seems like my question is kind of a duplicate, but there is still the matter of whether it makes sense and how to nest pics, ...
0
votes
1answer
39 views

Graph a function with \frac

I need to graph the function f(s)=\frac{s^3+7s^2+9s-128} {s^2+15s+24} ,where s greater than zero, please help me...
0
votes
1answer
29 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
33 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 ...
2
votes
2answers
148 views

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

I want to retrieve a member of a non-numeric array passed to a TikZ pic as an argument, to use it as a node label. \foreach easily does it while iterating over the array, but I cannot do it for the ...
0
votes
0answers
13 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
23 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
49 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
24 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]...
0
votes
1answer
27 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 ...
1
vote
1answer
20 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
1answer
93 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
0answers
28 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
75 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
56 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
45 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
28 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
19 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
258 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
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
69 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
32 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
75 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
47 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
83 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
111 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
44 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
83 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
73 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
472 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
50 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
112 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
342 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
41 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
78 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
84 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
55 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 ...