pyplot as plt\n","import numpy as np\n","\n","# Data\n","categories = ['Technicians Per Task (X1)', 'Aircraft Serviced Per Day (X2)', 'Maintenance Cost (X3)']\n","actual_values = [85, 9, 48000]\n","targets = [100, 10, 50000]\n","deviations_positive = [0, 0, 2000]\ n","deviations_negative = [15, 1, 0]\n","\n","# Bar positions\n","x = np.arange(len(categories))\n","\n","# Bar widths\n","width = 0.3\n","\n","# Plot\ n","fig, ax = plt.subplots(figsize=(10, 6))\n","\n","# Bars for actual values\ n","ax.bar(x - width, actual_values, width, label='Actual Values', color='b')\n","\ n","# Bars for target values\n","ax.bar(x, targets, width, label='Target Values', color='g')\n","\n","# Bars for positive deviations\n","ax.bar(x + width, deviations_positive, width, label='Positive Deviations (d+)', color='r')\n","\n","# Bars for negative deviations\n","ax.bar(x + width, deviations_negative, width, label='Negative Deviations (d-)', color='orange', alpha=0.5)\n","\n","# Add labels and title\n","ax.set_ylabel('Values')\n","ax.set_title('Optimization Results for Ethiopian Airlines Maintenance Department')\n","ax.set_xticks(x)\ n","ax.set_xticklabels(categories)\n","ax.legend()\n","\n","# Display the plot\ n","plt.tight_layout()\n","plt.show()"],"metadata":{"fiddle": {"running":false,"focus":false,"success":false}},"id":"5ba22b06-10f6-47b4-b6f4- 94881c8722cb","outputs":[{"output_type":"error","name":"stderr","traceback":["line 1, in <module>"," import matplotlib.pyplot as plt","ModuleNotFoundError: No module named 'matplotlib'","The module 'matplotlib' is included in the Pyodide distribution, but it is not installed.","You can install it by calling:"," await micropip.install(\"matplotlib\") in Python, or"," await pyodide.loadPackage(\"matplotlib\") in JavaScript","See https://pyodide.org/en/stable/usage/loading-packages.html for more details."],"metadata":{}}]}],"metadata":{"kernelspec": {"name":"pyodide","display_name":"Python","language":"python","ext":"py"}},"nbforma t":4,"nbformat_minor":5,"id":"1da83a73-7ec8-4267-b6c1-a51c52ecbed5"}