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
1 vote
0 answers
76 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
34 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, ...
  • 407
2 votes
1 answer
50 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} % ...
  • 407
4 votes
2 answers
205 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
65 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 ...
  • 413
0 votes
0 answers
57 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 ...
  • 225
2 votes
2 answers
185 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,787
11 votes
2 answers
555 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 ...
  • 593
0 votes
1 answer
230 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
108 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
49 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
49 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 ...
  • 199
0 votes
1 answer
50 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
58 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
292 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
235 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} \...
  • 123
2 votes
1 answer
128 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} ...
  • 273
3 votes
1 answer
71 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
62 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
67 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 ...
  • 347
4 votes
2 answers
134 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
67 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 \...
  • 347
0 votes
2 answers
109 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
39 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]{...
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
22 views

splot not plotting the graph correctly [closed]

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
110 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
58 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
50 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
3 votes
1 answer
68 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{...
  • 199
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
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
47 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
208 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
272 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
36 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
60 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} \...
  • 85
0 votes
2 answers
79 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{...
  • 85
0 votes
1 answer
54 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
87 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
143 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
50 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 ...
  • 201
1 vote
1 answer
206 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
101 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 ...
  • 85
1 vote
1 answer
70 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{...
  • 413
0 votes
2 answers
58 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
276 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 vote
1 answer
122 views

Jigsaw Circle with text on them

I want to make a jigsaw circle with three pieces having text on them. It should look something like in the attached image. but I could be able to find a way o do that I found this code from one of ...
  • 201
-1 votes
1 answer
36 views

2 lines intersecting at the origin

How can I draw these colored pictures in Latex? I am not caring about the thickness of the coloured lines in both pictures, ordinary thickness is fine. Also the letter below the first figure is $\...
0 votes
1 answer
81 views

Reproducing a figure with a filled area in TikZ

I am trying to reproduce this figure: For this, I have reached this part of my code: I have some issues, because: I don't know how to implement the two gray rectangles below the axis. Once the ...
  • 413

1 2
3
4 5
37