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()
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
footballpitchplot-0.1.tar.gz
(2.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file footballpitchplot-0.1.tar.gz.
File metadata
- Download URL: footballpitchplot-0.1.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
51e4836f03be8aff1deb39cbcc0a1a1cd7b34da2e74a0209fbe74e4caf5d017b
|
|
| MD5 |
c76421e9653b6e3f19383a25a0184e2e
|
|
| BLAKE2b-256 |
9a93f3dad5bfc97dafa42912d18206c31aa27bc1b6f03ca3c3deed69a648e992
|
File details
Details for the file footballpitchplot-0.1-py2-none-any.whl.
File metadata
- Download URL: footballpitchplot-0.1-py2-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
719bb80129263e6e70da84333c637ad1601df6b8eceac42729c87d02bc533311
|
|
| MD5 |
3b9c9d9f39723e2a966c703cb6f57069
|
|
| BLAKE2b-256 |
20ac1939ce1591cf877e480f355beadf3082370dcf427eb3602cda822d6224c3
|