Questions tagged [fill]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
1answer
36 views

latex tikz fill color with cycle

I want to fill some color in the line graph and code like below: \begin{tikzpicture} \begin{axis}[ xmin=0.09, xmax=0.32, ymin=0, ymax=230, ylabel=$num$, ...
6
votes
1answer
87 views

Shadings in TikZ due to vertices

I have this particular problem with shadings in TikZ. I want to convert quadrilateral patch plot to TikZ. What I know - vector of vertices coordinates and connectivity list of patches. What I do not ...
3
votes
2answers
60 views

Color gradient in circle from center and keep transparency

So I am trying something: I want to have a loop reading out the position of circles from a dat file. The plotting already works very well. However now I want to implement a gradual shading from semi ...
3
votes
0answers
37 views

tikz doesn't fill small figures

The usual command \draw[fill=<colour>] (<centre coordinate>) circle (<radius>); usually works just fine, however, when the radius is very small, for some reason it doesn't work ...
11
votes
2answers
761 views

Fill area of x^2+y^2>1 and x^2+y^2>4 using patterns and tikzpicture

I am trying to achieve the following picture using tikzpicture environment: The inner circle is x^2+y^2=1 and the other is x^2+y^2=4. What I have tried: \documentclass{article} \usepackage[english]{...
1
vote
1answer
40 views

Adjusting dotfill for custom table of notations

Consider the following code/picture: \documentclass{article} \usepackage{graphicx} \usepackage{amsmath} \begin{document} \noindent \begin{tabular}{@{}p{2.62cm}@{}p{9.5cm}@{}} $\varliminf,\varlimsup$ &...
2
votes
2answers
39 views

Pgfplot. Reduce intensity of an RGB color

I want to reduce the intensity of the fill in the graph. However, specifying !10 after the RGB color in the fill section, results in an error. I really need to use the RGB color, to be consistent with ...
3
votes
2answers
60 views

Filling (continuous) Path using \foreach with complex calculations for each point

I am trying to draw a curve by calculating every point's position in a \foreach loop (potentially hundreds of points). Since the calculation is quite complex, I use \pgfmathsetmacro multiple times to ...
3
votes
1answer
75 views

TikZ: How to clip out random coil fragments?

Based on this answer from marmot I am thinking about how to design a turbulent flow regime along a stream line within coarsed soil. Minimum Working Example (MWE): \documentclass[border=5mm]{...
1
vote
0answers
27 views

TikZ: How to add fill in style of multiple arcs?

I want to visualize poured loose coarse soil. Minimum Working Example (MWE): \documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw (0, 0) rectangle (4, 4); \...
3
votes
1answer
247 views

Problem with fill color

I use the following command to create regular polygons. The 5th argument is there to insert options for styling the polygons. Though the line width is 0.3mm as I set it, it looks like the fill=red ...
8
votes
2answers
399 views

TikZ: How to fill area with a special pattern?

I want to visualize a turbulent flow regime. Assumed we have a simple empty square that should be filled with a pattern. Minimum Working Example (MWE): \documentclass{standalone} \usepackage{tikz} \...
1
vote
2answers
58 views

How to use TikZpicture to fill a closed curve with pattern?

I am learning how to use tikzpicture with latex. I can not find a solution online to simply fill a closed curve with a hatched pattern. Here's my code: \documentclass{article} \usepackage{amssymb,...
6
votes
2answers
482 views

Box half filled color

I am trying kinda to make this figure in tikz but I do not know how it works. I tried with \tcbox[sharp corners, boxsep=5mm, boxrule=.5mm] But I can not fill both sides with color.
0
votes
0answers
35 views

paracol - Error with 0pt wide columns

I need to create a custom three-column environment where the user can manually set the width of the columns, and I ran into this error. Here is a MWE: \documentclass[10pt,a4paper]{article} \...
1
vote
1answer
69 views

how to fill the area under a curve

I can not find a way to fill the area under these 3 curves and the legend doesn't seem to show the correct line colours (the red one is missing?). Thanks. \documentclass{article} \usepackage{amsmath} ...
3
votes
1answer
31 views

How to define a \dotfill macro with a minimum width?

I want to define the \entry macro to make a list of references. Here is my attempt: \documentclass{article} \pagestyle{empty} \def\entry#1#2#3{\textbf{#1}~#2\dotfill#3\par} \setlength{\parindent}{...
1
vote
2answers
64 views

TikZ fill color: How to decrease spatial size of fill behind text?

Assumed we have some simple code to display a text node with a colored fill behind the text. Minimum working example (MWE): \documentclass[tikz,border=5mm]{standalone} \begin{document} \begin{...
4
votes
1answer
122 views

How do I ask LaTex to exactly fill up a page that has columns?

Similar Question #1: How do I ask LaTeX to exactly fill up a page? Similar Question #2: Fill up a page by equations, and then switch to onecolumn I need to create a number of pages that should be ...
3
votes
1answer
232 views

How to use fill inside the \draw command in Tikz/PGF?

I am quite new at trying Tikz and PGFplots so apologies if this question is rather naive.I have been trying to fill the area under this manually made curve and I have tried to use \clip and \draw[clip....
3
votes
3answers
191 views

How to fill a right-angle mark with a color?

I fails to fill the right-angle mark with green color as follows. \documentclass[12pt]{standalone} \usepackage{pst-eucl,pst-calculate} \begin{document} \begin{pspicture}(-.6,-1)(4.85,4) \def\b{3} \...
2
votes
1answer
71 views

filling an intersection between shapes

I need assistance in finding out how to fill the intersection between the shapes RO1, RO2, RO4, RO5 in the following. Assistance appreciated. \documentclass[border=5]{standalone} \usepackage{tikz} \...
4
votes
1answer
136 views

Neural networks numerical labels

The code given below generates a MWE. \documentclass{standalone} \usepackage{lmodern} \usepackage{neuralnetwork} \newcommand{\linklab}[4]{\ifnum0=#2 $w_{0}$ \else $w_{{#2}}$ \fi} \begin{document} ...
11
votes
2answers
783 views

Drawing a half-full bottle in TikZ

I want to fill half of the bottle. I tried these kind of commands: %\filldraw[color=black!100, fill=cyan!30, very thick](-3,-2.4) arc (180:230:2.5) .. controls (-2,-5) and (-1.9,-5.2) .. (-1.8,-5.5) ;...
2
votes
1answer
36 views

Insert image so that it fills the rest of the page while not fall below a minimum size

I'm trying to make a command that adds images to page in a way that fill the rest of the page. I'm using code from How to define a figure size so that it consumes the rest of a page? and it works. But ...
1
vote
1answer
57 views

filling segments by intersection method: there is no named path called

I'm just trying to fill each peripheral segment of my drawing. The names of the hexagon and the circle are test and circ. Additionally, the line pieces connecting edges of the hexagon to the outer ...
10
votes
1answer
222 views

Tikz: custom text as fill pattern for shapes

I am looking for an option to will an arbitrary shape (box, circle or something defined via fit library) with custom text. For example instead of filling it with dots as here \documentclass[10pt]{...
2
votes
1answer
53 views

How to i get this filling patern?

How do we get this 3d efect on the rectangle uzing tikz?
6
votes
1answer
179 views

\dotfill but slightly lowered below line

I am using \dotfill to create space for "fill in the blanks" but I do not like that the dots are exactly on the line. I would like the dots to be slightly below line. Is this possible? \documentclass{...
10
votes
4answers
685 views

How to fill space between dotted lines in tikz picture?

I'm trying to fill an area between two dotted lines. I tried a lot of options, but none of them seem to work. I labeled the areas I need with the specific colors to fill. My current code is: \...
4
votes
2answers
392 views

How to fill a region in tikz

I did the following drawing in Tikz: MWE: \documentclass[border=5pt,tikz] {standalone} \begin{document} \begin{tikzpicture} \draw[thick] (-0.25,0) circle (2); \draw[thick] (0.25,...
0
votes
2answers
70 views

pgfplots - Problem with the fill command

I am trying to plot 2 different images one on top of each other using the fill option of \addplot. I import the data from a .csv file and the values look correct to me. However, when I compile it, it ...
2
votes
1answer
155 views

\dotfill and glossaries

I have a glossary and I like to finish each entry by "See page x". I have added a \dotfill before so that we see "DESCRIPTION.......See page x". Unfortunately the line break doesn't work as intended. ...
3
votes
1answer
218 views

Fill the area included between two gnuplot contours

this is my first experience with latex plots. I want to fill the small area included between the two contour lines just like i did for the two polynomials, but i think there is some issue with the ...
4
votes
1answer
43 views

How to prevent package from interfering with \hfill

Consider this MWE (stuff taken from this answer): \documentclass{article} \makeatletter \newcommand*{\phoncrossbar}{\leavevmode\leaders\hrule height .5pt\hfill\kern\z@} \newcommand*{\phonfeat}[1]{% ...
3
votes
2answers
117 views

tikz: removing borders in fill white

This is what I got with the following code \documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} \fill[blue!20] (90:4) -- (210:4) -- (-30:4); \fill[white] (90:4) -- (...
1
vote
1answer
94 views

How to fill the area below a curve in a chart with pgfplots

I would like to divide the graph into 3 zones and fill each one with a color and put the names of the areas. Look at the code (commented part) that I tried to do it for the first zone, but it did not ...
6
votes
2answers
386 views

Fill a triangle with nodes on the corners

I'm drawing three nodes and connecting them to a triangle: \documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} \node [ circle, draw ] (A) at ( 1, 0) {A}; ...
3
votes
2answers
135 views

area between triangle minus circle

\documentclass[border=3mm,tikz]{standalone} \usepackage{pgfplots} \usepackage{epstopdf} \usepackage{pgf,tikz,tkz-euclide} \usetikzlibrary{calc,patterns,angles,quotes,arrows} \usetikzlibrary{...
1
vote
1answer
114 views

\glspostdescription for longnewglossaryentry

In the following MWE I try to dotfill the space between the end of description and the page numbering by defining \renewcommand*\glspostdescription{\dotfill\kern1ex}. It seams to work with \...
3
votes
1answer
142 views

fill cylinder in latex

I want to fill the below cylinder same as picture And my code \begin{tikzpicture} \def\a{1} % bán trục lớn = bán kính trụ \def\b{0.3} % bán trục nhỏ \def\h{3} % chiều cao trụ \shadedraw[left ...
3
votes
2answers
370 views

How can I color fill the annulus with tikz?

I want to color the annulus between the circles with radius r_1 and r_3, but keep the lines of the circles and the lines r_1, r_2, r_3. I tried color fill, but the lines disappear. Here is my tikz ...
3
votes
1answer
518 views

underline (empty space) until end of line (manual “fill in the blank” to end of line), within enumerated environment

I keep encountering situations where I would like to quickly include a few "fill-in-the-blank" style underlined horizontal spaces (usually within an enumerated environment) but each time I come to ...
0
votes
0answers
55 views

The text is uniformly distributed on each page

I have the problem since yesterday that the text on each page in not distributed from up to down but uniformly on the page, here is an example of a page and the code https://gyazo.com/...
4
votes
3answers
269 views

How to fill a node created using tikz fit

I would like to draw a bounding box around a group of nodes to indicate a relationship. I am doing this using the tikz fit page as shown in the attached code. I now want to change the background ...
6
votes
2answers
106 views

Fill between two arcs in tkz-euclide

I have six arcs: \documentclass{article} \usepackage{tkz-euclide} \usetkzobj{all} \begin{document} \begin{figure}[htbp] \centering \begin{tikzpicture}[scale=0.3] \tkzDefPoint(0,0){a} \tkzDefPoint(12,...
1
vote
1answer
34 views

How to fill one of the two plane regions defined by a hyperbola with a colour?

I looked for an answer in previous posts but I did not find it (sorry if this problem is already solved somewhere). I would like to fill with some colour the region on the right of the following ...
7
votes
2answers
386 views

Filled curved in legend entry - tikz/pgf

I am trying to make a simple plot in pgfplots that consists of a curve with a filled area below it and vertical dashed lines that divide the area below the curve in sections. A simple output can be ...
1
vote
1answer
218 views

Fill surface in tikz

I know this question has already been asked a couple times in a similar way to mine. However, I can't figure out, what I am doing wrong. I want to color this quadrilateral. \begin{tikzpicture} \...
2
votes
1answer
138 views

Use siunitx to highlight a table column?

I am using siunitx to align my columns by the decimal point. I want to highlight one of the columns in my table (edited: make a column have a coloured background). I was wondering if siunitx has a ...