Questions tagged [fill]

fill refers to the process of assigning and rendering a color or pattern to the set of coordinates within the outline of a shape.

References

1838 questions
3
votes
1 answer

Distribute value across following NaNs using ffill in pandas

I have a dataframe of orders received such as: Date Units 01-01-2020 2 02-01-2020 12 03-01-2020 NaN 04-01-2020 NaN 05-01-2020 5 06-01-2020 9 07-01-2020 NaN 08-01-2020 1 Sometimes customers will order higher numbers so they don't…
sebwallat
  • 65
  • 3
3
votes
1 answer

html2canvas in Safari not rendering Javascript style.fill on SVG path

I am trying to fix this issue: in Apple Safari, my
is being rendered correctly as expected using html2canvas except any SVG path e.g. I have modified with Javscript using: document.getElementById('test').style.fill =…
Christoph
  • 31
  • 4
3
votes
3 answers

numpy forward fill with condition

I have a numpy array with zeros like this. a = np.array([3., 0., 2., 3., 0., 3., 3., 3., 0., 3., 3., 0., 3., 0., 0., 0., 0., 3., 3., 0., 3., 3., 0., 3., 0., 3., 0., 0., 0., 3., 0., 3., 3., 0., 3., 3., 0., 0., 3., 0., 0., 0., 3., 0., 3., 3.,…
Rajith Thennakoon
  • 3,975
  • 2
  • 14
  • 24
3
votes
3 answers

How to plot two variables side by side in the same ggplot using geom_col?

I have the following data structure(list(id = 1:7, date = c(2019L, 2019L, 2019L, 2019L, 2019L, 2019L, 2019L), station = structure(1:7, .Label = c("41B004", "41B011", "41MEU1", "41N043", "41R001", "41R012", "41WOL1"), class = "factor"), days =…
Alessandro
  • 129
  • 1
  • 8
3
votes
1 answer

Forward fill certain columns with specified frequency for time series data

I want to forward fill 2 columns: Time and X in df: Time X Y Z 0 2020-01-15 06:12:49.213 0 0 0 1 2020-01-15 08:12:49.213 1 2 2 2 2020-01-15 10:12:49.213 3 6 9 3 2020-01-15 12:12:49.213 12 15 4 4 …
nilsinelabore
  • 4,143
  • 17
  • 65
  • 122
3
votes
0 answers

Safari iOS changing SVG fill gradient url

in the footer of my site I have social icons as SVGs that fill depending on screen size and hover state. One example is for instagram: HTML:
RyanPinPB
  • 73
  • 7
3
votes
2 answers

Filling an std::array using math formula in compile time

I want to fill a constexpr std::array in compile time using a math function. Is it possible in an easy way? I found this solution: C++11: Compile Time Calculation of Array. However, is there any other modern solution using only std? This one seems…
3
votes
2 answers

Fill area under time series based on factor value

I am trying to fill the area under a time series line based on a factor value of 0 and 1. The area should only be filled if the value is equal to 1. I have managed to colour code the time series line based on the factor value with the following…
Ittai Barkai
  • 120
  • 1
  • 9
3
votes
3 answers

Android - Fill different colors between two lines using MPAndroidChart

following this (Android - Fill the color between two lines using MPAndroidChart) answer I was able to fill with color the space between two lines using AndroidMPChart library. But now I want to customize the filling color to have: the areas above…
Manuela
  • 462
  • 6
  • 18
3
votes
1 answer

CSS background url SVG fill color not working (not base64) when compiling from SASS

I'm using SASS to generate my css and i'm trying to create a dotted repeated pattern to simulate a border-bottom on abbr tags using a background image image SVG. I've searched deep but can't find a solution as i'm using sass to modify the fill color…
joshmoto
  • 4,472
  • 1
  • 26
  • 45
3
votes
1 answer

CorelDraw VBA Hatchfill color

Anyone have an idea how to get the background and line color from a custom hatch fill? the following code fills the selected shape using data from textboxes ActiveSelectionRange.ApplyCustomHatchFill ANG.value, LS.value, 0, 0, 0, LT.value,…
user3422687
  • 229
  • 1
  • 8
  • 27
3
votes
4 answers

UIView Fill color

I have added a UIView to the nib file. I want to fill that UIView with a color in drawRect method. How can i do this?
Priya
  • 61
  • 1
  • 6
3
votes
3 answers

ggplot2 - how to fill nested polygons with colour?

I have > 100 nested polygons in a unique SpatialPolygonsDataFrame. I desire to plot them with ggplot2 and all of them need to be visible in the map, i.e. overlaying larger polygons have to be in the background. I found that I can achieve this by…
aaaaa
  • 149
  • 2
  • 18
  • 44
3
votes
1 answer

How to memset on 2d vector

So I have a 2D Vector here that I want to assign a value num, I want to see which performs better fill vs memset() as C++ noob, I am actually having problem setting the proper code syntax as I just always get Segmentation fault when I do…
Zambodia
  • 41
  • 1
  • 2
3
votes
1 answer

Fastest way to fill an array with multiple value in JS. Can I pass a some pattern or function to method fill insted of a single value in JS?

Is it any way to create an array a selected size(for example 10) and immediately on the spot fill in it with some numbers specified pattern (1, 2, 3, OR 2, 4, 6 and so on) in one statement in JS? let arr = new Array(10).fill( (a) => {a = 1;…
Yellowfun
  • 418
  • 1
  • 9
  • 21