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

Fill missing values in data.frame using dplyr complete within groups

I'm trying to fill missing values in my dataframe, but I do not want all possible combinations of variables - I only want to fill based on a grouping of three variables: coursecode, year, and week. I've looked into complete() in tidyr library but I…
Nova
  • 5,423
  • 2
  • 42
  • 62
8
votes
2 answers

geom_dotplot() loses dodge after applying colour aesthetics

I want to organize my data by one category on the X-axis, but color it by another category as in this example: Graph 1, without coloring: require(ggplot2) nocolor <- ggplot(mtcars, aes(x=as.factor(cyl), y=disp)) + geom_dotplot(binaxis="y",…
naco
  • 373
  • 1
  • 3
  • 14
8
votes
4 answers

Plot a donut with fill or fill_between

I want to plot a donut and my script is import numpy as np import matplotlib.pyplot as plt pi,sin,cos = np.pi,np.sin,np.cos r1 = 1 r2 = 2 theta = np.linspace(0,2*pi,36) x1 = r1*cos(theta) y1 = r1*sin(theta) x2 = r2*cos(theta) y2 =…
zongyuan yang
  • 109
  • 1
  • 2
8
votes
1 answer

Fill out remaining div-height using only CSS

I have two div:s in a container. The first div should have auto height, taking whatever space is required. The second div should have the remaining height of the container. I wish to do this without using Javascript. Isn't there any CSS-only…
ANisus
  • 74,460
  • 29
  • 162
  • 158
8
votes
2 answers

Fill PDF Form with Itextsharp

I am trying to fill up a form with ITextsharp, and trying out the following code to get all the fields in the pdf: string pdfTemplate = @"c:\Temp\questionnaire.pdf"; PdfReader pdfReader = new PdfReader(pdfTemplate); …
Zaki
  • 5,540
  • 7
  • 54
  • 91
8
votes
4 answers

Fill a multidimensional array with same values C#

Is there a faster way of doing this using C#? double[,] myArray = new double[length1, length2]; for(int i=0;i
Sait
  • 19,045
  • 18
  • 72
  • 99
7
votes
2 answers

Fill custom area with color

How can I fill a selected area with color? var Rect: TRect; Color: TColor; begin //fill area with color end;
Little Helper
  • 2,419
  • 9
  • 37
  • 67
7
votes
5 answers

Easy way to populate this matrix?

I would like to populate an n * n (n being odd) matrix in the following way: _ _ _ 23 22 21 20 _ _ 24 10 9 8 37 _ 25 11 3 2 19 36 26 12 4 1 7 18 35 27 13 5 6 17 34 _ 28 14 15 16 33 _ _ 29 30 31 …
Mr.Wizard
  • 24,179
  • 5
  • 44
  • 125
7
votes
9 answers

SqlDataAdapter.Fill() Timeout - Underlying Sproc Returns Quickly

I have a SqlDataAdapter that is being populated with 21 rows of data (4 columns). The sproc that drives it returns in a couple seconds in SQL Mgmt Studio, but the .Fill() takes 5 minutes. ArrayList ret = new ArrayList(); SqlDataAdapter da =…
Chris
7
votes
4 answers

Python : How to fill an array line by line?

I have an issue with numpy that I can't solve. I have 3D arrays (x,y,z) filled with 0 and 1. For instance, one slice in the z axis : array([[1, 0, 1, 0, 1, 1, 0, 0], [0, 0, 1, 1, 0, 1, 1, 0], [1, 0, 1, 1, 0, 0, 0, 1], [0, 0, 0,…
Nico
  • 81
  • 2
  • 4
7
votes
4 answers

Plotly: How to set a fill color between two vertical lines?

Using matplotlib, we can "trivially" fill the area between two vertical lines using fill_between() as in the…
an_drade
  • 664
  • 1
  • 5
  • 15
7
votes
2 answers

How to fill geometric figures created by lines and curves?

I'm trying to fill with different colors the 3 triangles in the following graph. data = data.frame(x=c(125), y=c(220)) #this data is just to be able to use gplot to draw figures ggplot(data, aes(x = x, y = y)) + xlim(0,250) + ylim(-250, 0)…
sb2002
  • 75
  • 5
7
votes
3 answers

order and fill with 2 different variables geom_bar ggplot2 R

I have a question concerning the fill field in geom_bar of the ggplot2 package. I would like to fill my geom_bar with a variable (in the next example the variable is called var_fill) but order the geom_plot with another variable (called clarity in…
antuki
  • 236
  • 2
  • 9
7
votes
1 answer

How can I fill an area below a 3D graph in MATLAB?

I created the following 3d plot in MATLAB using the function plot3: Now, I want to get a hatched area below the "2d sub-graphs" (i.e. below the blue and red curves). Unfortunately, I don't have any idea how to realize that. I would appreciate it…
Peter123
  • 557
  • 1
  • 5
  • 13
7
votes
3 answers

Fill Holes with Majority of Surrounding Values (Python)

I use Python and have an array with values 1.0 , 2.0 , 3.0 , 4.0 , 5.0 , 6.0 and np.nan as NoData. I want to fill all "nan" with a value. This value should be the majority of the surrounding values. For example: 1 1 1 1 1 1 n 1 2 2 1 3 3 2 1 1 3 2 3…