{"spec_id":"line-filled","library":"seaborn","language":"python","code":"\"\"\" anyplot.ai\nline-filled: Filled Line Plot\nLibrary: seaborn 0.13.2 | Python 3.13.13\nQuality: 90/100 | Updated: 2026-05-12\n\"\"\"\n\nimport os\n\nimport matplotlib.pyplot as plt\nimport numpy as np\nimport seaborn as sns\n\n\n# Theme tokens (see prompts/default-style-guide.md)\nTHEME = os.getenv(\"ANYPLOT_THEME\", \"light\")\nPAGE_BG = \"#FAF8F1\" if THEME == \"light\" else \"#1A1A17\"\nELEVATED_BG = \"#FFFDF6\" if THEME == \"light\" else \"#242420\"\nINK = \"#1A1A17\" if THEME == \"light\" else \"#F0EFE8\"\nINK_SOFT = \"#4A4A44\" if THEME == \"light\" else \"#B8B7B0\"\nBRAND = \"#009E73\"  # Okabe-Ito position 1\n\n# Set seaborn theme\nsns.set_theme(\n    style=\"ticks\",\n    rc={\n        \"figure.facecolor\": PAGE_BG,\n        \"axes.facecolor\": PAGE_BG,\n        \"axes.edgecolor\": INK_SOFT,\n        \"axes.labelcolor\": INK,\n        \"text.color\": INK,\n        \"xtick.color\": INK_SOFT,\n        \"ytick.color\": INK_SOFT,\n        \"grid.color\": INK,\n        \"grid.alpha\": 0.10,\n        \"legend.facecolor\": ELEVATED_BG,\n        \"legend.edgecolor\": INK_SOFT,\n    },\n)\n\n# Data - Stock price over 90 trading days with upward trend and volatility\nnp.random.seed(42)\ndays = np.arange(90)\n# Simulate realistic stock price movement with uptrend and daily volatility\nbase_price = 100 + days * 0.5  # Steady uptrend\ndaily_change = np.random.normal(0, 2, size=90)  # Daily volatility (no weekly pattern)\nstock_price = base_price + np.cumsum(daily_change)\nstock_price = np.maximum(stock_price, 80)  # Floor at realistic minimum\n\n# Create plot (4800x2700 px)\nfig, ax = plt.subplots(figsize=(16, 9), facecolor=PAGE_BG)\nax.set_facecolor(PAGE_BG)\n\n# Plot line with fill underneath\nax.plot(days, stock_price, color=BRAND, linewidth=3, label=\"Stock Price\")\nax.fill_between(days, stock_price, alpha=0.35, color=BRAND)\n\n# Labels and styling\nax.set_xlabel(\"Trading Days\", fontsize=20, color=INK)\nax.set_ylabel(\"Stock Price ($)\", fontsize=20, color=INK)\nax.set_title(\"line-filled · seaborn · anyplot.ai\", fontsize=24, fontweight=\"medium\", color=INK)\nax.tick_params(axis=\"both\", labelsize=16, colors=INK_SOFT)\n\n# Style spines\nax.spines[\"top\"].set_visible(False)\nax.spines[\"right\"].set_visible(False)\nfor spine in (\"left\", \"bottom\"):\n    ax.spines[spine].set_color(INK_SOFT)\n    ax.spines[spine].set_linewidth(0.8)\n\n# Subtle y-axis grid\nax.yaxis.grid(True, alpha=0.10, linewidth=0.8, color=INK)\n\n# Set y-axis to start at 0 for proper area visualization\nax.set_ylim(bottom=0)\n\n# Remove legend (single series, redundant)\nif ax.get_legend():\n    ax.get_legend().remove()\n\nplt.tight_layout()\nplt.savefig(f\"plot-{THEME}.png\", dpi=300, bbox_inches=\"tight\", facecolor=PAGE_BG)\nplt.close()\n"}