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

R scatter plot by shape, colour and fill

I'm very new to R and I'm trying to build a scatter plot that codes my data according to shape, colour and fill.I want 5 different colours, 3 different shapes, and these to be either filled or not filled (in an non filled point, I would still want…
answer42
  • 63
  • 1
  • 7
4
votes
1 answer

Fill Timestamp NaT with a linear interpolation

I have a DataFrame df like this: t pos frame 0 2015-11-21 14:46:32.843517000 0.000000 1 NaT 0.000000 2 NaT 0.000000 3 …
scls
  • 16,591
  • 10
  • 44
  • 55
4
votes
1 answer

How to shade area between horizontal line and curve in Matlab plot

I'm trying to shade the area above a constant horizontal line. Above the horizontal line represents data in the top 10% (i.e., 90% of my data is below the horizontal line). I used the function (curve intersect) to find the start and end of where the…
user3052817
  • 245
  • 3
  • 9
4
votes
1 answer

ggplot2 fill color from data values

I want to be able to set the ggplot fill color from values stored in the data frame. The following code is 'almost' what I am trying to do, except that instead of just using fill = MyColor, I want the code to actually use the RRGGBB hex value in the…
user3344266
  • 69
  • 1
  • 7
4
votes
1 answer

Object-oriented access to fill_between shaded region in matplotlib

I'm trying to get access to the shaded region of a matplotlib plot, so that I can remove it without doing plt.cla() [since cla() clears the whole axis including axis label too] If I were plotting I line, I could do: import matplotlib.pyplot as…
IanRoberts
  • 2,846
  • 5
  • 26
  • 33
4
votes
2 answers

How to change color palette of mosaic plot

I have following data and code: > mat <- matrix(c(120,230,84,70,130,83,13,26,18),3) > dimnames(mat) <- list(c("good","fair","poor"),c("a","b","c")) > mat > mat a b c good 120 70 13 fair 230 130 26 poor 84 83 18 > > chisq.test(mat) …
rnso
  • 23,686
  • 25
  • 112
  • 234
4
votes
4 answers

Replace all values in a flat array with 0

Is there any default function to clear only the values of an array? For example: $array = [ 10, 3, 3, 34, 56, 12 ]; Desired result: [ 0, 0, 0, 0, 0, 0 ]
ArK
  • 20,698
  • 67
  • 109
  • 136
4
votes
1 answer

Get FILL attribute from PATH in SVG by jQuery

When I click on the SVG, I want to get list of all PATHs from this SVG. And then get FILL from every PATH. But it seems, that jquery doues not know attributte FILL. jsfiddle example HTML
Patrik
  • 1,269
  • 7
  • 30
  • 49
4
votes
1 answer

Python, How to fill between multiple (4) curves?

fig = plt.figure(num=1) ax=fig.add_subplot(111) def f1(x): return 1/x def f2(x): return 2/x def f3(x): return np.sqrt(x**2-1) def f4(x): return np.sqrt(x**2-2) s=…
Vladimir Vargas
  • 1,744
  • 4
  • 24
  • 48
4
votes
2 answers

counting objects & better way to filling holes

I am new to OpenCV and am trying to count the number of objects in an image. I have done this before using MATLAB Image Processing Toolbox and adapted the same approach in OpenCV (Android) also. The first step was to convert an image to gray scale.…
jainam
  • 363
  • 1
  • 6
  • 16
4
votes
1 answer

pygame circle not changing

I finally got the collision down so that when my mouse is hovering over the circles and you click the left mouse button, It fills in. It changes going up, but going down it doesn't. Here's my code: # Imports a library of functions! import…
jason97931
  • 235
  • 1
  • 3
  • 10
4
votes
1 answer

Filling polygons of a map using GGplot in R

For my school assignment I am trying to make a map of the Netherlands filled with a colour scale that is dependent of integer numbers (amount of citizens). I have a dataset called mun_neth which is a SpatialPolygonDataFrame and contains all polygons…
Zuenie
  • 963
  • 2
  • 11
  • 30
4
votes
3 answers

Fill list object using dapper c#

I have two table in my database like this: And i have this class: class Ean { public string Code{ get; set; } } class Article { public int Id { get; set; } public string Name { get; set; } public…
puti26
  • 431
  • 3
  • 14
  • 31
4
votes
2 answers

WPF Polyline relative point values and stretch for drawing a graph

I'm trying to create a pretty simple graphing component that consists of a series of Polylines within the same grid cell that represent graph lines. My strategy is to look at all the points in my set, determine the min and max, and then calculate a…
Derek
  • 897
  • 1
  • 10
  • 12
4
votes
1 answer

How to fill the area below a path in Quartz 2D?

I am using Quartz 2D in a UIView object to draw several curves, like this example: This is the code I have right now (I have omitted the calculation of control points and other stuff): for (int i = 1; i < points.count; ++i) { …
elitalon
  • 9,191
  • 10
  • 50
  • 86