RidgeAxis#

class metpy.plots.RidgeAxis(color='black', spacing=12.0, length=0.5)[source]#

A line-based PathEffect which draws a path with a sawtooth-wave style.

This line style is frequently used to represent a ridge axis.

Create ridge axis path effect.

Parameters:
  • color (str) – Color to use for the effect.

  • spacing (float) – The spacing between ticks in points. Default is 12.

  • length (float) – The length of the tick relative to spacing. Default is 0.5.

Methods Summary

__init__([color, spacing, length])

Create ridge axis path effect.

draw_path(renderer, gc, tpath, affine, rgbFace)

Draw the path with updated gc.

Methods Documentation

__init__(color='black', spacing=12.0, length=0.5)[source]#

Create ridge axis path effect.

Parameters:
  • color (str) – Color to use for the effect.

  • spacing (float) – The spacing between ticks in points. Default is 12.

  • length (float) – The length of the tick relative to spacing. Default is 0.5.

draw_path(renderer, gc, tpath, affine, rgbFace)[source]#

Draw the path with updated gc.