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

How to get list of points inside a polygon in python?

I searched a lot and cant find any practical answer to my question. I have a polygon. For example: [(86, 52), (85, 52), (81, 53), (80, 52), (79, 48), (81, 49), (86, 53), (85, 51), (82, 54), (84, 54), (83, 49), (81, 52), (80, 50), (81, 48), …
Farshid Ashouri
  • 16,143
  • 7
  • 52
  • 66
23
votes
9 answers

Fill in a form with jQuery

I am trying to use jQuery to fill in a form with some default values. The form is contained in a div which has an id. In fact every element has an id, I did so just to be able to quickly select every piece of the form using $("#id") syntax. Here is…
nick2k3
  • 1,399
  • 8
  • 18
  • 25
23
votes
2 answers

Shade region between two lines with ggplot

I produce the folowing two lines with ggplot and would like to shade a specific region between the two lines i.e. where y=x² is greater than y=2x, where 2 <= x <= 3. # create data…
user2568648
  • 3,001
  • 8
  • 35
  • 52
23
votes
3 answers

SVG "fill: url(#....)" behaving strangely in Firefox

I have the following SVG graphic:
Nathan Friend
  • 12,155
  • 10
  • 75
  • 125
22
votes
2 answers

Fill region between two loess-smoothed lines in R with ggplot

I'd like to know how to fill the area between to loess-smoothed lines in ggplot. The following data frame is used for the pictures: x y ymin ymax grp ydiff 1 1 3.285614 3.285614 10.14177 min 6.8561586 2 1 10.141773 …
Daniel
  • 7,252
  • 6
  • 26
  • 38
20
votes
2 answers

How to populate a ViewModel in ASP.NET MVC3

In my Controller I have a ProductInfo class from my Domain Model and I need some of its information to populate my View Model ProductStatsVM. How do you populate the View Model? I heard three possible ways: Populate the View Model directly from the…
CiccioMiami
  • 8,028
  • 32
  • 90
  • 151
20
votes
5 answers

Java Arrays.fill()

How to fill a multidimensional array? int[][] array = new int[4][6]; Arrays.fill(array, 0); I tried it, but it doesn't work.
alphachap
  • 201
  • 1
  • 2
  • 3
20
votes
1 answer

Filling the missing index and filling its value with 0

I have a pandas dataframe with a column value as index number Sales 140 100 142 200 145 300 I want to fill the missing index and also want to fill the value of missing index with 0 Sales 140 100 141 0 142 200 143 0 144 …
Ahamed Moosa
  • 1,395
  • 7
  • 16
  • 30
20
votes
2 answers

How to fill transparent area left by resize in Gimp 2.8

when I do a canvas resize of an image, it leaves a new transparent area. I would like to fill that area with a color but Gimp 2.8 won't allow me to select it to fill it. I must be missing a step. Please help.
shirha
  • 453
  • 3
  • 11
18
votes
5 answers

What is the safe way to fill multidimensional array using std::fill?

Here is what I am using: class something { char flags[26][80]; } a; std::fill(&a.flags[0][0], &a.flags[0][0] + 26 * 80, 0); (Update: I should have made it clear earlier that I am using this inside a class.)
Truncheon
  • 916
  • 2
  • 12
  • 25
18
votes
2 answers

R: Filling missing dates in a time series?

I have a zoo time series with missing days. In order to fill it and have a continuous series I do... I generate a chron date-time sequence from start to end. I merge my series with this one. I use na.locf to substitute NAs with las obsservation. I…
skan
  • 7,423
  • 14
  • 59
  • 96
17
votes
5 answers

How to make an SVG "line" with a border around it?

I have a little svg widget whose purpose is to display a list of angles (see image). Right now, the angles are line elements, which only have a stroke and no fill. But now I'd like to have an "inside fill" color and a "stroke/border" around it. I'm…
Tony R
  • 11,224
  • 23
  • 76
  • 101
17
votes
2 answers

How to draw half-filled points in R (preferably using ggplot)

I was wondering if it is possible to fill points with multiple colors. For example, in a scatter plot, I'd like to see for each point the upper half is filled with certain color while the lower half filled with a different one. If possible, I'd also…
17
votes
1 answer

Fill between x and baseline x position in Matplotlib

I'm looking for a way to use fill_between in matplotlib to shade between x1 and x2 as opposed to y1 and y2. I have a series of log plots, with depth on the Y axis, and the measured variable on the x axis and would like to shade to the left or…
user1665220
  • 678
  • 2
  • 7
  • 17
16
votes
4 answers

How to Login by filling the form in CasperJs

Following is the hlml of the login form that I have