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
2 answers
51 views

Filling area bounded by several lines and adding a text

I'm very new to Tex and trying to draw a graph using tikz package. So here's the code I wrote \documentclass{article} \usepackage{tikz} \begin{document} \ifx\du\undefined \newlength{\du} \fi \...
user avatar
0 votes
1 answer
24 views

how can I make that the shaded part is a little lighter than the rest?

I want to draw one figure as follows but how can I make that the shaded part what I marked in red is a little lighter than the rest? or use dashed line for that part? my MWE is as follows \begin{...
user avatar
  • 33
0 votes
1 answer
34 views

How to Shade Tikz Arc Just as I Did to Circles

I want this arc shaded just like I did to the Circle. \documentclass[border=1cm]{standalone} \usepackage[dvipsnames]{xcolor} \usepackage{tikz} \begin{document} \begin{tikzpicture}[font=\small] ...
user avatar
1 vote
0 answers
58 views

How to shade energy levels

The levels are generated using this block of code \documentclass[]{article} \usepackage{tikz} \usepackage{pgf} \usetikzlibrary{shapes.callouts} \tikzset{ level/.style = { ultra thick, blue }, ...
user avatar
4 votes
1 answer
62 views

Tikz. Radial shading of a disk

I'm trying to create a ball similar to the image So I've used the following tikz code \documentclass[tikz]{standalone} \usepgflibrary {shadings} \begin{document} \begin{tikzpicture} \...
user avatar
  • 367
0 votes
1 answer
27 views

Pgothic Title-Shaded st-Words Compiled with Lualatex in Which a Round 's' is Desired

Consider the code \documentclass{article} \usepackage{tikz} \usepackage{xcolor} \usepackage{pgothic} \newcommand\titleshading[3]{ \newcommand\xoffset{0.3} % Horizontal positioning of the colored ...
user avatar
  • 4,907
2 votes
1 answer
56 views

Incorporating Multiple Title Color Shadings into a Document

Consider the following code: \documentclass{book} \usepackage{tikz} \usepackage{xcolor} \usepackage{pgothic} \newcommand\titleshading[3]{ \newcommand\xoffset{0.3} \newcommand\yoffset{-0.25} ...
user avatar
  • 4,907
-1 votes
2 answers
91 views

Drawing a part of a cylinder

Here is the drawing I want to draw: I want to draw this part of the cylinder and a square with internal shading (I do not want the dotted line inside the square, it was a typo) Can someone help me in ...
user avatar
  • 353
1 vote
0 answers
48 views

This Code for Color Shading of Text Works with Pdflatex but Not Xelatex

Consider \documentclass{article} \usepackage{tikz} \usepackage{xcolor} \usepackage{scalerel} % For Vertical/Horizontal Stretch of Letters \usepackage{pbsi} % for bsifamily font. \newcommand\...
user avatar
  • 4,907
8 votes
4 answers
1k views

Shading a heart

I want to draw and fill the below heart with TikZ package. I use the shading option for the whole heart or two semi-heart curve. It seem the heart divided! Please help me correct the suitable shading ...
user avatar
2 votes
1 answer
80 views

Changing the Text Color in a Shadowed Title

I am trying to add some shading to a title by modifying code presented in Drop shadow for text in PGF/Beamer Consider the MWE \documentclass{article} \usepackage{tikz} \usepackage{xcolor} \newcommand\...
user avatar
  • 4,907
0 votes
0 answers
46 views

surf, shader = faceted interp bloats figure

I tried to generate a 3-D figure in Latex using tikzpicture and pgfplots. Here I can vary the shader between shader = interp and shader = faceted interp (see line 74). The resulting filesize of the ...
user avatar
1 vote
1 answer
58 views

How to shade overlaps of multiple circles?

I am trying to create in tikz an image like this illustration of the winset of the Q in two-dimensional space (drawn in Inkscape). The code below draws the circles as nodes, since that seems to be ...
user avatar
  • 11
3 votes
3 answers
144 views

Clipping issue with TikZ fading

Following Issue with fade-no-fill.sty, I wanted to try implementing @hpekristiansen solution. I’m giving a more complete code here because I have text nodes on the paths actually. \documentclass[tikz]{...
user avatar
  • 1,286
6 votes
4 answers
166 views

Issue with fade-no-fill.sty

I’m trying to have colour gradient on path, and discovered fade-no-fill.sty, which latest version seems to be https://tex.stackexchange.com/a/567029/56823. It works pretty well, but I have two small ...
user avatar
  • 1,286
1 vote
0 answers
40 views

Adding a TikZ canvas in standalone to solve Adobe shading problem

I generated some pictures which, tragically, my linux-Acrobat Reader plugin does not open due to the shadings. Only evince, okular, and light readers do, which solves the problem for me, but not for ...
user avatar
3 votes
2 answers
257 views

Tikz, parametric fill color (Goal: half color wheel with different colors)

My goal is to create a half color wheel in tikz looking something like that: The code I used to produce the above picture is based on: \shade[shading=color wheel white center,opacity=.3] [even odd ...
user avatar
  • 5,053
1 vote
0 answers
66 views

How to fill this region in tikz

How to draw this figure in tikz The two closed curves shown can be any irregular closed curves (they may or may not look exactly like in the picture); also, the area around the point x can be a ...
user avatar
0 votes
0 answers
39 views

pgfdeclarehorizontalshading: Why are some color combinations resulting in no shading?

The following displays no shading, it actually draws nothing: \documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} \pgfdeclarehorizontalshading{myshade}{100bp}{% ...
user avatar
  • 1,234
1 vote
1 answer
77 views

Shading parts of a graph

Although the header looks similar to this question, we could not find anything related to what we want in that answer. we would like to thatch shade a portion of a graph ( graphs with vertices and ...
user avatar
4 votes
1 answer
138 views

TikZ: black hole lensing effect

I am trying to draw a black hole in tikz, and then overlay it on a real astronomical image with stars in the background. So I take a real image and then plug in a black hole in between the stars, and ...
user avatar
  • 569
1 vote
1 answer
186 views

beamer > beamercolorbox > Text with Shadow or Glow

This is a "fun" project. I want to create a beamer presentation with a fancy title frame. The goal is to have a black title frame with "bight colorful" text on it that looks like ...
user avatar
0 votes
1 answer
76 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 ...
user avatar
1 vote
0 answers
66 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 ...
user avatar
  • 11
0 votes
0 answers
58 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, ...
user avatar
1 vote
2 answers
87 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 ...
user avatar
0 votes
1 answer
71 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 ...
user avatar
  • 37
2 votes
2 answers
219 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 ...
user avatar
  • 259
2 votes
2 answers
212 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 {...
user avatar
  • 225
1 vote
2 answers
163 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 ...
user avatar
  • 153
2 votes
1 answer
116 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 ...
user avatar
  • 4,853
3 votes
2 answers
97 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 ...
user avatar
  • 201
1 vote
0 answers
60 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 ...
user avatar
2 votes
1 answer
82 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: \...
user avatar
1 vote
1 answer
262 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 ...
user avatar
1 vote
1 answer
49 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} \...
user avatar
  • 157
3 votes
1 answer
229 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 ...
user avatar
1 vote
1 answer
66 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....
user avatar
  • 45
1 vote
1 answer
205 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 ...
user avatar
  • 6,382
3 votes
1 answer
123 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 ...
user avatar
5 votes
0 answers
134 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][...
user avatar
  • 1,387
4 votes
1 answer
91 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} \...
user avatar
0 votes
1 answer
156 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.
user avatar
0 votes
1 answer
152 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,...
user avatar
  • 259
0 votes
1 answer
81 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] ...
user avatar
  • 367
2 votes
1 answer
471 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 ...
user avatar
  • 1,696
2 votes
1 answer
241 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 ...
user avatar
  • 355
3 votes
1 answer
169 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 ...
user avatar
1 vote
1 answer
51 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{...
user avatar
3 votes
1 answer
124 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 ...
user avatar

1
2 3 4 5 6