<jupyter_start><jupyter_text>Basic wind arrows plottingThis is one cell notebook example that will help you plot wind arrows from grib file using Magics. List of all **mwind** parameters you can find [in Magics documentation](https://confluence.ecmwf.int/display/MAGP/Wind+Plotting "Wind parameters").  Installing MagicsIf you don't have Magics installed, run the next cell to install Magics using conda.<jupyter_code># Install Magics in the current Jupyter kernel
import sys
!conda install --yes --prefix {sys.prefix} Magics
import Magics.macro as magics

# Setting the projection
australia = magics.mmap(
    subpage_upper_right_longitude= 180.,
    subpage_upper_right_latitude = -5.,
    subpage_lower_left_longitude = 105.,
    subpage_clipping             = 'on',
    subpage_map_projection       = "cylindrical",
    subpage_lower_left_latitude  = -55.,
    page_id_line                 = "off")

# Defining the coastlines
light_background = magics.mcoast(
    map_coastline_sea_shade_colour  = 'white',
    map_coastline_land_shade_colour = 'cream',
    map_grid                        = 'off',
    map_coastline_land_shade        = 'on',
    map_coastline_sea_shade         = 'on',
    map_label                       = 'off',
    map_coastline_colour            = 'tan')

# Load the grib data
wind_from_grib = magics.mgrib(
    grib_input_file_name = '../../data/uv200.grib', 
    grib_wind_position_1 = 1,
    grib_wind_position_2 = 2)

# Defining Wind plotting
wind_arrows = magics.mwind(
    legend                = 'on',
    wind_field_type       = 'arrows',
    wind_arrow_thickness  = 1,
    wind_thinning_factor  = 5.,
    wind_arrow_calm_below = 10,
    wind_arrow_colour     = 'evergreen' )

# Setting the legend
legend = magics.mlegend(
    legend_display_type   = "continuous",
    legend_box_mode       = "automatic",
    legend_box_y_position = 17.00,
    legend_box_x_length   = 32.0,
    legend_box_y_length   = 1.50,
    legend_text_colour    = "charcoal",
    legend_text_font_size = "0.4"
)

magics.plot(australia, light_background, wind_from_grib, wind_arrows, legend)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.08744710860366714, 'fraction_numerical': 0.015044663845792195, 'mean_word_length': 3.1001926782273603, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '217248', 'license': 'Apache-2.0', 'n_tokens_mistral': 761, 'n_tokens_neox': 708, 'n_words': 160, 'path': 'visualisation/gallery/wind_basic_arrow.ipynb', 'repo_name': 'mozartmae/notebook-examples', 'size': '2127'}