Questions tagged [gradient]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
28 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 ...
user avatar
  • 1
5 votes
2 answers
277 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,...
user avatar
2 votes
2 answers
113 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 ...
user avatar
  • 125
0 votes
1 answer
89 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 ...
user avatar
5 votes
1 answer
128 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 ...
user avatar
  • 89
8 votes
1 answer
231 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 ...
user avatar
0 votes
0 answers
34 views

Rotating a gradient fill or making xslant affect it

I am using this answer to create a floor-like surface, but when I have a rectangle with a gradient fill on this surface the gradient's orientation isn't affected by the transformation. I don't want to ...
user avatar
  • 113
2 votes
1 answer
68 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 ...
user avatar
  • 139
1 vote
0 answers
57 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 ...
user avatar
2 votes
1 answer
169 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}...
user avatar
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
5 votes
1 answer
289 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 ...
user avatar
0 votes
0 answers
258 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=...
user avatar
1 vote
1 answer
130 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 ...
user avatar
  • 205
1 vote
2 answers
138 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 ...
user avatar
4 votes
1 answer
173 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 ...
user avatar
  • 65
0 votes
2 answers
336 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} \...
user avatar
3 votes
0 answers
169 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 ...
user avatar
  • 56
0 votes
1 answer
1k 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?
user avatar
  • 1,457
2 votes
2 answers
565 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 ...
user avatar
1 vote
1 answer
100 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} \...
user avatar
3 votes
1 answer
248 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 ...
user avatar
1 vote
2 answers
939 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} تقدیم ...
user avatar
4 votes
2 answers
606 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 ...
user avatar
  • 41
3 votes
2 answers
542 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 ...
user avatar
  • 33
4 votes
2 answers
1k 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: \...
user avatar
  • 1,281
4 votes
2 answers
364 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 ...
user avatar
  • 143
1 vote
0 answers
475 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{...
user avatar
  • 809
1 vote
2 answers
4k 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 ...
user avatar
  • 13
0 votes
1 answer
1k 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 ...
user avatar
  • 111
3 votes
1 answer
546 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 ...
user avatar
  • 492
7 votes
1 answer
23k views

Gradient symbols and letter f mtpro2

So I notice that the spacing between \nabla and f in math mode when using mtpro2 is really wide (for me, at least). Here is the result of typing \nabla f with mtpro2. I wonder if there is a way we ...
user avatar
  • 269
3 votes
1 answer
261 views

control black color only in gradient by using tikz

My code follows: \documentclass[]{book} \usepackage[]{tikz} \usetikzlibrary{positioning} \input colordvi \input cmyk-hax \makeatletter \definecolor{testcolor}{cmyk}{0,0,0,0.1} \pgfutil@colorlet{tikz@...
user avatar
  • 10.9k
3 votes
1 answer
365 views

Add sidebar to single frame for aesthetic reasons (title frame)

This is my first post so excuse me if I'm not complying to all the rules. I'm trying to make a LaTex presentation template for my company using beamer. I have almost everything I want except for the ...
user avatar
  • 33
6 votes
2 answers
505 views

Color gradient following a function

I need a color gradient to follow a sum function in both the vertical and horizontal direction. In the figure only the horizontal sum function (the bottom line in the figure) is shown. What I need is ...
user avatar
  • 329
5 votes
1 answer
433 views

TikZ: How can I remove the undesired border of a polygon with color gradient?

folks! I want to draw a polygon with TikZ that has a color gradient from white to gray. Unfortunately, the polygon has a small gray border and I don't know why and how to remove it. This is my MWE: \...
user avatar
  • 153
2 votes
2 answers
535 views

Gradient fill a rotated rectangle

I have a figure with various lines which needs to have a gradient on a side as in the image below: The direction of the gradient should be perpendicular to the red thick line starting with dark green ...
user avatar
3 votes
1 answer
1k views

vertical color gradient over text

I try to get a linear gradient from top to bottom (i.e. black to white) which affects all lines across one or more paragraphs. The MWE I composed: \documentclass{article} \usepackage{lipsum} \...
user avatar
  • 2,080
1 vote
1 answer
118 views

Trying to create a picture with PSTtricks

I'm trying to create a picture of a paraboloid, as shown in the figure, with the package pstricks but I'm getting some errors while writing the parameters for the parabola and the ellipse (gradangle,...
user avatar
2 votes
0 answers
353 views

Background Gradients and transparent 3d plot

I'm trying to reproduce this graphic using pgfplots. Before I get too involved though, I wanted to make sure it's actually possible. At this point, I have no idea how to get the background gradient ...
user avatar
  • 3,752
6 votes
2 answers
2k views

Hatched rectangle with color gradient

Is it possible in tikz to draw a hatched rectangle, in which the hatching color(NOT fill color) has a gradient (changes from red(say) from one side to the blue to the other side)? \draw[pattern=...
user avatar
2 votes
1 answer
2k views

Make a rainbow line

I found a template for a title page: https://www.latextemplates.com/template/vertical-line-title-page There's a piece of code that draws a vertical line: \rule{1pt}{\textheight} % Vertical line I'...
user avatar
3 votes
1 answer
1k views

TikZ: shade plane with a colour gradient

I was wondering how I could shade this given plane: \begin{tikzpicture} [plane/.style={trapezium,draw,fill=red!80,trapezium left angle=60,trapezium right angle=120,minimum height=1.5cm},scale=1.0]...
user avatar
3 votes
1 answer
1k views

Colored Confusion Matrix omitting zero values

I am trying to create a colored confusion matrix using macro for color gradients. Like the following one: The final confusion matrix will be bigger, so I want to remove the zero values to improve ...
user avatar
1 vote
0 answers
1k views

Gradient descent - Arrow in plotted function [closed]

Im trying to explain gradient descent in a text I'm writing in LaTeX. I have made a function that I would want an arrow from the top of the figure and downwards following the slope of the figure. I ...
user avatar
1 vote
1 answer
1k views

fading a line in tikz

I'm starting with the following code: \documentclass{article} \usepackage{tikz} \usetikzlibrary{arrows.meta, matrix} \begin{document} \begin{tikzpicture}[description/.style={fill=white,inner sep=1....
user avatar
  • 731
3 votes
2 answers
277 views

TIKZ/PGF: Color an Arbitraty Fraction of a Custom Path (generated with Inkscape export)

I have a tikz path that is generated by an external software (Inkscape, svg2tikz export). \documentclass[ tikz, border = 2mm ] {standalone} \usepackage{tikz} \begin{document} \begin{...
user avatar
5 votes
1 answer
722 views

tikz - gradient along a bendy path

I'm drawing pipes (like the Pipeline game), and I want them to be shaded to give the effect that the pipes are cylindrical. A bit like the pipes below: the outer edges are black, the middle is white (...
user avatar
0 votes
2 answers
403 views

Pgfplots change color based on sample index

I would like to illustrate the stretching that a parametrization induces. I am using pgfplots to plot a parametric curve, and I would like to change the color of the curve based on the sample index (...
user avatar
1 vote
1 answer
939 views

Vertical colour gradient in frametitle (beamer)

I would like to create a vertical colour gradient in the background of the frametitle element in the beamer package. I have succeeded in doing this for the whole background of the frames (using %\...
user avatar
  • 141