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
18 votes
8 answers
680 views

How to draw parts of a line dotted with TikZ?

I want to create a straight line between two nodes in a tikzpicture interrupted in the middle by a dotted portion. This should work whatever the orientation of the line. Here is an expected output: ...
2 votes
1 answer
75 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]{...
1 vote
0 answers
37 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 ...
1 vote
1 answer
23 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, ...
2 votes
1 answer
40 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} % ...
4 votes
2 answers
145 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} \...
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
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
1 answer
52 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 ...
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 ...
17 votes
1 answer
5k views

Dependent node size in TikZ

I'm producing some control theory flow sheets in TikZ where I have specified the node box size. Since I'm making a lot of these flow sheets, I have set global styles for them, for instance the box ...
2 votes
1 answer
73 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 ...
11 votes
2 answers
474 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 ...
6 votes
3 answers
359 views

Can we use `let` (from `TikZ`) inside a node's style definition?

I know how to use let from TikZ calc library into a path command and fix some parameter of a particular node on that path. But I would like to use inside node's style definition. As an example, ...
0 votes
1 answer
109 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
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]{...
6 votes
2 answers
905 views

How to improve this stereographic projection

I am trying to draw the stereographic projection in the following way: \documentclass{article} \usepackage{mathtools} \usepackage{wrapfig} \usepackage{pgf,tikz,pgfplots} \usetikzlibrary{decorations....
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 ...
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
3 answers
3k views

Drawing Flow Chart with LaTeX

TikZ can draw flow chart but I want some sort of a graphical tool where I can create flowchart in an interactive way and then somehow export to LaTeX. Any advice? I am not a geek and the interface ...
0 votes
1 answer
44 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 ...
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} \...
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 ...
2 votes
1 answer
93 views

How to draw like this picture with tikz

Can some one helpe me to draw this picture with tikz?. code \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture}[thick,scale=10] % \coordinate (C1) at (0.3,-0.15); \...
3 votes
1 answer
135 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} \...
0 votes
1 answer
131 views

Causal diagram with many grandchildren and great-grandchildren

Causal Diagram with a Common Grandchild How do I add a grand grandchild to the bottom? What about if I want to add 3 grand-grandchild and then one common grand-grand-grandchild as you did above? ...
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} ...
4 votes
2 answers
126 views

Using tikz and tipa packages

I'm using the packages tipa and tikz in the document class beamer. However, I'm having a hard time trying to combine them when drawing arrows. Look at the MWE below: \documentclass{beamer} \...
8 votes
2 answers
515 views

Tikz equivalent of PSTricks commands ncbar and rnode

Motivated by this recent question, I tried to cook up a tikz based solution using the code provided in the answer to this question. More precisely, I tried to cook up equivalents of the pstricks \...
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
109 views

Most efficient way to fill an area under a curve in TikZ

I would really like to have a simple explanation to how the path and fill functions work in TikZ. For instance, I don't know why I am unable to fill the whole area under the curve despite putting a ...
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=\...
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 ...
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)...
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 \...
0 votes
2 answers
79 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: \...
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 ...
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
108 views

Adjust Weight Size to Become Smaller Using Latex

Below is the coding using Latex to generate 3 nodes and 3 edges graph, as seen in the picture. It works perfectly, with only one small problem. So, each edge has 7, 31, 31, which represent the weight ...
0 votes
1 answer
82 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{...
6 votes
2 answers
360 views

How to use colon (':') as part of tikz syntax while in \ExplSyntaxOn environment?

I want to create a simple tikz style highlight which will draw ellipse around the object and write label at requested position. To avoid providing the font through the text argument, I've placed it ...
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{...
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 ...
16 votes
2 answers
493 views

tikz: Applying rounded corners to arcs

It seems that the option rounded corners (especially with larger radii) and arcs in TikZ do not always go well together. In general, the exact same path with rounded corners applied does not exactly ...
0 votes
1 answer
63 views

Conditionally emphasise / highlight matrix entries

I would like to successively emphasise / highlight matrix entries as specified in a provided list. Conceptually I'm hoping that I can change the style of the provided matrix cells on the overlays ...
12 votes
4 answers
2k views

Verbatim in tikz node

I am trying to have a verbatim environment in a tikz node just next to some other nodes. I have tried \documentclass{article} \usepackage{tikz} \usetikzlibrary{positioning} \begin{document} \...
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
2 3 4 5
35