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
5
votes
2 answers

Change outline and fill colors of histogram with qplot

I have two histograms in one window (using facet) and I would like control over the color of the outline and the fill. I've tried looking up color scales, aes(), + color, + fill, including color and fill in qplot, all resulting in expected plots! My…
user2793148
  • 51
  • 1
  • 1
  • 2
5
votes
2 answers

Fill form using facebook data

I would like to allow users to press a button on my page that will autofill a form with their first name, last name, and e-mail address, provided that they are logged into Facebook. If they are not, then the Facebook login form should popup,…
nelle-f
  • 53
  • 1
  • 1
  • 3
5
votes
2 answers

Matlab fill shapes by white

As you see, I have shapes and their white boundaries. I want to fill the shapes in white color. The input is: I would like to get this output: Can anybody help me please with this code? it doesn't change the black ellipses to white. Thanks alot…
Alon Shmiel
  • 6,753
  • 23
  • 90
  • 138
4
votes
3 answers

jquery how to fill up an array

i am in mobile app and i want to fill up an array with values from checkboxes. my code is if (row.flatdescription == flatdescription) { if (row.receiptno == 0){ items.push('
kosbou
  • 3,919
  • 8
  • 31
  • 36
4
votes
1 answer

Filling not closed PathGeometry to the bottom

Suppose I have PathGeometry, consisting of lines, like this (the rectangle == panel, for example Grid): I want to fill them to the bottom of the panel, like this: The quick and not very good solution I see is to create additional curve with 2…
Werolik
  • 923
  • 1
  • 9
  • 23
4
votes
4 answers

How many moves to reach a destination? Efficient flood filling

I want to compute the distance of cells from a destination cell, using number of four-way movements to reach something. So the the four cells immediately adjacent to the destination have a distance of 1, and those on the four cardinal directions of…
Will
  • 73,905
  • 40
  • 169
  • 246
4
votes
3 answers

Filling the missing values within each id in r

I have a dataframe having some rows missing value. Here is a sample dataframe: df <- data.frame(id = c(1,1,1, 2,2,2, 3,3,3), item = c(11,12,13, 24,25,26, 56,45,56), score = c(5,5, NA, 6,6,6, 7,NA, 7)) > df id…
amisos55
  • 1,913
  • 1
  • 10
  • 21
4
votes
1 answer

Resize image to fit perfectly a determined box

I want to do the following : I need to resize images to fit and fill enterly 100x100 pixel box not all image are perfect squares, and thats my problem for this task I want to determine wich side (width or height) is the smallest. Bring that Side…
james
  • 41
  • 1
  • 3
4
votes
2 answers

How do I fill a new array with n distinct empty arrays, in a concise one-line initialization statement?

Here is where I am stuck. I want to take this statement and revise it in a manner that the empty array I fill (which I surmise might not work with dynamic values), will initialize bucket to the n distinct empty arrays. How do I do this? Is there…
Vahe
  • 1,699
  • 3
  • 25
  • 76
4
votes
3 answers

How to use C++0x lambdas local variables for std::fill()?

So I was trying to test a lambda accessing local variables in the scope in which it is used, based roughly on a simple example by Bjarne on the C++0x FAQS page at: http://www2.research.att.com/~bs/C++0xFAQ.html#lambda When I try this simple test…
4
votes
0 answers

Fill missing values in a column with the trend of previous values

I am looking for a function that fills my NA values in a data.table column with a "trend" of the previous values. I know that there is the function: na.locf() But this function only uses the last available value and forwards it into the future. What…
4
votes
3 answers

The sidebar does not expand to the bottom

Where is problem and how can resolve it? I dont want to delete or change any css codes like float and display. inliner_content used for set side bar to be in line of content. I use wrap class to have a sticky footer. I use some customed class and…
sidoco
  • 99
  • 10
4
votes
2 answers

Python/Pandas: if value is NaN or 0 then fill with the value from the next column within the same row

I have gone through several posts and they either only apply to examples with one column, or with only NaN or 0 values - but not both. My df looks like this. I would like to fill-in column 'Main' with the non-missing or non-zero string found in the…
StatsScared
  • 517
  • 6
  • 20
4
votes
3 answers

Perform Resize and Fill canvas using Mogrify

The imagemagick site has a demo on this page: http://www.imagemagick.org/Usage/resize/#resize I want to perform the action in this example: convert logo: -resize 80x80\> \ -size 80x80 xc:blue +swap -gravity center -composite \ …
akoumjian
  • 1,594
  • 1
  • 15
  • 20
4
votes
1 answer

How do I color a cell with openpyxl while retaining the grid lines?

Right now I am coloring a cell in openpyxl in Python by importing this: from openpyxl.styles import Color, PatternFill, Font, Border and then doing this: myFill = PatternFill(start_color='FF0000', end_color='FF0000', …
secretagentmango
  • 619
  • 2
  • 10
  • 17