Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

Questions tagged [gradient]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
1answer
85 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 ...
1
vote
2answers
64 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} تقدیم ...
3
votes
2answers
107 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 ...
3
votes
2answers
87 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 ...
4
votes
2answers
451 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: \...
4
votes
2answers
105 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 ...
1
vote
0answers
182 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{...
1
vote
2answers
487 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 ...
0
votes
1answer
311 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 ...
3
votes
1answer
210 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
4k 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 ...
3
votes
1answer
119 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
78 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
349 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 ...
4
votes
1answer
88 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
201 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
462 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
91 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
252 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
1k 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
929 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
606 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]...
2
votes
1answer
764 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
773 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
752 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....
3
votes
2answers
213 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
432 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
2answers
229 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
527 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
2k 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
150 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
821 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
1k 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
821 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
486 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 ...
3
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
358 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 ...
17
votes
2answers
16k 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
772 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
650 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
1k views

Text reflection effect

How could I achieve with LaTeX a trendy text reflection effect as the following one?
19
votes
2answers
1k 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
1k 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
897 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
610 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
1k 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
481 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[...