From 9a435a826dcfbcd6544a30ce46d2d053c25bf013 Mon Sep 17 00:00:00 2001 From: Shoaib <35446260+shoaib42@users.noreply.github.com> Date: Sun, 25 Aug 2024 17:34:59 -0400 Subject: [PATCH] Heatmap example fix (#633) * fix heatmap example * fix doc for heatmap --- docs/source/visualization/heatmap.ipynb | 4 ++-- examples/visualization/heatmap.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/source/visualization/heatmap.ipynb b/docs/source/visualization/heatmap.ipynb index 47f8f9b2c..ae8c6a8fb 100644 --- a/docs/source/visualization/heatmap.ipynb +++ b/docs/source/visualization/heatmap.ipynb @@ -107,7 +107,7 @@ "source": [ "plot = Heatmap(title=(\"Optimization\", {'pad': 15}),\n", " cmap=\"Oranges_r\",\n", - " y_labels=[\"Solution A\", \"Solution B\", \"Solution C\", \"Solution D\"],\n", + " solution_labels=[\"Solution A\", \"Solution B\", \"Solution C\", \"Solution D\"],\n", " labels=[\"profit\", \"cost\", \"sustainability\", \"environment\", \"satisfaction\", \"time\"])\n", "plot.add(F)\n", "plot.show()" @@ -133,7 +133,7 @@ "plot = Heatmap(figsize=(10,30),\n", " bound=[0,1],\n", " order_by_objectives=0,\n", - " y_labels=None,\n", + " solution_labels=None,\n", " labels=[\"profit\", \"cost\", \"sustainability\", \"environment\", \"satisfaction\", \"time\"],\n", " cmap=\"Greens_r\")\n", "\n", diff --git a/examples/visualization/heatmap.py b/examples/visualization/heatmap.py index efce79db9..823b45b1e 100644 --- a/examples/visualization/heatmap.py +++ b/examples/visualization/heatmap.py @@ -13,7 +13,7 @@ # START heatmap_custom plot = Heatmap(title=("Optimization", {'pad': 15}), cmap="Oranges_r", - y_labels=["Solution A", "Solution B", "Solution C", "Solution D"], + solution_labels=["Solution A", "Solution B", "Solution C", "Solution D"], labels=["profit", "cost", "sustainability", "environment", "satisfaction", "time"]) plot.add(F) plot.show() @@ -26,7 +26,7 @@ bound=[0,1], order_by_objectives=0, y_labels=None, - labels=["profit", "cost", "sustainability", "environment", "satisfaction", "time"], + solution_labels=["profit", "cost", "sustainability", "environment", "satisfaction", "time"], cmap="Greens_r") plot.add(F, aspect=0.2)