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
3 votes
1 answer
33 views

Adding braces above other braces on timeline graph

I am trying to add two orange braces as shown in the picture below: I am struggling to place them (in orange) on my diagram. Below is my MWE: \documentclass{standalone} \newcommand{\ImageWidth}{11cm} ...
  • 564
2 votes
1 answer
22 views

Right bracket marker in tikzpicture axis to draw closed set

I'm trying to draw a simple set interval with left/right paranthis for open sets and left/right brackets for closed sets. Here's how I'm drawing it: \begin{adjustbox}{width=\textwidth} \begin{...
  • 123
1 vote
0 answers
50 views

Creating swimlane diagrams with flow charts

I want to create a vertical swimlane with 2 groups. In each lane I want to add a complex flow chart. How can I do that? I'm not familiar with a package that could facilitate this. I have the first ...
  • 185
4 votes
1 answer
106 views

Arrow directions in a flowchart

I am trying to create a flowchart. So far, I have all the blocks I need. I simply need to create the appropriate 'flow'. I want the arrows in the following directions: How do I do that? I've tried ...
  • 185
7 votes
2 answers
972 views

How to bend a word around the circle

I would like to bend the ``commutative rings'' around the circle. I would appreciate any help. \documentclass[a4paper, 12pt, openany]{book} \usepackage{tikz} \usetikzlibrary{calc} \colorlet{euler1}{...
1 vote
1 answer
44 views

Generalizing the body of my tikzpicture environment in the preamble

I would like to generalize this diagram and place it before the \begin{environment} command, so I can just simply/easily change the numbers as I am rotating the square. I would appreciate if I can be ...
0 votes
1 answer
63 views

Designing a nested Venn Diagram

Is there any way to make these similar diagrams look more beautiful, by adding special designs, colours, etc.? I'll really appreciate if I can be helped out. \documentclass[a4paper, 12pt, openany]{...
0 votes
0 answers
14 views

Tikzpicture path creating a lot of whitespace [duplicate]

This code \documentclas{article} \usepackage[utf8]{inputenc} \usepackage{graphicx} \usepackage{tikz} \begin{document} \begin{figure} \centering \resizebox{.5\textwidth}{!}{ \fbox{ \...
2 votes
1 answer
61 views

Drawing loops around an ellipse in Tikz

I am trying to show the loops of magnetic field flow around a circular current in tikz. I'd like to end with a central ellipse, something like \draw (0, 0) ellipse (3 and 1), that has eight 'equally' ...
  • 23
0 votes
1 answer
42 views

How to fix the line width when writing text in a node in Tikzpicture?

I am using Tikzpicture to add a figure to my document, with the caption as a textbox inside a second node. My text either extends beyond the page width, or becomes messy with uneven line widths. What ...
0 votes
0 answers
20 views

Error Missing Number, treated as zero after two If

I have trouble with \tikzset. When I create a function (here foo), the parameter \lfvert is not recognize on the second if statement. (The node didn't print it anymore) And that give me the following ...
3 votes
3 answers
176 views

Serpentine-shaped plots on the x and y axes

I would like to know how to create serpentine curves in the 'tikzpicture' and 'axis' environments on the x and y axes. I used the 'tikzpicture' and 'axis' environments to build the uncolored part of ...
  • 2,729
3 votes
3 answers
165 views

Adding a Border to an Oval-Shaped Cropped Image

Consider the code \documentclass{book} \usepackage{graphicx} \usepackage[abs]{overpic} \usepackage{tikz} \definecolor{Gold}{RGB}{228,168,73} \begin{document} \thispagestyle{empty} \begin{center} ...
  • 7,282
2 votes
1 answer
111 views

How to rotate a polar plot without rotating the grid lines

Please, how do I rotate the following polar plot without rotating its grid lines and polar axis lines? To make it clearer, I just want to rotate the petals alone without rotating any axis or grid ...
0 votes
1 answer
61 views

Drawing graph with unknown constant [closed]

Q=VC(1-e^\frac{-t}{RC}) Is it possible to plot this function, Q-t graph? V and C are unknown constants.
0 votes
1 answer
20 views

I am getting an error while plotting

\documentclass[border=5pt,tikz,12pt]{article} \usepackage[margin=0.75in,footskip=0.25in]{geometry} \usepackage{amsmath} \usepackage{tikz} \usepackage{pgfplots} \begin{document} \begin{center} \begin{...
0 votes
0 answers
29 views

Centering 2 tikz pictures

\begin{tikzpicture}[declare function={f(\x,\y)=3-2*\y;}] \def\xmax{3} \def\xmin{-3} \def\ymax{3} \def\ymin{-3} \def\nx{15} \def\ny{15} \pgfmathsetmacro{\hx}{(\xmax-\xmin)/\nx} \pgfmathsetmacro{\hy}{(\...
0 votes
1 answer
57 views

Circular Gauge Plot in LaTeX [duplicate]

Is there a way to create a circular gauge plot in LaTeX using Tikz library or PgfPlots? I found a way to create a horizontal gauge plot, but can't find the circular one? Thank you.
0 votes
1 answer
28 views

Plots with functions like n/2

i'm using tikzpicture and pgfplots to make my plots and i'm currently facing a problem when i use a function like 2/x \begin{center} \begin{tikzpicture} \begin{axis}[ ymin=-10, ymax=10, xmin=-10, ...
  • 33
7 votes
3 answers
416 views

Drawing an angle between two vectors?

I want to draw an angle between two vectors: \documentclass{article} \usepackage{tikz} \usetikzlibrary{angles,quotes,babel,plotmarks} \usetikzlibrary{decorations.pathreplacing} \usetikzlibrary{calc} \...
0 votes
1 answer
29 views

adding node to tikz figure

I want to add text where I put the dots, for example w_1, w_2, ... w_n. This is the code: \documentclass[tikz,border=3.14mm]{standalone} \usetikzlibrary{positioning} \begin{document} \tikzset{% ...
0 votes
1 answer
30 views

How to place a tikz node at a lower level

Using the solution provided by @Zarko at Markov Chain Arrows and Labels stacked together, I want to know a way insert a node that is on a lower level than the others as shown in the picture below: I ...
  • 564
0 votes
1 answer
43 views

Tikz Code No Longer Running

This question follows from Markov Chain Arrows and Labels stacked together where I got 2 different solutions to my problem, the one provided by @Zarko which I accepted as my answer and also the one ...
  • 564
2 votes
1 answer
68 views

How to Produce a Bclogo Similar to a Given Tikzpicture and Then Align It Directly Above

Consider the code: \documentclass{book} \hoffset 10pt \voffset -55pt \oddsidemargin 17pt \evensidemargin 18pt \topmargin 35pt \headheight 25pt \textheight 8.25in \textwidth 5.75in \headsep 40pt \...
  • 7,282
0 votes
2 answers
108 views

Markov Chain Arrows and Labels stacked together

I am having challenges with the following: My bottom chain arrows and labels (1-\theta) are stacked together/overlapping which is something I dont like, and I want to add an extra broken line that ...
  • 564
0 votes
1 answer
54 views

How to have alternate coloring of histogram bars

I am kindly requesting for assistance on how to have the color of my histogram bars alternate between blue and orange. Currently the bars all have the same color which is something I do not like. ...
  • 564
1 vote
1 answer
41 views

Logarithmic plot using tikz ung pgfplots

I want to draw a logarithmic plot of wavelength and frequency. The x and y axes show an exponential plot. I want the representation to be a simple number. How do I change the labels on the axes? Since ...
  • 141
2 votes
1 answer
111 views

Drawing Capital Market Line and Efficient Frontier

I am struggling to produce the diagram shown in the picture below: How do I reproduce it? So far my trial yielded an awful result. Below is my MWE: \documentclass[12pt,a4paper]{book} \usepackage{...
  • 564
0 votes
0 answers
49 views

TikZ get value of passed option/key inside pic

Is it possible to access the options that are passed to a pic inside the definition of a pic? And if yes, how? I know I can do this with self-defined custom keys. But is it possible to also get the ...
1 vote
1 answer
77 views

Producing a Glowing Star with the Transparent Package and Pdflatex

Consider the code: \documentclass{book} \textheight 8.5in \textwidth 5.75in \usepackage{xcolor} %\usepackage{transparent} \definecolor{darkpurple}{RGB}{48, 25, 52} \usepackage{tikz} \usetikzlibrary{...
  • 7,282
0 votes
1 answer
155 views

Background Setup for My Title Page

I am having trouble setting up the background for my title page using tikz. I adopted this background style from Benmiloud Mohammed at https://latexdraw.com/. I also adopted the contents of the title ...
  • 564
5 votes
1 answer
158 views

How to use xcolor color names in tikzpicture style?

I want to use color names like MidnightBlue in a style for a tikzpicture to e.g. fill it with a specific color, is this possible? Or am I limited to the other style (red!30 etc.)? This MWE fails with ...
  • 384
1 vote
0 answers
55 views

Extending a John Kormylo Answer for Color Shading a Portion of a Paragraph to Produce Bold Text as Well

This post is an extension of the question posed in How to Contiguously Shade a Portion of a Paragraph with Color Consider the code \documentclass{book} \usepackage{xcolor} \colorlet{soulred}{red!25} \...
  • 7,282
0 votes
1 answer
90 views

Define a pic and use it as node

My purpose is draw an horizontal cylinder. I defined the left and the right base with /.pic . Now I would link these bases with \draw, using the bases anchor point .north and .south. Something goes ...
0 votes
1 answer
102 views

tabularray how to wrap column content inside commands

Tabularray: I want to create a column that prepends and appends some code to save space and avoid repetition, but I don't achieve that behavior. At first, I tried (and failed) to create a new column ...
1 vote
3 answers
68 views

Centre TikZ figure vertically (\vspace*{fill} does not work)

I want to print a lined page with a gap in the middle that should be in the centre of the page vertically. This is my code: \documentclass[landscape]{article} \usepackage[paperheight=320mm, paperwidth=...
2 votes
0 answers
58 views

How to Produce a Rectangular Radial Glow

Consider the code \documentclass[a5paper,12pt,onecolumn,openany,final]{book} \usepackage[hmargin=0.7in,vmargin=0.75in]{geometry} \usepackage{tikz} \usepackage{calc} \usetikzlibrary{fadings} \...
  • 7,282
0 votes
1 answer
53 views

Cheat sheet using mini pages and tikzpicture does not overflow properly

This is a Cheat Sheet template from Overleaf’s templates. The problem: Box 3 does not overflow properly (it should be entirely placed in column 2), and its contents continue to print towards the ...
  • 57
1 vote
1 answer
57 views

Transfiguring an Image with Multiple Tikz Shading Angles

Consider the code \documentclass{book} \textheight=10in \usepackage{tikz,graphicx} \begin{document} \thispagestyle{empty} \begin{tikzpicture} \node[opacity=0.5, inner sep=0pt](A) at (0, 0) {\...
  • 7,282
1 vote
1 answer
35 views

Embedding a Pspicture within a Radial Fading Tikzpicture

The following MWE is taking some code from How to Produce a Colorized Aura About an Image and Which Resembles That Image which produces a "radiant" Norman Window. Consider, \documentclass[...
  • 7,282
1 vote
3 answers
66 views

Adjusting tikzpicture baseline to be flush

I have two minipages one which encloses a tikz picture. I'd like these to have the same baseline. i.e. I would like the minipages to be flush at the top. By default this doesn't happen: \...
0 votes
0 answers
54 views

Ways to create/reproduce an basic pattern/image via Latex and tools [duplicate]

what would be the (easiest) way to make such a plot/pattern in latex (lua and or xe - possible) (would be really nice to adjust the number of sticks and the degree of the lines - as parameters ? kind ...
  • 1
0 votes
0 answers
43 views

How to specify relative coordinates in tikzpicture when using \includegraphics?

I am trying to create an animation for rotating a box in tikzpicture to cover a 16:9 screen. I want to align the east face of the box with a picture and rotate them both simultaneously. I have two ...
  • 101
0 votes
2 answers
210 views

Blockchain Network using latex

I know that this is not a specific problem, but I'm looking for a library that has icons that I can directly use to draw how blockchain network works by using Latex. Is there any such library or ...
  • 1,101
0 votes
1 answer
110 views

Extending the Features of the Glowing Star Posted by User Sandy G

This following code extends a bit, an answer posted by the user Sandy G in How to Give Stars a Glow Effect which asked for a way to produce a glowing star with LaTeX. \documentclass{book} \textheight ...
  • 7,282
2 votes
1 answer
75 views

Nonlinear transformation applied on decorations along path with a custom pic

I am having a problem to apply a single nonlinear transformation to a path decorated with custom pics. A minimal example follows: \documentclass[margin=5pt]{standalone} \usepackage{tikz} \...
0 votes
1 answer
97 views

Chemplants doc example failed

I want to use check valve pic as described on chemplants doc at page 54, but I get an error saying it's not defined. I know it could be an error of the package, but I want to be sure and see if it's ...
0 votes
1 answer
95 views

Problem raising a tikz picture in wrapfigure enviroment

I am doing this paper with the tikz picture tools to draw some diagrams and the wrapfigure enviroment to situate them in the text. The problem is that when I run the code, the picture is placed below ...
  • 103
1 vote
1 answer
112 views

Positioning relative to page in XeLaTeX with package background and 'nested' tikzpictures 'dimension too large'

Context For a personal project I would like to have a tikzpicture on every page that borders the text and all that is on there. I started with LuaLaTeX and wanted to add only a few Chinese characters, ...
  • 139
2 votes
3 answers
330 views

Node positions in Tikzpicture for using tikzmark

I wish to create a diagram like this. My attempt is shown below: Output Code \documentclass{article} \usepackage{tikz-cd} \usetikzlibrary{tikzmark,shapes.geometric,shapes.symbols} \tikzset{elnode/....

1
2 3 4 5 6