Skip to main content

Questions tagged [gradient]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
1 answer
116 views

How to draw multicolor curve with smooth gradient in l3draw?

description I've see two questions about draw multicolor curve with smooth gradient in this site: How to draw an arrow with two colors? tikz: draw multicolor curve with smooth gradient Since i am ...
zongpingding's user avatar
3 votes
2 answers
116 views

TikZ: Shapes with an angular colour gradient

Cross-posting from Stack Overflow: https://stackoverflow.com/q/78347764/2777074 Good people! I'm trying to draw some shapes with an angular colour gradient, but I am unable to find the general syntax ...
StormyTeacup's user avatar
0 votes
0 answers
27 views

Howto enable font embedding with tikzfadingfrompicture? (Use case: Text color gradient)

I want to display a (very big) partially transparent emoji in the background of a document with a color gradient on the emoji). So far, the only successful way for doing so seemed the following tikz ...
branleb's user avatar
1 vote
1 answer
65 views

Color gradient in 3D graph pgfplots

I am trying to make a graph from the values that I got from the gyroscope mounted on the pendulum connected to the Arduino. I cannot make colormap/gradient work. Original graph: This is the code that ...
Patrik Kokinda's user avatar
3 votes
1 answer
206 views

Fully customizable color gradient in TikZ

Linear and radial gradients are very flexible in SVG. It is possible to create gradients containing multiple stops with translucent colors. Here is an example: The gradients in the figure from left ...
Keen Teen's user avatar
1 vote
2 answers
45 views

Color gradient as line in titlesec

I created the following MWE: \documentclass[a4paper,11pt,oneside]{article} \usepackage[a4paper,margin=2.5cm,marginparwidth=2cm]{geometry} \usepackage[pagestyles]{titlesec} \usepackage{hyperref} \...
CFP's user avatar
  • 187
4 votes
1 answer
120 views

Wavy arrow with color shading

I would like to create a wavy arrow with a color gradient along the wave. For this, I tried to combine the solution from https://tex.stackexchange.com/a/197867/96546 for color gradients with the ...
Wolpertinger's user avatar
-3 votes
1 answer
70 views

How to set a colour gradient for all chapter headings?

How can I set the text colour of all chapters to the following gradient? linear-gradient(90deg, rgba(254,122,58,1) 0%, rgba(218,60,152,1) 100%) At first glance, the obvious choice would be the ...
Pixelcode's user avatar
1 vote
0 answers
48 views

How to rotate a gradient along with the rectangle

When I rotate a rectangle with a gradient fill, the gradient stays relative to the document or canvass or whatever. I want the gradient to rotate with the rectangle so that it changes along its width ...
LostInHilbertSpace's user avatar
2 votes
1 answer
77 views

gradient in shadow box using tcolorbox

My codes are follows: \documentclass{book} \usepackage[skins]{tcolorbox}% \tcbuselibrary{breakable}% \tcbuselibrary{hooks}%% \begin{document} \begin{tcolorbox}[shadow={4mm}{-3mm}{0mm}{black!23!white}...
MadyYuvi's user avatar
  • 13.9k
2 votes
1 answer
175 views

Fill a 3d surface with a gradient rather than solid colour

I wish to plot a 3d surface based on its outline coordinates provided in a file data.txt. The following code works as expected. \usepackage{pgfplots} \pgfplotsset{compat = newest} \begin{document} ...
Seraf Fej's user avatar
  • 143
2 votes
0 answers
179 views

Batch vs mini batch vs stochastic gradient descent

I would like to compare in a figure the steps of a running execution of gradient descent algorithm but taking three possible approaches: batch, mini-batch, and stochastic. I have found an example of ...
pablo's user avatar
  • 515
2 votes
1 answer
167 views

Is there a way to make a gradient in a tikz plot that is y dependent?

I am using pgfplots and tikz (with \begin(axis) ... \end(axis) ) to make a plot from somo data and I was wondering if it is possible to make a gradient in the plot that is dependent with the y axis, ...
Tiago Prazeres's user avatar
1 vote
0 answers
71 views

Gradient in arrow and text (node) in tikz [duplicate]

Is there a way to make the down pointed arrow a gradient between two colors and have the text have that gradient too? (BrickRed and NavyBlue) \documentclass[a4paper, 11pt]{article} \usepackage[utf8]{...
Tiago Prazeres's user avatar
0 votes
1 answer
848 views

tcolorbox set background color (colback) to color gradient / gradient to transparent

I wish to create a tcolorbox with a background that fades from a solid color to white, or even transparent, to be able to use it everywhere. I have tried using [enhanced jigsaw, frame style={left ...
A Potato's user avatar
3 votes
1 answer
267 views

How can I get a color gradient of the rectangle on my chapter style in fncychap? (\usepackage[Bjornstrup]{fncychap})?

I followed this link to change the color of the background on the chapter style in fncychap : How do I change the color of the background on my chapter style in fncychap? (\usepackage[Bjornstrup]{...
Norman's user avatar
  • 133
2 votes
0 answers
157 views

How to fill a pgfgantt bar with a color gradient which fades from the center of the bar?

I'm trying to figure out how to fill a pgfgantt bar with a horizontal color gradient which fades from the center outwards. Unfortunately i'm having no luck! I was wondering whether anyone knew how to ...
ZekeMarshall's user avatar
-1 votes
2 answers
193 views

Make a color gradient with tikz

Where I can find the section about color gradient in the tikz documentation? Specifically, I would like to make the gradient you see in the outermost ring of this image. Forget the rest, I can easily ...
user3713179's user avatar
0 votes
1 answer
353 views

Blend tikz gradient right color with background [duplicate]

I am trying to make a gradient box with text with the right color completely blend with the background. Here is my document. \documentclass{article} \usepackage{tikz} \begin{document} \begin{...
Raja Ayaz's user avatar
  • 133
1 vote
2 answers
1k views

Tikz gradient with 3 or more colors using pgfdeclarehorizontalshading

I am trying to get a gradient to work with 3 distinct positions by using \pgfdeclarehorizontalshading. I have read the docs here and it seems rather straightforward that the different colors should be ...
tyogi's user avatar
  • 189
0 votes
0 answers
225 views

LaTeX table cell coloring based on values in the cell (3 color scale formatting)

I wanted to imitate the functionality in excel of 3-Scale grading formatting, which changes the background of a table cell based on its value. I wanted each cell to have a percentage value, and each ...
Roger's user avatar
  • 1
5 votes
2 answers
1k views

Multi-color circular gradient in Tikz

I'm using the following code \documentclass{article} \usepackage{tikz} \usetikzlibrary{calc} \begin{document} \begin{tikzpicture} \coordinate (y) at (0,10); \coordinate (x) at (10,...
Filippo Bistaffa's user avatar
2 votes
2 answers
212 views

Filling part of a circle with a gradient following the circle-curve

I want to fill the lower part of the circle (225° - 315°) with a gradient that is oriented to the curve of the circle. The whole sides at 225° and 315° should be the beginning of the colors. Now it's ...
choXer's user avatar
  • 125
0 votes
1 answer
300 views

How to fill a cell in a table with two colors like a heatmap?

I'm new to LaTeX. This is a similar question to How to interpolate two colors in a cell? The relative codes from the answer is helpful @user30471: The H column type uses the collcell package to apply ...
user254588's user avatar
6 votes
1 answer
225 views

Apply a color gradient to lines of a tabularx

I am trying to apply a color gradient to the horizontal lines of a tabularx environment. I have a two-column tabularx in which I want the second column to be lined with left-to-right color gradient ...
Alex St's user avatar
  • 109
9 votes
1 answer
312 views

Why do true grayscale gradients get converted to cmyk/rgb resulting in a possible color tint when printing?

While printing my thesis in a professional printing shop I encountered various issues. First, pages with grayscale graphics have not been recognized as such (requires manual fixing by the shop) and ...
Robert Seifert's user avatar
2 votes
1 answer
297 views

pgfplots fill polygon with gradient

I have the following three-dimensional surface plot and I would like to add a gradient to the red semitransparent area starting with black at x=0 and ending with white at x=1. Is it possible to add a ...
brnk's user avatar
  • 309
1 vote
0 answers
70 views

Set Color Gradient as "Font Color" [duplicate]

Hello Ladies and Gentlemen, I want to have the "font color" of a (short) text set to a color gradient. I already found a solution here and here and that solution also at the tikz manual on ...
Hans Dampf's user avatar
2 votes
1 answer
432 views

Replicate Gradient Descent Graph with pgfplots and tikzpicture

I am trying to replicate the graph from the picture below. I tried looking at some old questions here and use them for the code, but I didn't get as much information as I hoped. \documentclass{article}...
johnny_1010's user avatar
2 votes
2 answers
502 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 ...
Sim Son's user avatar
  • 264
6 votes
1 answer
701 views

How do make gradient colored Qr Code in LaTex?

I am using the qrcode package and I know how to make plain colored qr codes: \usepackage{qrcode}[] \color{blue}{\qrcode[height=7cm]{site qr code}} but I want to make with gradient colors, How to do ...
Sara Rodriguez's user avatar
0 votes
0 answers
435 views

LaTeX Error: Option clash for package xcolor. Package xcolor Error: Undefined color `Lavender'. Why it is happening

I want to add a colour gradiant inner to outer from Lavender to white \usepackage{amsmath} \usepackage{times} \usepackage{anyfontsize} \usepackage{amsfonts} \usepackage[paperheight=11in,paperwidth=...
Soham Chatterjee's user avatar
1 vote
1 answer
411 views

Text along path and gradient on each character

I am trying to draw a large colored text along a path, where the color follows a gradient. I found posts describing how to draw text along a path and posts showing how to draw colored text with ...
Maiaux's user avatar
  • 227
1 vote
2 answers
237 views

Is it possible to let text continue over an image? [duplicate]

I would like to achieve a result such as the one in the link: https://drive.google.com/file/d/1kI7bX69BMKjOMyaFnwjoqBgdWJ9M-AK4/view I thought of doing some kind of gradient to the image, but the ...
Arturiki's user avatar
4 votes
1 answer
300 views

Crown with color gradient

How can I paint a crown (similar to the following) with color gradient? I tried two different starting points: First gradient rectangle with cuttings and second draw lines similar to the above ...
Thomas's user avatar
  • 65
0 votes
2 answers
1k views

How to add color gradient in background

I want to add color gradient in whole page as from top to bottom red color slowly becomes blue in a article in xelatex. class I tried thus \documentclass{article} \usepackage[dvipsnames]{xcolor} \...
Soham Chatterjee's user avatar
3 votes
0 answers
206 views

pgfplost: Accuracy of the color gradient in matrix plot

I want to plot a matrix with pgfplots to match the style of the rest of my LaTeX document. The desired output is something like this plot from Mathematica: But when I try to plot this data with ...
enco909's user avatar
  • 56
0 votes
1 answer
2k views

Gradient symbol in LaTeX [duplicate]

This maybe a silly question, but how do I type this first symbol? I can't seem to find it in any lists. Is it a small delta?
dorien's user avatar
  • 1,615
2 votes
2 answers
930 views

How to make a horizontal line with varying opacity or gradient?

Can you please let me know how to draw a horizontal line with variable transparency similar to the figure attached below. Thank you! There is a similar question answered by @Emma and @Sigur, which ...
Awais Rana's user avatar
1 vote
1 answer
138 views

How to get the gradient for margins alone when using tcolorbox environment

I am creating one new environment with tcolorbox.sty, those environment style would be gradient only on the left side margin How to get this style in tcolorbox MY MWE \documentclass{book} \...
ramani sadheesh's user avatar
3 votes
1 answer
330 views

Resolution in tikz gradient

The issue: making a background gradient with tikz I had the following problem. The resolution of gradient is very low and hatched lines appear. (see an MWE + picture below) The question: Is it ...
Grigorios Kostakos's user avatar
2 votes
2 answers
2k views

Vertical gradient color for background of one page

I want to type some text with XeLaTeX like this picture on one page. Sorry I don't have any good minimal code. \documentclass{report} \usepackage{xepersian} \settextfont{Yas} \begin{document} تقدیم ...
Bahman Mirzakhani's user avatar
4 votes
2 answers
793 views

Color gradient TikZ environment

I like to create a color change in vertical direction of the "pump Symbol" in the following example from black to blue to black again. The symbol itself should NOT be filled with color. ONLY the ...
Klartex's user avatar
  • 41
3 votes
2 answers
865 views

Color gradient in circle from center and keep transparency

So I am trying something: I want to have a loop reading out the position of circles from a dat file. The plotting already works very well. However now I want to implement a gradual shading from semi ...
ole's user avatar
  • 33
5 votes
2 answers
2k views

tikz: draw multicolor curve with smooth gradient

Yes, I know there are several topics about, but no one referred to my case. While colormap seems works only with plots, how can I draw a multicolor curve with smooth gradient? This is my attempt: \...
user3204810's user avatar
  • 1,509
4 votes
2 answers
673 views

Hatch with Shading

I would like to have a rectangle that has some hatch. Furthermore, the hatch should have some shading. But, I am only able to get a transition of the colors in the background. Does anyone know how to ...
Sir Sy's user avatar
  • 143
2 votes
0 answers
665 views

Tcolorbox gradient gray color

We used tcolorbox with gradient shade with single color that is gray to white percentages, we checked the output in PDF the color showing CMYK mixed color, is my TeX coding correct? \documentclass{...
Rajesh N's user avatar
  • 829
4 votes
2 answers
5k views

Gradient notation spacing

I'd like to notate 'gradient of L with respect to a_f' which I can do with \nabla_{\mathbf{a}_f} \mathcal{L} and it looks like this: Look at all that space between the nabla and the L! Is there a way ...
nViz's user avatar
  • 43
1 vote
1 answer
2k views

LaTeX Horizontal Bar Chart, Gradient Color for Bars

I want to create a chart for ranking like this: The top row shows the ranking (Poor - Excellent), and the left column shows the parameters. Now I want the bars to look like the figure, coloring with ...
Raja Ayaz's user avatar
  • 133
3 votes
1 answer
887 views

Beamer Block gradient (bmg@transition) and cmyk colors

This question is related to remove Beamer block transition between title and body and How to disable color gradient between block title and block body in Beamer? but is not a duplicate of these ...
Arne's user avatar
  • 1,305