mplsoccer icon indicating copy to clipboard operation
mplsoccer copied to clipboard

Add a direction of play/attack arrow example

Open andrewRowlinson opened this issue 4 years ago • 5 comments

A direction play/attack arrow is often displayed on pitches.

Add an example to the gallery of ways of doing this. The examples are found here:

  • mplsoccer/examples/pitch_plots

The examples are structured as python scripts using Sphinx Gallery. See the following guide about how to structure these scripts files: https://sphinx-gallery.github.io/stable/syntax.html

andrewRowlinson avatar Jan 05 '21 04:01 andrewRowlinson

Can you precise what kind of arrow is wanted here?

I think that there are basic pass/movement arrows already implemented (documentation, code).

Do you mean something more like this?

Screen Shot 2021-06-14 at 21 57 07

karlosos avatar Jun 14 '21 20:06 karlosos

Hi @karlosos. The idea is that all the event based data is orientated so the attacking direction is left to right. It's not immediately obvious to someone outside the analytics community that this is the case. So often we put an arrow under the chart to explain the direction of attack.

Here are some examples:

  • https://twitter.com/utdarena/status/1385712120977924098?s=20
  • https://twitter.com/Twenty3sport/status/1400722866803556352?s=20
  • https://twitter.com/Worville/status/1365738445826633733?s=20

It can be accompanied with some text, e.g. direction of attack or direction of play.

The idea of the example would be to introduce the concept and give a few different ways of plotting it. For example:

  • an arrow under the pitch as in the examples above
  • three arrow markers under the pitch (i.e. a jazzier version of an arrow)
  • a large arrow on the pitch the blends into the background

This is particularly relevant for kdeplots or heatmaps plotted on a full pitch as it's not obvious which direction they are orientated in.

andrewRowlinson avatar Jun 15 '21 04:06 andrewRowlinson

Hi, Andrew. I see this is not being assigned to anybody, would you mind if I handle this issue?

snehangsude avatar Apr 15 '22 17:04 snehangsude

@snehangsude happy for you to do this.

andrewRowlinson avatar Apr 15 '22 17:04 andrewRowlinson