2
votes
1answer
49 views

Add label to bars in bar chart

I am trying to get labels over the bars in my bar chart. I found \node [above] at (axis cs: 1, 810) {$Q1$};, but this one centers itself in the middle between two bars. I want the value from the ...
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 ...
3
votes
0answers
64 views

How to automate right node alignment for labels from table AND marker size AND marker color of scatter plot?

Problem: Labels from table are placed right, but overlap. Is there a way to automate alignment of the labels near nodes so that labels do not overlap? This is a small example but I have bigger table ...
9
votes
2answers
2k views

Pgfplot axis labels

I'm trying to adjust the position of my axes labels and I'm having some trouble: \documentclass{article} \usepackage{float} \usepackage{pgfplots} \usepackage{graphicx} \begin{document} ...
5
votes
2answers
124 views

Labeling node values on the axes

I want to draw some curves and some special coordinates on the curves, then label the nodes on the axes. So far I have done it manually like this (it's a diagram for the Markowitz risk premium in case ...
5
votes
3answers
116 views

How can I Insert Additional label on the z-axis in ternary diagram?

I need help on how I can insert additional label X_{Bi} on the z-axis of the subfigure in my ternary diagram. In the example shown below I can only insert it at a location too far away from the middle ...
3
votes
2answers
175 views

How can I find the location (coordinates) between two ticks in pgfplots?

I would like to change the behavior of pgfplots for the placement of tick scale labels and units. My desired placement would be or between the last two ticks or in place of the second last tick. For ...
6
votes
1answer
1k views

individual tick label style with pgfplots

given the following code, I want to modify the tick labels in such a way, that for negative values of x, the labels are located above the x-axis. How can I realize this? \documentclass{report} ...
1
vote
0answers
271 views

pgfplots: Plotting one data set with label and the other without label [closed]

I am trying to generate a plot using two data series and have the labels just on one of the series, but not the other. In the following example I would like to see the labels on first \addplot, but ...
6
votes
1answer
360 views

Pgfplots: Drawing Arrows Along Contour Plots

I would like to draw "stealth" arrows in place of the "0" labels along the trajectory in the phase portrait pictured below. I decided to draw the trajectory using the contour functionality of ...
3
votes
1answer
1k views

pgfplot — label, referencing and caption

I've the following pgfplot: \begin{center} \begin{tikzpicture} \begin{axis}[ xlabel = Number of threads (\#), ylabel = Task completion time (seconds), ...
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. ...
3
votes
1answer
162 views

Shift y labels, stop y labels being dropped

I have a const plot with intervals on the y-axis. I'd like my y labels to be centered in each bar, as it would be if this were an xbar interval graph. Also, and more importantly, I'd like more ...
3
votes
2answers
216 views

How to reference an axis label, e.g. xlabel

I'm new to that forum but it already helped a lot, thanks for this! But now I really got stuck. Basically I'm looking for a possiblity to reference the xlabel of an axis in a TikZ picture. The ...
5
votes
1answer
346 views

Custom axis marks in double logarithmic plot

I'm getting quite frustrated with my lack of pgfplot understanding and was hoping somebody could help me figure out how to get more readily readable/understandable x axis tick marks. I have the ...
8
votes
1answer
676 views

Pgfplots contour gnuplot crazy labels

This is driving me mad. I am tryng to create some contour plots, but I get them full of labels, so that they are unreadable! I can't even see the lines or read the values because they are too much. I ...
8
votes
1answer
1k views

Different color for individual bar in bar chart & adding bar labels

Please consider the following MWE. There are three things I would like to do: Individual colouring For the last element ("not rejected") I would like to fill the bar with another color (e.g. ...
10
votes
1answer
2k views

How to change label and ticks of a pgfplots colorbar?

I have a 3d plot with colored surface and a colorbar made with pgfplots. My probably related questions are: How can I set the label of the colorbar? What are the equivalents of zticks (positions of ...
8
votes
1answer
576 views

Two level labels in bar plot

I need to group the labels in the x axis by putting a second level label. I need to separate the nodes that are grouped from the other ones or marked them somehow. For example, if I have the labels ...
3
votes
0answers
931 views

Set ticks precision with pgfplotsset [closed]

First, this forum has been a great resource for me for some time now. I recently started using pgfplots and tikz, so some things I still need to figure out. I hope my question will be clear and the ...
2
votes
1answer
412 views

pgfplots: x-axes do not align due to different labels

This is my first post, so I hope I do everything right :) I have the following problem: Using pgfplots I create two graphs next to each other which have identical y-axes, but different x-axes. I want ...
2
votes
1answer
485 views

pgfplots: putting marker labels outside of the plot

the following code: \documentclass{article} \usepackage[english]{babel} \usepackage{pgfplots} \usepackage{tikz} \usepgfplotslibrary{groupplots} \begin{document} \begin{figure} ...
5
votes
2answers
649 views

PgfPlots with labeled plots extend outside the graph box

Sorry for the confusing title. The MWE \documentclass{standalone} \usepackage{pgfplots} \begin{document} \begin{tikzpicture}[scale=0.75] \begin{axis}[ylabel=Y-Axis, xlabel=X-Axis, ...
1
vote
1answer
689 views

TikZ Label multiple plots outside of axis box

I'm endeavouring to make a graph similar to the following using PgfPlots and TikZ. I can make all of this work, except for the placement of the R=2, R=3, R=5, and R=10 markers on the left-hand ...
10
votes
1answer
2k views

pgfplots using strings *from data table* as x axis labels in bar chart

I've seen some of the other threads on using strings as x axis labels, but nothing that fits my situation. I'm trying to create a bar chart from a CSV file. I can do it so long as everything in the ...
4
votes
1answer
880 views

label curve and/or contour name created with pgfplot via gnuplot

I will want to name different contour as one can see it on topographic card. How to do that? I want label on different curve with the parameter that distinguish the curves. I have created 10+10 curves ...
5
votes
1answer
981 views

plotting a line in a barchart

Problem: line stops at given coordinates, ymax is not obeyed. \documentclass[a4paper,10pt]{report} \usepackage[left=1.5cm,top=2cm,right=1.5cm,bottom=1.5cm]{geometry} ...
4
votes
1answer
461 views

How to make a single barplot with different yticks, ytick labels and ylabel on its left and right side?

I have earlier asked two questions here related to barplots and labels/ticks for double y-axes: (1) How to make an xbar plot, with pgfplots, having different y tick labels on the left and right side y ...
9
votes
1answer
656 views

Use text data as mark labels in pgfplots

I have a table with numerical data and text in different columns, like this: 0 0 0.1 1 0 \pi 2 0 \frac{\pi}{2} I'd like to put text labels on a plot using the text in the third column ...
6
votes
1answer
774 views

How to make a pgfplots stacked xbar plot with bar-“explicit meta” labels computed from input table data

I am making a pgfplots stacked xbar plot where each bar has a distinct label, in addition to a numeric bar length. Each pair of bars also has a common label. I would like to mark each bar with its ...
4
votes
2answers
2k views

How to make an xbar plot, with pgfplots, having different y tick labels on the left and right side y axis?

I am making an xbar plot with pgfplots. I want this plot to show the results from a test, where people in different age classes are given scores. For each of these age classes a single person is the ...
4
votes
2answers
2k views

xlabel on top axis in pgfplots

I managed to get the x tick labels on the top axis of a plot, but the label of the x axis is still on the bottom axis. I couldn't find an option to get it to the top axis. Is this possible? Minimal ...
4
votes
2answers
2k views

Bar plot labels and grids

\documentclass[a4paper,11pt]{report} \usepackage{tikz} \usepackage{verbatim} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{axis}[ title = {Optimalization based upon co-occurences}, ...
9
votes
2answers
786 views

pgfplots: two labelings for a single 3d plot

I am trying to add a second labeling to my 3d plot, but I can not figure out how to do it correctly. The idea is to add a second axis without any grid, ticks, lines and nothing but labels and overlay ...
5
votes
1answer
290 views

pgfplots axis descriptions from file

I was wondering if there is any way to make pgfplots read the xlabel and ylabel from a file. This is similar to this question Using Labels from a File in PGFplot but I'd like to read the column ...
7
votes
2answers
3k views

Pgfplots: Replace x-axis numbering with labels on confidence interval plot?

Try as I might, I can't seem to replace the numbering on the x-axis with (arbitrary) labels. Here is a half-and-half, where the plot has been done in PGPPlots and I've added two of the x-ticks ...
5
votes
1answer
1k views

Date plot using pgfplots with odd tick label

How do I make the time label in the following image appear as "10:00" (i.e. 10 o'clock) rather than the unexpected and unwelcome "09:60"? Here's the code that I am using: \documentclass{beamer} ...