Skip to content

Commit

Permalink
Heatmap example fix (#633)
Browse files Browse the repository at this point in the history
* fix heatmap example

* fix doc for heatmap
  • Loading branch information
shoaib42 authored Aug 25, 2024
1 parent fb4d542 commit 9a435a8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/source/visualization/heatmap.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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()"
Expand All @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions examples/visualization/heatmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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)
Expand Down

0 comments on commit 9a435a8

Please sign in to comment.