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
6
votes
2answers
87 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{...
0
votes
0answers
24 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 ...
36
votes
4answers
4k 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} \...
3
votes
2answers
66 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} \...
25
votes
4answers
6k views

Is there a way to tune ball shading in TikZ ?

I want to create a Go stone in TikZ. "ball color" option in node style is almost OK. Here is my result: But I don't like the stones, they are "too balish". The "reflection" should be less spot-on ...
6
votes
1answer
95 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
55 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
48 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
66 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
38 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}% }...
1
vote
1answer
55 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 ...
4
votes
1answer
85 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 ...
2
votes
1answer
75 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}...
0
votes
1answer
34 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
87 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. ...
2
votes
2answers
396 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 ...
5
votes
5answers
13k views

Beamer: How to remove shadow under the title on a given frame?

On one particular frame I would like to remove the shadow that the theme I am using inserts under the title. The reason is that with a black background (which I use only on this frame), it looks quite ...
2
votes
0answers
86 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. ...
0
votes
1answer
75 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
47 views

Shifting radial shading arbitrarily

I find no solution to 1) shift the circle to another origin as (0,0). As you can see in picture two th pic is "distorted"(same for circular sectors!)?. The placement should be arbitrarily on a ...
0
votes
0answers
56 views

Problem with shadings declarations in pgf

I have no real question but rather some observations about declaring shadings in pgf. First strange thing is that parameterless shadings are declared globally while shadings with parameters are ...
2
votes
1answer
94 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
67 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?
4
votes
2answers
115 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
58 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 ...
2
votes
1answer
78 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
81 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
50 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
270 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
487 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
202 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
53 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]; \...
4
votes
1answer
280 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} \...
23
votes
2answers
2k views

How do I force tikz to use CMYK everywhere (also in shadings)?

I'm doing a poster with the baposter which uses tikz and at some point realized that some colors that should be identical are not. It turns out that tikz apparently resorts to RGB color space as soon ...
13
votes
3answers
7k views

Cylinder shading with PGF/TikZ

I'm trying to create a cylinder with 3D shading effects. The cylinders in the picture are standing vertically, and have a body and an end. I'd like the body to be shaded so that it varies uniformly ...
2
votes
1answer
64 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
48 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
119 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
38 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 ...
2
votes
0answers
105 views

CMYK Shading with relative coordinates [duplicate]

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
60 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
252 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
75 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
172 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!...
11
votes
4answers
4k views

How can I draw these polygons with shaded regions?

I don't know how to draw this by LaTeX.
5
votes
1answer
60 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{...
9
votes
1answer
210 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, ...
3
votes
1answer
81 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 ...
5
votes
3answers
479 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
345 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, ...