Questions tagged [fill]
The fill tag has no usage guidance.
173
questions
0
votes
1
answer
36
views
Drawing a filled shape in front of a line with even odd rule? [closed]
What I am trying to do is to draw a filled shape in "front" off a vertical line, to give the effect that the line is "behind" the shape. I think it involves the even odd rule but I ...
0
votes
1
answer
32
views
Filling between two lines and an arc
I want to fill the space between two lines and an arc with color like in the photo
This is the code I wrote:
\documentclass[12pt]{article}
\usepackage{tikz}
\begin{document}
\begin{center}
\begin{...
2
votes
1
answer
55
views
Filling the wrong area after doubling
After doubling around a path, and filling the comment \fill is filling the wrong area, how can I fill what's inside, please?
\documentclass[tikz,border=2mm]{standalone}
\def\A{(2,1) to[out=80,in=0]...
0
votes
2
answers
54
views
Filling area bounded by several lines and adding a text
I'm very new to Tex and trying to draw a graph using tikz package.
So here's the code I wrote
\documentclass{article}
\usepackage{tikz}
\begin{document}
\ifx\du\undefined
\newlength{\du}
\fi
\...
3
votes
1
answer
67
views
begin/end form makes textfield inputs unfillable
I noticed a weird behavior on Latex using Overleaf. The below code produces this result, according to overleaf output:
But if I download and open the pdf using acrobat reader I see that some ...
1
vote
1
answer
99
views
Superellipse filled with a color
I would like to create a superellipse shape. I found the following question "How do I make a superellipse node shape in tikz?" with @Jake's answer that does indeed produce a superellipse. ...
0
votes
1
answer
50
views
Fill the rectangular area with a continuum of the same colors or shades of gray
I want to fill a rectangle with a continuum of colors. I want the color on the left to be black and the color on the right to be white. In between, there are different shades of gray.
This part is ...
0
votes
0
answers
21
views
Grouped `\fill`s
Is it possible to have an environment like {itemfill} that would behave something like \begin{itemize}[itemsep=\fill] from the enumerate package, so that, in the imaginary code sample:
\documentclass{...
1
vote
2
answers
58
views
How to fill a box after being created by node?
I created a testbox by using node in tikz as follows:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{shapes.geometric}
\begin{document}
\begin{tikzpicture}
\node[draw, regular polygon, ...
1
vote
1
answer
51
views
Fill transparent doesn't work as expected
\documentclass[crop]{minimal}
\usepackage{tikz}
\begin{document}
\tikz
{
\draw [fill=blue] (0, 0) rectangle (2, 2);
\draw [stroke=black, circle, fill=transparent] (1, 1) circle (1);
}
\end{...
2
votes
1
answer
41
views
text on the top of page
i tried to add a box on the top of page with tikz package but i didn't add a text as it is shown in the figure.
this is my code:
\begin{tikzpicture}[remember picture, overlay]
\draw[fill=rougeECL] (...
0
votes
0
answers
49
views
Generate ink texture effects in infill of characters in LaTeX
So I'm not really familiar with how the colours are rendered in LaTeX text, but I was wondering whether it might be feasible (or readily available, although I've looked for it unsuccessfully) to ...
6
votes
2
answers
175
views
Tikz fill an area of three nodes
Consider this MWE:
\documentclass[tikz, border=10pt]{standalone}
\usetikzlibrary{calc,positioning}
\begin{document}
\begin{tikzpicture}[scale=1,font=\Large]
\tikzstyle{dag} = [-,thick,draw=blue!...
6
votes
2
answers
181
views
TiKz Path Exclusion - Compound Shapes (pathfinder functionality)
On Adobe Illustrator, it is very easy to use Pathfinder to create compound shapes by (using the path exclude function with the shape to be retained in the back layer and all paths to be removed in ...
0
votes
2
answers
77
views
'Fill' image within a box while maintaining aspect ratio
I want to specify a box with certain dimensions, say \textwidth by \textheight, and then "fill" it with an image such that the image aspect ratio is maintained, there is no white space in ...
2
votes
1
answer
31
views
Tikzcd: Filling node with image pattern fails if I apply it on all cells at once
I'm trying to fill some pictures with a background image using path picture as recomended here or here. It works great if I put the style in the cell directly like |[path card]| my content, but it ...
5
votes
1
answer
51
views
MetaPost's undraw does not remove the whole border
I am running the example:
# := 0.5cm;
beginfig(1);
path tr;
tr := origin--(2#, 5#)--(8#, 5#)--(10#, 0#)--cycle;
color cl;
cl := 0.7(green + blue);
pen p;
p := pencircle scaled 2mm;
filldraw tr ...
0
votes
1
answer
55
views
fill between two functions simply
How do I fill the color like the image?
\begin{tikzpicture}
\draw (0,-1)--(0,7)
\draw (0,6)--(8,6) node [pos=0, left] {\(L-\varepsilon\)};
\draw (-1,5)--(8,5) node [pos=0, left] {\(L\)};
\draw (0,4)--...
3
votes
1
answer
148
views
How to clip text from a drawn rectangle in Tikz?
Rather than defining a specific color for some text in a drawn box, I want the text to be clipped from the box so that the paper color is visible. Here's the MWE:
\documentclass{article}
\pagestyle{...
1
vote
0
answers
83
views
How to dotfill the tcolorbox blank
The first tcolorbox is the sample example having solution. The last three tcolorboxes contain the problems without solutions, having dot lines. All tcolorboxes are the same height and BREAKABLE.
...
0
votes
2
answers
48
views
Fill between four parametric paths that together are continuous
I have a shape made up of four paths, and I'd like to fill the inside. The four paths are given in parametric form, and each consecutive pair has exactly one point common, so I'd hope this is a well-...
5
votes
4
answers
398
views
Fill a box with left-justified text, but if it doesn't fit, overflow to the left
The following ascii-art representation using a monospaced font shows the result I actually want to get with a proportional font:
20 «Ἀτρεΐδαι τε καὶ ἄλλοι ἐϋκνήμιδες Ἀχαιοί,
ὑμῖν μὲν θεοὶ ...
1
vote
0
answers
67
views
How to fill this region in tikz
How to draw this figure in tikz
The two closed curves shown can be any irregular closed curves (they may or may not look exactly like in the picture); also, the area around the point x can be a ...
1
vote
0
answers
53
views
Fill and pattern rectangle with TIkz [duplicate]
I am trying to fill and pattern my rectangles with either dots or dash line dense. But this code generates a rectangle with dash line whose space is somehow large. How can I fill them more dense via ...
1
vote
0
answers
82
views
Asymptote fill area inside implicit curve
I use Asymptote to make the graphics. I have a curve defined as contour of a surface. I want to fill by color the area inside curve. The problem is that contour returns a guide structure in Asymptote, ...
1
vote
2
answers
73
views
Keep same \vfill over different pages
I'm using \vspace{\fill} to even space out questions of an exam, but the length changes from page to page. I want the same space after every question, and the last question to be at the end of the ...
1
vote
2
answers
42
views
A captioned box that fills the page around centered text
I am trying to create a page length box around a centrally placed text with a caption beneath it. The central text is one line formula. The box should fill all available space except for at the bottom,...
0
votes
1
answer
80
views
Shade an area on one side of the curve with the boundary of the irregular shading
I need to recreate this graph, with those shading on both sides of the curve, both with the line pattern down the curve, and the shading up the curve.
Note that both limits of the shading are not ...
1
vote
2
answers
81
views
Filling remainder of the page with dots (again)
I have the same question as Filling remainder of the page with dots. That is, I want to fill the remainder of the page with dots. The accepted answer is almost perfect, but when I use it inside \begin{...
4
votes
2
answers
454
views
Draw a swimming pool in Tikz [closed]
Does anyone have an idea for how I can draw the following figure using TikZ?
Many thanks.
2
votes
1
answer
71
views
How can I obtain a closed curve in Tikz where part of it is smooth
Using commands as shown in the answers to this question, one can obtain a closed, smooth cycle. Copying the example :
\begin{tikzpicture}
\draw [red] plot [smooth cycle] coordinates {(0,0) (1,1) (3,1) ...
-1
votes
1
answer
447
views
filling the area under a plotted function in tikz
For the shown MWE:
I need to fill the area under the function plotted in tikz using the "Plot Command". However, using the "Fill" option in the "Draw command" does not ...
2
votes
2
answers
335
views
make vertical fill inside multicols environment
I want to have the right column not to be stretched by using \vfill. The source code I used is this.
\begin{multicols}{2}
\noindent
\begin{enumerate}
\item $ x^{2} - 7x + 10 = 0 $
...
2
votes
3
answers
359
views
Edit fading in TikZ
I have a filldraw rectangle with custom fading (i.e. more than just top fill = color1, bottom fill = color2 for instance), that is defined using the \shade option following this post by Tobias Brink.
...
6
votes
5
answers
434
views
Filling a shape with intersecting lines in TikZ
I began creating some shapes in TikZ and it worked quite well. Filling the shape using the even odd rule left out some space in the middle since TikZ does not recognize it as part of the shape since ...
3
votes
1
answer
155
views
\filldraw is not filling
I have an image in my thesis where I am discussing the similarities of basic colour concepts and a compass. The original image is something I shabbily shoved together in Paint, but I thought I could ...
1
vote
1
answer
193
views
Hatching Shear and moment diagrams using Stanli package in 2D and 3D
Regarding drawing internal force diagrams through the use of the Stanli package. The following parameters are required for 2D internal forces command:
Start point
End point
Value at start point
Value ...
2
votes
1
answer
67
views
Add dark and light shading to pgfplot
From the code below, I wanted to get the plot to look like this:
How can I accomplish this:
CODE
\documentclass{article}
\usepackage{pgfplots}
\usetikzlibrary{
pgfplots.fillbetween,
}
...
2
votes
2
answers
245
views
Reverse TikZ stroke direction to use with fill rules
This question is inspired by my own answer:
How to draw the crossings in a tikz picture?
where I draw the blue ellipse in four stages. I was thinking that it should be possible to draw with only one \...
1
vote
1
answer
464
views
How can I fill a tikzpicture "fill" with a pattern?
I'm using the following to generate a Venn diagram, per the example here:
\documentclass{book}
\usepackage{pgfplots,tikz}
\usetikzlibrary{patterns}
\begin{document}
\begin{center}
\begin{tikzpicture}...
0
votes
1
answer
52
views
Filling in Parametric Curve without Using pngplots
I am trying to fill in the area of two parametric curves like this:
Here so far is my failed attempt:
I would ideally like to not use pngplots. I know that pngplots comes with the fillbetween ...
1
vote
2
answers
204
views
Filling a polygon with many vertices using a loop
I have a polygon with many vertices. I first created the coordinates by using
\foreach \i in {1,...,\n}
{
\coordinate (\i) at (\x,\y);
\coordinate (p\i) at (\z,\t);
}
There are a series of ...
1
vote
0
answers
34
views
How to fill a Tikz path, for which anchors are not defined by coordinates but by nodes
I am trying to add a path in a tikzpicture.
The area surrounded by the path shall be colored, i.e., filled in a color.
I would like to use nodes as anchors for the path, rather than x, y coordinates.
...
0
votes
1
answer
90
views
graduated rules with fill color for text
On an exercise with graduated rules, I tried to reduce the white boxes for the negative numbers, I would like the white rectangles to be smaller like for the positive ones but it is like the minus ...
9
votes
7
answers
516
views
Fill percent of path along pair of almost parallel hobby curves
I have two almost parallel hobby paths (red and blue curves) and want to fill a percent of the path between these two lines, starting from the bottom left.
I think this may require a center path from ...
1
vote
0
answers
84
views
How can I color a radar (spiderweb) with shading fill, just like colorbar?
I am trying to fill a radar plot (also called spiderweb) with a shading fill, just like what can be seen with the colorbar feature in 3Dplot.
The radar plot assesses 3 dimensions, that are rated from ...
4
votes
2
answers
148
views
Filling with color between functions
I need some help in filling with colors between some functions, here is my code:
\documentclass[12pt]{report}
\usepackage{pgfplots}
\usepgfplotslibrary{fillbetween}
\begin{document}
...
1
vote
1
answer
96
views
Area over a Curve
I want to fill the area OVER the curve:
\documentclass[10pt]{standalone}
\usepackage{pgf,tikz}
\usepackage{amsmath}
\usetikzlibrary{arrows,patterns}
\pagestyle{empty}
\begin{document}
\begin{...
1
vote
1
answer
226
views
Tikz Flowchart Fill types: Hatched, dotted etc.,
Is it possible to have hatched or dotted fill in the flowchart using Tikz.
For example, see the image below,
If anyone knows any other type of filling other than just shaded fill, please share it.
1
vote
1
answer
91
views
Fitting longtable to textwidth causes a white space in cline
I fit longtable to textwidth following fit longtable to textwidth
\documentclass{report}
\usepackage{longtable}
\usepackage{multirow}
\begin{document}
\begin{center}
\begingroup
\setlength\...