For questions related to labeling plot data points or bar labels.
Questions tagged [plot-annotations]
156 questions
0
votes
3 answers
Properly rotate and align annotation labels
The following code puts some points on the plane and draws a line from center to each point. For each point, there is a label and want to put the label after the point. Therefore, from center, we see a line, then a point and then a text. I want to…

mahmood
- 23,197
- 49
- 147
- 242
0
votes
1 answer
Seaborn heatmap, format of annotations in non-diagonal cells
I generated a heatmap using seaborn version 10.1. I would like to format the annotations of each cell with fmt='.2g'
However, this seems to only affect the cells on the diagonal.
import seaborn as sn
x = np.array([[0.99082, 0.00102, 0.0, 0.0],
…

Dirk Schulz
- 87
- 1
- 7
-1
votes
0 answers
Format labeled values into scientific notation
I would like to change the value labels on my matplotlib bar chart to be in scientific notation. The values are in scientific notation in their original dataframe (I used the code line: pd.set_option('display.float_format', '{:.2e}'.format)), but…

alliemnguyen
- 1
- 2
-1
votes
1 answer
Trying to create a label for each point on a graph with matplotlib
I am creating a scatter graph of UK counties crime rate vs population and I want to have each point labelled with the name of the county so i can visualise it and see the relative safety of each county(using numpy, panda and matplotlib)
I haven't…
-1
votes
1 answer
How to add data labels to a line chart using Seaborn
I am trying to add data labels to a line chart that is part of a dual axis chart using matplotlib / seaborn, but can't seem to find a solution to get the labels to show
# Pandas for managing datasets
import pandas as pd
# Matplotlib for additional…

Tricia Ang
- 1
- 2
-1
votes
1 answer
Annotations with pointplot
I am using a pointplot in seaborn.
import seaborn as sns
sns.set_style("darkgrid")
tips = sns.load_dataset("tips")
ax = sns.pointplot(x="time", y="total_bill", hue="smoker",data=tips)
I would like to annotate all of the points. If there are points…

Trexion Kameha
- 3,362
- 10
- 34
- 60