Questions tagged [tikz-pic]

{tikz-pic} is about questions concerning “pics” in a Ti*k*Z context. 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
0 answers
116 views

Self Learning (pgfplots, asymptote) in systematic manner from ab initio

Kindly guide in order to self learn in a systematic manner the following Pgfplots Asymptote for 2D and 3D drawings. Thanks
Raja Ali Riaz 's user avatar
0 votes
1 answer
114 views

How to properly position text over full-page image (background) using Tikz?

I would like to be able to position text using coordinates using number of millimeteres from top left corner. Using Tikz, I have the following tex code, which does appear to position the text above ...
bguiz's user avatar
  • 115
3 votes
2 answers
60 views

Referring a \pic by its name that is generated in a for-loop

I use a loop to place a list of pics, each of which has a bounding box. Then I refer to one of these bounding boxes, but tikz does not seem to get names generated by the for-loop. This is the code: \...
John Liu's user avatar
2 votes
0 answers
214 views

Left-align TikZ pics and issue with TikZ graph

I'm trying to put together a more complex drawing from several TikZ pics. I have constructed a minimal example from which the challenges become visible (see below). After the styles, first the two ...
SommerEngineering's user avatar
4 votes
2 answers
128 views

Is there an option to simulate the drawing of a TikZ pic without really drawing it?

Currently, I draw a TikZ picture with lots of TikZ elements and subelements. To do this, I use TikZ pic. Sometimes, I need to know the size of a pic prior to its drawing for the correct positioning. ...
lkegel's user avatar
  • 41
0 votes
0 answers
43 views

how I can draw this using tikz [duplicate]

Please help me. How can I draw this using tikzpicture. Thank you.
Epsilon Delta's user avatar
2 votes
2 answers
449 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 ...
Dalek's user avatar
  • 509
1 vote
2 answers
116 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 ...
Aschoolar's user avatar
  • 147
1 vote
1 answer
92 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.
Coco Jambo's user avatar
0 votes
1 answer
189 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 ...
forrest's user avatar
  • 988
1 vote
1 answer
333 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 [...
Dalek's user avatar
  • 509
2 votes
1 answer
262 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 ...
Peize Liu's user avatar
2 votes
2 answers
113 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 ...
Graham501617's user avatar
0 votes
2 answers
418 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, ...
hpekristiansen's user avatar
0 votes
1 answer
119 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...
ROBIN RAJ's user avatar
  • 231
0 votes
1 answer
291 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 $\...
Noor Aslam's user avatar
1 vote
1 answer
45 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 ...
Shady Puck's user avatar
2 votes
2 answers
243 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 ...
Utkan Gezer's user avatar
1 vote
1 answer
53 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 ...
Andi Bauer's user avatar
2 votes
2 answers
136 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 ...
WitheShadow's user avatar
0 votes
1 answer
133 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]...
Joshua's user avatar
  • 3
0 votes
1 answer
52 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 ...
user216725's user avatar
1 vote
1 answer
36 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} \...
Clecio Jung's user avatar
0 votes
2 answers
580 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] \...
Natasha's user avatar
  • 481
0 votes
1 answer
68 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\...
linda Oiladali's user avatar
1 vote
1 answer
115 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 ...
Marco's user avatar
  • 13
1 vote
1 answer
136 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) {...
Andi Bauer's user avatar
0 votes
1 answer
89 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 ...
Matias Tevez's user avatar
6 votes
2 answers
384 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} \...
user111375's user avatar
0 votes
1 answer
59 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 ?
Andrea 's user avatar
0 votes
1 answer
192 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[xmin=-...
Marcos Paulo's user avatar
1 vote
1 answer
39 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, ...
User's user avatar
  • 2,996
4 votes
1 answer
103 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: \...
susis strolch's user avatar
2 votes
1 answer
86 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 ...
Dave124's user avatar
  • 343
0 votes
2 answers
135 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 ...
qqv dao's user avatar
  • 23
2 votes
1 answer
558 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 ...
Mostafa Ghadimi's user avatar
1 vote
1 answer
74 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{...
Misaya's user avatar
  • 466
0 votes
1 answer
255 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 \...
linda Oiladali's user avatar
0 votes
1 answer
124 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.
Dave124's user avatar
  • 343
5 votes
1 answer
657 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 ...
FlyBob's user avatar
  • 159
2 votes
2 answers
163 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]...
michael's user avatar
  • 21
-1 votes
1 answer
250 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?
aan's user avatar
  • 2,563
5 votes
1 answer
422 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. ...
Dave124's user avatar
  • 343
0 votes
1 answer
93 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 ...
yummigummi's user avatar
1 vote
1 answer
204 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 ...
Stiven G's user avatar
  • 277
0 votes
1 answer
229 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 ...
Vladimir Nikishkin's user avatar
0 votes
1 answer
492 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 ...
scooptywoopty's user avatar
3 votes
1 answer
55 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,...
pheon's user avatar
  • 716
1 vote
1 answer
112 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?
olgaolgano's user avatar
2 votes
1 answer
386 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 ...
user20650's user avatar
  • 339