footballpitchplot-0.1
توضیحات
Python library using Plotly for plotting a football pitch with events.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | footballpitchplot-0.1 |
| نام | footballpitchplot |
| نسخه کتابخانه | 0.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | fantomen |
| ایمیل نویسنده | olalidmark@gmail.com |
| آدرس صفحه اصلی | https://github.com/olalidmark/footballpitchplot |
| آدرس اینترنتی | https://pypi.org/project/footballpitchplot/ |
| مجوز | MIT |
Football pitch plot
=======================
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
-----------------------
.. code:: python
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()
نحوه نصب
نصب پکیج whl footballpitchplot-0.1:
pip install footballpitchplot-0.1.whl
نصب پکیج tar.gz footballpitchplot-0.1:
pip install footballpitchplot-0.1.tar.gz