Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [shading]

The shading operation consists of letting 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.

2
votes
1answer
37 views

Bullet corner frame using tcolorbox

Here I am using tcolorbox package, I want to set the bullet/dot need to expand based upon the box spanning as per requirement. Here I attached the screen shot and highlight the area in red color which ...
2
votes
0answers
51 views

How do I get a definition and theorem environment like these?

I tried using the mdframed package but I failed, how can I get that output?
2
votes
1answer
44 views

Parameterize node circular sector shaded

I want to parameterize node creation in a foreach. The creation prozess was solved in: Cut part of radialshading out as node shape circular sector I think the substitution in the foreach has a ...
4
votes
2answers
74 views

Color gradient in a polygon along a specified direction

This code: \documentclass[tikz,border=1mm]{standalone} \usepackage{tikz} \usetikzlibrary{backgrounds} \begin{document} \begin{tikzpicture}[scale=4] \begin{scope}[on background layer] ...
2
votes
1answer
54 views

Cut part of radialshading out as node shape circular sector

Part of the radialshading should be cut out of it. With this \clip(?)ed part I want to fill the \predefined node shape (here: \node maerz). Sorry for my english. The \shade works for two colors (...
3
votes
1answer
43 views

shading circular sector

I want to shade the predefined node shape "circular sector" pgfman301a,p 706, from the marked anchor points (sector center and arc center). The draw is based on pgfman301a,p.686. It's "on axis" ...
2
votes
1answer
23 views

Beamer frametitle shading

I use the code below to reduce the height of the frametitle box in beamer. But this also makes the frametitle shading I had disappear (gradient from red to black) that is now uniformly red and not ...
8
votes
2answers
227 views

Why is there a trace line in this tikz graph?

I am trying to generate a shaded area between three curves: two are y=±√x and third one is y=5. \documentclass[10pt,multi=False,border=5pt,tikz,class=scrartcl]{standalone} \usepackage{xcolor} \...
5
votes
1answer
460 views

A wheel-like figure

I am trying to draw a wheel-like figure like this. I had used xfig. I wonder whether I can also use LaTex tikz or other ways to get similar figure with the additional criterion the area ...
6
votes
1answer
68 views

Problems with shading and opacity

I'm trying to shade an area with tree colors and this works as expected. But I want the filling to be half-transparent so I included opacity=0.5 in my code and it seems that LaTex adds some gray into ...
2
votes
3answers
46 views

Arrows, nomenclature and shaded area

I want to make a diagram similar to this one However, I have only been able to do this: With the code \begin{tikzpicture} \draw (1,0) circle [radius=10.75cm]; \draw (1,0) circle [radius=4.2cm]; \...
2
votes
1answer
44 views

Shading Under a Line

I am trying to shade the area under this graph: \begin{tikzpicture}[scale=1.5,line width=1pt] \begin{axis}[ color= black, xmin=0, xmax=1250, ymin=0, ymax=1250, axis equal image, axis x line=...
2
votes
1answer
41 views

overlapping shadow with tikz

Hey i have the follwoing code in my document: \begin{tikzpicture} \shade[inner color=blue,outer color=white] (3,0) circle (1); \draw[fill=white] (3,0) circle [radius=0.7]; \shade[inner color=...
0
votes
1answer
98 views

drawing a polar type region and shading area using latex [closed]

I would like to draw the attached picture and insert it in a latex document. I was wondering if someone can help me?
1
vote
1answer
35 views

getting error while compiling and shading challenge

I have the following concerns: 1- I drew two pictures and I need them to be underneath each other. the first one presenting a Hass diagram and the second one a line poset. when I put them in a ...
1
vote
1answer
45 views

Problems drawing curves on ellipsoid

I'm trying to draw an ellipsoid but I have trouble matching this dashed curve with the limit of the shading in the picture, as you can see in the image ... what am I forgetting? \documentclass{...
5
votes
1answer
191 views

Same shading for the patches in the same plane

I have the following polyhedron figure: \documentclass{article} \usepackage{pgfplots} \pgfplotsset{compat=1.16} \usepgfplotslibrary{patchplots} \begin{document} \begin{tikzpicture} \begin{axis}[...
3
votes
1answer
59 views

Remove color transitions in header of LaTeX beamer Darmstadt theme

The Darmstadt theme of LaTeX's beamer class produces color transitions/shadings (?) in the header part, which I find not very nice in certain color combinations. Is there a way to produce clear cuts ...
5
votes
1answer
141 views

Shading a standalone page in Tikz

Using the current page command from this answer \documentclass[tikz,border=4pt]{standalone} \usepackage{bm} \usetikzlibrary{fadings} \begin{document} \def\hori{3} \def\vert{2} \def\zColor{black!40!...
5
votes
1answer
54 views

Shading in region defined by sub segments of curves

I have been struggling to shade in a specific region in an image I am trying to make. Here is a MWE \documentclass{article} \usepackage{tikz} \begin{document} \begin{figure}[!h] \centering \begin{...
2
votes
1answer
40 views

Title does not appear in frame title when vertical shading (gradient) is applied

I am trying to apply vertical shading to the title frame but I am unable to get the title into the frame. Thanks for your help. \documentclass{beamer} \definecolor{lightgreen}{RGB}{140,238,144}...
2
votes
1answer
224 views

Shading a torus in TikZ

I would like to be able to shade a torus in TikZ to make it look like a surface in 3D, similarly to how the sphere in this code is shaded to give it a 3D feel but the opacity is such that it does not ...
9
votes
1answer
194 views

How to accomplish tangential shading (i.e. not radial shading)?

I want to produce an open ring with a color gradient that goes from white (or faint red) to red and then back to white (or faint red) in the angular/tangential direction. In the image attached below, ...
5
votes
3answers
245 views

How to use Tikz \shade command in order to achieve 3D like results

I have a few graphics which I believe are good enough to show what I need but I want to go further, I am wondering what kind of settings could be used in the \shade[] command to create a 3D effect. ...
2
votes
2answers
219 views

Color gradient for line in scatter plot with Tikz/pgfplots

I am trying to create a color gradient in a scatter plot that affects both the line and the markers that is not dependent on the x- or y-axis value. I have 5 levels that define my 5 marker locations, ...
3
votes
1answer
68 views

Tikz: How to mirror things with complex shaders such as the colour wheel

I wanted to depict a point moving over the unit circle using a rainbow circle. I managed to do that using the colour wheel. However, the colour wheel goes clockwise, and I need it to go ...
2
votes
1answer
80 views

how to use the arc and shade function to draw an amazing cylinder shape

I want to draw a cylinder with tikz, I haven't used \usetikzlibrary{shapes.geometric} indicader in the answer answer here I am going to complete my figure to show the arc behind in dashed, i want to ...
1
vote
1answer
62 views

how can use shade function to color a quarter disc?

I'm trying to draw a quarter disc, I want to use the shade function to make it colorful, but what I get is just a little colorful arc, how can I color a quarter disc \documentclass[border=30pt]{...
1
vote
0answers
52 views

Externalize tikz-forest with shaded arrow

I have just discovered externalize and want to use it in my document that contains lots of trees with shaded arrows. The arrows are shaded with some "hack" that I found on this site (unfortunately I ...
0
votes
1answer
58 views

Float error when inserting table

I am admittedly a complete novice when it comes to using Latex but I'm really enjoying its practicality when it comes to note taking in science and math courses. However I am now trying to insert a ...
4
votes
1answer
96 views

ConTeXt: Multiple colour stops for linear_shade

Background Looking to parameterize a horizontal rule (for headers and footers) that has three colour stops (A to B to C) and a variable thickness. For example: Single Stop Code The following code ...
5
votes
1answer
79 views

Asymmetric behavior of TikZ fadings

I am a bit confused about the behavior of TikZ fadings. Here is my MWE \documentclass{article} \usepackage{tikz} \usetikzlibrary{fadings} \newcommand{\FadingQuarterArrowOne}[2][]{ \begin{scope}[...
2
votes
2answers
113 views

Shading in bookcover

I'm trying to make a book cover using the bookcover class. The problem is that I cannot use shade (something I want to use), it always gives a black background, even with the minimal example in the ...
3
votes
1answer
121 views

Drawing shaded regions bounded by arcs with tikz

I am trying to create a tikz image based on the following screenshot: I can figure out how to draw a pyramid, but I have so far been hopeless at drawing the red shaded regions. Here is the minimal ...
7
votes
2answers
325 views

How to draw two intersecting cylinders?

By using the TikZ package, I want to draw this: and For the results below, I still need help from GeoGebra. (It's hard for me to draw arcs in slanted position and in shading.) \documentclass[border=...
11
votes
1answer
196 views

Strange border appears with a \fill with inner/outer color options

I'd like to have a radial shaded circle whose outer color is the same as the background, but I didn't manage to do it. If I set outer color=white without a background, a strange border appers (see ...
4
votes
1answer
368 views

Fill space between function and coordinates - pgfplots

I am creating a plot in pgfplots that consists of a function and a set of coordinates, as seen in this MWE \documentclass[tikz]{standalone} \usepackage{tikz, pgfplots} \begin{document} \begin{...
1
vote
1answer
126 views

Multiple horizontal shadings in Tree outer theme

Starting from Tree outer theme, I would like to add horizontal shading to each of the headlines line (as in Shadow outer theme), but a different shading for each line. Say, for a more striking example,...
2
votes
0answers
144 views

Can Gaussian (or similar) blur be applied to Tikz text?

I’m trying to emulate in TikZ a title page which I’ve previously drawn in SVG. The image below is from the SVG version, where the shadowed text is achieved using a feGaussianBlur filter. But ...
2
votes
0answers
109 views

Apply polar transformation to a shaded rectangle

Update How can I get the shade to vary in the theta direction of the transformed figure rather than left to right? I was hoping the left to right shading in the original rectangle would become a ...
3
votes
1answer
95 views

Add shading angle to tcolorbox

I'd like to add a shading angle (like tikz nodes: shading angle=45) to a tcolorbox environment. Is that possible? \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[dvipsnames,svgnames]{...
2
votes
1answer
161 views

Shading a circle along its latitude and longitude

I have a circle. I wish to shade it along its latitude and longitude as follows: Along the latitude, say starting from the point A, the color gradient should decrease until the diameter CD. Similarly ...
1
vote
1answer
110 views

How to shade regions corresponding to particular periods of time

I need to plot time data and shade some periods of times like in this graph Is it posible using tikz? Thank you very much Sorry. I forgot to include my figure. Unfortunately "\filldraw[fill=gray!...
6
votes
1answer
266 views

How to mimic shading currently done in TikZ in RGB, using pgfplots so it can use CMYK?

In an earlier question I learned how to make a diagonal shading on a left-hand page which was reflected on the right-hand page. This has been working fine thanks to Ignasi and others. But for the ...
1
vote
2answers
355 views

How is a PGF shading applied?

Consider the following LaTeX manuscript featuring a TikZ picture of a tall, rainbow shaded rectangle. The code is essentially copy-and-pasted from the example in the end of subsection 109.3 ('Using ...
4
votes
2answers
414 views

Shade outside of Unit Circle with fading color

I wanted to shade the outside of my unit circle in my code below to get this effect: Here is my code: \documentclass{article} \usepackage{graphicx} \usepackage{tikz} \usetikzlibrary{shapes.misc} \...
1
vote
1answer
113 views

Two shared region bar graph in one plot

I want to draw a graph like shown in the image, but my values will not start from 0%(see image). For example: I want to plot Men in 'All' from 20% -60% (means slab will start from 20% and will end at ...
2
votes
2answers
359 views

How to shade a region between two arcs of circle

I would like to shade the region between the two geodesics (a,b) and (b,c) in such a way that the color fades as the region becomes wider. This is the code \documentclass{article} \begin{document} ...
5
votes
2answers
362 views

Using path options to set color for a custom shading

I'm using a custom shading to make cylindrical bars. The shading uses a color that is defined in the color list. I can change the color by using a \colorlet expression. But I'd like to be able to ...
0
votes
1answer
98 views

Create a TikZ overlay with RH mirror of LH

Thanks to John Kormylo in this question ("Clip an A3 tikz overlay to two A4 pages"), I managed to create a background in two halves for use on two consecutive pages. Now I need to create symmetrical ...