File size: 2,999 Bytes
5b455d0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [
    {
     "ename": "",
     "evalue": "",
     "output_type": "error",
     "traceback": [
      "\u001b[1;31mRunning cells with 'mgpt' requires the ipykernel package.\n",
      "\u001b[1;31mRun the following command to install 'ipykernel' into the Python environment. \n",
      "\u001b[1;31mCommand: 'conda install -n mgpt ipykernel --update-deps --force-reinstall'"
     ]
    }
   ],
   "source": [
    "import matplotlib.pyplot as plt\n",
    "import seaborn as sns  # For professional styling\n",
    "\n",
    "# Set seaborn style for scientific aesthetics\n",
    "plt.style.use('seaborn-v0_8')  # Use seaborn for clean, professional look\n",
    "plt.rcParams['font.family'] = 'Arial'  # Set font to Arial for publication\n",
    "plt.rcParams['font.size'] = 14  # Larger font size for readability\n",
    "plt.rcParams['axes.linewidth'] = 1.2  # Thicker axes for clarity\n",
    "plt.rcParams['lines.linewidth'] = 2  # Thicker plot lines\n",
    "plt.rcParams['legend.fontsize'] = 12  # Legend font size\n",
    "plt.rcParams['xtick.labelsize'] = 12  # X-axis tick label size\n",
    "plt.rcParams['ytick.labelsize'] = 12  # Y-axis tick label size\n",
    "\n",
    "# Data from the table\n",
    "K = [2, 4, 6, 8, 12]\n",
    "L = [3.21, 3.89, 4.57, 4.96, 5.38]\n",
    "SR = [2.73, 3.01, 3.44, 3.30, 2.89]\n",
    "\n",
    "# Plot K vs L\n",
    "plt.figure(figsize=(8, 6))\n",
    "plt.scatter(K, L, color='#1f77b4', s=100, label='L', alpha=0.8, edgecolors='w')  # Tableau blue, larger markers\n",
    "plt.plot(K, L, color='#1f77b4', linestyle='--', alpha=0.6)  # Dashed line, slightly transparent\n",
    "plt.xlabel('K', fontsize=16, weight='bold')\n",
    "plt.ylabel('L', fontsize=16, weight='bold')\n",
    "plt.title('K vs L', fontsize=18, weight='bold')\n",
    "plt.grid(True, linestyle='--', alpha=0.7)\n",
    "plt.legend()\n",
    "plt.tight_layout()\n",
    "plt.savefig('K_vs_L.png', dpi=600, bbox_inches='tight')  # High DPI for publication\n",
    "plt.show()\n",
    "\n",
    "# Plot K vs SR\n",
    "plt.figure(figsize=(8, 6))\n",
    "plt.scatter(K, SR, color='#ff7f0e', s=100, label='SR', alpha=0.8, edgecolors='w')  # Tableau orange\n",
    "plt.plot(K, SR, color='#ff7f0e', linestyle='--', alpha=0.6)  # Dashed line, slightly transparent\n",
    "plt.xlabel('K', fontsize=16, weight='bold')\n",
    "plt.ylabel('SR', fontsize=16, weight='bold')\n",
    "plt.title('K vs SR', fontsize=18, weight='bold')\n",
    "plt.grid(True, linestyle='--', alpha=0.7)\n",
    "plt.legend()\n",
    "plt.tight_layout()\n",
    "plt.savefig('K_vs_SR.png', dpi=600, bbox_inches='tight')  # High DPI for publication\n",
    "plt.show()"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "mgpt",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "name": "python",
   "version": "3.10.16"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}