Skip to content
Advertisement

Adding custom arrows with labels in seaborn relplot or a facetgrid

I am trying to add two custom arrows with labels in a seaborn relplot graph. I tried using the matplot arrow function which is not working because the seaborne relplot is a “facetgrid”. I did not see a specific arrow pointer function in seaborn docu. I want to draw an arrow at a specific x value between the y values of two benchmarks (b1 b2 in example)

Is there an easy way to do this? I added a simple code example, data and 2 images of what i try to achieve.

CODE:

JavaScript

DATASET (example.csv in same folder)

JavaScript

Currently my Graph looks like this:

Text

This is what I want to achieve:

Text

Advertisement

Answer

As mentioned in the comments, I flattened the axes, got the values from the line chart, and added text annotations and arrows respectively.

JavaScript

enter image description here

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement