:orphan: Examples ======== This gallery contains a selection of examples of the plots mplsoccer can create. All of the examples can be run from `this Anaconda environment `_. To install the environment yourself use the `Anaconda `_ Prompt: #. Copy the code above into a blank file called ``environment.yml``, then run the following command from the directory containing the file. .. code :: conda env create -f environment.yml #. Activate the new environment: .. code :: conda activate mplsoccer .. raw:: html
.. thumbnail-parent-div-open .. thumbnail-parent-div-close .. raw:: html
------------ Radar charts ------------ Examples of plotting a radar chart using mplsoccer. .. raw:: html
.. thumbnail-parent-div-open .. raw:: html
.. only:: html .. image:: /gallery/radar/images/thumb/sphx_glr_plot_radar_thumb.png :alt: :ref:`sphx_glr_gallery_radar_plot_radar.py` .. raw:: html
Radar Charts
.. raw:: html
.. only:: html .. image:: /gallery/radar/images/thumb/sphx_glr_plot_turbine_thumb.png :alt: :ref:`sphx_glr_gallery_radar_plot_turbine.py` .. raw:: html
Turbine Charts
.. thumbnail-parent-div-close .. raw:: html
------------ Pizza Plots ------------ Examples of plotting a pizza plot using mplsoccer. .. raw:: html
.. thumbnail-parent-div-open .. raw:: html
.. only:: html .. image:: /gallery/pizza_plots/images/thumb/sphx_glr_plot_pizza_basic_thumb.png :alt: :ref:`sphx_glr_gallery_pizza_plots_plot_pizza_basic.py` .. raw:: html
Basic Pizza Plot (Percentiles)
.. raw:: html
.. only:: html .. image:: /gallery/pizza_plots/images/thumb/sphx_glr_plot_pizza_colorful_thumb.png :alt: :ref:`sphx_glr_gallery_pizza_plots_plot_pizza_colorful.py` .. raw:: html
Colorful Pizza (Percentiles)
.. raw:: html
.. only:: html .. image:: /gallery/pizza_plots/images/thumb/sphx_glr_plot_pizza_comparison_thumb.png :alt: :ref:`sphx_glr_gallery_pizza_plots_plot_pizza_comparison.py` .. raw:: html
Comparison Pizza (Percentiles)
.. raw:: html
.. only:: html .. image:: /gallery/pizza_plots/images/thumb/sphx_glr_plot_pizza_comparison_vary_scales_thumb.png :alt: :ref:`sphx_glr_gallery_pizza_plots_plot_pizza_comparison_vary_scales.py` .. raw:: html
Comparison Pizza (scales vary)
.. raw:: html
.. only:: html .. image:: /gallery/pizza_plots/images/thumb/sphx_glr_plot_pizza_dark_theme_thumb.png :alt: :ref:`sphx_glr_gallery_pizza_plots_plot_pizza_dark_theme.py` .. raw:: html
Dark Theme Pizza (Percentiles)
.. raw:: html
.. only:: html .. image:: /gallery/pizza_plots/images/thumb/sphx_glr_plot_pizza_scales_vary_thumb.png :alt: :ref:`sphx_glr_gallery_pizza_plots_plot_pizza_scales_vary.py` .. raw:: html
Different Scales Pizza
.. raw:: html
.. only:: html .. image:: /gallery/pizza_plots/images/thumb/sphx_glr_plot_pizza_different_units_thumb.png :alt: :ref:`sphx_glr_gallery_pizza_plots_plot_pizza_different_units.py` .. raw:: html
Different Units Pizza
.. thumbnail-parent-div-close .. raw:: html
------------ Bumpy Charts ------------ Examples of plotting a bumpy chart using mplsoccer. .. raw:: html
.. thumbnail-parent-div-open .. raw:: html
.. only:: html .. image:: /gallery/bumpy_charts/images/thumb/sphx_glr_plot_bumpy_thumb.png :alt: :ref:`sphx_glr_gallery_bumpy_charts_plot_bumpy.py` .. raw:: html
Bumpy Charts
.. thumbnail-parent-div-close .. raw:: html
------- Pitches ------- Examples of the methods for plotting pitches in mplsoccer. .. raw:: html
.. thumbnail-parent-div-open .. raw:: html
.. only:: html .. image:: /gallery/pitch_plots/images/thumb/sphx_glr_plot_animation_thumb.gif :alt: :ref:`sphx_glr_gallery_pitch_plots_plot_animation.py` .. raw:: html
Animation
.. raw:: html
.. only:: html .. image:: /gallery/pitch_plots/images/thumb/sphx_glr_plot_convex_hull_thumb.png :alt: :ref:`sphx_glr_gallery_pitch_plots_plot_convex_hull.py` .. raw:: html
Convex Hull
.. raw:: html
.. only:: html .. image:: /gallery/pitch_plots/images/thumb/sphx_glr_plot_cmap_thumb.png :alt: :ref:`sphx_glr_gallery_pitch_plots_plot_cmap.py` .. raw:: html
Customize colormaps
.. raw:: html
.. only:: html .. image:: /gallery/pitch_plots/images/thumb/sphx_glr_plot_cyberpunk_thumb.png :alt: :ref:`sphx_glr_gallery_pitch_plots_plot_cyberpunk.py` .. raw:: html
Cyberpunk theme
.. raw:: html
.. only:: html .. image:: /gallery/pitch_plots/images/thumb/sphx_glr_plot_kde_thumb.png :alt: :ref:`sphx_glr_gallery_pitch_plots_plot_kde.py` .. raw:: html
Event distribution using kdeplot
.. raw:: html
.. only:: html .. image:: /gallery/pitch_plots/images/thumb/sphx_glr_plot_fbref_thumb.png :alt: :ref:`sphx_glr_gallery_pitch_plots_plot_fbref.py` .. raw:: html
FBRef Touches
.. raw:: html
.. only:: html .. image:: /gallery/pitch_plots/images/thumb/sphx_glr_plot_formations_thumb.png :alt: :ref:`sphx_glr_gallery_pitch_plots_plot_formations.py` .. raw:: html
Formations
.. raw:: html
.. only:: html .. image:: /gallery/pitch_plots/images/thumb/sphx_glr_plot_grid_thumb.png :alt: :ref:`sphx_glr_gallery_pitch_plots_plot_grid.py` .. raw:: html
Grid
.. raw:: html
.. only:: html .. image:: /gallery/pitch_plots/images/thumb/sphx_glr_plot_heatmap_thumb.png :alt: :ref:`sphx_glr_gallery_pitch_plots_plot_heatmap.py` .. raw:: html
Heatmap
.. raw:: html
.. only:: html .. image:: /gallery/pitch_plots/images/thumb/sphx_glr_plot_heatmap_positional_thumb.png :alt: :ref:`sphx_glr_gallery_pitch_plots_plot_heatmap_positional.py` .. raw:: html
Heatmap Juego de Posición
.. raw:: html
.. only:: html .. image:: /gallery/pitch_plots/images/thumb/sphx_glr_plot_hexbin_thumb.png :alt: :ref:`sphx_glr_gallery_pitch_plots_plot_hexbin.py` .. raw:: html
Hexbin plot
.. raw:: html
.. only:: html .. image:: /gallery/pitch_plots/images/thumb/sphx_glr_plot_jointgrid_thumb.png :alt: :ref:`sphx_glr_gallery_pitch_plots_plot_jointgrid.py` .. raw:: html
Jointgrid
.. raw:: html
.. only:: html .. image:: /gallery/pitch_plots/images/thumb/sphx_glr_plot_markers_thumb.png :alt: :ref:`sphx_glr_gallery_pitch_plots_plot_markers.py` .. raw:: html
Markers
.. raw:: html
.. only:: html .. image:: /gallery/pitch_plots/images/thumb/sphx_glr_plot_pass_network_thumb.png :alt: :ref:`sphx_glr_gallery_pitch_plots_plot_pass_network.py` .. raw:: html
Pass Network
.. raw:: html
.. only:: html .. image:: /gallery/pitch_plots/images/thumb/sphx_glr_plot_flow_thumb.png :alt: :ref:`sphx_glr_gallery_pitch_plots_plot_flow.py` .. raw:: html
Pass flow plot
.. raw:: html
.. only:: html .. image:: /gallery/pitch_plots/images/thumb/sphx_glr_plot_arrows_thumb.png :alt: :ref:`sphx_glr_gallery_pitch_plots_plot_arrows.py` .. raw:: html
Pass plot using arrrows
.. raw:: html
.. only:: html .. image:: /gallery/pitch_plots/images/thumb/sphx_glr_plot_lines_thumb.png :alt: :ref:`sphx_glr_gallery_pitch_plots_plot_lines.py` .. raw:: html
Pass plot using lines
.. raw:: html
.. only:: html .. image:: /gallery/pitch_plots/images/thumb/sphx_glr_plot_photo_thumb.png :alt: :ref:`sphx_glr_gallery_pitch_plots_plot_photo.py` .. raw:: html
Photos
.. raw:: html
.. only:: html .. image:: /gallery/pitch_plots/images/thumb/sphx_glr_plot_delaunay_thumb.png :alt: :ref:`sphx_glr_gallery_pitch_plots_plot_delaunay.py` .. raw:: html
Plots Delaunay Tessellation of Players
.. raw:: html
.. only:: html .. image:: /gallery/pitch_plots/images/thumb/sphx_glr_plot_voronoi_thumb.png :alt: :ref:`sphx_glr_gallery_pitch_plots_plot_voronoi.py` .. raw:: html
Plots a Voronoi diagram
.. raw:: html
.. only:: html .. image:: /gallery/pitch_plots/images/thumb/sphx_glr_plot_scatter_thumb.png :alt: :ref:`sphx_glr_gallery_pitch_plots_plot_scatter.py` .. raw:: html
Scatter
.. raw:: html
.. only:: html .. image:: /gallery/pitch_plots/images/thumb/sphx_glr_plot_shot_freeze_frame_thumb.png :alt: :ref:`sphx_glr_gallery_pitch_plots_plot_shot_freeze_frame.py` .. raw:: html
Shot freeze frame
.. raw:: html
.. only:: html .. image:: /gallery/pitch_plots/images/thumb/sphx_glr_plot_standardize_thumb.png :alt: :ref:`sphx_glr_gallery_pitch_plots_plot_standardize.py` .. raw:: html
Standardize data
.. raw:: html
.. only:: html .. image:: /gallery/pitch_plots/images/thumb/sphx_glr_plot_sb360_frame_thumb.png :alt: :ref:`sphx_glr_gallery_pitch_plots_plot_sb360_frame.py` .. raw:: html
StatsBomb 360
.. raw:: html
.. only:: html .. image:: /gallery/pitch_plots/images/thumb/sphx_glr_plot_textured_background_thumb.png :alt: :ref:`sphx_glr_gallery_pitch_plots_plot_textured_background.py` .. raw:: html
Textured background
.. raw:: html
.. only:: html .. image:: /gallery/pitch_plots/images/thumb/sphx_glr_plot_twitter_powerpoint_thumb.png :alt: :ref:`sphx_glr_gallery_pitch_plots_plot_twitter_powerpoint.py` .. raw:: html
Twitter and Powerpoint friendly
.. thumbnail-parent-div-close .. raw:: html
------ Sonars ------ Examples of the methods for plotting sonars in mplsoccer. .. raw:: html
.. thumbnail-parent-div-open .. raw:: html
.. only:: html .. image:: /gallery/sonars/images/thumb/sphx_glr_plot_bin_statistic_sonar_thumb.png :alt: :ref:`sphx_glr_gallery_sonars_plot_bin_statistic_sonar.py` .. raw:: html
Bin Statistic Sonar
.. raw:: html
.. only:: html .. image:: /gallery/sonars/images/thumb/sphx_glr_plot_sonar_thumb.png :alt: :ref:`sphx_glr_gallery_sonars_plot_sonar.py` .. raw:: html
Sonar
.. raw:: html
.. only:: html .. image:: /gallery/sonars/images/thumb/sphx_glr_plot_sonar_grid_thumb.png :alt: :ref:`sphx_glr_gallery_sonars_plot_sonar_grid.py` .. raw:: html
Sonar Grid
.. thumbnail-parent-div-close .. raw:: html
--------- Tutorials --------- Tutorials for soccer data. .. raw:: html
.. thumbnail-parent-div-open .. raw:: html
.. only:: html .. image:: /gallery/tutorials/images/thumb/sphx_glr_plot_xt_thumb.png :alt: :ref:`sphx_glr_gallery_tutorials_plot_xt.py` .. raw:: html
Expected threat
.. raw:: html
.. only:: html .. image:: /gallery/tutorials/images/thumb/sphx_glr_plot_xt_improvements_thumb.png :alt: :ref:`sphx_glr_gallery_tutorials_plot_xt_improvements.py` .. raw:: html
Improvements to expected threat
.. raw:: html
.. only:: html .. image:: /gallery/tutorials/images/thumb/sphx_glr_plot_pass_sonar_kde_thumb.png :alt: :ref:`sphx_glr_gallery_tutorials_plot_pass_sonar_kde.py` .. raw:: html
Pass Sonar Alternative
.. raw:: html
.. only:: html .. image:: /gallery/tutorials/images/thumb/sphx_glr_plot_wedges_thumb.png :alt: :ref:`sphx_glr_gallery_tutorials_plot_wedges.py` .. raw:: html
Plot wedges
.. thumbnail-parent-div-close .. raw:: html
--------- StatsBomb --------- Using real StatsBomb data for plotting. .. raw:: html
.. thumbnail-parent-div-open .. raw:: html
.. only:: html .. image:: /gallery/statsbomb/images/thumb/sphx_glr_plot_statsbomb_data_thumb.png :alt: :ref:`sphx_glr_gallery_statsbomb_plot_statsbomb_data.py` .. raw:: html
StatsBomb
.. thumbnail-parent-div-close .. raw:: html
----------- Pitch setup ----------- How drawing the pitch works. .. raw:: html
.. thumbnail-parent-div-open .. raw:: html
.. only:: html .. image:: /gallery/pitch_setup/images/thumb/sphx_glr_plot_explain_standardizer_thumb.png :alt: :ref:`sphx_glr_gallery_pitch_setup_plot_explain_standardizer.py` .. raw:: html
Explain the Standardizer
.. raw:: html
.. only:: html .. image:: /gallery/pitch_setup/images/thumb/sphx_glr_plot_pitches_thumb.png :alt: :ref:`sphx_glr_gallery_pitch_setup_plot_pitches.py` .. raw:: html
Pitch Basics
.. raw:: html
.. only:: html .. image:: /gallery/pitch_setup/images/thumb/sphx_glr_plot_pitch_types_thumb.png :alt: :ref:`sphx_glr_gallery_pitch_setup_plot_pitch_types.py` .. raw:: html
Pitch Types
.. raw:: html
.. only:: html .. image:: /gallery/pitch_setup/images/thumb/sphx_glr_plot_compare_pitches_thumb.png :alt: :ref:`sphx_glr_gallery_pitch_setup_plot_compare_pitches.py` .. raw:: html
Pitch comparison
.. raw:: html
.. only:: html .. image:: /gallery/pitch_setup/images/thumb/sphx_glr_plot_quick_start_thumb.png :alt: :ref:`sphx_glr_gallery_pitch_setup_plot_quick_start.py` .. raw:: html
Quick start
.. thumbnail-parent-div-close .. raw:: html
.. toctree:: :hidden: :includehidden: /gallery/radar/index.rst /gallery/pizza_plots/index.rst /gallery/bumpy_charts/index.rst /gallery/pitch_plots/index.rst /gallery/sonars/index.rst /gallery/tutorials/index.rst /gallery/statsbomb/index.rst /gallery/pitch_setup/index.rst .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-gallery .. container:: sphx-glr-download sphx-glr-download-python :download:`Download all examples in Python source code: gallery_python.zip ` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download all examples in Jupyter notebooks: gallery_jupyter.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_