19
votes
4answers
873 views

How to shade text in different colors?

I need a single character in two colors. Figuring I could use the shadings library of TikZ, I followed the manual (section 23.4.1, the TikZ example): \documentclass{article} \usepackage{tikz} ...
5
votes
1answer
122 views

Is it possible to define the position of top bottom and middle color in fill?

In the following example: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{decorations.pathmorphing,calc,shapes,shapes.geometric,patterns} \begin{document} \begin{tikzpicture} ...
6
votes
2answers
110 views

How to add a shadow to a tikz line?

I have the following tikz picture. \documentclass{standalone} \usepackage{tikz} \usepackage{xcolor} \begin{document} \begin{tikzpicture}[ arr/.style={->, blue, very thick}, ...
6
votes
2answers
220 views

How to create a color wheel shading with other colors?

In the pgf manual one can get a circle with a jet-colormap color-wheel-shading with: \tikz \shade[shading=color wheel] (0,0) circle (1.5); How can I get the same but with another colormap? This ...
3
votes
2answers
144 views

Graphs of Linear Inequalities

The following code I got from: http://tex.stackexchange.com/a/76014/10898 \documentclass{article} \usepackage{pgfplots} \usetikzlibrary{patterns} \makeatletter ...
9
votes
1answer
195 views

How do I shade various regions defined by a hobby curve?

Use the following code, I am able to generate the curve easily. \documentclass{article} \usepackage{pgf,tikz} \usetikzlibrary{arrows} \usetikzlibrary{hobby} \begin{document} ...
4
votes
2answers
214 views

Shading area between curves

I am an old LaTeX user but just beginning to discover PGF and TikZ. I am trying to shade areas between 3 curves and from what I read I could do it with min and max functions, but forwhatever reasons ...
11
votes
2answers
250 views

How can I draw a curved gradient/fade in tikz?

I would like to draw something like the following diagram: My problem is drawing the grey curved path that fades away. The direction of the fading continually changes so that it is always ...
6
votes
1answer
133 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 ...
4
votes
1answer
158 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} ...
7
votes
1answer
157 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
180 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
144 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
228 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
387 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
440 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
352 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
250 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
215 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 ...
16
votes
1answer
847 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 ...
12
votes
4answers
2k 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 ...
10
votes
1answer
360 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
275 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 ...
13
votes
1answer
704 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
895 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
284 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
188 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
509 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
222 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
343 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
356 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
538 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
107 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 ...
23
votes
4answers
790 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
573 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
364 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 ...
13
votes
2answers
724 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
441 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
198 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
717 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 ...
18
votes
3answers
2k 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
232 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
748 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
290 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
657 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
2k 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 ...