Use this tag for questions related to annotating plots, e.g. adding descriptive labels or annotations to data points.
Questions tagged [annotate]
490 questions
1
vote
0 answers
Django annotate Count does not work on Many to Many table
I have a hierarchy of Django models (reduced to the essentials):
project/models.py
class Project(models.Model):
@property
def material(self):
return = m2m_Assembly_Components.objects.filter(assembly__room__project =…

Bouni
- 133
- 10
1
vote
3 answers
How to add a non database field to a database driven Django model, and set it via a QuerySet preserving its datatype?
I've got a Django model containing various database model fields.
One of the manager's querysets retrieves various aggregations via some annotate calls. Some of those annotations are custom made and retrieve float values from the database. Those…

Harel
- 1,989
- 3
- 26
- 44
1
vote
1 answer
Django Annotate a value with all fields
Say you have the following model:
class Student(models.Model):
student_no = models.IntegerField(primary_key=True)
GPA = models.DecimalField(max_digits=65535, decimal_places=65535)
year_of = days_on_market = models.IntegerField()
and you…

EarlyCoder
- 1,213
- 2
- 18
- 42
1
vote
0 answers
How can I make raw sql ManyToMany and Annotation in django?
class Post(models.Model):
user = models.ForeignKey(FBUser, related_name='posts')
group = models.ForeignKey(Group, related_name='posts')
class Comment(models.Model):
user = models.ForeignKey(FBUser, related_name='comments')
post =…

egaoneko
- 389
- 1
- 5
- 24
1
vote
0 answers
SAS SGPLOT Creating Angled Date Tick Marks
Hi I am trying to have my dates in the monyy. format on my xaxis, angle upward from right to left at about 45 degrees. I am unable to do this in sgplot. Used to be able to do it fine in an axis statement using angle=45 in gplot. SGPLOT does not…

Jibra
- 11
- 2
1
vote
0 answers
ggplot: How can I add a colored bar to the side of a plot based on the levels of a factor?
I have a plot and I am trying to add a simple bar plot next to the x and y margins with a legend to indicate grouping of the x and y axis.
data <- read.table(text = "Type Category Value GroupX GroupY
S1 A 73 1 1
S2 A 57 1 2
S1 B 7 1 2
S2…

user971102
- 3,005
- 4
- 30
- 37
1
vote
1 answer
Run annotate gem on presenters
The README for the annotate gem mentions models, fixtures, specs, and files generated by specific gems, but not presenters.
Is there any way to make annotate add annotations to presenters?

Andrew Grimm
- 78,473
- 57
- 200
- 338
1
vote
0 answers
matplotlib.pyplot.annotate() : place a text on subplot with 'axes fraction' coordinates
I have some trouble with matplotlib.pyplot.annotate() when I use big numbers in the horizontal axis, for example doing time series with time data in "seconds since epoch" where the data will reach 10^9.
Here is an example:
import…

Greenfire
- 103
- 1
- 7
1
vote
1 answer
Syntax error with hash and square brackets
I am using Rails 4.1.6 and Ruby 2.1.5.
I have the following code, but I am getting an error:
params = {
input: @model.video.url,
test: true,
notifications: [zencoder_url],
pass_through: @model.id
outputs: [
{
public: true,
…

marcamillion
- 32,933
- 55
- 189
- 380
1
vote
1 answer
annotate function in R adding symbols to plot
I want to annotate a plot where I will be displaying the maximum and minimum values for some plots. When I run the annotate statements individually they print the symbol on the plot correctly. But when I run it in a for loop and generate many plots…

Arun Raja
- 1,554
- 16
- 26
1
vote
1 answer
How do you change the colours used in the annotate bar in Visual Studio 2008?
I am using a custom colour scheme in Visual Studio 2008. The annotate bar (that shows who checked each block of code in and when) is rendering in some illegible colours. I can't identify which colours these are within the relevant Options dialog so…

Luke Bennett
- 32,786
- 3
- 30
- 57
1
vote
2 answers
Annotate each facet on a qplot separately, when using two variables to facet
I am producing a faceted graph with 4 facets, using two variables each with 2 levels to define facets.
I am using a code like this:
qplot(hp, mpg, data=mtcars,
facets=vs~am, size=I(3), geom=c("point","smooth"),
xlab="Horsepower", ylab="Miles…

Shannon Hodges
- 163
- 1
- 6
1
vote
0 answers
Follow up: Count of Group Elements With Joins in Django
In order to build on this question here, we encountered another problem regarding aggregate annotations in the Django ORM.
Because we need a join within our query it leads to this clumsy "extra" statement:
Entry.objects.all()
…

tbz
- 197
- 2
- 10
1
vote
2 answers
Matlab Shape Labelling
I have a set of shapes in an image I would like to label according to their area, I have used bwboundaries to find them, and regionprops to determine their area. I would like to label them such that they are labelled different based on whether their…

KRS-fun
- 696
- 3
- 9
- 20
1
vote
0 answers
How to combine text symbols (, £) with Greek symbols in ggplot2 annotate?
I would like to add annotate text with the label:
lambda = £5,000/Q.
But where lambda is a Greek letter.
Parse inside text doesn't accept £ or ,
All the guidance online seems to point towards combining text. So "5000/Q" is not a problem but I…

jnam27
- 1,367
- 2
- 12
- 16