Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [gradient]

The tag has no usage guidance.

0
votes
1answer
35 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 ...
2
votes
1answer
60 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 ...
7
votes
1answer
170 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 ...
0
votes
0answers
42 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@...
3
votes
1answer
34 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 ...
5
votes
2answers
257 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 ...
2
votes
1answer
42 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: \...
1
vote
2answers
103 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 ...
2
votes
1answer
252 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} \...
1
vote
1answer
69 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,...
2
votes
0answers
159 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 ...
5
votes
2answers
860 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=...
2
votes
1answer
477 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'...
3
votes
1answer
431 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]...
1
vote
1answer
454 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 ...
1
vote
0answers
524 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 ...
1
vote
1answer
517 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....
2
votes
2answers
164 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{...
4
votes
1answer
330 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 (...
0
votes
0answers
45 views

Replicating the shading or color gradient fromWarsaw theme [duplicate]

How can I apply (or copy) the shading (or color gradient) used for the background of section headings of the Warsaw beamer theme to have similar section headings in other themes? For example, I ...
0
votes
2answers
171 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 (...
1
vote
1answer
386 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 %\...
4
votes
2answers
982 views

How to draw a horizontal rule with a colour gradient?

Look at the two blue coloured rules with a colour gradient. This is what I'm looking for. Thank You.
1
vote
1answer
121 views

Gradient Fill Theorem headtitle only

I am using XeLateX. How can i add a gradient in every new theorem,lemma etc like the image below? I want the gradient to fill the whole width of the line. How can this be done automatically? My code ...
7
votes
1answer
1k views

Can Tikz implement multi stop gradient fills with adjustable positions?

I have a full page graphic (background) I am trying to duplicate using Tikz. The original was created in MS 2010 power point (all details and parameters are included below as is an initial MWE). I ...
1
vote
1answer
520 views

Transparancy/color gradient not displayed in every PDF viewer [closed]

For my CV I used headlines with color gradients. Now I recently discovered that the headlines are not displayed in some PDF viewers (e.g. the gmail preview of an pdf). On my Mac in the Preview App or ...
4
votes
2answers
880 views

Glowing path in tikz

I want to draw in tikz a line that diffuses and a dashed path that is basically the contour of this diffused area. I think that in photoshop the diffusing effect can be done by a blurred stroke. Is ...
5
votes
1answer
653 views

Fading line with same color at both the ends

I wanted a fading line with the same color at both the ends and a second color in the middle. Here is the crude MWE I came up with: \documentclass{article} \usepackage{tikz} ...
1
vote
1answer
1k views

Gradient to transparent (horizontal) for beamer frametitle

I would like my frametitle bg to fade horizontally to a background image. I have attempted to modify the solution for vertical gradients found here: Beamer theme with fading (=gradient to ...
3
votes
1answer
402 views

How to place a color gradient text node inside a tikzpicture (absolute positioning)

I want to put a color gradient to a "Desired Text Only" but then I want to be able to position it inside a tikzpicure. I already checked this thread describing a way to put gradient color to a section ...
2
votes
1answer
2k views

Color fade a line in tikzpicture

I had already a similar question. I know now how to color fade rectangles. But I was trying now for almost an hour and I couldn't figure out how to do a fading for a line. \documentclass{article} \...
5
votes
1answer
320 views

Problem with defining own sectioning with color gradient

I want to define a special sectioning type for my CV. But I have problem which I can't figure out myself. I got the following code which produces the section heading with a color gradient how I would ...
14
votes
2answers
12k views

Color gradient in tikzpicture from top to bottom corner

Is there the possiblity to make a color gradient in the rectangular box in the following example from the bottom left to the top right corner (both in linear or radial shape)? \documentclass{article} ...
2
votes
1answer
618 views

Section heading in moderncv with color gradient

I'm creating a new CV using moderncv at the moment. But I'm modifying the package to get a (at least in my opinion) better fitting result. I'm looking for a way to make the section heading with a ...
3
votes
1answer
568 views

How to make gradient ellipse title box with border?

I am using the tcolorbox package, and I want to use a gradient ellipse title box with border on the titlepage. It is possible somehow or I have to use another package to manage this?
14
votes
1answer
863 views

Text reflection effect

How could I achieve with LaTeX a trendy text reflection effect as the following one?
19
votes
2answers
989 views

How can I 'fade out' text after a certain length?

I have a piece of text that can be quite long, but I only have room for one line in the report. How can I fade it out once I reach, say, .5\linewidth? I'd like to have a syntax similar to \...
2
votes
2answers
850 views

How to create gradient text boxes as wide as paperwidth

In a beamer presentation I would like to create boxes without frame but filled with gradient from left (light grey) to right (dark grey) and text in the box. I also want the box to touch the edge of ...
7
votes
3answers
680 views

How to make more than two fancy gradient stripes in tcolorbox?

I use the following fancy tcolorbox definition: \newtcolorbox{mybox}{colframe=black!80,colback=black!10,sharpish corners, skin=bicolor,interior style={left color=black!5,right color=black!35},...
2
votes
1answer
521 views

Vertical color background of section title

Good night. It's my problem about gradient colored section title, with vertical length. It's codes are, \documentclass{scrbook} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{...
7
votes
1answer
998 views

How to specify a direct color in a tikz picture

I want to model gradients in TikZ for a paper covering color gradients. These are rather special, so a cannot rely on a TikZ shade alone. Thus, I want to model the gradient using consecutive TikZ ...
5
votes
1answer
2k views

Add gradient to colorbox

Newby here. I found a great template for technical reports here . . http://www.latextemplates.com/template/stylish-article I would like to change the background color of the abstract and section ...
2
votes
1answer
428 views

Radial gradient using pstricks

I created the following image with pstricks: The fading fillings are generated by: \psline[linewidth=10cm,linecolor=Black,linestyle=fade,fadepoints=500,fadeto=transparency](5,6)(5,1) \psline[...
13
votes
2answers
2k views

Color gradient fill between three corners of a triangle

Updates Update1: Tried to implement solution by Harish Kumar (below) Update2: Added a real example of what I would like to get in the end. I have a feeling I tried to leave to many things out. ...
23
votes
2answers
1k views

Gradient fill around section headings

Trying to make a document that has gradient fill around section titles, that are not effected by margins, as such: I managed to get the gradient effect but I can't figure out how to get it to start ...
5
votes
1answer
318 views

How can I get multiple fading directions?

I'm trying to get both a north and south fading direction here: \documentclass{beamer} \usetheme{Warsaw} \usepackage{tikz} \usetikzlibrary{fadings} \setbeamertemplate{background}{% \begin{...
1
vote
1answer
305 views

How to have text overlay top and bottom of image with fade at top and bottom?

How can I make the text in my letter just slightly overlay the top and bottom of a centered, margin-to-margin image within my document. The image is faded at the top and bottom so that the image is ...
4
votes
2answers
978 views

pgfplots: use `colormap` color for `jump mark` line

I have a ybar interval pgfplot with variable width intervals. On top of each interval I am drawing a line with the interval's width (using a second plot with jump mark left). However, I cannot find a ...
14
votes
1answer
1k views

Color gradient filling along a path

I want to make the gradient color to follow the pipe curve below rather than to span from the left to the right. The following MWE shows the default behavior which is not what I'm looking for. \...
1
vote
1answer
507 views

Colour gradient filling in PSTricks figure

Consider the following drawing: \documentclass[ a4paper, 12pt ]{article} \usepackage[utf8]{inputenc} \usepackage[ hmargin=2.4cm, vmargin=3cm ]{geometry} \usepackage{rotating} \usepackage{...