The shading operation consist of let a background picture be rendered with different gradients of colors or light/dark. The {shading} tag is related to questions in which a shade operation is required.

learn more… | top users | synonyms

3
votes
1answer
89 views

Custom Fading for Rectangle

I tried to learn from How to define the distance of color regions in radial shading using TikZ? TikZ: radial shading of a ring TikZ Fading Speed and then create my own fading scheme in this MWE: ...
1
vote
1answer
71 views

How do you make a radial fading on top of a background image?

I have three objects that I want to superimpose on each other: Some text upon a background picture using a circle to create a radial fading from white to transparent so that it is possible to read the ...
0
votes
0answers
23 views

shading region bounded by several curves [duplicate]

I have the following code: \documentclass{book} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw [color=red,fill=red,fill opacity=1.0] (-0.67,1.06) circle (2.41cm); \draw ...
6
votes
1answer
96 views

How can I define a key that adds a coloured border inside a closed path, but plays nice with \fill?

I want to draw polygons that have a fixed width shading or border on the inside. Here is an image made in mspaint illustrating the kind of thing I'd like to draw: This question addresses this ...
0
votes
0answers
48 views

Extending TikZ fadings to the very ends of a character

I'm having a problem with the "custom letter" that I've already asked two questions about. The following MWE illustrates the issue: \documentclass[border=4]{standalone} ...
3
votes
4answers
129 views

How to shade text in latex without a box?

I would like to add a background shade to my text in a report. I do not want to use a box to wrap the text though. Is this possible? MWE of my code is given below. In the code, I would like to shade ...
1
vote
0answers
35 views

CMYK Shading with relative coordinates

I am trying to in a way automate the shading issue described here: Drawing a box with shading in pgfplots The general goal is to put a working code part in my style definition using append after ...
1
vote
1answer
55 views

How to change shadedraw color

With, this code \begin{figure}[h!] \centering \begin{tikzpicture} \shadedraw[shading=radial, color=blue] (0,0) circle (4); \end{tikzpicture} \end{figure} I get this But is it ...
1
vote
0answers
33 views

Shade all presented content [closed]

Can I shade all the presented content in Beamer? I.e., I want all sections and subsections whose frames I have presented to be shaded and to remain shaded. Therefore, only the non-presented sections ...
3
votes
1answer
129 views

How to make a line style for drawing the ground line?

I'd like to draw a piece of "ground line" (picture below), but I don't know, how to make a line style and how to ensure proper localizations of the picture boundary. The solution of achieving an ...
2
votes
1answer
73 views

Venndiagram shading sticking out of the picture [duplicate]

My Venndiagram package went mad. The following code \documentclass{standalone} \usepackage{tikz} \usepackage{venndiagram} \begin{document} \begin{venndiagram3sets} \fillOnlyA \end{venndiagram3sets} ...
4
votes
1answer
232 views

(Kind of) photorealistic radial shading in TikZ

Is there a way to define more than one "spot" of light for one shading? Two (default white highlight and a big pink reflected light spot) were good and three were just great. I'm using ...
1
vote
1answer
55 views

Reducing upper and lower margin in shaded enviroment

I am using \begin{shaded} from \usepackage{framed} to highlight some formulae and theorems in some notes I am writing. I would like to reduce the upper and lower margin: how can I do it?
4
votes
1answer
56 views

how is clipping done in regions by circles and rectangles, square?

How to shade the region like this?
7
votes
2answers
150 views

Rotate and clip shading in TikZ

I'm trying to produce a copy of the right hand side of this picture using TikZ shadings. I thought it would be a simple task but it has proven itself difficult (at least for me). First I couldn't ...
1
vote
1answer
78 views

Tikz picture dissapears when zooming pdf above certain percentage

I want some shaded lines, so, as I didn't find any specific command for this, I'm trying to do it with a very thin rectangle. I compile with pdflatex and zooming the pdf makes the lines, and, ...
1
vote
0answers
68 views

Shading in a rotation without a canvas transformation

I'm currently working on a magnifying glass as an object without making use of the spy library. It is written as a \newcommand since I have to use it to some extense. My problem is the shading for the ...
7
votes
1answer
130 views

tikz-cd: Shade faces of commutative cube

I would like to "shade" the faces of a commutative cube drawn using tikz-cd. \documentclass{article} \usepackage{tikz} \usepackage{tikz-cd} \begin{document} \begin{tikzcd} & P \ar{dl}[swap, ...
7
votes
3answers
331 views

how to shade a region bounded by straight lines and arcs in tikz

I have drawn a figure using tikz from Geobra. But I could not shade the region neeeded. \documentclass[twosides]{report} \usepackage{amsmath, amssymb, latexsym, amscd, amsthm} ...
1
vote
1answer
79 views

radially increasingly opaque overlay ellipse with text

Say I have a pattern on which I'd like a radially shaded (from transparent on the outside to white on the inside) so that the background pattern fades to white around the text. How would I achieve ...
1
vote
0answers
84 views

Smooth joining between shaded rectangles (TikZ)

I am assembling several rectangles to make a special shading. Here is my code : \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{fadings} \begin{document} \begin{tikzpicture} ...
3
votes
2answers
80 views

Theorems spanning pages without losing width

I use declaretheoremstyle to declare a theorem environment. I like the format of shaded, it gives a special background color without shorten the width of a text. But one problem is that a theorem ...
5
votes
2answers
90 views

Shading applied only to the first element with foreach

I want to apply the same shading to multiple rectangles. Here is a MWE of the code I use (for a sample of 3 rectangles): \documentclass{article} ...
8
votes
3answers
911 views

Shading areas in TikZ

It's an easy TikZ question for people who use it. I tried reading the TikZ manual p. 112 several times but it seems too complicated on the filling part, all the infinity and whatnot... So I currently ...
5
votes
1answer
256 views

Five percent circle with fuzzy edge using tikz

Consider the following code: % DOCUMENT TYPE \documentclass[12pt,a4paper]{article} % PACKAGES \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[english]{babel} \usepackage{lipsum} ...
5
votes
2answers
287 views

Glowing path in tikz

I want to draw in tikz a line that diffuses and a dashed path that is basically the contour of this diffused area. I think that in photoshop the diffusing effect can be done by a blurred stroke. Is ...
4
votes
1answer
312 views

shading area between two curves in pgfplots

I have the following latex code: \begin{tikzpicture} \begin{axis}[ xlabel=Strike Price (K), ylabel={Put Value (p)} ] \addplot [only marks=*,blue] plot coordinates { (40,10) ...
11
votes
1answer
218 views

How to do logarithmic shading with TikZ?

Using TikZ, the shade option is very convenient to produce color shadings, but it produces only linear color gradients. Is it possible to obtain other transitions, and especially a logarithmic one? ...
11
votes
2answers
317 views

Light object / source in PGF / TikZ / PGFplots pictures like in PSTricks

I came across the PSTricks animation located at http://melusine.eu.org/syracuse/pstricks/pst-solides3d/animations/a43/ http://i.stack.imgur.com/NlqHZ.gif and noticed that it uses a light object / ...
7
votes
1answer
260 views

Construct colormap for iso / level surface in PGFplots

I am trying to construct a plot of a surface in 3d of which the color of the surface is dependent on the z coordinate. The difficult part is that I need the color to vary 'discretely', not ...
6
votes
1answer
139 views

Prevent shifting of shading center point when using relative coordinates

I am writing some macros that allow for the drawing of ball shapes in an arbitrary fashion in \foreach loops: \documentclass[tikz, border=0.5in]{standalone} ...
2
votes
1answer
670 views

How can I have a horizontally shaded frametitle in beamer?

This question is similar to How can I have a horizontally shaded block title in beamer?. I want to achieve the horizontal shading effect in the frametitle and when I use ...
1
vote
1answer
908 views

Tikz: Shading a rectangle diagonally,

I'm trying to draw a 3D picture with some shading to make it look a bit prettier. So far it's just a cuboid, and I discovered the shading command. Here is what I have so far: ...
4
votes
1answer
85 views

Specifying this region to shade

I have a plot on a set of curved axes. I want shading from the center of the axis circles fading to white on the outer axis. Using center=red puts the center of the shading in the center of the ...
2
votes
1answer
108 views

Difference between two Riemann sums with tkz-fct

tkz-fct is great for plotting Riemann sums, but I don't see how to plot a shaded area of the difference between the sup and inf Riemann sums. I'm particularly interested in a plot with both convex and ...
17
votes
2answers
598 views

How to make a longitudinal sine wave shading with pgfplots?

At the moment I use TikZ shadings to show up longitudinal waves in my document like this: The shading is white where the sine is –1 and blue where the sine equals 1. This looks ok, but ...
5
votes
4answers
417 views

Periodic shading in tikz

Is there an easy way to shade a rectangle in tikz so that the color changes not from one to the other but several times in between. Something like a grayscale value changing with the position x like ...
23
votes
4answers
2k 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
531 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} ...
9
votes
2answers
753 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}, ...
10
votes
2answers
487 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
688 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 ...
2
votes
1answer
131 views

Putting solutions next to T/F choices

Setup I have the following MWE: \documentclass[addpoints,12pt]{exam} \usepackage{color} \usepackage{amsmath} \usepackage{amssymb} \checkboxchar{$\Box$} \checkedchar{$\blacksquare$} ...
10
votes
1answer
274 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
1answer
223 views

How can I fade out the margins of a Beamer frame?

I'm making a poster with beamer. The department's printer has a specific printable area that I must stay within, but I'd like to have a gradual fade-out of my background pattern. How can I fade out ...
6
votes
1answer
395 views

How can I have a horizontally shaded block title in beamer?

\documentclass{beamer} \usetheme{Rochester} \setbeamertemplate{block title}[horizontal shading][left=black, right=white] \begin{document} \begin{frame} \frametitle{MWE} \begin{block}{Title} ...
4
votes
2answers
399 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
537 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
467 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
477 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} ...