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
4
votes
1 answer

ggplot: Fill small area under normal curve: remove "joining" area

I would like to fille a small area under a curve. However, the ribbon geoms join the two "parts" of the distribution. library(tidyverse) density(rnorm(1000, 0, 1)) %$% data.frame(x=x, y=y) %>% mutate(area = dplyr::between(x, 1.5, 2.6)) %>% …
Dominique Makowski
  • 1,511
  • 1
  • 13
  • 30
4
votes
1 answer

How to fill a tuple in Julia?

Question as in title: I would like to create a long tuple filled with 1. mytuple = fill(1, (2018,)) but Julia returns an array of 1. 2018-element Array{Int64,1}: 1 1 ... 1 Sorry in advance if it turns out to be a duplicate.
4
votes
2 answers

Emacs fill-paragraph not breaking lines where expected

I have the following HTML code (a list item). The content isn't important--the problem is the end of line 2.
  • Yes, you can learn how to play piano without becoming a great notation reader, however, you
    Bill
    • 561
    • 6
    • 15
  • 4
    votes
    2 answers

    Changing css fill for svg with JS

    I'm trying to change svg fill color, which is defined with css, using JS. For some reason it doesn't work. Here is my code: SVG itself (in short): And JS to target and change…
    Nebular Dust
    • 403
    • 1
    • 6
    • 17
    4
    votes
    2 answers

    Replace pandas zero value with ffill non-zero, if the subsequent value is non-zero

    I need to replace "0" row data in pandas with the previous rows non-zero value IF and ONLY IF, the value in the row following the "0" is non zero. I.e. 101 92 78 0 107 0 0 would become: 101 92 78 78 107 0 0 Any ideas how to do this would be much…
    cwse
    • 584
    • 2
    • 10
    • 20
    4
    votes
    2 answers

    svg fill animation does not work in firefox

    Does anybody know why this code doesnt work in FF ? In chrome everything is ok but not in FF. The dots dont fill with the white color, just stay unfilled.
    Marcin Mroczko
    • 143
    • 1
    • 12
    4
    votes
    1 answer

    Shade area between two lines defined with function in ggplot

    I tried to find the possibilities how to shade the area between two lines in ggplot that are defined by function. I found some solutions using geom_area or geom_ribbon but in both cases you need a database in which you define ymin and ymax. Is there…
    Eco06
    • 531
    • 2
    • 8
    • 17
    4
    votes
    2 answers

    Force image inside flexbox container to fill/cover 100%

    I'm relatively new to coding and need your help. Here's the codepen: http://codepen.io/anon/pen/NdMjZy
    franz
    • 41
    • 1
    • 1
    • 4
    4
    votes
    1 answer

    CUDA efficient polygons fill algorithm

    I need efficient fill algorithm to fill closed polygons (like ex. Scanline fill), which I can run on CUDA. Have you got any suggestions? Thanks in advance for any replays!
    MattheW
    • 808
    • 11
    • 25
    4
    votes
    2 answers

    Mix color and fill aesthetics in ggplot

    I wonder if there is the possibility to change the fill main colour according to a categorical variable Here is a reproducible example df = data.frame(x = c(rnorm(10, mean = 0), rnorm(10, mean = 3)), y = c(rnorm(10,…
    Emiliano
    • 149
    • 1
    • 9
    4
    votes
    1 answer

    Change SVG polygon and text fill colours when hovering over parent

    I've a little puzzle that I'm struggling to solve.. trying to get both a polygon fill colour and text fill colour to change when you hover over the parent div. Is this possible via CSS? Would like to avoid javascript and keep it cross browser…
    okass
    • 81
    • 3
    • 8
    4
    votes
    2 answers

    is there a z.fill function in R

    I have a data frame df=data.frame(f=c('a','ab','abc'),v=1:3) and make a new column with: df$c=paste(df$v,df$f,sep='') the result is > df f v c 1 a 1 1a 2 ab 2 2ab 3 abc 3 3abc I would like column c to be in this format: > df f v …
    frank
    • 3,036
    • 7
    • 33
    • 65
    4
    votes
    1 answer

    Fill polygon with smaller shapes (circles)

    I'm just going to try and explain my problem with images: The program receives an input (image): There is a base polygon, but can be simplified into a circle in all situations: Output should be something like: There is no correct result, just…
    Jaka Konda
    • 1,385
    • 3
    • 13
    • 35
    4
    votes
    3 answers

    Python pandas fillna only one row with specific value

    EDITED: I have (not a very simple) a dataframe: df = pd.DataFrame([1, 2, np.nan, np.nan, np.nan, np.nan, 3, 4 , np.nan, np.nan, np.nan, 5], columns=['att1']) att1 0 1.0000 1 2.0000 2 nan 3 nan 4 nan 5 nan 6 3.0000 7 …
    ragesz
    • 9,009
    • 20
    • 71
    • 88
    4
    votes
    3 answers

    How to draw a fill svg?

    I want to animate my logo like drawing it for reveal it, it is looking like that: is it possible to draw only with a fill? every tutorials i looked showed only the possibility to draw with strokes. but i actually want the same drawing effect with…
    Thibaud
    • 396
    • 5
    • 23