{
  "id": "python/matplotlib-subplots-adjust-error",
  "signature": "ValueError: left cannot be >= right, but left=0.5, right=0.3",
  "signature_zh": "ValueError: left不能大于等于right，但left=0.5, right=0.3",
  "regex": "ValueError:\\ left\\ cannot\\ be\\ >=\\ right,\\ but\\ left=0\\.5,\\ right=0\\.3",
  "domain": "python",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "Calling plt.subplots_adjust() with inconsistent parameters where left is greater than or equal to right, or bottom >= top.",
  "root_cause_type": "generic",
  "root_cause_zh": "调用plt.subplots_adjust()时参数不一致，left大于等于right，或bottom大于等于top。",
  "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 negative values for left and right",
      "why_fails": "Negative values are allowed but must still satisfy left < right.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "Swapping left and right values",
      "why_fails": "If left > right, swapping them fixes the error, but the layout may not be intended.",
      "fail_rate": 0.5,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Ensure left is less than right and bottom less than top",
      "success_rate": 0.95,
      "how": "plt.subplots_adjust(left=0.1, right=0.9, bottom=0.1, top=0.9)",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use tight_layout() or constrained_layout instead",
      "success_rate": 0.9,
      "how": "plt.tight_layout()",
      "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.86,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-06-15",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}