Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Python library using Plotly for plotting a football pitch with events.

Project description

Python library using Plotly for plotting a football pitch with events. Examples can be found here: http://blog.stryktipsetisistastund.se/tag/plotly/

Installation

Requires the plotly lib to be available and set up. See: https://plot.ly/python/getting-started/

Usage

from pitchplotter.plotter import Plotter

plotter = Plotter("Demo")

#create array as follows: [xpos, ypos, 'event name', event size]
demo_arr = [
    [25,50,'Event 1', 34],
    [35,41,'Event 2', 14],
    [20,33,'Event 3', 23],
    [10,52,'Event 4', 56],
    [45,60,'Event 5', 9]
]

plotter.add_events(demo_arr, "Demo events")

plotter.plot()

Project details


Release history Release notifications

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for footballpitchplot, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size footballpitchplot-0.1-py2-none-any.whl (3.2 kB) File type Wheel Python version py2 Upload date Hashes View hashes
Filename, size footballpitchplot-0.1.tar.gz (2.1 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page