Questions tagged [nodes-near-coords]

A (scatter) plot style for pgfplots which places text nodes near every coordinate.

Filter by
Sorted by
Tagged with
1
vote
1answer
26 views

Positioning symbolic labels above bars

Looking to position the symbolic x tick labels above the bars. Also, wondering why the last bar isn't showing correctly. % Minimum working example \documentclass[varwidth=false, tikz, border=10pt]...
1
vote
1answer
13 views

“Node near coord” at the bottom of bar plots, but with symbolic coordinates

I need to place the "node near coords" below the bars of a bar plot instead of above, similarly to this question, but with a difference. \documentclass{report} \usepackage{pgfplots} \begin{document} \...
2
votes
1answer
26 views

How can I move certain nodes near coords in a bar chart depending on their value? [duplicate]

I want to write the values of bars in a bar chart (ybar) inside each bar, except for when there is not enough space. In that case, I want to write the value above the bar. This is my code: \...
3
votes
2answers
52 views

pgfplots: How to hide “nodes near coords” if value is 0 (empty)?

Assumed we have this Minimum Working Example (MWE): \documentclass{standalone} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{axis}[ ybar, ...
4
votes
3answers
93 views

How to show a “node near coord” even when it is out of bounds (with clip = true)?

I have a ybar graph using the pgfplots package in which I use nodes near coords to display y values near the tops of the bars. There are some outliers in the data, for which I'd like to show a bar ...
3
votes
2answers
39 views

nodes near coords from table

I want to add a non-numerical value as a node on a histogram. The labels come from a column in a table, fairly similar to this other question, i.e. using value \thisrow{<column>} as <macro>...
1
vote
1answer
37 views

Show error values on error bar

How can I show values of error on top of error bar? In the figure, I want to add values which are written with pencil in black. MWE: \documentclass{standalone} \usepackage{pgfplots} \pgfplotsset{...
1
vote
1answer
36 views

pgfplots nodes near coords overlap when fixed, but other labels are misaligned?

The nodes (data labels) are being covered up by the error bars. I tried fixing this with: every node near coord/.append style={rotate=90,xshift=+0.7cm,yshift=-0cm} But, when I did this, the other ...
0
votes
1answer
62 views

How to add floating label to bubbles in scatter plot in pgfplots in latex?

I am trying to add labels on the scatter plot but the problem is the plot being too congested. I want my labels to be floating, i.e, find the place wherever possible. I tried this code: \begin{...
2
votes
2answers
233 views

PGFplots: Changing style of labels of nodes near coords

Trying to adopt this answer approach, I didn't manage to get what I want of changing the style of the nodes near coords labels. I would like to make this code poles={red, fill = blue, draw} work and ...
0
votes
1answer
154 views

Shifting specific labels in pgfplots

I'd like to be able to modify the position of specific labels in a difractogram, most are ok, but some are positioned on top of each other and those are the ones I'd like to move. \documentclass{...
1
vote
2answers
148 views

Editing label on bar chart

Hi I drew a bar chart and added the label onto each bar. However, as you can see I'm trying to state the relative difference between two facades, in some cases, i.e. the first two bars and the last ...
1
vote
1answer
111 views

Bar figure and inside text with icons

How can I reduce the the space between the age groups and add a male or female icon on the top from fontawesome package? Could the age-groups be in the middle of the male and female distribution? ...
1
vote
2answers
137 views

GRAPH OF percentages

I want create a definite structure. It's a percentage chart. This is my objective, I want to get this: I try with this code \documentclass[a4paper,twoside,12pt]{article} \usepackage[T1]{fontenc} \...
3
votes
1answer
51 views

error message when using nodes near coords

I'm quite new to using LaTeX, I only recently visited a course about how to use it and I now have to write a code to pass this course. Anyway, I've encountered a problem as I tried to make a bar ...
1
vote
2answers
65 views

Put label on ycomb

I read data from two files and plot ycomb. I would like to calculate difference between values and put it on top of greater value such as shown in figure. How can I do this? \documentclass{standalone}...
0
votes
1answer
97 views

add categorical xticklabels at specified position

I am trying to make a bar chart for categorical data, where each category has a score and the number of items in a category is represented by the width of the bar. Based on Bar chart from CSV file ...
0
votes
2answers
166 views

How to add additional x-axis labels to each bar in a ybar chart? [duplicate]

I've drawn a ybar chart in pgfplots as below, and I want to add additional x-axis labels, as indicated by what I've drawn by hand in orange. Question: How do I add additional x-axis labels to each ...
1
vote
1answer
160 views

Summation values in stacked bar chart instead of increment

I have a stacked bar chart and I would like to have the summation values displayed instead of the increment. I have the following code: \documentclass[border=0mm]{standalone} \usepackage{pgfplots} \...
3
votes
3answers
201 views

How to remove arrow from the Pgfplot pin option?

I was wondering how to remove arrow from pgfplots pin option. I do not want any line and want only text. Many Thanks in advance! Edit: Added MWE: I would like to remove the two arrows but want to ...
3
votes
2answers
425 views

Pgfplots: shift single nodes with nodes near coords

I use the following code. Is there a way to shift specific nodes of "nodes near coords" without placing every node itself which is a lot of work? The nodes at "Fichte" and "Kiefer" are overlapping ...
5
votes
2answers
153 views

How to make lines joining point a target - tikzpicture

I have been able to do the code below but it is still not what I need. I need points a1 through a5 to form a straight line to the point "Gol". How do I do that? The .dat files look like this (...
0
votes
2answers
394 views

How to decrease separation between different plots? bar graph pgfplots

\usepackage{pgfplots} \usepackage{amsmath} \include{macros/style} \include{macros/use_packages} \usepackage{indentfirst} \usepackage{graphicx} \usepackage{algorithm} \usepackage{algpseudocode} \...
2
votes
2answers
57 views

Horizontally align chart labels

This is a follow-up question of Labeling chart series with pgfplots. There I missed to mention that the labels inside the chart should be aligned horizontally above Metric 2 (i.e. horizontally ...
1
vote
2answers
226 views

pgfplot/tikz stacked bar chart, with compat=1.9 or later

Inspired by this question, pgfplot/tikz stacked bar chart, I've been trying to create a stacked bar chart with numbers at the end of the stacked bars. However, the location of nodes near coords was ...
2
votes
1answer
234 views

How can I plot a smooth line of fit through the following points and is there an easier way to plot (x,y) labels for each point?

\documentclass{standalone} \usepackage{pdfpages} \usepackage{tikz} \usepackage{pgfplots, pgfplotstable} \pgfplotsset{compat=1.12} \usepgfplotslibrary{fillbetween} \usepackage{amsmath} \...
2
votes
1answer
217 views

Wrong alignment of “nodes near coords” with respect to the bars when some values are negatives

I have the following MWE: \documentclass[12pt]{article} \usepackage{pgfplots} \usepackage{pgfplotstable} \pgfplotsset{compat=newest} \usepackage{filecontents}% write data file to make make MWE self ...
3
votes
1answer
417 views

Remove duplicate labels with symbolic y coords

I am new to pgfplots and have a problem with the following example: \begin{tikzpicture} \begin{axis}[title = Some fancy benchmark data, xbar, y axis line style = { opacity = 0 }, axis ...
1
vote
1answer
250 views

Custom text nodes for labeling ybar stacked plot using nodes near coords

I am trying to duplicate this origin plot using pgfplots. So far, I have this My MWE is \documentclass[9pt]{beamer} \usepackage[T1,OT1]{fontenc} \usepackage[utf8]{inputenc} \setbeamerfont{normal ...
1
vote
1answer
583 views

How to make particular nodes near coords labels bold in a pgfplots bar chart?

A follow up question to my previous question: I am trying to plot a simple bar chart. The data is read and sorted from a csv file. However I couldn't able to change the style of particular labels (...
7
votes
2answers
453 views

Adding units to pgfplots nodes in column chart

The picture below is almost what I need and is generated by the MWE below. All I require is to include percentage symbols on the labels on the nodes. So they should read: 34%, 22% and 13%. -----------...
2
votes
2answers
869 views

PGFPlots scatter graph point meta

I want to draw a 3D graph that uses point meta = explicit symbolic for the nodes near coord, and I also want to use meta = explicit symbolic (or something similar) for coloring the blocks in function ...
1
vote
1answer
166 views

pgfplots: label bars that are taller than the plot area in ybar chart

I want to indicate the values for the bars that are taller than the plot area in some way. Maybe by having the label inside the bar or on top of the boundaries of the plot area. Note that, I only want ...
3
votes
1answer
136 views

Make text color value dependent in matrixplot

I'm trying to tweak this plot: pgfplots: percentage in matrix plot ... to have the annotations change color depending on the value. Above 50% should be white and below should be black. I have a ...
0
votes
1answer
1k views

PgfPlots creating bar chart from csv

Helo, I am working on my thesis, and need to include some performance numbers of software I wrote. I measured performance of several actions across multiple executions with different amount of data. ...
1
vote
2answers
855 views

Make a White Background Behind pgfplots Node Label

I have a graph I'm trying to display and need to label each coordinate with the given values. For a couple of the labels, the text overlaps the line. For just a single line, I could probably move ...
3
votes
1answer
219 views

Change the appearance of a single bar in grouped barplot

I'm trying to change the appearance of a specific bar in a grouped barplot with TikZ. But I can't find anywhere how to do what I want to achieve. Specifically, I have three groups of three bars, ...
2
votes
1answer
341 views

Problem with nodes near coords in ybar pgfplot

I try to plot coordinates near the bars, it works but I get the error ! Dimension too large. <recently read> \pgfmath@x l.56 \end{axis} I can't work with sizes bigger than about 19 feet. ...
2
votes
1answer
362 views

Stacked bar plot: is there a better way?

I am learning to do the following type of stacked bar chart (originally produced with Tableau): I don't really care that the text "Target Class" is on the upper left, in fact I like it better on the ...
3
votes
1answer
151 views

How can you view the coordinates of the points in a linear regression plot?

I did some data collection and graphed this data using the pgfplots package. I created this linear regression graph using y={create col/linear regression={y=Y}}] as is described in the manual. This ...
2
votes
1answer
328 views

Adjusting position of individual nodes in bar chart [duplicate]

The labeling of the bars is sometimes behind the error bar. Lifting them all isn't elegant but I haven't found a way to adjust the positions of the individual nodes. I included the third set of bars ...
2
votes
1answer
982 views

Text nodes for nodes near coords

I'd like to have the customized text node labels for nodes near coords, For example, instead of the numbers (7,10,15 ...) on the right side of each bar, I'd like to have some text. \documentclass{...
1
vote
1answer
329 views

How can I stop the symbolic x coords to be plotted twice?

I have created a bar diagram similar to: How to create symbolic x coords without losing last bar But at a certain width the symbolic x coords are plotted twice. How can I manage the x axis correctly? ...
2
votes
1answer
477 views

pgfplots, xbar stacked: Prevent overlapping by shifting only one node

The following example results in two overlapping nodes (column 4 and 5 in row 0): \documentclass{standalone} \usepackage{pgfplots,pgfplotstable} \pgfplotsset{% ,xmin=0% ,/tikz/font=\...
1
vote
0answers
89 views

Adding a symbol to nodes near coords in pgfplots [duplicate]

I'm currently making a bar plot with pgfplots and have numbers in percent on the x axis. I want to show the values directly at the bars for which I use nodes near coords. But because the values are ...
3
votes
2answers
2k views

pgfplots legend order

The following code draws a bar chart with number labels. I want the entries in the legend to be the other way around i.e. for there to be a gray box at the top with the label "two", and a white box ...
4
votes
2answers
525 views

Tikz stacked bars plot - change labels

I have the following bar plot. The code for this is: \documentclass{standalone} \usepackage[x11names]{xcolor} \usepackage{tikz,pgfplots} \usepackage{graphicx} \usepackage{ifthen} \usetikzlibrary{...
4
votes
1answer
694 views

Add colored circle around specific points in pgfplots

I wanted to add some transparent circles around specific points in my pgfplot like this: here is what I have so far: \documentclass{article} \usepackage{tikz,pgfplots} \pgfplotsset{compat=newest} \...
1
vote
1answer
925 views

pgfplots: Set point meta

Related question (among others): Generic point labels in pgfplots I wish to set the labels of points in my graph to some given string values (ideally defined by a previous macro). Apparently there ...
2
votes
1answer
1k views

How to specify number of decimal places in node near coords?

Is there a way to specify that node near coords labels should use 1 rather than 2 decimal places? For example, in the code below, Singapore is printed with 8.1 (correct), but Niger is printed with 46....