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.

2
votes
1answer
15 views

Some problem with fill color on each path // SVG CSS Animation // Mistakes between codes in Atom and codes in CodePen // SVG CSS Animation

I know there are some questions with similar problems on SO, but they don't match my current problem, I'm trying to do an animation with some path svg, on CodePen my animation works, but the class "...
1
vote
0answers
43 views

Is it possible to use a variable as fill-argument in the format! macro?

I wanted to imitate Pythons rjust, ljust, and center functions using the format! macro, but I was only able to work out a solution where you can pass in the string and the width. If you want to pass ...
0
votes
1answer
22 views

PHP - in built function to populate an array with specific elements from another array

I have a list of objects ( Cars ) so cars[0]->getId() is 12, cars[1]->getId is 25 etc. I want to fill an array with these IDs without using foreach Currently I am doing it like this: $carIds = array(...
0
votes
0answers
37 views

How to fill with colour like the fill in the paint?

I am trying to do the paint on Javafx. I am using a pane and draw an irregular shape using the code below (like using the pencil in the Microsoft Paint). Then I wished to colour the shape. I have no ...
0
votes
0answers
17 views

Shade figure values in array A with fill where values in array B exceeds a certain value

I am plotting the element values of array A, but I would like to shade elements in A where the corresponding element in array B exceeds a certain value (here: 6). How can I do this? In my example coad ...
-1
votes
0answers
23 views

Problem with filling a Combobox in Excel from an Access DB

I am trying to fill a combobox (placed on the Sheet "Tabelle1") called cb_userList_del from a Access DB. I have a Sub to establish the Database Connection and confirmed it working since i can send "...
0
votes
0answers
21 views

Fill overlapping plot area for graphs with different x-axis scales

I am trying to fill the overlapping area of two graphs with different x-axis scales. Can this be done using built in functions like fill_betweenx()? fig, axs = plt.subplots(1, 2, sharey=True) ... ...
0
votes
1answer
38 views

Histogram fill not representing all present levels of factor in certain bins

I am using a histogram to visualize distribution of various prices of a beverage offered at stores and applied a fill to represent the proportion of stores that are in a certain status within each ...
0
votes
2answers
20 views

While trying to use the “fill_between” the following error is given“ Input passed into argument ”'y2'“is not 1-dimensional.”

I am going through the Python Crash Course text and am receiving the error "Input passed into argument "'y2'"is not 1-dimensional" when attempting to use the fill_between portion of matplotlib. I am ...
1
vote
1answer
34 views

Android - Fill different colors between two lines using MPAndroidChart

following this (Android - Fill the color between two lines using MPAndroidChart) answer I was able to fill with color the space between two lines using AndroidMPChart library. But now I want to ...
0
votes
2answers
52 views

r fill map with color by percentage

How can a map plot be filled with a color, by percentage area of the country. Example library(sp) library(raster) # https://gadm.org/download_country_v3.html level-0 ger.shape <- readRDS("...
-1
votes
1answer
36 views

C# Fill combobox from dataset

I'm just new to C# and Windows Forms so sorry if I miss something. Currently I use dictionaries as a datasource for my comboboxes. But as I just found out, filtering is not possible with that(?). So ...
0
votes
3answers
43 views

How to fill in missing dates by minute by group in R

I am attempting to fill in missing minutes from a dataframe that has different groups. I would like the missing minutes to be filled in with zeroes. I tried to use this R - Fill missing dates by ...
-1
votes
1answer
46 views

How to get the area of shape filled using turtle

I graphed a fractal shape in Python using turtle, and am trying to get the area of this fractal after a sufficiently high iteration. This fractal is related to the Koch snowflake, for those interested....
-1
votes
1answer
25 views

How can pyplot fill_between be used on a vertical plot?

Let's say there's a plot that has two marginal plots. How can fill_between be used for the vertical plot? from keras.datasets import mnist import matplotlib.pylab as plt from matplotlib.ticker import ...
5
votes
0answers
83 views

std::fill with zip_iterator fails to compile on clang and c++11

It appears that zip_iterator, evaluates iterator_category to std::input_iterator_tag for the below code snippet. But the implementation of std::fill in Xcode(i'm using Xcode10.1.0.app) has ...
0
votes
2answers
26 views

Manually set group colours based on values in global environment

I have a a dataset and I want to set specific colours when using ggplot. I have looked at this question and can manually set the colours for values. However, I want to be able to set the colours ...
1
vote
1answer
64 views

Is calling std::fill() before std::erase() produces undefined behaviour?

I'm working on a C++11 program, where security is important and my task is to set to 0 the used memory after erasing it. I have an std::map mapping from int to an std::vector of pointer to class. I ...
1
vote
1answer
42 views

Facet wrap and fill in dot plot

Dears, good morning 1) I'm trying to plot 25 boxes representatives to 25 species. In the x-axis I want to plot the representative values ​​of each anesthesia to that particular species. In the y axis ...
0
votes
3answers
37 views

My layout does not fill the whole activity width [duplicate]

I'm using AndroidStudio3.2.1. I'm designing a recycler view, when running it using emulator, it does not fill the whole width of the activity. Why is this happening? I tried "fill_parent", "...
1
vote
0answers
34 views

How do i avoid "Subscript out of Range?

I am having an issue with the "Subscript out of Range" error message. I got some help writing a code that loops a long list of stocks. The code basically makes all of the vectors even so i can use it ...
0
votes
0answers
12 views

How to make a button fill %100 of the table cell

Trying to get a button to fill %100 of a cell. <td bgcolor="black"><form action="thing it's doing" target="_parent" method="post"><input type="button" name="Edit" value="Edit" ...
1
vote
1answer
50 views

fill missing data with Python

I am little new to Python and have a problem like this. I have a dataframe of multiple sensor data. There are NA missing values in the dataset and need to be filled with below rules. if the next ...
0
votes
0answers
7 views

Duplicate a raster File of an x Date and produce a multiple copies of it filling the previous missing dates

I'm having a hard time trying to figure this out. So, I'll appreciate a lot any help or insight on this. I have multiple raster files every 4 days. Each raster file name is the date ddmmyyyy00 I ...
0
votes
0answers
17 views

How to scale a .PNG image to fill a circle entirely?

I'm trying to fill a circle with a .png image, but the transparent background changes the actual size of my circle. How can I make the image fit, without having to increase the size of the Circle ...
5
votes
1answer
71 views

Filling NaN using the mean values from the same hour of previous days

I want to fill NaN using a mean of values from the same hour-minutes of the previous days. To simplify, this is an example of my df. timstamp data 22/04/2016 09:00 1 22/04/2016 09:05 2 ... ...
4
votes
3answers
65 views

How to Fill Color Outside of a Shape (an Oval)

I want to be able to draw on a BufferedImage, using a Graphics2D instance, and fill Color outside of a Shape. If this was a shape such as a Rectangle it would be easy, but the Shape I need to work ...
1
vote
2answers
51 views

gganimate different fill scales in image layers

I'll use the mtcars dataset as an example. I'd like to transition between one variable (cyl) and another variable (hp) for the same data points based on fill color. However, the scale is set for the ...
0
votes
1answer
60 views

Fill shape with no-repeat image pattern: unwanted contour line

In my Angular application, the user can insert an image into an SVG shape and apply a transform to the image interactively. By default, the image fills the shape. It works well, except for one very ...
-1
votes
1answer
53 views

how can I color the part in red using scilab and xfpoly [closed]

How can I color the part in red using scilab and xfpoly. Is there a way to color the calculated surface just after the integral between two bounds?
0
votes
0answers
9 views

Why is mist listbox not filled up?

I would like to fill up my Listbox with teams created before, but my listbox is always empty. public partial class CsapatJatekosEdit : Form { List<Csapat> csapatok; List<Jatekos> ...
0
votes
1answer
55 views

Javascript Canvas Ignoring .beginPath() affecting .fillStyle()

The program includes a rectangle with a given color based on a button clicked in the HTML passing the color into the method. There is also another text field and button to add text to this rectangle ...
0
votes
1answer
28 views

Fill null values in a dataframe from another sized dataframe one by one

I have two dataframes as below: import pandas as pd from numpy import nan rawdata = {'col1': [3 ,nan ,4 ,7 ,nan ,5], 'col2': [10 ,20 ,10 ,30 ,10 ,40], 'col3': [23 ,34 ,45 ,56 ,34 ,23]} ...
0
votes
1answer
12 views

My Formula is not dragging with the correct cell values in Excel

I have a formula in Excel that I am trying to copy and drag down with the fill handle. Everytime I do though it does not keep the interval of cells correct (8cells). for Example: =('Other tab name ...
0
votes
1answer
42 views

SVG elements CSS transition inside <g> tag on Chrome

So I've created a page with some colorful SVG images in it, and I want them to be grayed at hormal state, and shows color while hovered. svg { width: 200px; margin: 50px; ...
0
votes
0answers
25 views

Adding 280 color values to custom colors values in scale_fill_manual

When filling a stacked bar chart, as in the following example, does scale_fill_manual values have a limit as to the length they allow? I am trying to fill 280 different color values to 280 different ...
0
votes
2answers
27 views

SqlDataAdapter.Fill never ends when I use parameters

I have a issue when I use parameters in a select query. sqlCommand cmd = new SqlCommand(con); cmd.commandText = "SELECT TOP 1 * FROM tbl WHERE [email protected]" cmd.Parameters.Add(new SqlParamter("@SN", "...
-1
votes
1answer
19 views

Changing Color of a column based on other column in put

I have a table that has Color and Progress Interval Columns, I wanted to change the cell color in Progress Interval Column based on cell in Color Column. Example if Cell D2 says Green, E2 will be ...
-1
votes
1answer
19 views

changing font size in geom_col aes fill group names

I am creating a bar plot using aes(fill=dummy variable) so I have 4 bars: I am basically showing proportions for a 2x2 model - How do I change the font size of the names for the different groups? ...
-1
votes
3answers
37 views

Filling a data-frame after multiple loops in R

I am doing multiple loops and I want to create a dataframe with the different results. A MWE is as follows: # define cases debt <-c(0,0.05) thetas <- c(1, 1.5) rhos <- c(0, 0.99, 2)...
0
votes
2answers
15 views

Excel Fill Single Values in a Different Column using IF AND functions?

I have a table that somewhat looks like this: I am trying to spread the values on column B using an IF-AND function so that it would pull the values from column A until it reaches a new value in the ...
0
votes
1answer
40 views

Fill a column based on max values by condition in R

I need to fill a new column based on the max values per group. So I have A B C 1 1 0 1 9 0 2 5 0 2 10 0 2 15 0 3 1 0 3 2 0 4 5 0 4 6 0 I need to fill $C with 1 for each maximum value in $B ...
1
vote
1answer
198 views

CSS background url SVG fill color not working (not base64) when compiling from SASS [duplicate]

I'm using SASS to generate my css and i'm trying to create a dotted repeated pattern to simulate a border-bottom on abbr tags using a background image image SVG. I've searched deep but can't find a ...
1
vote
1answer
35 views

Unity fill amount lerp returning wrong value

Trying to lerp the fill amount of a health bar. Have this code: public float lerpSpeed = 2; public void FillBar() { bar.fillAmount = Mathf.Lerp(0f, 0.7f, Time.deltaTime * lerpSpeed); Debug....
3
votes
1answer
85 views

CorelDraw VBA Hatchfill color

Anyone have an idea how to get the background and line color from a custom hatch fill? the following code fills the selected shape using data from textboxes ActiveSelectionRange....
1
vote
0answers
12 views

Custom Chart Fill / Pattern

I am struggling to define the fill color and fill pattern of a stacked column chart. To clarify, I have one series value, and two series groupings (RepairLevel, InProcess). In the fill color ...
0
votes
1answer
30 views

SVG and JQuery GIF fill running slower on Firefox

I built an interactive SVG with fill properties that change on the hovering over of each group. It performs properly on my Wordpress site in Chrome and IE, but in Firefox the GIFs set as fill are ...
0
votes
1answer
104 views

Fill with zeros in a frequency of dates group by month and year in big query

I have a table with hiredate (Date) ,First Name (String) and Sur Name (string) like this: hireDate First Name Surname 13-oct-14 Cintia Roxana Padilla Julca 28-oct-14 Conor ...
0
votes
2answers
69 views

R: Fill all NAs in a set of columns with the values above

I have a data frame and vectors of names of "a" columns and "b" columns: x <- data.frame(a1 = c(1, NA, rep(1, 3), NA), a2 = c(2, NA, rep(2, 3), NA), a3 = c(3, NA, ...
1
vote
1answer
31 views

MATLAB: How to maintain aspect ratio of filled ellipses when using “fill” function?

I am plotting filled circles and ellipses on an x-y plot. The ellipses are derived from 2x2 tensor data. The x-direction and y-direction have wildly different units depending on the type of data I am ...