The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
0answers
27 views

How can I horizontally align the bars of two barplots

I would like to align the clusters of the two barplots of the figure below. For instance, I would like that the cluster of "Program-2" on the second bar appeared just below the "Program-2" cluster ...
3
votes
1answer
45 views

bar chart - 'inner' x ticks?

i've successfully created my first 'bar chart' today: by the use of the code given below: \documentclass[tikz,border=1pt]{standalone} \usepackage[ngerman]{babel} ...
3
votes
1answer
86 views

Create Yes/No bar charts

I am collating data from a survey and I want to create a bar graph like the one below: Can anyone provide me with a template of that chart? I tried to inflect bar chart and stick the two together ...
0
votes
0answers
41 views

Bar Graph from a matrix

[ -1 0 1 2 3 4 5 6] [ 66247 5598 6541358 40899 1674 192 30 3] [ 58 9773 680 850448 5569 304 38 4] [ ...
3
votes
2answers
85 views

Stacked bar plot with explicit axis domain

I have a data table which contains positive and negative values for different categories (columns) as input. I want to visualize these values by a stacked bar plot, which shows a stacked bar plot for ...
1
vote
0answers
58 views

pgfplots - plusminus doesn't match its definition

I've been trying to make a ybar plot with error bar using pgfplots. I want to make this graph inside a tex template, but one weird thing has occurred - when I inserted the following code (be more ...
6
votes
1answer
89 views

plot legend : increase its area

So my question in general is what is the method to change the precise area of the rectangle used in pgf plots? Yes, to make it larger ... MWE: a typical bar chart ...
5
votes
2answers
115 views

Barplot: alternating colors, bars side by side

I'd like to have a barplot with bars side-by-side and with alternating colors. It should look like the ouput of the code below, just with alternating bar colors. (Got the idea from here) ...
3
votes
1answer
99 views

tikz ovelapping bars

The following code \documentclass[12pt,a4paper,onecolumn, openright]{report} \usepackage{pgfplots} \usepackage{tikz} \begin{document} \begin{figure} \centering \begin{tikzpicture} ...
2
votes
1answer
76 views

I need same label to repeat 3 times in bar chart tikz [closed]

\begin{figure} \centering \begin{tikzpicture} \begin{axis}[ ybar, ymin=0, width = 12cm, height = 5cm, bar width=20pt, ylabel={number of ...
3
votes
1answer
29 views

pgfplots@y@inverseveclength ->infty

I'm experiencing problems with pgfplots. The following piece of code was automatically generated by a piece of software I'm working on. \documentclass {standalone} \errorcontextlines 10000 ...
2
votes
0answers
66 views

pgfplots, representing bars from same category and series adjacently

I would like to represent the number of counts from specific cell types on a bar chart. The cells are from different mutants, consequently there are four series (742, 743, 744, 745). However there are ...
6
votes
1answer
79 views

How to do a shift/offset of ycomb or ybar **in y-direction** without stacking in pgfplots?

I am looking for a way to shift the reference bars in an XRD plot in order to be able to compare two or more plots in the same axis environment but have the references only where they apply. This ...
1
vote
2answers
122 views

Bar from bar chart without value

I would like to add a single bar to my chart, but without any value. Unfortunately when I skip adding proper value with label x in coordinates, it (bar with label x) disappears from chart. ...
2
votes
0answers
48 views

Barchart, Boxplot Data Table PGF Math Errors from mixed format inline data

My code for a horizontal bar chart with a summarizing boxplot is coming together, but I still have a nagging PGF Math problem if I try to plot the boxplot values, which are commented out at the bottom ...
3
votes
0answers
48 views

My boxplot draws but the coordinates are NaN when I try to label the plot

I have been slowly getting my barchart with a boxplot to come together. My current project is to label the whiskers, quartiles and median. Using examples from the manual, no label is printed. This is ...
7
votes
1answer
143 views

Adding horizontal lines to pgfplots bar

I am using a pgfplots stacked bar to display the aggregated energy demand of a houshold and the associated price. When the energy demand exceeds a certain threshold, than a higher price has to be ...
1
vote
1answer
63 views

Bar graph swallowing one group of entries [duplicate]

If followed an example from sharelatex.com for a simple bar graph. \begin{tikzpicture} \begin{axis}[ x tick label style={ /pgf/number format/1000 sep=}, ylabel=Year, ...
5
votes
2answers
266 views

pgfplots: Clipping Everything Outside a Specific Area

I want to add information to each column of a histogram. every node near coord is probably the best approach. It works well with bar plots but not with the histogram: \documentclass{article} ...
1
vote
0answers
105 views

PGFPLOTS: Insert a boxplot outside the chart axis labels, much like GNU R

I have some code that plots a horizontal barchart. What I would like to do is put a boxplot or confidence interval above my horizontal axis which is on top of the chart. GNU R (see R In Action, Robert ...
2
votes
1answer
107 views

Conditional alignment of labels in pgfplots bar chart

I'm trying to make a bar chart with pgfplots. I'd like the labels to be plotted inside the bars, except when there is not enough space. In that case the label should be shown next to the bar. I've ...
0
votes
0answers
76 views

Break y axis for values exceeding range

Related to this question regarding values that exceed the axis range (which also provides the code for a MWE), I would like to modify the output slightly: instead of displaying the numbers above the ...
6
votes
1answer
131 views

Using PGFPLOTS to make vertical barchart with labels from data file

I have a version of this working with LaTeX Writer and PGFPLOTS 1.5.1 on my iPad. Moving over to Linux and TeXLive 2013 with PGFPLOTS 1.10 sees the Y AXIS LABELS disappear after the first. The bars ...
4
votes
0answers
63 views

Grouped overlay bar chart in LaTeX? [duplicate]

I have been trying to create a grouped overlay bar chart in latex using pgfplots, much like this one (not actually mine, found randomly on Google): What I'm trying to achieve is not a stacked bar ...
4
votes
1answer
162 views

2D Bar Chart in 3D Space

I have a graph in 3D space and I'd like to add a histogram along the vertical axis. The bars are supposed to be spaced equally along the vertical axis. I am, however, unable to get the positions of ...
3
votes
1answer
137 views

Changes in pfgplot barchart

I found many, many helpful things on tex.stackexchange for pgfplots - thanks for that! But i can't figure out how to: insert a new line after "without" or "with" hide value 0 or the whole bar ...
1
vote
1answer
111 views

Show my results bar chart in latex

I have a results of my research in the form of a bar chart created from excel work sheet. The image of my excel sheet and bar chart is given in the figure below; Please help me with code, I am new to ...
8
votes
3answers
157 views

Is it possible to create a barchart in a table?

I'm using booktabs to display some profiling data. I would like to add bars to each row to visually indicate the quantities in one column. I would like to use a table instead of a barchart since ...
5
votes
3answers
328 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
122 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
86 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
146 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
124 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
83 views

pgfkey to set anchor for negative values in a bar chart

I have a ybar chart with positive and negative bars and "node near coords". I'd like to have the nodes of pos. bars at the top and nodes of neg. bars at the bottom/under the bar. With the following ...
3
votes
1answer
92 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: ...
4
votes
1answer
144 views

Position of the error bars in bar graphs in TiKZ

Help! I cant seem to get the position of the error bars right on top each bar. Also for some reason my legend seems to be off position too. \documentclass{article} \usepackage[utf8]{inputenc} ...
5
votes
1answer
361 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 ...
0
votes
0answers
69 views

Making charts using alternative tools?

I would like to create some charts including bar and pie in my LaTex file, so far I found some useful packages in order to make them such as pgfplots. I have also looked into some science papers and ...
1
vote
1answer
168 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
125 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
283 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
1answer
144 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
130 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
193 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
185 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} ...
4
votes
1answer
143 views

Set labels to column title in a stacked bar graph

I was trying to build a stacked bar graph which displays the labels of the columns title not in a legend, but directly near the bar itself. So far, I came up with the following: ...
8
votes
1answer
135 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 ...
1
vote
0answers
23 views

How to draw a bar chart from multiple measurements with mean and variance [duplicate]

I have a few hundred measurements in a simple CSV file. I want a bar chart which indicates mean and variance pretty much like this: I've browsed various archives, such as the PFG plot gallery, but ...
5
votes
1answer
138 views

axis lable in millions/thousands

I have a simple barchart, on the y axis i have values which are displayed full written (e.g. 5'000'000). I dont want to change the orginal data but change the y-axis lable into a fullwritten value ...
3
votes
1answer
201 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 ...