Questions tagged [annotate]

Use this tag for questions related to annotating plots, e.g. adding descriptive labels or annotations to data points.

490 questions
0
votes
0 answers

R ggplot2 annotate fails

I have a script in R that is doing a print of graphics automatically in form of a loop. I try to implement into the ggplot an annotation using annotate. But it doesn't work. Here's the code: sp<-ggplot(data=suche,aes(x=Datum)) +…
moritz69
  • 1
  • 2
0
votes
0 answers

Tableau Desktop - Difference between Annotate Mark vs Annotate Point

I'm getting confuse between Annotate Mark & Annotate Point .
0
votes
0 answers

How to uplift the arrow in the matplotlib annotate

I have the code for matplotlib HIST and arrow annotate. Here my arrow is not pointing at the points allotted. what could be the problem in the code. Kindly help [enter image description here](https://i.stack.imgur.com/tuPAz.png)
0
votes
0 answers

Why does Annotate and Count in Django behave this way?

I have two models Post and Tag(given by django-taggit app). So they make use of generic foreign key concept. If i query posts like: posts = Post.objects.annotate(num_tags=Count('tags')) and try to retrieve value of num_tags for first result in…
0
votes
1 answer

Multiple graphs have problem when use annotate

I have a data set (generated as below) and made 3 graphs G1, G2, G3 (codes are below). When I print a graph after creating it there is no problem. However, If I print them after all of them created, only the last graphs is ok but the first 2 have…
0
votes
1 answer

How to set xytext as starting point for annotate arrow using matplotlib?

I would like to gain more control over the starting point of the annotation arrow in Matplotlib. It seems like the arrow starts at the center of the bbox of the annotation text. However, in many cases I would like to make the xytext coordinates the…
Adriaan
  • 189
  • 1
  • 8
0
votes
0 answers

Django one column values to one column concat value using annotate Subquery returns more than 1 row

hellow my models see the blow class IP(models.Model): subnet = models.ForeignKey(Subnet,verbose_name="SUBNET",on_delete=models.CASCADE,related_name="ip_set") ip =…
Jake Nam
  • 33
  • 1
  • 4
0
votes
1 answer

ggplot annotate brakes axis

i want to insert a text into my ggplot chart. The text got a subscript and a supersubscript like X[X} = 1,00*Y R^2 = 0,90. For that i used the funktion paste(expression()) into annotate(label=()). In the graphics pane the whole plot looks fine, like…
Jasper
  • 3
  • 2
0
votes
0 answers

Matplotlib figure coordinates don't seem correct

As per the block of code below, using ax.annotate() it appears that the outer extents of the Figure object are not properly captured by figure fraction. I would expect the arrows to point right to the very corners of the plot, which as per first…
henrybish
  • 3
  • 3
0
votes
1 answer

In Django, how to annotate inside a M2M field?

I have these models: class Convocacao(models.Model): cursos = models.ManyToManyField(Curso) class RegistroConvocacao(models.Model): aluno = models.ForeignKey(Aluno) convocacao = models.ForeignKey(Convocacao) tipo =…
Neto
  • 11
  • 1
0
votes
1 answer

django annotate qs by objects using object_id field

Got user and role. How could i get annotated roles qs by users? from django.db import models, F, Q class User(models.Model): pass class Role(models.Model): ... user_id = models.PositiveIntegerField( verbose_name='Related…
Vlady
  • 45
  • 1
  • 6
0
votes
1 answer

django Count aggregate is not working as I intended

It's a code that reproduces the problem I experienced. models.py from django.db import models class User(models.Model): pass class Group(models.Model): users = models.ManyToManyField( User, related_name='groups', …
gypark
  • 251
  • 1
  • 8
0
votes
0 answers

How to create annotation with annotate and ggarange R

I need to write some text at my shared labels. I have 4 subplots in my plot and they share the same label axis, so I would like to put some annotation at the Y label (and X label too, but the x label I manage excluding the x labels from all plots…
oceanpath
  • 1
  • 3
0
votes
1 answer

Adding text in one of the four facets

I want to add a few texts in one facet out of four facets in my ggplot. I am using annotate function to add a text but it generates the text at a given location (x,y) in every facet. Because the data variables have different ranges of y in each…
0
votes
0 answers

Annotating numeric values on grouped bars chart in pyplot

Good evening all, I have a pd.dataframe called plot_eigen_vecs_df which is of (3,11) dimension, and I am plotting each column value grouped by rows on a bar chart. I am using the following code: plot_eigen_vecs_df.plot(kind='bar', figsize=(12, 8), …