Use this tag for questions related to annotating plots, e.g. adding descriptive labels or annotations to data points.
Questions tagged [annotate]
490 questions
0
votes
1 answer
ggplot annotate with italics and variables not working in R
I have the following dataset (of which this is a subset):
structure(list(Session = structure(c(2L, 1L, 1L, 2L, 2L, 2L,
1L, 2L, 2L, 2L, 1L, 1L, 1L, 2L, 2L, 1L, 1L, 1L, 2L, 1L, 2L, 2L,
1L, 2L, 2L, 2L, 2L, 1L, 2L, 2L, 2L, 1L, 1L, 2L, 1L, 1L, 1L, 1L,…

CanyonView
- 401
- 3
- 15
0
votes
0 answers
CakePHP 4.2 Annotate: incorrect app namespace
I'm using CakePHP version 4.2 and am noticing some odd behavior from the annotate script that comes bundled with the API. For one component, the annotate script wants to default to the App\ domain that is CakePHP's default. I've changed the…

tjb74
- 59
- 1
- 2
- 8
0
votes
1 answer
R: swimplot package annotate
I have a swimmerplot builded with the swimplot package in R and want to annotate every bar with the factor/text from another variable of the data.frame which belongs to the respective id/patient.
I cannot share the data, but here's the piece of code…

Erin Sprünken
- 400
- 2
- 13
0
votes
1 answer
Having issues while annotating labels on map with different projections using matplotlib and geopandas
I'm using a default map like:
world = geopandas.read_file(gpd.datasets.get_path('naturalearth_lowres'))
I can successfully annotate labels to this map from another GeoDataFrame (called sample_gdf here) with the following for loop sample:
for idx,…
0
votes
1 answer
annotate_figure does not center the title
I have a problem with annotate_figure. Unfortunately the problem does not occure when I prepared my reproducible example. I arranged 5 plots with ggarrange in one long column and I would like to have a title. However, this title is not centered (add…

T.Tree
- 91
- 5
0
votes
1 answer
Django | Annotate objects to query
I am currently struggling to figure out how to deal with the following problem:
Imagine I got this two models:
class author(models.Model):
name = models.CharField(mac_length=50)
...
and
class book(models.Model):
author =…

MichaelKleine
- 159
- 1
- 9
0
votes
1 answer
Django query to fetch top performers for each month
I need to fetch the top performer for each month, here is the below MySql query which gives me the correct output.
select id,Name,totalPoints, createdDateTime
from userdetail
where app=4 and totalPoints in ( select
max(totalPoints)
FROM…
0
votes
0 answers
geom_histogram overlaying with Transparent Rectangle
I want to draw a histogram with background color. So I used geom_histogram + annotate ("rect") function. However, the color of histogram and annotate's rect is overlaying!
I don't want the interruption about the color...
.
ggplot(fol,…

haeoda
- 1
- 1
0
votes
1 answer
Matplotlib: draw ellipse to annotate on top of logarithmic scale
Using matplotlib, I would like to draw an ellipse on top of a semilogy plot.
Consider the following figure and the associated code.
import numpy as np
import scipy.io
from matplotlib import pyplot as plt
from matplotlib.patches import…

TheDon
- 159
- 7
0
votes
1 answer
Django: Display Count of Ratings in ListView
I just started learing django and I'm trying to display a Product with the Amount of Ratings it has in a ListView. But I fail to generate the expected output.
models.py
class Product(models.Model):
name = models.CharField(max_length=200)
…

uff123
- 3
- 2
0
votes
1 answer
annotate cannot find rake executable
I'm using ctran/annotate_models to annotate my models and route files. I'm now getting an error:
$ annotate -r
$ROOT/usr/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/lib/bundler/shared_helpers.rb:151:in `block in cripple_rubygems': can't find executable…

fearless_fool
- 33,645
- 23
- 135
- 217
0
votes
1 answer
How to annotate rails engine models with the annotate gem?
I am trying to annotate my engines inside of a rails 6 project.
on the root app in the gem file I have
group :development do
gem 'annotate'
end
and this works just as expected. When every I run migrations all my models annotate perfectly
now my…

MZaragoza
- 10,108
- 9
- 71
- 116
0
votes
1 answer
How can i use `parse = T` and functions like round in a geom_text paste command?
I want to add the results of multiple linear models to my plot as a geom_text , they are stored in the same tibble as the scatterplot data. Since i want to use the approx symbol (%~~%) and the r squared as superscript (r^2) is set parse=T inside the…

m4D_guY
- 166
- 1
- 11
0
votes
1 answer
Error: Aesthetics must be either length 1 or the same as the data (1) when I want to annotate in facet_wrap in R
I'm trying to annotate just first plot in facte_wrap function but it doesn't work!I did search but couldn't find an answer that why I get error.Thanks in advance :)
This is the plot:
Here is my…

fahimeh rashidabadi
- 43
- 5
0
votes
1 answer
Django Annotate - Concat from last created ManyToMany Object Fields
class User(models.Model):
name=CharField()
class Address(models.Model):
user= Foreignkey(user, related_name="Addresses")
buildingname=CharField()
subbuildingname=CharField()
town=CharField()
...
I have a models like top…

Utku Cansever
- 180
- 2
- 16