Guest User

Untitled

a guest
Jan 16th, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. {
  2. "cells": [
  3. {
  4. "cell_type": "code",
  5. "execution_count": 1,
  6. "metadata": {},
  7. "outputs": [
  8. {
  9. "data": {
  10. "text/plain": [
  11. "<Figure size 640x480 with 1 Axes>"
  12. ]
  13. },
  14. "metadata": {},
  15. "output_type": "display_data"
  16. }
  17. ],
  18. "source": [
  19. "import numpy as np\n",
  20. "import matplotlib.pyplot as plt\n",
  21. "# %% scatter\n",
  22. "N = 50\n",
  23. "x = np.random.rand(N)\n",
  24. "y = np.random.rand(N)\n",
  25. "colors = np.random.rand(N)\n",
  26. "area = np.pi * (15 * np.random.rand(N))**2 # 0 to 15 point radii\n",
  27. "plt.scatter(x, y, s=area, c=colors, alpha=0.5)\n",
  28. "plt.show()"
  29. ]
  30. },
  31. {
  32. "cell_type": "markdown",
  33. "metadata": {},
  34. "source": [
  35. "cryzen codecademy\n",
  36. "PyDataDC"
  37. ]
  38. }
  39. ],
  40. "metadata": {},
  41. "nbformat": 4,
  42. "nbformat_minor": 2
  43. }
Add Comment
Please, Sign In to add comment