Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
97 views

So I worked with ChatGPT to create a 3D bar chart with a gradient effect in Python. I met a problem that I cannot add outlines to bars. If I do so, it will make the bar transparent. GPT says it is a ...
Kevin's user avatar
  • 607
1 vote
1 answer
98 views

Edit: This is potentially a bug with pyqtgraph. See issue created here: https://github.com/pyqtgraph/pyqtgraph/issues/3459 I am using PySide6 with pyqtgraph to display a graph of data where the X-axis ...
Brock Larson's user avatar
3 votes
1 answer
106 views

I created this simple ggplot2 plot and would like to generate a vertical color gradient for the area between y = 0 and the respective values, possibly using geom_ribbon (?). However, I haven’t found ...
Felix's user avatar
  • 81
0 votes
1 answer
150 views

I am using this approach <Box bgImage="gradients.gradientBluePurple_toR_600" w="64" h="64" /> Here’s my current theme setup: // src/theme/foundations/theme.ts ...
Melikaly's user avatar
0 votes
1 answer
91 views

I need to conditionally format all values between 2 numbers in a pivot table using a color gradient to accentuate the scale of values between that range. I'd like to not have any color for the rest of ...
kxmoosekx's user avatar
3 votes
2 answers
66 views

import torch def analyze_your_actual_code(): """分析你的实际代码""" a = torch.randn(4, requires_grad=True) print(f"a: {a}") print(f"a.grad: {a....
chushu zhou's user avatar
0 votes
1 answer
86 views

At first I thought it was some line-height problem (:root is set to 1.25 which is still divisible by the underlying 4px grid) but it's not ... Removing the <img> from example or setting it's ...
Rob's user avatar
  • 175
-2 votes
1 answer
260 views

how to do gradient borders in tailwind CSS? i searched on google but found only custom CSS solutions. We can do the background as gradient with Tailwind. is there any way to apply gradient on border ...
Ayaz Irshad's user avatar
1 vote
0 answers
46 views

I'm using this data to try to plot multiple histograms showing political polarization in Congress over the years (dwnom1). I can get the multiple histogram with ggridges, but everytime I try to apply ...
TCD's user avatar
  • 11
0 votes
1 answer
306 views

I’m trying to replicate the gradient + noise in the image below. Gradient + Noise: So far I think I roughly got the 2 gradients covered but really struggle with the noise here. I tried loads of ...
MB3's user avatar
  • 1
2 votes
2 answers
105 views

I'm trying to apply a single background gradient to a grid of cards (statistic blocks) in React using Tailwind CSS. The goal is to have the gradient visible only on the cards, while the gaps between ...
Vitalii Parkhomchuk's user avatar
-3 votes
1 answer
60 views

I have some headers on my website and I was wondering if I can make this curve from a rectangle image with CSS. This is how it looks like: Is this possible with CSS? And I also would like to get a ...
Arie's user avatar
  • 375
0 votes
2 answers
113 views

I made a fancy custom checkbox that animates a gradient in/out when (un)checked. How can I make the checkbox border a gradient, as well? The border gradient should match the fill gradient just like ...
Leftium's user avatar
  • 18k
0 votes
0 answers
71 views

I'm trying to design the background for the hero section of a project. I've been having trouble getting the gradients and background color to work together as intended. I've tried adjusting the layer ...
Dapo Adedire's user avatar
0 votes
1 answer
95 views

Dear stackoverflow users, I am having some troubles with linear assignment problems using the functions linear_sum_assignment and minimize, both from the scipy library. In order to compare more ...
uselinuxlovepython's user avatar
2 votes
1 answer
105 views

I’m currently using PyTorch’s torch.autograd.functional.jacobian to compute per-sample, elementwise gradients of a scalar-valued model output w.r.t. its inputs. I need to keep create_graph=True ...
hans's user avatar
  • 1,181
0 votes
2 answers
113 views

I want to use a linear-gradient background where I eventually want to control when the gradient should start. Right now I have it set to start at 50%. I do that like this: .block{ font-family: '...
Fluxian's user avatar
  • 1,014
0 votes
0 answers
64 views

On this page https://t-a-a-a.net/project-5/ in the desktop view, a gradient runs through the entire text as intended. However, in the mobile view (iPhone), the gradient unintentionally repeats for ...
Niri's user avatar
  • 1
0 votes
1 answer
81 views

I have tried two different ways of calculating a vector's divergence using Fipy: one using the gradient of its components and the other using face divergence. For simplicity, I have used a vector such ...
Kritika Khanal's user avatar
0 votes
1 answer
26 views

my mu cannot have any valid gradient somehow, here is the code: import torch torch.manual_seed(0) mu = torch.zeros(1, requires_grad=True) sigma = 1.0 eps = torch.randn(1) sampled = mu + sigma * eps ...
Oscar's user avatar
  • 1
0 votes
2 answers
340 views

I have some tiles that have an ordinary background-color and show a CSS gradient on hover, and I want to add a transition between these. I've seen this solution, but as far as I can tell the only way ...
Hashim Aziz's user avatar
  • 6,670
0 votes
0 answers
105 views

I am adding a border and blur effect on a shape during an animation (root view appearing on page) and seeing FPS drops when using an AngularGradient as the color of the border. I dont see the drops ...
AntcDev's user avatar
  • 89
1 vote
0 answers
122 views

Objective I want to get the visual color at an arbitrary position within the 0.0-1.0 range of any given QGradient. This may be necessary to properly compute new intermediate stops between existing ...
musicamante's user avatar
  • 50.1k
0 votes
0 answers
49 views

I am trying to run the following code: for ie in range(100): energy = torch.tensor([.1 + .1 * ie], dtype = torch.float32, requires_grad = True) xe = .5 + 20 * (torch.log(energy) - log_01) / (...
Noyanini's user avatar
1 vote
1 answer
717 views

The image below is a snippet of my visual concept in Figma. I used a free plugin to generate this kind of background, known as a noisy or grainy gradient. In my opinion, it looks unique and visually ...
Berk's user avatar
  • 95
1 vote
1 answer
118 views

I need to make an endless running line with gradient text that changes as it moves, as in the example, it works, but there are problems in Safari, everything twitches there and the letters seem to run ...
Clop1986's user avatar
2 votes
1 answer
109 views

I am trying to apply a very simple parameter estimation of a SIR model using a gradient descent algorithm. I am using the package autograd since the audience (this is for a sort of workshop for ...
Alonso Ogueda Oliva's user avatar
1 vote
1 answer
58 views

I am currently working on Adversarial Attacks on Image dataset. The most important libraries in my project are : Tensorflow 2.10.1 (with CUDA) (the error is with tensorflow) Pytorch 1.13.1+cu116 art (...
Roku's user avatar
  • 11
0 votes
1 answer
116 views

I am new to Python, so please be patient with me. I am working on a small project to create QR Codes using MS Excel's built-in Python mode, and apply customisations to them. For this question, I am ...
Rory Gross Razor-G's user avatar
3 votes
3 answers
181 views

I feel like there must be some function in some package that does this, but for the life of me I cannot find one that calculates the gradient of an array of data points (not a function) by simply ...
mikeblazanin's user avatar
0 votes
1 answer
73 views

I'm working on a responsive webpage and trying to add a smooth gradient animation to the background. On larger screens, the gradient animation works as expected, but when the screen width is below ...
Nevin Arushan's user avatar
-1 votes
1 answer
119 views

I'm wondering if the background-image property can be edited in real time via JavaScript, what I'm trying to do has a similar concept to the following question: How to change the color of the ...
user29149962's user avatar
0 votes
1 answer
115 views

Im trying to make a button with white background and the text with a gradient. &.bricks-background-light { position: relative; display: inline-block; padding: 16px 24px; border-...
JiaCheng Zhang's user avatar
2 votes
1 answer
139 views

This question stems from this minutephysics video I watched a while back: Computer Color is Broken It describes how the correct way to blend colors is to use the square root of the average of the ...
Pritt Balagopal's user avatar
0 votes
3 answers
216 views

I take a photo of sunset and I like such gredient effects from sky to highlight sunset, is there any way to simulate such effect using css? I want to erase those buildings then use it as my webpage ...
tiplip's user avatar
  • 331
0 votes
2 answers
198 views

My goal is to draw a Delphi TDBgrid cell to have a gradient color from right to left, like the image below: I used the GradientFillCanvas procedure from the Vcl.GraphUtil unit. Here is my custom ...
bedia's user avatar
  • 1
1 vote
2 answers
80 views

I'm building a plot with a discrete Y-axis with multiple pairwise comparisons. However, instead of using text for the labels, I created a secondary plot with color points indicating the 2 groups ...
dkysh's user avatar
  • 91
-2 votes
1 answer
55 views

How can we apply css gradient at one side of the background using pseudo css selectors as per the below screenshot.. enter image description here I tried with using linear gradient css but its not the ...
Vara bl's user avatar
0 votes
1 answer
131 views

I'm trying to add a bottom-to-top color gradient to my markers, but it's not working as I expected. I also don't quite agree with the radius * 3 but I didn't find another solution to let the circle ...
FryingPan's user avatar
  • 123
1 vote
0 answers
57 views

See my problem with this screenshot Hello. I have a problem with a title with negative letter-sacing. I solde the problem when text in on one line, but when the text return to line, the last character ...
Antoine HUGS's user avatar
0 votes
0 answers
260 views

I have a view with a blur effect, and as a subview, I have a scrollview. I would like to add a fading effect at the top and bottom. The fading effect should go from blur to transparent and should be a ...
Mickael Belhassen's user avatar
1 vote
1 answer
116 views

I have been trying to create a background effect for a certificate design using repeating conic gradient to create blue and transparent rays, using this background value: repeating-conic-gradient(from ...
reverse learning's user avatar
0 votes
0 answers
135 views

I'm trying to implement a custom loss function, the haversine loss that computes the distance between two points on a sphere. The coordinates of the classes are saved in a csv, hence I have to convert ...
d3vilstrap's user avatar
1 vote
1 answer
857 views

This time I wish to have a gradient blur effect over the limits of my ScrollingView. So, I have the blur effect at the right position, but I wish the effect grows slowly until the max blur. I don't ...
Geremia Moretti's user avatar
0 votes
0 answers
38 views

background: radial-gradient(5% 10% at 40% 80%, rgb(255, 98, 0) 100%, #FFB81A00 100%), radial-gradient(30% 40% at 60% 40%, rgb(255,61,0) 74%, #FF3D0000 100%), radial-gradient(30% 70% at 40%...
Developer's user avatar
-1 votes
2 answers
352 views

I have this as a gradient currently: background: linear-gradient( to right, rgba(var(--white-rgb), 1) 0%, rgba(var(--white-rgb), 0) 100% ); With this, on the left side it fades to pure white, ...
Alien's user avatar
  • 85
2 votes
2 answers
61 views

I can give a div this gradient and make it absolute and place it at the right position, but how do I make it semi-circle? <div className="absolute top-[50%] right-[-600px] w-[50%] h-[...
Noor Fatima's user avatar
0 votes
2 answers
1k views

I'm trying to recreate a circular gradient in CSS that matches the one I designed in Figma. Here's the image for reference: Circle Gradient The gradient I have in Figma is defined as: background: ...
shaqiya laura's user avatar
2 votes
2 answers
409 views

I was designing a music app, and for the bottom navigation bar, I wanted it to look like in the image. It is a linear gradient blur, but I don't know how to achieve this. Is this possible using ...
Emilio Yael Ruiz Sánchez's user avatar
0 votes
1 answer
38 views

When I implement the following code, gradient of x becomes none after apply mask on trainable variable. After removed the mask the gradient is able to be calculated. I am wondering what the reason of ...
Tian Lan's user avatar

1
2 3 4 5
88