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

2
votes
1answer
29 views

Why is the frame title height reduced, when using shadow outer theme?

I want to have a horizontal shading in my frame title, so I can put a logo on the right side of the title. To have this in my frames, It seems that I have to use shadow outer theme. the problem is ...
8
votes
2answers
99 views

Diagram with a shaded region

The following MWE yields the diagram above but I would like to find a better way of showing the shaded region. \documentclass[letterpaper]{article} \usepackage{tikz} \usepackage{amsmath} ...
2
votes
2answers
57 views

Inserting a box with shaded background text, in plain TeX.

I'm using Plain TeX and trying to create a box that has a shaded background, containing a mixture of both mathmode and textmode TeX. It would be great if I could add colour to the background (i.e. ...
1
vote
1answer
74 views

Shading a frame title in PaloAlto beamer

I'm not an expert in beamer and after a few hours on the web not finding how to do exactly what I want I'm asking for help. I would like to create a beamer using PaloAlto theme with a few ...
5
votes
1answer
43 views

How does the TikZ `shading angle` key work?

When answering this question, I found out that the shading angle key does not do what I expected it to do. The following MWE illustrates the problem. I've defined a shading with a sharp edge to make ...
4
votes
0answers
63 views

Tikz shading Issues

In the code below if I use the following code soft clip={domain=-3:3}, I get the graph on the top. If I use soft clip={domain=-2.99:3}, I get the graph on the bottom. Why does -3 not work? ...
5
votes
1answer
100 views

Shading the area between arcs with a rainbow

I am trying to shade areas between arcs in a rainbow fashion - and I want to be able to control if the red end is the lower end or at the upper one. MEW: \documentclass{standalone} \usepackage{tikz} ...
2
votes
0answers
51 views

Sphere shading in cmyk colours

I'm trying to make a sphere in cmyk colours. In rgb, the spheres are nicely overlapping as expected. Is the solution using @Christian Feuersänger suggestion here? \documentclass{standalone} ...
2
votes
2answers
111 views

How Can I Decorate a Parametric Curve?

I'm trying to draw a special parametric curve, but my results are not good enough, because I'd like to decorate it. So, I've tried this: \documentclass[10pt]{article} \usepackage{pgf,tikz} ...
0
votes
0answers
36 views

Shade an area bounded by two curves [duplicate]

Is there a way to shade the area bounded by U1 and U2 without using PGF plot? Also I do not want the shaded area to cover the curve P. Thanks! \documentclass{standalone} \usepackage{tikz} ...
2
votes
0answers
36 views

pgfplots: shade area between two table-generated curves

I have three statistical quantiles generated via \addplot table. I would like to shade the area between the highest and lowest quantiles (the mid one is the median). If I use \closedcycle, I shade ...
6
votes
1answer
85 views

Asymptote Shading Gradient in HSV Color Space

Using asymptote I'm trying to fill shapes with gradient shading in the HSV color space. Unfortunately, I think that HSV is not an available color space in asymptote. However, asymptote does have the ...
2
votes
0answers
25 views

ImageMagick fails to convert PDF files containing functional shading

Question I would like to make a GIF animation out of a series of functional shadings. But it seems ImageMagick cannot even handle one shading. Did I miss any option of ImageMagick? Or are there any ...
2
votes
1answer
146 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
85 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
25 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
99 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
58 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
179 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
49 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
72 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
34 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
151 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
87 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
310 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
73 views

Reducing upper and lower margin in shaded environment

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
60 views

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

How to shade the region like this?
7
votes
2answers
183 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
90 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
79 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
168 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
366 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
104 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
94 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
91 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
98 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
1k 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
292 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
369 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
405 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
239 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
353 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
334 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
146 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
894 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
1k 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
98 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
117 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
656 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
474 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 ...