Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Confirmed.


Excerpt
hiddentrue

By default, wind arrows and flags that are drawn close to the subpage border will continue to be drawn outside this box. Each 'view' object in Metview has a flag to control this behaviour.

Step-by-step guide

In Metview, wind arrows and flags that are drawn close to the subpage border will continue to be drawn outside this box. Each 'view' object in Metview has a flag called subpage_clipping to control this behaviour by setting it to 'off'.

The following Python code shows how to do this, including plots with exaggerated wind arrows so that the effect is clear:

Code Block
languagepy
import metview as mv

uv = mv.retrieve(param=['u', 'v'], grid=[1,1])

wplot = mv.mwind(
    wind_thinning_factor     = 1,
    wind_arrow_unit_velocity = 10
    )

gview = mv.geoview(
    map_area_definition = "corners",
    area                = [33.87,-89.88,63.45,-49.98],
    subpage_clipping    = "on"
    )

mv.plot(gview, uv, wplot)


subpage_clipping="off"subpage_clipping="on"


       

Content by Label
showLabelsfalse
max5
spaces~usa
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel = "metview-faqs" and label = "plots" and type = "page" and space = "UDOC"
labelskb-how-to-article