.. _ws_warm_front_icon: ws_warm_front =============================================== .. container:: .. container:: leftside .. image:: /_static/WS_WARMFRONT.png :width: 48px .. container:: rightside Defines a warm front :ref:`Weather Symbol Object ` that can be visualised with :func:`plot`. .. include:: /api/icon_desc/include/ws.rst .. note:: This function performs the same task as the **Ws Warm Front** icon in Metview’s :ref:`user interface `. It accepts its parameters as keyword arguments, described below. .. py:function:: ws_warm_front(**kwargs) Defines a warm front :ref:`Weather Symbol Object `. :param colour: Colour of the front. :type colour: str, default: "red" :param type: Specifies the cold front type. :type type: {"surface", "upper", "frontogenesis", "frontolysis"}, default: "surface" :param line_thickness: Thickness of the front curve. :type line_thickness: number, default: 1 :param symbol_width: Width of the semi-circle symbol. :type symbol_width: number, default: 10 :param symbol_gap: Width of the gap between two semi-circle symbols. :type symbol_gap: number, default: 15 :param symbol_orientation: Orientation of the semi-circle symbols. :type symbol_orientation: {"left", "right"}, default: "right" :param x: The x coordinates of the control points of the curve. At least two points must be specified. :type x: ndarray or list of numbers, default: 0 :param y: The y coordinates of the control points of the curve. At least two points must be specified. :type y: ndarray or list of numbers, default: 0 :param geolock: Sets the geolock on the item for interactive editing in the plot window. :type geolock: on_off, default: off :param tooltip: Text that appears as a tooltip when the visualised object is hovered over in Metview's plot window. :type tooltip: str :rtype: :class:`Request` .. mv-minigallery:: ws_warm_front