Questions tagged [tikz-styles]

{tikz-styles} are predefined sets of options that organize how graphics elements are drawn. It is thus possible to program specific styles and reuse the styles on different objects. The {tikz-styles} tag can be used in parallel with {tikz-pgf}.

Filter by
Sorted by
Tagged with
0 votes
2 answers
29 views

Make parallel lines using nodes anchor points

How can I make the red line parallel to the two above, using T_C and T_zero anchor points? \documentclass[12pt]{article} \usepackage{tikz} \usetikzlibrary{arrows.meta,shapes,positioning,intersections,...
2 votes
1 answer
77 views

Shape cards using tikz

How can I make shape cards using tikz. I want to create following. I have created shapes but the problem is how to make grids around them. Here is what I have so far. %\documentclass[12pt, border=5mm]{...
  • 23
1 vote
0 answers
38 views

Is it possible to access and modify SVG paths with PGF/TikZ?

I have drawn a diagram in Inkscape (with a little help from Blender) and saved it as a SVG file. I want my labels on the diagram to match my document's (both typeface and size) and my labels also ...
  • 339
1 vote
1 answer
24 views

How to add decimals in \pgfplotstableread?

How to add decimals in \pgfplotstableread? The following code works without decimals... \pgfplotstableread[col sep=comma]{ label,startyear,endyear D, 2003, 2008 E, 2008, 2011 F, 2012, 2014 G, 2013, ...
  • 185
2 votes
1 answer
42 views

"Dimension too large" error in "How to create a multiline timeline"

I am trying to adapt How to create a multiline timeline to my case. If I try to get larger scaling factor for x-values (years), i.e. from 0.28 to any higher value \pgfmathsetmacro\yearscale{0.28} % ...
  • 185
4 votes
2 answers
146 views

How to make defined labels on top of the edge in a graph with tikz?

I want to make some labels (defined as a diamond) on top of some edges, see the following figure: I am new to Tikz and use the following latex code: \documentclass[border=10pt]{standalone} \...
  • 143
0 votes
1 answer
36 views

tkzpicture how change Arrow and its text color to black

I have drawn a state diagram, the text inside states are drawn in black color but all connecting arrows and their label text are in grey color by default. How can I change it to black?. Here is my ...
0 votes
1 answer
53 views

Drawing a pressure field with tikz

I would like to draw a graphical representation of a pressure field along a gaussian path. I don't really know how to do it but my objective is to come up with a figure that looks like this one (along ...
  • 375
0 votes
0 answers
49 views

Extracting the coordinates of a point one receives from \draw with $-- ++$

I am having problems with the coordinates of \draw[->] (.:.)-- ++ (.:.); - I need to extract the coordinates of the second point of the vector. How do I do that? In other words: Is there an option ...
  • 205
2 votes
2 answers
100 views

tikz-feynman: Searching for the perfect tadpole

I'm plotting automatically generated and laid-out (by tikz-feynman's default spring layout) QED feynman diagrams. I'm looking to improve the look of the "tadpoles" i.e the vertices where ...
  • 1,777
11 votes
2 answers
476 views

drawing a decorated honeycomb lattice

Is there an easy way to draw the decorated honeycomb as attached here in tikz? My attempt is as follows but this method didn't let me fill up the hexagons with colors. Also, it is currently a bit ...
  • 521
0 votes
1 answer
115 views

Box design tikz

I found this box, but didn't know the design. Can you tell me which library or packages are used to design it. Thanks
1 vote
3 answers
92 views

Rotate ellipsoid in Tikz environment

This is the result of my code: Now, I would like to have the inner ellipsoid aligned with the x-axis, and not with the y-axis as it is. In other words, I would like to rotate the all ellipsoid in the ...
  • 11
0 votes
0 answers
30 views

How to put diffent color in some cells in this matrix using Tikz?

I got this matrix bellow : \begin{tikzpicture} \matrix [nodes={fill=red!20,minimum size=15mm}] { \node {27}; & \node{12}; & \node {12}; & \node {16}; & \node{24}; & \...
0 votes
1 answer
45 views

How to do "not" arrows in tikz? [duplicate]

SO I thought this should be somehow possible but after going on an hour long dive about arrows and arrowstyles in tikz I have not learned of an option to draw crossed arrows with tikz. Basically I ...
  • 169
0 votes
1 answer
43 views

Trying to draw dotted region highlighting a portion of the graph

I am trying to draw the following in LaTeX: I am able to draw the graph but unable to draw the dotted region. I am using tikz-network. Help is much appreciated. The code: \begin{tikzpicture} \...
  • 101
2 votes
2 answers
51 views

How to change the position of arrows between separate tikzpicture

3 Questions: Ways to change the position of the arrows in between the pictures? (Preferably in the middle) If possible, how do I add small text above or below the arrows? Lastly, how can I modify the ...
3 votes
1 answer
137 views

Draw Realistic 3D crystal structure of Diamond using Tikz

Can I draw this same exact picture(from Draw realistic 3D crystal structures (diamond)) using tikz in latex? This is what I got till now. from the code: \begin{tikzpicture} \...
6 votes
3 answers
181 views

Make edges parallel

The edges are matching. I would like them to be parallel horizontally. I tried changing the value of the yshit parameter, but it didn't work. \documentclass{article} \usepackage{geometry} \...
  • 113
2 votes
1 answer
83 views

Creating a comparison chart

How to create a chart as follows using LaTeX. This is just one example. You can also share your more elegant suggestions. MWE: \documentclass{article} \usepackage{tikz} \usetikzlibrary{intersections} ...
  • 263
3 votes
1 answer
41 views

chemplants: fill the default pictures with TikZ options

The chemplants package offers tools to draw simple or barely complex schemes of chemical processes. Process units and styles for streams and utilities are defined to be a sort of extension of the TikZ ...
0 votes
1 answer
34 views

A memory layout that has proportional size of block

I got this code from an web and it looks like this. \documentclass[border=10pt]{standalone} \usepackage{tikz} \begin{tikzpicture}[node distance=0 cm,outer sep = 0pt, inner sep = 2pt,font=\...
  • 119
1 vote
1 answer
63 views

Extend a given shape from the UML-TikZ package with the path picture property

I call the style definition mystyle in line 20. As you can see, I pass a \filldraw command as an argument to the style definition mystyle. That way I want to achieve a gray circle to be displayed in ...
  • 305
4 votes
2 answers
112 views

Using tikz to draw a rectangle with black-white gradient in form of Gaussian

I want to make a rectangle, longer horizontally than vertically, that is black at the left and right ends and whitish in the center. I don't want a linear gradient change from black to white (and back)...
  • 407
3 votes
1 answer
63 views

Modify the style of UML-tikz elements with standard tikZ commands

I use the UML-tikZ package to create UML state machines. From time to time I want to make changes to the appearance of the given elements. For example, I want to enlarge the arrowhead of the element \...
  • 305
0 votes
2 answers
80 views

I want to create 10x10 squares and fill the elements all around with zeros?

I want to create 10x10 squares and fill the elements all around with zeros As shown in the attached images But when I add zeros, a space appears between these elements. Below is the MWE: \...
  • 21
0 votes
1 answer
32 views

Trouble with clip and labels in pgfplot

I would like to add zero to the origin of the axes. I tried with clip = false and \node[anchor=east] (zero) at (axis cs:0,0) {0}; but with disastrous results. This is my graph: \documentclass[tikz]{...
4 votes
1 answer
56 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 ...
  • 372
1 vote
0 answers
19 views

splot not plotting the graph correctly

This equation has to plot the point $(0,0)$ since when $x= 0, y=0$. But however I arrange the equation,it does not plot the point $(0,0)$. Can someone help me with this problem. \pdfpagewidth 85mm ...
0 votes
1 answer
83 views

Any piste to replicate this oscillogram

I need to replicate this oscillogram using LaTeX. I know a bit of TiKZ but I would like to have some tips or packages to get started building this and at the end come up my own to draw others like ...
2 votes
1 answer
34 views

Tikz arrow with unwanted arrow-head

I am sorry for the unspecific question title, but I didn't really know what to put there. The question I defined a command to make drawing arrows in Tikz easier for me, for the purpose of commutative ...
0 votes
1 answer
36 views

Change color in Prerex, chart

How do I change the color from Yellow to say, gray. Also I don't like the rounded boxes, and the thick boundary. The package documentation doesn't clearly say what I must do either. \documentclass{...
  • 631
2 votes
0 answers
50 views

TikZ environment style options don't work inside `\ExplSyntaxOn`

I want to use a TikZ environment inside an \ExplSyntaxOn... \ExplSyntaxOff block. \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{xparse} \usepackage{tikz} \usetikzlibrary{...
  • 187
0 votes
1 answer
51 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
45 views

Drawing circle with inner splines

any suggestion on how to draw the splines within the circle shown in this figure: with TikZ?
  • 1
1 vote
1 answer
42 views

Labeling 3D Geometry in Different Colors using TikZ

I have the following MWE with some help from the community: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{tikz} \usetikzlibrary{positioning} \usepackage{commath} \usepackage{float} \...
  • 159
3 votes
1 answer
200 views

Where do I find basic syntax for Tikz?

I'm working with text lines in a Tikz Header, and all I need is the options for anchor= (eg. anchor=north) and I can't find a basic list of anchor options anywhere
  • 31
1 vote
2 answers
108 views

How to draw a dashed rectangle around a tikzpicture?

I want to draw a dashed rectangle around my whole tikzpicture but I have no idea how to do it. I think he perfect solution would be to use fit library but I don't know how. Here is my code : \begin{...
0 votes
0 answers
33 views

Trying to use a Tikz Header and include multiple lines of different text sizes in the same header

See the code below - I have a Tikz package that I've replicated to have two lines of different sizes. The problem is now that my Subheader appears below my Header, and I'm struggling to get them ...
  • 31
0 votes
1 answer
53 views

Unable to increase the font size of the tikz text using \fontsize

I have submitted the code for the reference \documentclass[11pt,a4paper,oneside]{article} \usepackage{latexsym} \usepackage[english]{babel} \usepackage{amsmath} \usepackage{amssymb,gensymb} \...
  • 87
0 votes
2 answers
48 views

Smart diagram with pointed circles in tikz

I am unable to do this type of smart diagram in tikz. The shapes are a bit confusing. \documentclass{article} \usepackage{tikz} \usetikzlibrary{positioning,shapes.misc} \begin{document} \begin{...
  • 87
0 votes
1 answer
37 views

Automatic wrap (line wrap) or manual linebreak in Tikz fancytitle

For a Tikz Fancytitle, how do I either: Get automatic line wrapping, or If 1. is not possible, add manual line breaks (say, using \\) I used a nested minipage in this example but the question ...
  • 57
1 vote
1 answer
50 views

Draw a great circle passing through two points on a sphere

Hi, I would like to draw something like the image below using TikZ - a great circle passing through two points on a sphere.
  • 11
0 votes
1 answer
129 views

Tikz Adjustment of selfsimilar sets [closed]

I have found open source figures of fractals in a PDF document and I like the presentation and style of these fractals. Now I wanted to create similar fractals, maybe the Koch curve or the Cantor set ...
0 votes
2 answers
45 views

Help with horizontal Tikz Tree Plot

I need to plot something like this So far I have been able to plot using the codes below. I could not find a way to include a vertical tree \begin{tikzpicture}[ every node/.style = {draw,rounded ...
  • 199
1 vote
1 answer
97 views

Tikz: fill square mark in axis environment

Can I fill my square marks in yellow? When mark are *, I just can write fill=yellow \documentclass[12pt]{article} \usepackage{amsmath} \usepackage{tikz} \usepackage{pgfplots} \usepackage{float} \begin{...
0 votes
1 answer
80 views

Unable to design table with checkbox, alignment,

I am unable to decide the columns and rows of the table. Moreover, checkbox needs to inserted there so handling tikz creates a confusion with bars. [![Desired table][1]][1] I am trying to design this ...
  • 87
1 vote
1 answer
55 views

How to draw a bar as a node

Could anyone tell me how is it possible to add "bars" as a node such as in the image below : I would like to implement the "dl" segment : \documentclass{article} \usepackage{...
  • 375
0 votes
2 answers
46 views

Make a color gradient with tikz

Where I can find the section about color gradient in the tikz documentation? Specifically, I would like to make the gradient you see in the outermost ring of this image. Forget the rest, I can easily ...
3 votes
2 answers
256 views

Generating a specific graphic with TikZ

I am wondering how to generate a specific image with TikZ. This image is essentially a lattice grid without the grid, with a triangle, rectangle, and other shapes overlayed in a particular way. I ...
  • 31

1
2 3 4 5
35