The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
2answers
256 views

Guide to draw charts (basic, pie, bar) from data

I went through the examples of using PSTricks and TikZ for drawing pie and bar chart. They looked quiet complicated to me. Is there any simple guide (blogs/text) to drawing these charts using ...
5
votes
1answer
140 views

Create bar chart with description from file

I'd like to create a bar chart read data directly from file, add detailed description directly inside/over the bars and write the actual value near the actual coord set bar color according to a ...
3
votes
1answer
127 views

Cyrillic text in symbolic x coords

I make bar plot with pgfplots: \documentclass{report} \usepackage[T2A]{fontenc} % Поддержка русских букв \usepackage[utf8]{inputenc} % Кодировка utf8 \usepackage[english, russian]{babel} % Языки: ...
5
votes
4answers
900 views

How to compute an histogram (plot bars) binning the values from a .csv using TeX?

I've a .csv with a column of acquired measures. I would like to make the histogram bins using TeX from the measures distribution so I have to create the bins first. I haven't found any reference to ...
3
votes
2answers
313 views

Bar chart from CSV file with adjustable bar width

I have a CSV file with approximately 1500 records that I would like to plot using something like a bar chart, but I don't know where to start at all. Each record contains a width and a height, which ...
6
votes
1answer
2k views

grouped bar chart with pgfplots

I am trying to create a grouped bar chart with pgfplots, like this one: but I can't put the values over the bars, like this one: My code is: \documentclass{article} \usepackage{pgfplots} ...
6
votes
1answer
519 views

Single stacked bar, values and legend

\documentclass{article} \usepackage{pgfplots} \begin{document} \pgfplotsset{testbar/.style={ title=strookdiagram sporten, xbar stacked, width=10cm, axis y line*= none, axis x line*= bottom, ...
2
votes
0answers
126 views

How to make a tidy grouped and stacked barchart?

I found this chart in a recent paper. I've emailed the author about it but they didn't reply. I want to create something similar but I don't know what the correct software to use is. I need the ...
2
votes
1answer
152 views

How could we fix the legend in the x-axis with bar chart?

How could we fix the problem with the x-axis ? Also, would it be possible to have written above or in the middle of each column each number ? So as to make my bar chart, I have used the following ...
7
votes
1answer
1k views

pgfplots, bar graph, axis distance

I have a following chart, and I am trying to decrease the distance between the x-axis ticks FCC and Beta pi. Any suggestions on how to reduce this? \documentclass{standalone} \usepackage{pgfplots} ...
7
votes
1answer
607 views

X-Bar plot with intervall (a,b) rather than (0,a)

When one makes a xbar plot using pgfplots, the bar always goes from 0 to the requested coordinate. For example (p. 78 in pgfplots manual): \documentclass{article} \usepackage{pgfplots} ...
1
vote
1answer
66 views

Double Y-Axis Sometimes Both on Left

I've developed a chart for my paper: https://www.writelatex.com/502050hhmmqs As you can see, there are two y-axes, with their labels correctly placed on opposite sides of the chart. However, when I ...
7
votes
1answer
143 views

Use math equation as bchart label

I used bchart to generate a chart, it worked well in almost case, however I have to put a math equation into bar label but it is unable to compile. My document worked well ...
4
votes
1answer
520 views

Bar plot with error bars and two data rows

I am already close to the solution I'm searching for. I want this graph http://tex.stackexchange.com/a/35749/38544 with two data rows. Thus I took the code, duplicated the addplot-section and removed ...
2
votes
0answers
158 views

How to align bars with the legend?

I'm able to draw bar chart using tex file mentioned below \documentclass[landscape,a3paper,11pt]{article} \usepackage{pstricks-add} \usepackage{pgfplots, pgfplotstable} \begin{document} ...
4
votes
1answer
225 views

How to make a bar diagram with several “levels”

I just started using TikZ and I am trying to make the following bar diagram: My main problem is to define bar type in which I could put the following arguments (for every bar separately!): (1) the ...
0
votes
0answers
21 views

Bar Graph with Scale Break [duplicate]

I am new to PFGPlots and have been trying my best to create bar-graphs with error bars AND scale/axis break, but this is proving difficult please help me. Currently the Bar-graph C has too high of a ...
6
votes
2answers
478 views

Two-sided bar chart

I strive to make a bar chart displaying opinions for and against different topics. I tried to do this with pgfplots starting from bar and interval bar charts. Bars to both sides can be archived ...
3
votes
1answer
292 views

Overlay bar plots to do asymmetric errorbars?

To illustrate the problem, I use the code from the answer of this link for asymmetric errorbars in pgfplots. \documentclass{article} \usepackage{pgfplots} \usepackage{pgfplotstable} ...
4
votes
1answer
306 views

pgfplot xbar legend ordering

when I am drawing a xbar chart, I have troubles with the legend entries. They appear to have the opposite ordering as I suppose they should have. \begin{tikzpicture} \begin{axis}[xbar] \addplot ...
6
votes
2answers
287 views

Annotate grouped bar plot

I'm trying to draw a grouped bar plot, but with added dots "on top" to signify outliers in the results. Currently I have: \begin{figure}[] \begin{tikzpicture} \begin{axis}[ ...
8
votes
2answers
4k views

How to draw Bar & Pie Chart

I'm want to include two graphs mentioned below in a document. I'm able to draw pie charts using pgf-pie. Is there any package which is capable of generating BAR & PIE Chart both? [Also which ...
3
votes
0answers
40 views

Pgfplots bar chart - One plot, different colors [duplicate]

Is there a possibility to color bars of one plot in different colors? \begin{tikzpicture} \begin{axis}[ xbar, xmin=0, width=12cm, height=3.5cm, enlarge y limits=0.5, xlabel={\#participants}, ...
0
votes
0answers
176 views

Bar of pie chart [duplicate]

I want to construct a bar of pie chart like the one excel does, but in LaTeX. I am having a lot of problems to come with something like this so I was wondering if somebody could help me.
3
votes
1answer
152 views

How can I get titles on the top of grouped bars?

I have a bar plot with grouped bars. Each group should contain the total sum on top of the group. Example: My example has two problems: The x-position is estimated The y-psition (height) depends ...
4
votes
2answers
291 views

How can I get a stacked bar with single values and sum on top.

I have a stacked pgfplot like this: But I want the single values inside the bars and the total sum on top of the bar (this graphic is 'handmade'): How can I get this result? My attempt up to ...
8
votes
1answer
284 views

McKinsey curve in pgfplots (creating continuous cost curves)

I'm trying to recreate the Mckinsey curve in pgfplots: I'm not sure I understand how to control the \addplot with bar graphs completely (how to make each bar graph stand next to each other using ...
3
votes
1answer
342 views

How to use `ybar interval` without skipping the last value

I have the following code \documentclass[tikz]{standalone} \usepackage{pgfplots} \usepackage{pgfplotstable} \usepackage{filecontents} \begin{filecontents}{testdata.dat} -3.316988309367815e-07 ...
0
votes
1answer
318 views

pgfplots ybar glued to the y axis

My ybars are glued to my yaxis. How can I increase the horizontal space between the axis and the first bar, making them more condensed? I already tried setting x = 5cm for instance, but I just want ...
2
votes
0answers
262 views

Free space in bar-chart with empty entries

I would like to plot some data set with the ybar option of pgfplot. But not all entries are nonzero. The zero entries waste space between the bars and when the plot gets crowed it is not clear anymore ...
3
votes
1answer
285 views

pgfplots: show x tick labels for data below ymin

I have a very simple bar chart plot. My problem is when I set a ymin value, all x labels whose values are below that threshold will not be displayed. I'd rather have the labels but no values shown. ...
1
vote
0answers
527 views

Plotting a histogram from a dat file using pgfplot [closed]

I want to create a histogram from a dat file with two columns, error and frequency. It also has a large amount of bins, 501. I have followed instructions provided elsewhere on this site but the data ...
6
votes
1answer
596 views

Lining up angled tick labels on a pgfplots bar plot

I'm trying to produce a bar chart for publication with math text in the tick labels. The most readable layout would be to angle them, but when I do they clash with the axis and are difficult to relate ...
4
votes
1answer
734 views

Adjusting width of ybar interval separator to width of histogram bars

I have an array of numbers for which I want to create a histogram for the first 22 entries. I want to show both the first few entries of the array as a bar plot as well as the histogram in two ...
4
votes
1answer
842 views

pgfplots: Positioning “node near coord” at the bottom of the bar

I would like to position nodes near coords at the bottom of the corresponding bar, right by the X axis. Here's what I've got now: \documentclass{report} \usepackage{pgfplots} \begin{document} ...
6
votes
1answer
349 views

pgfplots: Aligning multiple bars and marks horizontally along symbolic X-axis

I want to plot average values of some measure as bar charts with error bars and its maximal values as marks above the bars. I use two separate plots for that now. The problem is aligning marks with ...
5
votes
1answer
593 views

Filling the bars in stacked bar plots with hash or dot points

I was looking for a way to fill the bars in bar plots or stacked bar plots with hashes or dots (something like the following figure). Since it took me a long time to figure it out how to do it, I ...
5
votes
2answers
253 views

stacking negative value for ybar

I would like my ybars to be stacked the same way positively than negatively. It works for positive values but not for negative ones. On the given example, ThirdCol should be stacked negatively. Any ...
2
votes
1answer
492 views

Need help in drawing the following Stacked Bar Graph

I want your help in drawing the following figure. I think it is called as stacked bar graph.
4
votes
1answer
651 views

pgfplots - how to create a horizontal line plot in a bar chart with symbolic x axis labels

I was wondering if there was a way to get the line plots "Unseamed" and "Requirement" to span the whole width of the graph not just from the centre points of the first and last x axis labels. Is there ...
10
votes
1answer
3k views

Grouped bar chart

I'm trying to construct a grouped bar chart and have three questions I can't seem to find the answer to: 1) How do I modify the spacings between the groups? Or at least make sure that no bars are ...
2
votes
0answers
156 views

Multiple Labels on X coordinate when using symbolic coordinate [closed]

I am using pgfplots to plot bar charts; when I try to use symbolic labelling for the x coordinates, I get the labels repeating. Any ideas why, the snippet is below. \begin{figure}[!h] \centering ...
5
votes
2answers
539 views

Horizontal waterfall chart with labels for each bar

I've looked through similar questions here and here, but I'm still stuck. Basically what I'm trying to achieve is this plus bar labels: I have two problems: 1) My code sucks. Right now the y-axis ...
3
votes
1answer
629 views

Missing bars in bar chart

I am trying to draw a bar chart in which each independent variable has multiple bars showing its performance in different areas. The problem I am having here is that the bars for the third variable is ...
3
votes
1answer
716 views

pgfplots - Number above one of the bars in the bar chart

I want to put a number above only one of the bars in the bar chart. For example, above the bar A, I want to put a number say 200. Other bars will not have any number at the top. This is my code. ...
3
votes
1answer
347 views

Spacing bar between bars is too high in a bar plot with error bars [closed]

\documentclass{standalone} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{axis}[ title = {ring enrich.}, ybar, width=10cm, xtick={1,2}, xticklabels={% before, after, }] ...
5
votes
0answers
149 views

How can I create a 3D Manhattan bar chart? [duplicate]

I have some data which I would like to visualize. This data are 3-tuples of integers: (Threads,Sum,# of occurences) (1,2,20) (1,7,18) (1,100,25) (2,7,15) (4,103,24) I would like to visualize this ...
11
votes
1answer
2k views

pgfplots bar plot: spacing inbetween bars

How can I increase the spacing between the bars in a bar plot from pgfplots? \documentclass{minimal} \usepackage{pgfplots} \pgfplotsset{compat=newest} \begin{document} \begin{tikzpicture} ...
4
votes
1answer
481 views

Bar overlapping in bar plot

I created this graph using pgfplots: As you can see, the bars overlap near 0. How can I solve the problem? MWE \documentclass[12pt,a4paper,twoside,openright]{book} \usepackage{tikz} ...
4
votes
0answers
334 views

Create bar graph wider [closed]

I created a bar graph using pgfplot and option ybar. I would get a graph wider. I used width option \documentclass[12pt,a4paper,twoside,openright]{book} \usepackage{tikz} ...