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
1 answer

how to annotate values in polar plot?

I am transforming some data from cartesian to polar values, I would like to know: how to annotate the values of the angles to the polar plot, I could plot the values but when annotating, all the values are not in their respective points. how to…
Kathya
  • 11
  • 2
0
votes
1 answer

How to add text bar at the top of a cowplot?

I have a stuckplot of several plots made using cowplot function in ggplot. I want to add an "header", a boxed text at top of the cowplot. They should be five box, with each box length that follow a precise range of time, which is showed only in the…
Antonio Manco
  • 217
  • 2
  • 14
0
votes
0 answers

How to perfrom an aggregate query with condicional filter in django

I have this data on the model: [ {"Field": "value1", "Flag": true}, {"Field": "value2", "Flag": false}, {"Field": "value1", "Flag": true}, {"Field": "value2", "Flag": true}, {"Field": "value1", "Flag": false}, {"Field": "value2", "Flag":…
0
votes
1 answer

Modify space after adding annotate for multiplot panels

I have a multiplot panel with annotations (outside the plots) that I would like to modify. This is the plot: How can I: move the titles (I. and II.) over to the far left? change the amount of white space around the titles? change the amount of…
Blundering Ecologist
  • 1,199
  • 2
  • 14
  • 38
0
votes
1 answer

How do I annotate a django queryset with StringAgg or ArrayAgg concatenating one column from mulitple children rows?

Documents is the parent table. Paragraphs is the child table. Users filter Documents based on various search criteria. Then I wish to annotate Documents with certain Paragraphs filtered by a text query. The same text query is used to filter…
edyas
  • 1
  • 1
  • 2
0
votes
0 answers

Fill wedge with gradient

Is it possible to fill an ax.annotate wedge with a color gradient? e.g. instead of red a color gradient from blue to green. Starting at the xy and ending at xytext. import matplotlib.pyplot as plt plt.figure(1, figsize=(3,3)) ax =…
Stücke
  • 868
  • 3
  • 14
  • 41
0
votes
1 answer

Avoid annotations and tick y_tick labels overlapping

I went through several questions but none seem to address the problem of annotations overlapping with y tick labels. I found a nice code that prevents annotations overlapping among themselves, but nothing with tick labels. My problem is quite simple…
teoeme139
  • 412
  • 3
  • 11
0
votes
0 answers

How to display non-English characters as label in Geopandas?

I have a shapefile in polygon type. In table of this shapefile there is a column with NAME name. This column characters are in Farsi font, non-English. I want to read this file with Geopandas in jupyter and then display name of each polygon label…
HMadadi
  • 391
  • 5
  • 22
0
votes
0 answers

How can I annotate stacked bar graphs

I have made a stacked bar graph and need to add to totals on each column, as well as the individual blocks in each column (with percentages). df_data_2.round(2) #df_data_2 #graph1 =df_data_2.T.plot.bar(stacked =…
0
votes
1 answer

Strange annotation formatting using annotate in ggpubr in R

Using the mtcars dataset as an example, I am using "annotate" in the ggscatter function of ggpubr in R. This is my code: library("ggpubr") ggscatter(mtcars[mtcars$cyl == 8, ], x = "mpg", y = "qsec", facet.by = "cyl", add = "reg.line",…
Sylvia Rodriguez
  • 1,203
  • 2
  • 11
  • 30
0
votes
1 answer

Can I get the value of Sum(amount_sold) from sales table inside the annotate

I'm trying to display a html table that is populated with sum values from the database. I have sum_amount_purchased and sum_total_price_purchased working fine but I am struggling with sum_amount_sold to get this value I need to query the sales…
Philip
  • 67
  • 7
0
votes
1 answer

Wrong annotate in python waterfall plot

I modified a waterfall python code but it gave wrong/missing annotate. I suspect it' something wrong with plt.annotate and formatting I passed to the function, but can't find exactly what's wrong in the code after many attempts. The code I have is…
user1047
  • 169
  • 1
  • 3
  • 9
0
votes
1 answer

How do I show the last Y-axis value next to the curve?

i'm trying to figure out how I can get my chart to show the latest (last) Y-axis value in the time series next to the curve line. Currently I have the below graph. I've tried using 'plt.text' but this would mean I manually enter the value rather…
Asd13
  • 43
  • 8
0
votes
1 answer

How to add arrows to forest plot in survminer (ggforest)

I was wondering if there was a way to add two arrows to the x-axis of a forest plot, similar to what is shown in this example: How to add arrows to a forest plot? (this code does not work on ggforest) Here is the sample…
Megan
  • 3
  • 1
  • 2
0
votes
1 answer

Django: Can't GROUP BY on a template table

I'm trying to show a table in the template, which shows transactions with their dates. The query is: resultado = Asiento.objects.filter( Empresa=request.session['codEmp'], codcta=cod_cta ).exclude(anulado='S').order_by(date) But the user…
Gonzalo Dambra
  • 891
  • 2
  • 19
  • 34