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

7
votes
1answer
75 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, ...
6
votes
1answer
145 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
45 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
62 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
50 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
75 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} ...
7
votes
3answers
188 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
187 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
199 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
100 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) ...
9
votes
1answer
178 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? ...
10
votes
2answers
239 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 / ...
5
votes
1answer
124 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
116 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
334 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
367 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
72 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
88 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
484 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
291 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
1k 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
355 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
384 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}, ...
8
votes
2answers
383 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
482 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
110 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
255 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
183 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
292 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
361 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
425 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
307 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
377 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} ...
8
votes
1answer
349 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); ...
4
votes
1answer
516 views

I am trying to shade in-between the two lines

The lines were created from points, can anyone give any suggestions on how to do this. Thanks! \documentclass{article} \usepackage{graphicx} \usepackage{siunitx} ...
11
votes
2answers
498 views

3D font in LaTeX

This is an unusual question regarding rendering of a font with a specific 3D-esque style in LaTeX, XeLaTex, or any other TeX flavor. I was looking at some fonts the other day and I came across one of ...
5
votes
3answers
238 views

Drawing aligned boxes with shaded section

I would like to draw several boxes with vertical line split but so far have not been very successful. Here's the code I attempted so far \documentclass{article} \usepackage{tikz} ...
5
votes
1answer
240 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} ...
6
votes
1answer
440 views

Shaded box with section number

The code below is not working. This is because, I have savenotes in my TeX file, it works when I remove savenotes. Is there a way that I can get the code working without removing savenotes? Here is ...
4
votes
2answers
208 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
298 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.
10
votes
1answer
548 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
918 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
469 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
539 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, ...
1
vote
1answer
404 views

Beamer Frankfurt/Smoothbars Remove Shadow/Shading

\setbeamertemplate{title page}[default][colsep=-0bp,rounded=false] \setbeamertemplate{frametitle}[default][colsep=-4bp,rounded=false,shadow=false] \setbeamertemplate{blocks}[rounded][shadow=false] ...
5
votes
1answer
407 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 ...
24
votes
1answer
2k 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 ...
4
votes
1answer
590 views

Asymptote: How to create a radial shading or “elliptical” shading with intermediate color steps?

In Asymptote I can create radial gradient shadings using the radialshade function which defines a gradient varying smoothly from color A on a circle with center cA and radius rA to color B on a circle ...
14
votes
4answers
4k 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 ...