6
votes
1answer
78 views

How to use i.e. left, middle and right color when using draw as an argument instead of a command?

I'm forced to define colors within my tikzset for one of my projects. This requires me to use the draw command within my tikzset to set a color. Normally I can just use, say \draw command to just ...
3
votes
1answer
59 views

Different shading for multi-parted tikz node

Please consider MWE below: \documentclass{standalone} \usepackage[usenames,dvipsnames,svgnames,table]{xcolor} \usepackage{tikz} \usetikzlibrary{positioning,shapes,shadows,arrows} \usepackage{lipsum} ...
4
votes
0answers
60 views

Combining shading and transparency in TikZ

With this code: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \fill[shading=radial] (0,5) circle (2); \fill[top color=black] (5,3) rectangle (9,7); ...
5
votes
1answer
114 views

How to make halo around node with shading?

I am trying to do this (do not pay attention to red line above blue node and line in the node): By so far i have this: With this code: \documentclass[tikz,12pt]{standalone} ...
4
votes
2answers
113 views

How to highlight a paragraph containing a tikzpicture

I'm trying to highlight an entire paragraph that contains a figure drawn with tikz. I'd like to highlight the text and also the blank space around the figure, while the figure itself should have the ...
3
votes
2answers
196 views

Halftone shading with TikZ

I try to do a cover for a documentation. For this, I need to do a shading between two colors. And to be more elegant I would like to make a halftone shading with TikZ, like shown in the picture.
8
votes
1answer
319 views

“Countryball” comic with TikZ. How to shade a 3D object with different stripes on it?

Countryball (if I'm not mistaken originally Polandball) is a web comic versing on crude political jokes, some of which I find hilarious. In some sense, the idea is analogous to the spherical cow ...
10
votes
1answer
280 views

Transparent shade using TikZ

I wonder whether it is possible to create a transparent shading effect (like the one below) without an exact specification of the fill color. This solution is good until I have to change the ...
9
votes
3answers
303 views

How can I shade from red to green along a curve?

Let's take the following picture as an example. I want to shade the fan-shaped area from red to green along the curve shown with the arrow in TikZ. How can I do this? Code: ...
3
votes
2answers
145 views

How to define the distance of color regions in radial shading using TikZ?

I am making a series of figures explaining the photolithographic process, and need to find a way to illustrate edge beads during spin coating. To show this I initially wanted to use radial shading, ...
5
votes
1answer
179 views

Creating a line separated gradient bar in Tikz

I am trying to create something similar to this in Tikz: I have been looking at using the \shadedraw macro, but have not found a way to create the color spectrum. It seems possible if I stack ...
15
votes
1answer
557 views

Path following color gradient in TikZ

How can I get a path following color gradient in TikZ? Here a quick example of the idea. On the left the result I'm looking for and on the right an example of a non path following gradient applied on ...
10
votes
3answers
860 views

Tikz: shading region bounded by several curves

I know that my effort below can be improved upon considerably. In particular, there must be a way of shading the region in a single scope, as opposed to subdividing as I have done (thus necessitating ...
8
votes
1answer
232 views

How do I force tikz to use CMYK everywhere (also in shadings)?

I'm doing a poster with the baposter which uses tikz and at some point realized that some colors that should be identical are not. It turns out that tikz apparently resorts to RGB color space as soon ...
6
votes
1answer
233 views

Shading in TikZ calendar

I’ve produced the calendar below with TikZ but I think the colourings need to be made more salient by shading a box around the coloured dates (as there will be four of these years on a page and the ...
10
votes
1answer
442 views

Tikz: Shading a path without any filling

How can I shade a path witout filling? In particular, I wand to draw a curved arrow that starts colored blue and ends colored green, where in between it gradually changes its color. I can't find a way ...
9
votes
4answers
605 views

How do I shade an area in pgfplots?

How do I create a shaded area in a polygon created by plot intersections? In this case, up to the solid line without circle marks. \documentclass{article} \usepackage{pgfplots} ...
4
votes
1answer
210 views

How to avoid shading of connection bars in TikZ mindmap

I am trying very hard since a while to draw a mindmap where shading of connection bars is avoided and where the connection bar's color is specified by me. For instance, I would like to draw two green ...
26
votes
1answer
1k views

TikZ: drawing 3 intersecting circles and shading

How can I draw the three intersection circles/ellipse with that shading paradigm (not necessarily the same colors) effectively? It appears that the original image doesn't have overlapping colors ...
5
votes
1answer
155 views

Patterned shading parts of a rectangle

Normally I try to have a skeleton at least before I ask a question, but this time I don't know where to begin, so my apologies for asking a cold question. I am trying to get parts of a rectangle ...
6
votes
1answer
453 views

More on “Cylinder shading with pgf TiKZ”

In his answer to Cylinder shading with PGF/TikZ, Jake provides a code to draw a shaded cylinder with a not shaded top. This code draws a cylinder node (from shapes.geometric library) and after that, ...
8
votes
1answer
193 views

Drawing balls in a rectangle

I am trying to replicate the following figure here and this is what I have so far \documentclass[12pt,a4paper]{standalone} \usepackage{tikz,tkz-euclide,pgfplots} \usetkzobj{all} ...
4
votes
1answer
262 views

tikz and mdframed + shadow drop and shading

I'm interesting in Boxed text between pages 2nd version: exercise box with mdframed. Ho to add to this : Vertically shaded frametitle and Vertically shaded box with dropping shadow? Yes i have seen ...
7
votes
2answers
322 views

TikZ shaded translated regions defined by boundaries of shape nodes and lines

Given a lattice made up of shapes, how do I shade the regions (and their translates) defined by the boundaries of these nodes and lines going through these shapes? In my particular case, I have a ...
12
votes
2answers
419 views

Gaussian ellipsoids using tikz

I'm trying to draw illustrations of Gaussian ellipsoids using shaded ellipses. In simple terms what I'm after is a way to have a light shade throughout the outer edge of the ellipse and a darker shade ...
7
votes
0answers
103 views

How to create a line with “radial” shading? [duplicate]

How would you draw a black line with TikZ that shades to white/transparent radially (like this) between two coordinates? Shading is possible for rectangles (TikZ documentation, Ch. 46), though I can ...
16
votes
4answers
647 views

Can fuzzy borders be added to external pictures programmatically?

In my opinion, external pictures are often more pleasing to the eye on a white background when they have fuzzy rather than "sharp" borders. For instance, compare this to that Adding fuzzy ...
1
vote
1answer
327 views

opacity and shading of an ellipse

I am making a picture of the tidal force effects on the Earth. My current picture is decent but I would like where the bulging occurs on the edges to be little bit darker in blue, but I don't want ...
7
votes
1answer
309 views

How to shade a line and how to offset a line?

Newbie here. Could anyone tell me how to (1) shade a line and (2) how to offset a line? I have a very simple graph, This is a mesh used in finite element analysis, I have already used tikz to build ...
29
votes
3answers
1k views

How to pimp my tube?

How can I pimp my tube? \documentclass{scrartcl} % needs logicpuzzle bundle v1.8 % http://mirrors.ctan.org/graphics/pgf/contrib/logicpuzzle/logicpuzzle.sty % or replace logicpuzzle -> battleship ...
12
votes
2answers
578 views

TikZ: shade also the border of a node

I would like to shade a node and the border of the node. The following code works but I don't like it very much that I have to draw something after the node on the background layer. I would prefer a ...
8
votes
1answer
379 views

TikZ shadings and printing incompatibility

I would like to use some effects provided by the shadings library of tikz. More specifically, I am trying to use the ball and radial shadings (tikz 2.10 manual, p. 412-). The resulting pdf looks ok ...
12
votes
2answers
184 views

TikZ/PGF - switching off shading

Is there a way to switch off shading for one node, in a scope where the nodes are shaded? In other words, I want something like shading=none, but did not find it. Motivation: \documentclass{article} ...
4
votes
1answer
602 views

Filling area between two lines and an arc

I have the following diagram I would like to convert (approximately) to tikz: So far, I've succeeded at doing everything except the shading. I am a newbie to tikz and learning the best I can so ...
17
votes
3answers
1k views

TikZ: radial shading of a ring

I would like to have a radial shading of a ring, from inner color (red) at inner radius r1 > 0 to outer color (white) at outer radius r2 > r1. But with \filldraw[even odd rule,inner color=red,outer ...
4
votes
1answer
197 views

Getting rid of a thin framing line when shading a triangle

I am trying to draw a shaded triangle with tikz, using the following code: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \fill[top color=green!40,middle ...
13
votes
3answers
679 views

Shading an area bounded by curved paths between nodes

I am drawing a graph of sorts in TikZ, and I have several connected nodes in a cycle, and I would like to shade the area bounded by paths between those nodes. My problem is that the shading is not ...
5
votes
1answer
250 views

How can I remove the shade in this TikZ picture to get white filling?

I want pure white fill so that upper most circle becomes incomplete. But black shade comes in the figure. Is there any easier way to do this? \documentclass{article} \usepackage{tikz} ...
14
votes
2answers
2k views

Set table background hatched and shaded using tikz

I am looking for a convenient way to set the background of tabular cells. I'd like to do two things: (1) Set the background shaded in a color (2) Set the background hatched I learned that the TikZ ...
2
votes
0answers
95 views

Inconsistent shading [duplicate]

Possible Duplicate: How can I avoid compiling twice? I am shading first page using following code. \begin{tikzpicture}[remember picture,overlay] \shade[left color=white,right ...
2
votes
1answer
582 views

Shadings in head

I am currently trying to code in beamer the following image. So far I got the three beamercolorbox but I can't get the shaded background. Here is the aspect I want: ...
13
votes
1answer
1k views

TikZ, 3d library and circle fading

I'm using the 3d library to put a circle on the z=0 plane, and other things. I'd like to fade this circle radially, but the result isn't as I would expect because the fading is not proportional to the ...
3
votes
1answer
2k views

Tikz: How to shade a node

I have made a graph with TikZ and now I would like to apply a shading to some of the nodes but I can't seem to find out how to do that. This doesn't work: \documentclass{article} \usepackage{tikz} ...
12
votes
1answer
1k views

How to create a ball shading and to customize 3D lighting manually?

TikZ shading=ball will create a perfect 3D ball perspective, but it has no option to change the lighting angle, the contract, radius of light, etc (or I am not aware of). I tried to create a 3D ball ...
8
votes
1answer
405 views

How to use ball shading on non-circle shapes?

If using ball shading on non-circle elements, it will well apply the shading effect, but it will use the default blue color. How to use ball shading with the element color. \node[text ...
8
votes
1answer
861 views

How to shade mindmap concepts?

I tried to add a shade on my mindmap's concepts with \begin{tikzpicture}[mindmap, text=white, every concept/.append style={circle,shading=ball, ball color=black!20!white!20}] but the problem is ...
30
votes
4answers
4k views

How to draw a shaded sphere?

Andrew Stacey pointed out that the Rosetta Code entry "Draw a Sphere" doesn't have a TikZ entry yet. Is there a way to draw a "properly" shaded sphere using TikZ? The ball shading would seem an ...
3
votes
2answers
445 views

Polyline shading in TikZ

Is it possible to apply a shading effect on one side of a polyline in TikZ? I have the following simple code \begin{tikzpicture} \draw (1.06,9.56) -- (1.44,9.78) -- (1.78,9.56) -- (2.14,9.79) -- ...
8
votes
3answers
316 views

How to learn to create General (Functional) Shadings wifth pgf?

In the section called General (Functional) Shadings in the PGF/TikZ manual, there is an "explanation" of the command to create a general functional shading. The author of this section assumes that ...
11
votes
2answers
4k views

Cylinder shading with PGF/TikZ

I'm trying to create a cylinder with 3D shading effects. The cylinders in the picture are standing vertically, and have a body and an end. I'd like the body to be shaded so that it varies uniformly ...