2
votes
0answers
36 views

pgfplots stacked bar chart with markers

I have a stacked bar chart. I would like to add markers to the chart in some values. I am trying to create something like in the stacked bar chart. Is it possible to add markers instead of another ...
3
votes
1answer
39 views

Showing all the decimal numbers on the y axis clearly in a given chart

I would like to show my y axis as follows: Here is my code: \documentclass[english,12pt]{standalone} \usepackage{tikz} \usetikzlibrary{patterns} \usepackage{pgfplots} \pgfplotsset{compat=1.10} ...
1
vote
0answers
51 views

Create a bar char from CSV

I have a .csv file that looks like this: gender.csv GENDER,NUMBER,PERCENT MALE,20,20 FEMALE,80,80 TOTAL,100,100 I want to create a bar chart using MALE and FEMALE. GENDER can be the chart name or ...
4
votes
1answer
48 views

pgfplots - legend displays incorrectly for stacked bar chart

I have a problem with formatting the legend correctly. Here is my code: \begin{figure}[H] \centering \begin{tikzpicture} \pgfplotstableread{ x Order m0 m132 m3 m460 ...
3
votes
1answer
50 views

ybar overlaps axis line (and xtick removal)

When I use the MWE below my bar plots are overlapping partly the black x-axis How is it possible that the bar graph starts exactly above the x-axis and not on top of it? And is there a way to ...
3
votes
1answer
41 views

pgfplots bar chart: single symbolic x coord results in “! Package pgfplots Warning: Axis range for axis x is approximately empty; enlarging it”

How to avoid the error "! Package pgfplots Warning: Axis range for axis x is approximately empty; enlarging it" when there is only a single symbolic x coord in bar chart. Please see the following MWE: ...
5
votes
1answer
142 views

Line graph superimposed on “Grouped Stacked” bar graph with pgfplots?

I need to superimpose a line graph over a stacked grouped bar graph (similar to answer to the question: Two level labels in bar plot). I have to superimpose a line graph for each group (it breaks at ...
1
vote
1answer
52 views

how to add annotation to ybar pgfplots with symbolic x coords

I would like to add an annotation, or better, an arrow to a particular ybar in a plot, but I am struggling with the symbolic x data. I've used \pgfplotsinvokeforeach to read in variable data, and so ...
4
votes
1answer
88 views

Grouped BarChart

I would like to have all 4 graphs on one page (one panel) by using minipage. Also is it possible that I can have my graphs standing vertical instead of horizontal? Thank you. \documentclass{article} ...
3
votes
0answers
161 views

Decorating a PGFPlots bar graph with Tikz decorations

Update :- This appears to be a problem in which nodes near coords are handled by PGFPlots and incompatibility with Tikz decorations and fading library. I simply commented the nodes near coords line ...
4
votes
0answers
92 views

grouped bar colors in pgfplots

I have a simple grouped bar chart but would like to have all group bars the same color. Currently each bar in a group is colored, possibly because of the way I have used addplot. I've tried to use a ...
3
votes
1answer
73 views

Unable to read in text labels for pgfplots bar chart

I've started using pgfplots and can plot scatter plots where all data is numeric, but I'm having no luck at all with bar charts where the xlabel is text. I've tried to find a solution in the manual ...
4
votes
1answer
91 views

Centering bars on xticks in pgfplots

My wife is working on her master thesis and we are trying to make some bar graphs to use with it. We have managed to create a nice-looking graph, but the labels/xtick does not align in center. When ...
1
vote
1answer
133 views

Grouped Bar-Chart, all four in a panel

I am tryin to show all four graphs in a single panel page. Also, I want to see my graphs being very professional for beamer presentation in a single frame. Thanks. \documentclass{article} ...
8
votes
1answer
124 views

Help with a simple bar plot

I have some data in a table; the first column has some names; the second column associates a "category" to each name, and the third column associates a "section" to each name. All entries are ...
3
votes
1answer
104 views

Errors when plotting a bar chart

This is my crude attempt to create a graph from copied example. I want to plot the diseases on the Yy axis and QoL scores on x axis. It has resulted in errors. Could anyone be kind enough to point out ...
3
votes
1answer
73 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
513 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 ...
6
votes
1answer
316 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
95 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
126 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 ...
5
votes
1answer
579 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
525 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} ...
4
votes
1answer
265 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
144 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
208 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
20 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 ...
4
votes
2answers
421 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
226 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} ...
2
votes
1answer
197 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 ...
5
votes
2answers
247 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}[ ...
3
votes
0answers
37 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}, ...
3
votes
1answer
137 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
231 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 ...
3
votes
1answer
244 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
267 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 ...
1
vote
0answers
242 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 ...
1
vote
0answers
484 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 ...
5
votes
1answer
377 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
534 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 ...
3
votes
1answer
649 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
294 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
439 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
1answer
192 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
467 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
377 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 ...
9
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
131 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
479 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
540 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. ...