Linked Questions

11
votes
3answers
1k views

tikz Join line segments of different thickness with miter

Reading "tikz Multi-segment Line of Varying Thickness" provides a good explanation to join segments, but it seems that the rounded corner transition is the only way to do this nicely? I would like to ...
19
votes
1answer
1k views

How to fix TikZ corners in 3D

Am trying to draw a simple rectangle and there seems to be minor issue with two of the endpoints (f and d in the following). I tried line cap=rect as suggested by Bad intersection of lines in TikZ but ...
10
votes
2answers
1k views

Different colours for tikz node frame sides

I have a tabular with and use tikz to create a frame around it. Right now it looks like this: \documentclass{scrartcl} \usepackage{tikz} \begin{document} \tikz\node[draw=black,ultra thick,double=gray,...
7
votes
3answers
1k views

Bad intersection of lines in TikZ

Consider the following: \documentclass{minimal} \usepackage{tikz} \begin{document} \begin{tikzpicture}[line width = 4] \coordinate (a) at (0,0); \coordinate (b) at (1,0); \coordinate (c) at (1,1); \...
10
votes
2answers
1k views

How to make a portion of curve red using TikZ?

I want to make the the closed loop part of the figure by "ultra red" color only and the other part by blue. (from (2,0) .. (0,0.93) .. (-0.93,0) .. (0,-0.93) .. (2,0)) \documentclass{standalone} ...
8
votes
3answers
1k views

How to make a thick line connect completely with the side of a box in TikZ?

In my figure, I have a thick line that connects with the side of a box. However, the line does not connect completely with the box. Also, the line covers part of the box (which I don't want). So, I ...
8
votes
1answer
2k views

Fading a path in TikZ

I want to draw a path/plot in TikZ whose shade depends on the coordinate. For example, I want say something like \draw[color=black!\x] plot coordinates{ coord1 ... coord100}; i.e. the shade of the ...
5
votes
1answer
3k views

How do I set only one side of a tikz node's border color?

I want to have a node with different border colors: One for the upper and left border, one for the lower and right color. The result should look like this: http://flyx.org/files/tikznode.png Is this ...
4
votes
2answers
2k views

Decoration at end of line after “shorten >” command

I have a style that puts an arrow at the end of a line for me: \makeatletter \tikzset{nomorepostaction/.code={\let\tikz@postactions\pgfutil@empty}} \makeatother \tikzset{mystyle/.style={ shorten &...
15
votes
1answer
925 views

pgfplots: problem with “non-smooth” intersection of two lines' ends

I have a problem like the one in this question concerning a tikz drawing but for a pgfplots plot. I want to create a plot that has one region filled without opacity and a neighboring one filled with ...
4
votes
3answers
434 views

PGFkeys problem. Meta arrow tips with parameters works only when I use different line width. Why?

The solution given here has a problem. Let re-write a minimum example \documentclass{standalone} \usepackage{tikz} \makeatletter \tikzset{arrow length/.initial = 6pt, arrow angle/.initial ...
1
vote
1answer
1k views

tikz color changing path

I have tried to answer the question from TikZ: changing colour of a path half way along with decorations - unsuccessfully. Maybe it is not possible!? Can someone tell me why scoped path color change ...
5
votes
1answer
810 views

Decorate pgfplots mesh

In my quest to solve this question I'm trying to see if I can decorate a mesh-plot by drawing many circles or maybe rectangles with a radius determined by \pgfplotspointmetatransformed. But I can't ...
5
votes
0answers
556 views

Trying to draw a line that changes color [closed]

I'm trying to use tikz to draw a line that changes color at two different points. As you can see from the code below, what I want is a line that starts solid red, changes to dotted gray, and ends as ...
5
votes
1answer
154 views

Closed shape with different line colors

The following code defines a MWE: \documentclass[dvipsnames]{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw[dashed,Cerulean] (0,0)--(1,0)--(1,4); \draw[thick,...