Questions tagged [pgf-pie]
{pgf-pie} concerns the TikZ-pgf based pie chart plotting package pgf-pie
117
questions
0
votes
1
answer
79
views
horizontally arrange statistical circular diagrams and place the text inside the diagram
I want to organize the graphics and be able to place the text inside the diagrams. If someone could help me, it would be very kind.
\documentclass[article,12pt]{report}
\usepackage{enumitem}
\...
2
votes
3
answers
99
views
How to change the border width of a tikz pie chart?
I have the following pie chart and I would like to decrease the width of the black border line.
\documentclass{article}
\usepackage{pgf-pie}
\begin{document}
\begin{figure}[htbp]
\resizebox{0.4\...
0
votes
1
answer
81
views
How to change color of text in legend of pie chart in overleaf
I would like to change the color of the text 7.91-6.33 in figure A's legend and the text 73169 - 60901 in figure B's legend to red.
Please any help would be really appreciated.
\begin{figure}[htbp]
\...
4
votes
3
answers
269
views
Hidden numbers in Pie Chart
Want to extract the hidden or unclear numbers in a pie chart and display them like 'red numbers with a line' in the attached figure. Following is my code
\documentclass[acmsmall]{acmart}
\acmJournal{...
1
vote
2
answers
81
views
pgfkeys and passing argument with math-ish format
It seems that pgfkeys is attempting to do math on one of my arguments, and failing because it's not actually math. How do I prevent this, and ensure that the argument is passed correctly?
Compiling ...
0
votes
1
answer
47
views
Use dvipscolours from xcolor with pgf-pie
So I've got a pie chart that I'm making (data has been shortened for brevity).
However, I want to use colors from the xcolor package with this.
\documentclass[a4paper]{article}
\usepackage[usenames,...
1
vote
1
answer
45
views
Only label specific slices pgf-pie
I'm trying to create a pie-chart showing just how dominant SpaceX is when it comes to the number of orbital assets that it controls.
From my data, I've generated this:
\documentclass[a4paper]{article}
...
0
votes
1
answer
170
views
How to handle case using pie chart in tikz when one percentage is too small?
I wanted to use tickz to draw a pie chart of 3 segments. The problem is that one of percentages is too small and the text comes out clobbered and hard to read.
The 3 percentages are 96.34%,3.22% and ...
1
vote
1
answer
99
views
Arrow Tip of rounded arc has no contour
Currently, I'm working on an exploded pie chart with a bended arc indicating the direction of a process. My problem is that the bended arc I used as an arrow has no contour at it's arrow tip. Also, ...
1
vote
1
answer
124
views
Changing the position of a plot in tikzpicture and its caption
I want to achieve the following. Reference figure is attached.
In figure 16.1, print 1% in the same way as highlighted in red in the attached figure.
Move figure 6.4 to the left (under figure 16.1).
...
0
votes
2
answers
243
views
Pgf-pie in subfigure
I have the following code that draw four pie-chart using subfigure:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{subfigure}
\usepackage{pgfplots}
\usepackage{pgf-pie}
\usepackage{...
0
votes
1
answer
149
views
Include a pie chart in LaTeX beamer template [duplicate]
I want to draw a pie chart in LaTeX beamer template, but something wrong happened.
The code is as follows:
\usepackage[utf8]{inputenc}
\usepackage{pgf-pie}
\usepackage{xcolor}
\begin{frame}{...
0
votes
0
answers
423
views
How to prevent overlapping labels in a pie chart?
I would like to know how to prevent the labels of a pie chart from overlapping and to have more control over their position?
I am using the pgf-pie package, I don't know if it is possible to easily ...
2
votes
0
answers
262
views
Nested pie chart
I know I'm asking a lot. But by chance, is there someone who knows a package capable of drawing nested pie chart in Latex ? Something like this :
PS : It's more curiosity than real need, Python does ...
2
votes
0
answers
566
views
Pie chart with legend position south
I tried the legend to the south code from this question (see code below): Pie chart with joined legend position
but it unfortunately does not work.
If i change yshift to a fixed value it work. BUT ...
2
votes
2
answers
55
views
How can I store colors to be reused later for pgf-pie charts?
I am trying to store a set of colors in the corresponding pgf key and then recall it later. However attempting to do this:
\documentclass{standalone}
\usepackage{pgf-pie}
\begin{document}
\...
0
votes
1
answer
192
views
Is there a way to fix a conflict between pgf-pie and tkz-euclide error undefined control sequence @t noexpand?
I am using Overleaf.
If I load both tkz-euclide package and the pgf-pie package, I get the following error for each pie graph:
pgfpie @t \noexpand and the graphs do not display the labels of the ...
2
votes
0
answers
112
views
repositioning tikz-pins in pie chart
I only want to know if anyone has an idea on how to reposition the tikz-pin in a way that they look like the pins in the example picture without creating extra nodes? this is my code so far:
P.S.: if ...
1
vote
0
answers
96
views
Customize the positioning of label and percentage in pie chart TikZ
I'm trying to personalize a pie chart in TikZ, mainly the lines, percentage, and label positions. I have the following figure and the script:
\definecolor{rosso}{RGB}{232,76,61}
\definecolor{giallo}{...
0
votes
1
answer
54
views
Two figures side by side - positioning issue
I need to put these two pie charts side by side ... to position in a CLEAN AND DECENT way while not going over page margin. It is currently okay but not really satisfying. Positioning the pie chart ...
0
votes
0
answers
49
views
Why Pie chart is deslocating labels? How to fix it?
I have a tikzpicture with several nodes. Inside each node I am drawing a tikzpicture with something. Some nodes have charts, others have flowcharts etc.
Everything seems fine. The problem is when I ...
-1
votes
1
answer
199
views
Subheadings for Pie charts
Can anyone help me for writing subheading on top each Pi chart with the following code. Please see the example picture
\documentclass[border=5mm]{standalone}
\usepackage{pgf-pie} % version: https://...
0
votes
1
answer
279
views
Reduce horizontal gap between legend and pie chart
How to reduce the gab between the pie chart and legend. Following is my code
\documentclass{article}
\usepackage{pgf-pie}
\usepackage{tikz,pgfplots,pgfplotstable}
\begin{document}
\begin{figure*}[h]...
1
vote
1
answer
371
views
Add multiple-line legend entry to a pgf-pie chart
I've got a pgf-pie chart with a legend. One of the entries is too long to fit on the page and regular LaTeX line-breaking commands don't seem to work.
MWE:
\documentclass[tikz, 12pt, a4paper]{report}
\...
3
votes
1
answer
1k
views
Put small numbers outside of a pgf-pie chart
I have a pgf-pie chart and some of the values are so small that the number does not display correctly. Therefore I would like to put them outside of the chart, as seen on the second picture I found on ...
3
votes
1
answer
498
views
Centering a pgf-pie chart with legend with respect to center of the chart, not the entire figure
I have a pie chart with a legend at the side made using pgf-pie. It is centered with respect to the center point of the entire figure, including the legend.
MWE:
\documentclass[tikz, 12pt, a4paper]{...
3
votes
1
answer
70
views
pgf-pie not properly rendering accented i - í
In the legend of my pgf-pie chart, I am using accented i character - í. For some reason, it appears as a number with the accent sign instead of the actual letter when compiled.
MWE:
\documentclass[...
1
vote
1
answer
1k
views
Put percentages outside of pie chart
unfortunately you can't read the percentages in the small pie pieces. Is there an easy solution for that? Putting the percentages outside the pie or to the legend?
\documentclass{article}
\usepackage{...
2
votes
1
answer
207
views
list of colors in a pie chart with variable number of slices
Based on several codes found here and there on this forum, I built a simple code for creating a pie chart with a variable number of slices, see below. Right now, I am able to make the color of slices ...
2
votes
2
answers
514
views
Hide some numbers - PGFpie
I am dealing with package pgf-pie to draw some pictures.
However, I would like to hide some percentages, that the smaller, because they don't fit in the sectors. I would just like to leave the ones ...
1
vote
1
answer
342
views
How to create a pie chart with different text label styles using pgf-pie?
I'm trying to create a pie chart similar to this one. Reading the documentation for pgf-pie and it doesn't seem to have options for having multiple styles of text (text=pin, text=inside etc) for ...
1
vote
1
answer
307
views
Add extra text to Pie Chart
I would like to add extra text under the legend or next to pie chart where it looks good. But I don't know how. Can someone help me?
Would like to add: n = 77
77 is the total of all pie-pieces.
Thank ...
1
vote
2
answers
643
views
Align Tikz-Pie-Chart caption with chart
I am trying to align the caption of a pie-chart that I create with the tikz pgf-pie package.
The goal is to have multiple pie-charts next to each other in one line.
So far I tried creating a figure ...
0
votes
1
answer
133
views
Replace number in pgf-pie
I am using pgf-pie to create pie charts.
Usually, the number is written into the slices. I would like to replace the number by another string and the same time keep the description pinned.
\begin{...
0
votes
0
answers
24
views
labels with debug information [duplicate]
On macOS, I tried the following:
\begin{tikzpicture}
\pie{47/Rice,32/Wheat,22/Other}
\end{tikzpicture}
What I observe is not what I expect with labels:
It is like there is some debug info attached to ...
0
votes
1
answer
258
views
Is PGF-Pie part of TeXlive nowadays?
According to Nikola Talbot, PGF-Pie used to be part of MikTeX, but not of TeXlive. Is this still the case and if not, in which version was PGF-Pie introduced to TeXlive?
0
votes
2
answers
110
views
Why does pgf-pie create so many "Missing character: There is no b in font nullfont!" errors?
I am trying out pgf-pie and even simple examples seem to have some bug, because I get lots of Missing character: There is no b in font nullfont! errors and if I put all errors one after each other, ...
3
votes
1
answer
448
views
How can I make default settings for pgf-pie and have different color for text on pies and outside of pies?
I am using pgf-pie for simple pie-diagrams and would like to define a color scheme that is used by default for all charts. As it seems pgf-pie does not offer styles or color lists by default, hence I ...
2
votes
2
answers
410
views
Pie chart displays incorrect percentage
Pie charts in my document are displaying incorrect percentage with following code. Min value is 0 and max value is 104. For example, out of 104, correct answers are 42.3%, 29.8% and 26.9%, but values ...
0
votes
1
answer
78
views
Making colors consistent in side by side Pie Charts
can anyone please help me to change the color from dark blue to light blue in these charts.
Thanks!
begin{centering}
\begin{subfigure}
\footnotesize
\begin{tikzpicture}
\begin{scope}[scale=0.7]
\pie[...
1
vote
1
answer
1k
views
How to add caption for each pie chart (creating with tikzpicture) in tabular environment?
I have created the following figure in tabular environment for two different pie charts. But I am unable to give caption to each of them in their respective cell.
I used the following code and I was ...
2
votes
2
answers
291
views
Draw a pie chart with a blank circle inside
I want to draw a tikzpicture pie chart look with legends look like this:
How do I do that ?
1
vote
2
answers
729
views
Installing pgf-pie in macosCatalina (command line)
I'm trying to install the pgf-pie package here in macOS Catalina 10.15
I've followed the steps:
downloaded pgf-pie.sty here: http://linorg.usp.br/CTAN/graphics/pgf/contrib/pgf-pie/
used kpsewhich ...
0
votes
0
answers
111
views
Modifying a sunburst chart with % symbols and joint legend
I copied a code from this post to make a sunburst chart, but I need to make 2 modifications that I haven't been able to work out:
is to add % into the text, and
is to create a joined legend for both ...
3
votes
1
answer
211
views
Scatterplot inside a square pie chart
Does anyone know how to do a scatterplot inside a square pie chart? I know I'm supposed to provide a MWE but but I'm very clueless of where to begin. What I'd need is 2 square pie charts within the ...
1
vote
1
answer
455
views
2 pies in one figure with same legend and separate chart labels
I'm trying to create 2 pie charts within the same figure. The problem is I want them both to have the same legend, but I cannot manage that. The package seems to assume that each individual pie needs ...
0
votes
0
answers
184
views
custom legend below figure
I have the following code and would like to set the legend below both subfigures in the centre. It would also be great to have subcaption (a) to be positioned horizontally with the corresponding pie.
...
1
vote
1
answer
513
views
pgf-pie: How to change text-position in a square pie?
Is there a way, to shift the texts in the lower left corners; with other words: how to hack the default of the package pgf-pie.sty?
Note that I use fictional percentual values.
\documentclass[...
4
votes
1
answer
662
views
pgf-pie - Show only values greater than 0
I have three pie charts for which I only want to create one legend. For this purpose, only the third diagram contains a legend. But my third diagram contains only one value. To create the legend, I ...
0
votes
1
answer
182
views
Attributes are being printed as text inside pgf-pie, causing "There is no ... in font nullfont!" errors [duplicate]
pgf-pie keeps giving me headaches.
This is my LaTeX code:
\documentclass{article}
\usepackage{pgf-pie}
\begin{document}
\begin{tikzpicture}
\pie[color={black!10, black!20, black!30}]
{62/\TeX\ ...