{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "When you think about the XY axis you would probably think about something similar:" ] }, { "cell_type": "code", "execution_count": 9, "metadata": { "collapsed": false }, "outputs": [], "source": [ "\"\"\"\n", "Simple demo of a scatter plot.\n", "\"\"\"\n", "import numpy as np\n", "import matplotlib.pyplot as plt\n", "\n", "\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 radiuses\n", "\n", "plt.scatter(x, y, s=area, c=colors, alpha=0.5)\n", "plt.show()" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": true }, "outputs": [], "source": [] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": true }, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "Python [Root]", "language": "python", "name": "Python [Root]" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 2 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython2", "version": "2.7.12" } }, "nbformat": 4, "nbformat_minor": 0 }