Created
January 15, 2019 23:03
Revisions
-
chris-vecchio created this gist
Jan 15, 2019 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,43 @@ { "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "<Figure size 640x480 with 1 Axes>" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "import numpy as np\n", "import matplotlib.pyplot as plt\n", "# %% scatter\n", "N = 50\n", "x = np.random.rand(N)\n", "y = np.random.rand(N)\n", "colors = np.random.rand(N)\n", "area = np.pi * (15 * np.random.rand(N))**2 # 0 to 15 point radii\n", "plt.scatter(x, y, s=area, c=colors, alpha=0.5)\n", "plt.show()" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "cryzen codecademy\n", "PyDataDC" ] } ], "metadata": {}, "nbformat": 4, "nbformat_minor": 2 }