SHARE
TWEET

Untitled

a guest Oct 23rd, 2019 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {
  2.  "cells": [
  3.   {
  4.    "cell_type": "code",
  5.    "execution_count": 1,
  6.    "metadata": {},
  7.    "outputs": [],
  8.    "source": [
  9.     "# Import the library\n",
  10.     "\n",
  11.     "import matplotlib.pyplot as plt\n",
  12.     "%matplotlib inline  "
  13.    ]
  14.   },
  15.   {
  16.    "cell_type": "code",
  17.    "execution_count": 2,
  18.    "metadata": {},
  19.    "outputs": [],
  20.    "source": [
  21.     "# Create a new Rectangle class for creating a rectangle object\n",
  22.     "\n",
  23.     "class Rectangle(object):\n",
  24.     "    \n",
  25.     "    # Constructor\n",
  26.     "    def __init__(self, width=2, height=3, color='r'):\n",
  27.     "        self.height = height \n",
  28.     "        self.width = width\n",
  29.     "        self.color = color\n",
  30.     "    \n",
  31.     "    # Method\n",
  32.     "    def drawRectangle(self):\n",
  33.     "        plt.gca().add_patch(plt.Rectangle((0, 0), self.width, self.height ,fc=self.color))\n",
  34.     "        plt.axis('scaled')\n",
  35.     "        plt.show()"
  36.    ]
  37.   },
  38.   {
  39.    "cell_type": "code",
  40.    "execution_count": 3,
  41.    "metadata": {},
  42.    "outputs": [],
  43.    "source": [
  44.     "# Create a new object rectangle\n",
  45.     "\n",
  46.     "SkinnyBlueRectangle = Rectangle(2, 10, 'blue')"
  47.    ]
  48.   },
  49.   {
  50.    "cell_type": "code",
  51.    "execution_count": 4,
  52.    "metadata": {},
  53.    "outputs": [
  54.     {
  55.      "data": {
  56.       "text/plain": [
  57.        "10"
  58.       ]
  59.      },
  60.      "execution_count": 4,
  61.      "metadata": {},
  62.      "output_type": "execute_result"
  63.     }
  64.    ],
  65.    "source": [
  66.     "# Print the object attribute height\n",
  67.     "\n",
  68.     "SkinnyBlueRectangle.height "
  69.    ]
  70.   },
  71.   {
  72.    "cell_type": "code",
  73.    "execution_count": 5,
  74.    "metadata": {},
  75.    "outputs": [
  76.     {
  77.      "data": {
  78.       "text/plain": [
  79.        "2"
  80.       ]
  81.      },
  82.      "execution_count": 5,
  83.      "metadata": {},
  84.      "output_type": "execute_result"
  85.     }
  86.    ],
  87.    "source": [
  88.     "# Print the object attribute width\n",
  89.     "\n",
  90.     "SkinnyBlueRectangle.width"
  91.    ]
  92.   },
  93.   {
  94.    "cell_type": "code",
  95.    "execution_count": 6,
  96.    "metadata": {},
  97.    "outputs": [
  98.     {
  99.      "data": {
  100.       "text/plain": [
  101.        "'blue'"
  102.       ]
  103.      },
  104.      "execution_count": 6,
  105.      "metadata": {},
  106.      "output_type": "execute_result"
  107.     }
  108.    ],
  109.    "source": [
  110.     "# Print the object attribute color\n",
  111.     "\n",
  112.     "SkinnyBlueRectangle.color"
  113.    ]
  114.   },
  115.   {
  116.    "cell_type": "code",
  117.    "execution_count": 8,
  118.    "metadata": {},
  119.    "outputs": [
  120.     {
  121.      "data": {
  122.       "image/png": "iVBORw0KGgoAAAANSUhEUgAAAE4AAAD4CAYAAABCOdB1AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4xLjEsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy8QZhcZAAAGuklEQVR4nO3dX4hcdxnG8e9jYqitFSuJUpOu20IpBG8aFv/jhbVQo1gvvLCgVBH2Sq0iSMWL3nohohcihFotWOpFLVikqKVaRJDibozaGLV/tO220WwRVLyJxdeLmUiY3U1mn9/p2XO6zweWnZ0Z9rx8mdmZ2fmdM6oqYvtesdMDjFXCmRLOlHCmhDPt7XNj+/fvr8XFxT43aVtdXX2hqg5sdXmv4RYXF1lZWelzkzZJT1/o8txVTQlnSjhTwpkSznTRcJLuknRG0mPnnfc6SQ9Jenz6/YqXdszhmecW9x3gppnzbgcerqprgYenP+8qFw1XVT8H/j5z9s3A3dPTdwMf6niuwXOfAL+hqk4DVNVpSa/f6oqSloFlgIWFhel55lZ7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JZ0o4U8KZEs6UcKaEMyWcKeFMCWdKOFPCmRLOlHCmlqWsV0n62fTjCE5Kuq3LwYauZX3ci8Dnq+q4pMuBVUkPVdWuOPp0y1LW01V1fHr6X0z2dTjY1WBD18nfOEmLwPXAo5tcluX6m5H0auD7wGer6p+zl2e5/iYkvZJJtHuq6v5uRhqHlkdVAd8CTlXVV7sbaRxadxD5GJMdQ05Mv452NNfg2U9HquoXgDqcZVTyysGUcKaEMyWcKeFMCWdKOFPCmRLOlHCmhDMlnCnhTAlnSjhTwpkSzpRwpoQzJZwp4UwJZ0o4U8KZEs6UcKaEMyWcKeFMCWdKOFPrUtabJP1R0hOSbu9qqDFoWcq6B/gG8D7gMHCLpMNdDTZ0Lbe4twBPVNVTVXWWyfHOb+5mrOFr2bPmIPDseT+vAW+dvZKkZWAZYGFhAYCqhq0ORMstbrP1vxuSZD+HjdaAq877+RDwfNs449ES7lfAtZKulrSPyUcTPNDNWMPXslz/RUmfAn4M7AHuqqqTnU02cE0fS1BVDwIPdjTLqOSVgynhTAlnSjiTqsen8ZLWgaeB/cALvW14e87N9qaq2vIZe6/h/r9RaaWqlnrf8BzmnS13VVPCmXYq3LEd2u485pptR/7GvRzkrmpKOFOv4Yb85s62D7JVVb18MfnX05PANcA+4DfA4b62P8d8VwJHpqcvB/50ofn6vMUN+s2d7R5kq89wm725M8ijf13oIFvn9Blurjd3dtrFDrJ1Tp/hBv/mznYOstVnuEG/ubPtg2z1/Mh1lMmj1ZPAl3b6kXRmtncx+dPxW+DE9OvoVtfPSy5TXjmYEs6UcKaEMyWcKeFMCWf6HwezQ1Yzc3TpAAAAAElFTkSuQmCC\n",
  123.       "text/plain": [
  124.        "<Figure size 432x288 with 1 Axes>"
  125.       ]
  126.      },
  127.      "metadata": {
  128.       "needs_background": "light"
  129.      },
  130.      "output_type": "display_data"
  131.     }
  132.    ],
  133.    "source": [
  134.     "# Use the drawRectangle method to draw the shape\n",
  135.     "\n",
  136.     "r1 = SkinnyBlueRectangle.drawRectangle()"
  137.    ]
  138.   },
  139.   {
  140.    "cell_type": "code",
  141.    "execution_count": 10,
  142.    "metadata": {},
  143.    "outputs": [
  144.     {
  145.      "data": {
  146.       "image/png": "iVBORw0KGgoAAAANSUhEUgAAAI4AAAD4CAYAAAA6ht7UAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4xLjEsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy8QZhcZAAAH6klEQVR4nO3dX4ilBRnH8e+vXaPUImMtatdtDESSbpSlLCFCE0xFu+hCQ7EI9qY/axhiV4t3XUTYRQRilqAooUIiUokpEYS0q0KuUynmn9WtXRFSurHFp4s50Ta7q+vzvs55z/j9wDIzZ17mPDDffc857x6eTVUhvVXvmvcAWkyGoxbDUYvhqMVw1LJxLe9s06ZNtbS0tJZ3qYF27979UlWdvPr2NQ1naWmJXbt2reVdaqAkzx7pdh+q1GI4ajEctRiOWgxHLW8aTpKbk+xP8vght30wyf1Jnpx9POntHVNTcyxnnJ8DF6y67Trggao6DXhg9rXeQd40nKr6HfDyqpsvBW6ZfX4L8KWR59LEdS8Afriq9gFU1b4kHzragUm2A9sBtm7detj3r7/++uYIGtvOnTuP+di3/clxVd1YVduqatvJJx925VoLqhvOP5J8BGD2cf94I2kRdMO5B7hq9vlVwC/HGUeL4lhejt8O/AE4PcneJF8Hvg+cn+RJ4PzZ13oHedMnx1V1+VG+dd7Is2iBeOVYLYajFsNRi+GoxXDUYjhqMRy1GI5aDEcthqMWw1GL4ajFcNRiOGoxHLUYjloMRy2GoxbDUYvhqMVw1GI4ajEctRiOWgxHLYajFsNRi+GoxXDUYjhqMRy1DAonyXeS7EnyeJLbk7xnrME0be1wkmwGvg1sq6pPAhuAy8YaTNM29KFqI/DeJBuB44EXh4+kRdAOp6peAH4APAfsA/5ZVb9ZfVyS7Ul2Jdl14MCB/qSalCEPVSexsmH9VOCjwAl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qMRy1GI5aDEcthqMWw1GL4ajFcNRiOGoxHLUYjloMRy2GoxbDUYvhqMVw1GI4ajEctRiOWgxHLYajFsNRi+GoxXDUMnSV2wVJ/pLkqSTXjTWUpm/IKrcNwI+BLwJnAJcnOWOswTRtQ844nwKeqqqnq+o14A7g0nHG0tQN2ay+GXj+kK/3Ap9efVCS7cB2gK1btx72Q3bu3DlgBM3LkDPOkfb/1WE3uOd4XRoSzl7glEO+3gK8OGwcLYoh4fwROC3JqUneDVwG3DPOWJq6IetqDyb5JvBrYANwc1XtGW0yTdqQJ8dU1X3AfSPNogXilWO1GI5aDEcthqOWVB12ze7tu7PkAPDsqps3AS+t2RBvzZRng7WZ72NVddiV2zUN50iS7KqqbXMd4iimPBvMdz4fqtRiOGqZQjg3znuANzDl2WCO8839OY4W0xTOOFpAhqOWuYUz5Te6JzklyYNJlpPsSbJj3jOtlmRDkkeT3DuP+59LOAvwRveDwDVV9QngbOAbE5sPYAewPK87n9cZZ9JvdK+qfVX1yOzzV1n5BW2e71T/k2QLcBFw07xmmFc4R3qj+2R+MYdKsgScCTw830n+zw3AtcDr8xpgXuEc0xvd5y3JicBdwNVV9cq85wFIcjGwv6p2z3OOeYUz+Te6JzmOlWhuq6q75z3PIc4BLknyDCsP8ecmuXWth5jLBcAkG4G/AucBL7DyxvevTOU9y0kC3AK8XFVXz3ueo0nyeeC7VXXxWt/3XM44VXUQ+O8b3ZeBX0wlmplzgCtZ+dv82OzPhfMeakr8Jwe1eOVYLYajFsNRi+GoxXDUYjhqMRy1/AcAYNoA99EB0wAAAABJRU5ErkJggg==\n",
  147.       "text/plain": [
  148.        "<Figure size 432x288 with 1 Axes>"
  149.       ]
  150.      },
  151.      "metadata": {
  152.       "needs_background": "light"
  153.      },
  154.      "output_type": "display_data"
  155.     }
  156.    ],
  157.    "source": [
  158.     "#new color\n",
  159.     "SkinnyBlueRectangle = Rectangle(5, 10, 'grey')\n",
  160.     "r2= SkinnyBlueRectangle.drawRectangle()\n"
  161.    ]
  162.   },
  163.   {
  164.    "cell_type": "code",
  165.    "execution_count": 20,
  166.    "metadata": {},
  167.    "outputs": [
  168.     {
  169.      "name": "stdin",
  170.      "output_type": "stream",
  171.      "text": [
  172.       "enter the width  15\n",
  173.       "enter the height  12\n",
  174.       "enter the color  green\n"
  175.      ]
  176.     },
  177.     {
  178.      "data": {
  179.       "image/png": "iVBORw0KGgoAAAANSUhEUgAAATEAAAD4CAYAAACE9dGgAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4xLjEsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy8QZhcZAAAMIUlEQVR4nO3db4xldX3H8fenjEYXMWAYrO6yHWwIrSG2kEmLktiElWSrBHzQB5Bi1kqyT1pFY6MQkpI+aUg0VhMbzQYQEjfYZsVIjLVsUEOaIHF2Qf4tFeMfWFzdMaRq9AFu/PbB3G2W2Vn2ztw7Z+ar71eymXvP3JnfF+bue889c2ZOqgpJ6uoPNnoASZqEEZPUmhGT1JoRk9SaEZPU2syQi5177rk1Nzc35JKSfkccOHDgZ1U1u3z7oBGbm5tjYWFhyCUl/Y5I8qOVtvtyUlJrRkxSa0ZMUmtGTFJrRkxSa6eNWJI7kxxN8sQJ2z6W5OkkjyX5UpKz13dMSVrZOHtidwE7l23bD1xcVW8BvgvcPOW5JGksp41YVT0IvLBs2/1VdWx091vAtnWYTZJOaxonu74P+PdTvTPJbmA3wPbt21f1ifPPmWgwSZtT3Tq932M40YH9JLcAx4C9p3pMVe2pqvmqmp+dPeknBiRpImveE0uyC7gK2FH+elhJG2RNEUuyE/go8FdV9evpjiRJ4xvnFIt7gIeAi5IcTnID8GngLGB/kkeTfHad55SkFZ12T6yqrlth8x3rMIskrZpn7EtqzYhJas2ISWrNiElqzYhJas2ISWrNiElqzYhJas2ISWrNiElqzYhJas2ISWrNiElqzYhJas2ISWrNiElqzYhJas2ISWrNiElq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krB0HOhQVX1iyLUBqurmqtpWVXMs/fd/vaoG3/uoqp8AzyW5aLRpB/DUwGM8C1yWZMvo67KDjftmx33ArtHtXcCXhx4gyU7go8DVVfXrodevqser6ryqmhs9Pw8Dl46eK4PblBEbHbQ8fhGSQ8B/bMBFSC4H3sPSHtCjoz/vHHiGzeL9wN4kjwF/DvzLkIuP9gL3AQeBx1l63q77j70kuQd4CLgoyeEkNwC3AVcmeYal78zdtgEzfBo4C9g/el5+dgNm2DT8sSNJrW3KPTFJGpcRk9SaEZPUmhGT1JoRk9SaEZPUmhGT1Nr/Afr3AbnoagJ3AAAAAElFTkSuQmCC\n",
  180.       "text/plain": [
  181.        "<Figure size 432x288 with 1 Axes>"
  182.       ]
  183.      },
  184.      "metadata": {
  185.       "needs_background": "light"
  186.      },
  187.      "output_type": "display_data"
  188.     }
  189.    ],
  190.    "source": [
  191.     "#create your own one\n",
  192.     "\n",
  193.     "SkinnyBlueRectangle = Rectangle(int(input('enter the width ')), int(input('enter the height ')), input('enter the color '))                     \n",
  194.     "r3=SkinnyBlueRectangle.drawRectangle()                                                                  "
  195.    ]
  196.   },
  197.   {
  198.    "cell_type": "code",
  199.    "execution_count": null,
  200.    "metadata": {},
  201.    "outputs": [],
  202.    "source": [
  203.     "\n",
  204.     "                                                                 "
  205.    ]
  206.   }
  207.  ],
  208.  "metadata": {
  209.   "kernelspec": {
  210.    "display_name": "Python",
  211.    "language": "python",
  212.    "name": "conda-env-python-py"
  213.   },
  214.   "language_info": {
  215.    "codemirror_mode": {
  216.     "name": "ipython",
  217.     "version": 3
  218.    },
  219.    "file_extension": ".py",
  220.    "mimetype": "text/x-python",
  221.    "name": "python",
  222.    "nbconvert_exporter": "python",
  223.    "pygments_lexer": "ipython3",
  224.    "version": "3.6.7"
  225.   }
  226.  },
  227.  "nbformat": 4,
  228.  "nbformat_minor": 4
  229. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top