MLB Stats

create_spraychart_plot

Produces a spraychart using statcast data overlayed on specified stadium Args: data: (pandas.DataFrame) StatCast pandas.DataFrame of StatCast batter data team_stadium: (str) Team whose stadium the hits will be overlaid on title: (str), default = '' Optional: Title of plot size: (int), default = 100 Optional: Size of hit circles on plot colorby: (str), default = 'events' Optional: Which category to color the mark with. 'events','player', or a column within data legend_title: (str), default = based on colorby Optional: Title for the legend width: (int), default = 500 Optional: Width of plot (not counting the legend) height: (int), default = 500 Optional: Height of plot

Remote etweisberg/mlb-mcp

Other tools also called create_spraychart_plot? See providers with this name

Input Schema


            {
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "title": "Data",
      "additionalProperties": true
    },
    "size": {
      "type": "integer",
      "title": "Size",
      "default": 100
    },
    "title": {
      "type": "string",
      "title": "Title",
      "default": ""
    },
    "width": {
      "type": "integer",
      "title": "Width",
      "default": 500
    },
    "height": {
      "type": "integer",
      "title": "Height",
      "default": 500
    },
    "colorby": {
      "type": "string",
      "title": "Colorby",
      "default": "events"
    },
    "legend_title": {
      "type": "string",
      "title": "Legend Title",
      "default": ""
    },
    "team_stadium": {
      "type": "string",
      "title": "Team Stadium",
      "default": "generic"
    }
  }
}