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.

Filter by
Sorted by
Tagged with
0
votes
1answer
60 views

Shade an area on one side of the curve with the boundary of the irregular shading

I need to recreate this graph, with those shading on both sides of the curve, both with the line pattern down the curve, and the shading up the curve. Note that both limits of the shading are not ...
0
votes
0answers
41 views

How to make a heatmap in tabular without coloring the first row and column?

I want to make a heatmap in a tabular. How can I do this without coloring the first row and column (the labels of the table)? Code of my table: \documentclass[12pt]{article} \begin{document} \begin{...
1
vote
0answers
19 views

Shading only the background of title block in the title page with a particular beamer theme

Is it possible to only shade the background of the title box in the title page in a theme like Madrid? I tried using \setbeamercolor{title}{use=structure,fg=white,bg=blue} but that only allows me to ...
0
votes
0answers
34 views

Background color for text, allowing footnotes and figures

I am writing a book-like set of classroom notes using the memoir documentstyle. I would like to set off some pieces of text as 'digressions" by using a background color: I've tried two solutions, ...
1
vote
2answers
72 views

Hi, fairly new to LaTeX, I have a few problems with a graph that I am trying to draw in tikz pictures with pgfplots. They are listed below

Problems: 1) I want to remove the pesky grid lines from the bar plot. 2) I want a separate bar plot some distance from the others with the labels n and n+1. Similar to picture 1 ...
0
votes
1answer
57 views

Shading in Tikz not working in Plain Tex

Shading is not working on my Plain Tex code. I use xetex.exe -synctex=1 -interaction=nonstopmode in TexStudio. No error message or warning. However, the code works on LaTex. Could anyone help check ...
1
vote
1answer
49 views

Filling optical spectrum curve with color gradient

I have some difficulties creating a plot where the area between the curve and the x-axis is filled with a gradient. I want to plot an electromagnetic spectrum and I want the color gradient to ...
2
votes
2answers
138 views

How to color a region of the graph?

I would like to color the region above the parabola, I found some suggestions here, but I couldn't adapt. My code is \documentclass[tikz]{standalone} \usetikzlibrary{decorations.markings} \tikzset {...
1
vote
2answers
118 views

Shading with polar curves when using tikzfillbetween

I am currently trying to depict a portion of a ring which got distorted at one point. To this end, first I am plotting two curves into polar coordinates, then I am using tikzfillbetween command ...
1
vote
1answer
56 views

Tikz: Shading a path – fade-no-fill.sty does not work as previously (Oct 2020)

I have coloured some paths in a radial drawing of a network graph with a colour gradient. A picture of my document compiled in January 2020 shows what it should look like: To achieve this effect I ...
3
votes
2answers
54 views

removing spaces between shaded frames and within it

I have written a a few latex lines to mimic the shaded boxes shown in the below picture: However, my result so far looks like the following: which doesn't look completely like the above image. My ...
1
vote
0answers
43 views

All functional shadings render out as pink

I am looking into the possibilities of \pgfdeclarefunctionalshading for the first time. I found this post on TeX.se and tried pasting its MWE into my LaTeX editor (MacTeX 2020, up to date, run through ...
2
votes
1answer
57 views

Distort a complex shading

I am trying to recreate an image in TikZ. What's below on the left is the original, and what's below on the right is my work thus far. Here is an MWE that will generate my present result: \...
1
vote
1answer
138 views

TikZ: Shaded, Nested, Inverted Cones (Related Rates Diagram)

I'm reading about related rates (differential calculus), and I'm currently working on the inverted cone water tank problem. In the textbook I'm reading, there exists this rather nice diagram of the ...
1
vote
1answer
42 views

Shading whole portion of tikz figure

Is it possible fade/shade the bottom of this figure into white? \documentclass[tikz]{standalone} \usetikzlibrary{matrix} \usetikzlibrary{backgrounds} \usetikzlibrary{shapes} \usetikzlibrary{tikzmark} \...
3
votes
1answer
101 views

Column shading, alternative to xcolor package

I want every second column in my table to have a shading for improved readability. I have used the xcolor package \usepackage[table]{xcolor} using the command \cellcolor[gray]{0.9}. It works, but it ...
0
votes
0answers
53 views

Pgf Horizontal Shading Gives Wrong Color? Drawing Emission Spectrum with Ranibow Colors Filled

\documentclass{amsart} \usepackage{graphicx} \usepackage{pgfplots} \usepackage{siunitx} \usepackage{gnuplottex} \usepackage{pgfplotstable} \pgfplotsset{every tick label/.append style={font=\tiny}} \...
1
vote
1answer
63 views

Defining color in block of diagram

Can someone help me to define this color with \pgfdeclareradialshading \pgfdeclareradialshading{spherelavander}{\pgfpoint{-0.8cm}{1cm}}% {rgb(0cm)=(0.6313,0.6196,0.7411); rgb(1.5cm)=(0.47,0.41,0....
1
vote
1answer
107 views

How to increase space above & below \tcolorboxenvironment for theorems?

The following source uses the \tcolorboxenvironment{theorem} environment (from the tcolorbox package) to shade the background of the theorem environment, where thmtools has been used to define the ...
3
votes
1answer
118 views

How can I make a consistently transparent fade, disregarding what has been drawn below?

] In my code, I have a path that uses a custom fading that has been defined previously. It is supposed to fade the current scope's border, but, as you can see, that only happens when there is only ...
5
votes
0answers
111 views

The background color is not to be placed when used xepersian! Is it solvable?

The background color is not to be placed when used xepersian! Is it solvable? Minimal code: % !TeX TS-program = xelatex \documentclass{beamer} \setbeamertemplate{background canvas}[vertical shading][...
4
votes
1answer
57 views

TikZ: rotating scope changes the shading, but not how you'd expect

It is my understanding that the shading in the following code is applied after the scope transformation. \documentclass[varwidth,margin=0.5cm]{standalone} \usepackage{tikz} \begin{document} \...
0
votes
1answer
68 views

How to shade outside of a rectangle inside another rectangle

please help me to draw this diagram. I am mostly stuck with the shading part. Please help.
0
votes
1answer
72 views

I want to shade first quadrant of the ellipse please guide

Please find below the ellipse code, I want to shade the first quadrant of the ellipse, please guide how can I do that. Thanks in advance . \begin{tikzpicture} \draw (-5,0)--(5,0) (4.1,0)node{A} (0,...
0
votes
0answers
52 views

Strange lines in a shade of the object

I'm trying to depict a sphere with shading \documentclass[tikz]{standalone} \usepackage{tikz} \usepackage{pgfplots} \pgfplotsset{compat=newest} \begin{document} \begin{tikzpicture}[scale = 2.5] ...
2
votes
1answer
212 views

Drawing a Bloch sphere with planes along z-axis in TikZ/PGF

I would like to draw a Bloch sphere that has planes at a certain z value (that can be specified). For example something like this: I don't need the shading to be similar, only for the plane to be ...
2
votes
1answer
160 views

Beamer: shadow whole frame

I am trying to produce the following effect for a presentation of mine in beamer: after the entire frame has been loaded, I would like to gray out / shadow the entire frame, and introduce an ...
2
votes
0answers
117 views

Shaded cells option in ot-tableau

I am using the package ot-tableau to make OT tableaux and there is an option for shaded cells. In the package documentation, the cells appear as shaded but when I use the exact same code from the ...
1
vote
1answer
41 views

How to fix point meta self-interference?

The following diagram is what I want the sphere to look like: Code: \documentclass{article} \usepackage[a4paper,top=3cm,bottom=3cm,left=3cm,right=3cm,marginparwidth=1.75cm]{geometry} \usepackage{...
3
votes
1answer
109 views

How to have shader=interp gradient follow a different direction?

The shading of the interp option in 3D surface plots always has vertically shifting gradients. Is there a way to obtain horizontal gradients? Example image below, only instead imagine the right side ...
1
vote
0answers
821 views

Package pgf Error: Undefined shading “beamer”

I am writing a slide using Latex beamer documentclass. I have encountered **Package pgf Errors**: **Undefined shading** "beamer@barshade", "beamer@aboveframetitle", "beamer@belowframetitle". I have ...
0
votes
0answers
92 views

Shade the area of an inequality [duplicate]

I am looking for an easy answer of how to fill an area defined by an inequality like for example y >= 4 - x in latex. I would also appreciate if you could tell where the options go as well, for ...
8
votes
2answers
539 views

How to shade a polygon with curved lines in tikz?

I am trying to shade a polygon with red curved lines as shown in the MWE. I would like to shade the curved polygon enclosed by the points (A,B,C,D), i.e., the polygon ABCD. MWE \documentclass{...
2
votes
1answer
189 views

highlight text background

For a certain part of text, I needed to make the text bold + underlined in addition to changing the background color I needed to do all this while maintaining hyphenation Thus I could not use the ...
3
votes
2answers
533 views

Pgfplots fillbetween and Tikz \shade

I am trying to replace the rainbow in this MWE \documentclass{standalone} \usepackage{pgfplots} \usepackage{pgfmath} \usepackage{amsmath} \usepackage[ngerman]{babel} \usepackage[utf8]{inputenc} \...
6
votes
1answer
319 views

Change gradient in tikzpicture shade

I will like to have made the red gradient start latter towards the center, (so the gradient is no longer linear but for example exponential instead) and have the gradient center pulled downwards ...
6
votes
1answer
151 views

Shadings in TikZ due to vertices

I have this particular problem with shadings in TikZ. I want to convert quadrilateral patch plot to TikZ. What I know - vector of vertices coordinates and connectivity list of patches. What I do not ...
4
votes
2answers
164 views

shading between lines and axes, using PSTricks

I'm trying to figure out how to shade the area bound by 2 lines on a graph, and one of the axes on an x-y plot (technically, the area bound by 2 nullclines on a phase-plane plot). I've mucked about ...
4
votes
1answer
65 views

Adding Shading to a 3-Dimensional Picture

I am trying to reproduce the following image: And here is my crude attempt at re-creating it using Tikz: I would like to know if there is a way to add some type of shading that is present in the ...
2
votes
1answer
322 views

Outline of 3D plot and shading

I'm trying to draw the outline of a 3D graph (a simple function à la -x^2+y^2) but I don't know how to get the ``envelope'' of that graph. \documentclass[tikz, border=2mm]{standalone} \begin{document}...
2
votes
1answer
61 views

move shadebox to leftside by using mdframed?

My codes are follows: \documentclass{book} \usepackage{xcolor,mdframed} \usepackage{showframe} \begin{document} \setlength{\marginparwidth}{2pc} \newenvironment{codebox}{% \color{blue}% }...
4
votes
1answer
192 views

tilt a tikz shading

I'm trying to draw a band with a shading over a whole page. This band should have a small angle of 15° from west to east. But I seem to be unable to give the shading the "correct" angle too. How can ...
1
vote
1answer
79 views

How to fill region under a surface?

I'm trying to fill the region under the surface z = x^2 + y^2, over the rectangle 0<=x<=1, 0<=y<=1. How may I do so? Also, how do I orient the 3-d plot to as to have the x-axis coming ...
0
votes
1answer
89 views

set on beamer,how to get same shade on footline?new to latex,watch out for greek characters [duplicate]

\documentclass{beamer} \setbeamertemplate{navigation symbols}{} \usepackage[utf8]{inputenc} \usepackage[english,greek]{babel} \usepackage{alphabeta} \usepackage{multicol} \newcommand{\en}{\...
2
votes
1answer
140 views

Tikz diagrams and node placements

I'm designing a diagram for a 1-D potential well. I'm struggling to correctly place my a label below the right hand line. I resorted to drawing an invisible line and positioning the node at the end. ...
3
votes
1answer
299 views

3D Lighting & Shading with TikZ/PGFPlots

I'm trying to shade 3D parametric surfaces using a basic 3D lighting model, but this answer says that TikZ has no support for lighting. The only option is to use color gradients to shade vertices. ...
1
vote
1answer
224 views

How to set slanting shaded box and also hyphen box using tcolorbox

Good day! Hi everyone, here I am using tcolorbox package I have two types of box styles, one is slanted shaded type and another one is without slant and hyphen border around it. I highlighted box one ...
3
votes
1answer
85 views

Shifting radial shading arbitrarily

I cannot find a solution for Shift the circle to an origin as (0,0). As you can see in picture two, the picture is "distorted" (the same for circular sectors!)?. The placement should be arbitrarily ...
2
votes
1answer
207 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
1answer
126 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?

1
2 3 4 5 6