Skip to content
Thomas Nipen edited this page Dec 25, 2024 · 5 revisions

Lines in the graph can be customized

Line colors, styles, and markers

The lines are cycled through a set of predefined colors and styles. These can be overridden using -lc (line colors), -ls (line styles), and -ma (markers) for example:

verif ECMWF.nc MEPS.nc -m obsfcst -lc red,[0.1,0.1,0.9] -ls -,None -ma *,s

Colors can be specified by name, a red/green/blue triplet, or a number between 0 and 1 (gives various shades of grey).

For line styles, - (solid), -- (dashed), -. (dot dashed), : (dotted), and None (no line) are supported.

Commonly used markers include o (circle), s (square), . (small circle), and * (star). See the matplotlib reference for a complete list. Use None to remove the marker.

Line styles, colors, and markers are cycled. That is, if there are two linestyles and 6 input files, then the set of two linestyles are repeated 3 times (-,-- becomes -,--,-,--,-,--). Styles, colors, and markers are cycled independently, so they do not need to be the same length.

Grid lines (v1.3.0)

By default, a grid is plotted. To hide the grid, use -nogrid. To adjust the color, style, and line width, use -gc, -gs, -gw respectively. For example:

verif ECMWF.nc MEPS.nc -m mae -gc red -gs -- -gw 2