Mplsoccer

Latest version: v1.2.4

Safety actively analyzes 621122 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 8

1.2.4

----------------------

Added
* Added the ``flip_side`` method to ``Pitch`` to flip coordinates to the other side of the pitch.

Fixed
* Fixed the ``424`` formation so the front line is a line of four \
rather than two strikers and two attacking wingers.

1.2.3

----------------------

Added
* Added the ``exclude_nan`` argument to ``Pitch.label_heatmap`` to exclude nan from text labels.
* Added a ``spot_type`` argument to the ``Pitch`` class to enable plotting penalty and center \
spots as squares as well as circles.

Fixed
* Fixed broken FontManager links.

1.2.2

----------------------

Fixed
* Fixed an import error for matplotlib.docstring, which has been depreciated as an external module.
* Fixed a pandas depreciation warning for the StatsBomb module.

1.2.0

----------------------

Added
* :heart_eyes: Added the ``formation`` method, which plots formations as text, images, inset axes, \
scatter plots or pitches.
* :new: Added the ability to return a dataframe for all the formations and player positions with the \
``Pitch.formations_dataframe`` attribute and the ``Pitch.get_positions()`` method.
* :new: Added the ``inset_axes`` and ``inset_image`` methods/functions for plotting \
inset axes and images.
* :new: Added the ``Pitch.text`` wrapper for Axes.text, which automatically flips \
the x and y coordinates.
* :new: Added the ``xoffset`` and ``yoffset``arguments to the label_heatmap method \
for plotting a heatmap's labels off-center.

Breaking Changes
* :x: Fixed the Matplotlib dependency to version 3.6 or higher.
* :x: The StatsBomb ``tactics_formation`` is changed from a numeric dtype to a string dtype, \
e.g. 442 changed to '442'

Changes
* :ok: Added the new pitch attributes ``positional_alpha`` and ``shade_alpha`` for \
controlling the transparency of the positional lines and shaded block in the middle of the pitch. \
Previously, the alpha was controlled by the ``line_alpha`` attribute.

Fixes
* Fixed some deprecation warnings for Matplotlib (get_cmap) and Seaborn (kdeplot).

1.1.12

----------------------

Fixes
* Fixed the timestamp conversion for match data.

1.1.11

----------------------

Added
* Added the pitch type ``impect`` for plotting [impect data](https://www.impect.com/en/).

Page 1 of 8

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.