Skip to main content

Softball

from sportypy.surfaces.softball import SoftballField

SoftballField​

A subclass of BaseballField that draws a softball field.

field_params takes the keys of sportyR's softball dimensions (see surface_dimensions.json). The colors are plot_background, infield_dirt, base, pitchers_plate, batters_box, catchers_box, foul_line, running_lane, pitchers_circle, pitchers_lane and coaches_box. draw() accepts display_range of "full" or "infield". See BaseballField for the shared parameters and methods.

Leagues​

Each class below is a SoftballField with that league's rule-book dimensions.

Classleague_codeDescription
NCAASoftballFieldncaaA subclass of SoftballField specific to NCAA softball.

Methods​

reset_colors​

SoftballField.reset_colors()

Reset the features of the field to the softball default colors.