{
  "id": "python/matplotlib-rcparams-typo-error",
  "signature": "KeyError: 'font.size' is not a valid rc parameter. See rcParams.keys() for valid parameters.",
  "signature_zh": "KeyError: 'font.size'不是有效的rc参数。请参阅rcParams.keys()获取有效参数。",
  "regex": "KeyError:\\ 'font\\.size'\\ is\\ not\\ a\\ valid\\ rc\\ parameter\\.\\ See\\ rcParams\\.keys\\(\\)\\ for\\ valid\\ parameters\\.",
  "domain": "python",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "Typo in rcParams key; correct key is 'font.size' but user might have typed 'font.size' with a dot (which is correct) or a misspelling like 'font.szie'. Actually 'font.size' is valid; the error occurs when the key is misspelled (e.g., 'font.szie' or 'fontsize').",
  "root_cause_type": "generic",
  "root_cause_zh": "rcParams键拼写错误；正确的键是'font.size'，但用户可能拼写为'font.szie'或'fontsize'。",
  "versions": [
    {
      "version": "3.7",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "3.8",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Using 'fontsize' without dot",
      "why_fails": "The key must have a dot separating group and property; 'fontsize' is not valid.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "Using 'Font.size' with capital letters",
      "why_fails": "Keys are case-sensitive; 'Font.size' is not valid.",
      "fail_rate": 0.85,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Use the exact key from documentation",
      "success_rate": 0.95,
      "how": "plt.rcParams['font.size'] = 12",
      "condition": "",
      "sources": []
    },
    {
      "action": "List all rcParams to find the correct spelling",
      "success_rate": 0.9,
      "how": "print([key for key in plt.rcParams.keys() if 'font' in key])",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": null,
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.85,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-03-20",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}