fix(chart): correct dashboard size, label alignment, and data source
This commit is contained in:
@@ -216,8 +216,8 @@ def plot_narrative_dashboard() -> str:
|
|||||||
|
|
||||||
# Panel (2,1): Developer AI Reality
|
# Panel (2,1): Developer AI Reality
|
||||||
ax = axes[2, 1]
|
ax = axes[2, 1]
|
||||||
dev_cats = ["Use AI tools", "Daily AI use", "AI code merged", "AI PR issues"]
|
dev_cats = ["Use AI tools", "Daily AI use", "AI code merged", "AI code has vulns"]
|
||||||
dev_vals = [84, 51, 22, 70] # 70 ≈ 1.7× more issues (scaled to %)
|
dev_vals = [84, 51, 22, 48]
|
||||||
dev_colors = [AGENT_GROWTH, AGENT_GROWTH, NORMAL_ZONE, BUBBLE_ZONE]
|
dev_colors = [AGENT_GROWTH, AGENT_GROWTH, NORMAL_ZONE, BUBBLE_ZONE]
|
||||||
bars = ax.barh(dev_cats, dev_vals, color=dev_colors, height=0.5)
|
bars = ax.barh(dev_cats, dev_vals, color=dev_colors, height=0.5)
|
||||||
for bar, v in zip(bars, dev_vals):
|
for bar, v in zip(bars, dev_vals):
|
||||||
@@ -257,7 +257,7 @@ def plot_narrative_dashboard() -> str:
|
|||||||
fig.text(0.02, 0.50, "AI INFRASTRUCTURE BUILDOUT", fontsize=10,
|
fig.text(0.02, 0.50, "AI INFRASTRUCTURE BUILDOUT", fontsize=10,
|
||||||
fontweight="bold", color=GRAY_MEDIUM, rotation=90,
|
fontweight="bold", color=GRAY_MEDIUM, rotation=90,
|
||||||
va="center")
|
va="center")
|
||||||
fig.text(0.02, 0.22, "AGENT REVOLUTION & REALITY", fontsize=10,
|
fig.text(0.02, 0.16, "AGENT REVOLUTION & REALITY", fontsize=10,
|
||||||
fontweight="bold", color=GRAY_MEDIUM, rotation=90,
|
fontweight="bold", color=GRAY_MEDIUM, rotation=90,
|
||||||
va="center")
|
va="center")
|
||||||
|
|
||||||
@@ -276,6 +276,7 @@ def plot_narrative_dashboard() -> str:
|
|||||||
)
|
)
|
||||||
|
|
||||||
out_path = "output/combined/narrative_dashboard.png"
|
out_path = "output/combined/narrative_dashboard.png"
|
||||||
|
plt.rcParams['savefig.bbox'] = None # Disable tight cropping for full 20x16 output
|
||||||
fig.savefig(
|
fig.savefig(
|
||||||
out_path, dpi=EXPORT_DPI,
|
out_path, dpi=EXPORT_DPI,
|
||||||
facecolor=fig.get_facecolor(), edgecolor="none",
|
facecolor=fig.get_facecolor(), edgecolor="none",
|
||||||
|
|||||||
Reference in New Issue
Block a user