2015-04-06 20:51:28 +08:00
{
2015-05-31 21:37:22 +08:00
" cells " : [
2015-04-06 20:51:28 +08:00
{
2015-05-31 21:37:22 +08:00
" cell_type " : " markdown " ,
" metadata " : { } ,
" source " : [
" # matplotlib "
]
} ,
{
" cell_type " : " markdown " ,
" metadata " : { } ,
" source " : [
2015-06-19 09:07:36 +08:00
" Credits: Content forked from [Parallel Machine Learning with scikit-learn and IPython](https://github.com/ogrisel/parallel_ml_tutorial) by Olivier Grisel \n " ,
2015-05-31 21:38:14 +08:00
" \n " ,
2015-05-31 21:37:22 +08:00
" * Setting Global Parameters \n " ,
" * Basic Plots \n " ,
" * Histograms \n " ,
" * Two Histograms on the Same Plot \n " ,
2015-06-11 19:17:52 +08:00
" * Scatter Plots "
2015-05-31 21:37:22 +08:00
]
} ,
{
" cell_type " : " code " ,
" execution_count " : 1 ,
" metadata " : {
" collapsed " : false
} ,
" outputs " : [ ] ,
" source " : [
" % matplotlib inline \n " ,
" import pandas as pd \n " ,
" import numpy as np \n " ,
" import pylab as plt \n " ,
" import seaborn "
]
} ,
{
" cell_type " : " markdown " ,
" metadata " : { } ,
" source " : [
" ## Setting Global Parameters "
]
} ,
{
" cell_type " : " code " ,
" execution_count " : 2 ,
" metadata " : {
" collapsed " : false
} ,
" outputs " : [ ] ,
" source " : [
" # Set the global default size of matplotlib figures \n " ,
" plt.rc( ' figure ' , figsize=(10, 5)) \n " ,
" \n " ,
" # Set seaborn aesthetic parameters to defaults \n " ,
" seaborn.set() "
]
} ,
{
" cell_type " : " markdown " ,
" metadata " : { } ,
" source " : [
" ## Basic Plots "
]
} ,
{
" cell_type " : " code " ,
" execution_count " : 3 ,
" metadata " : {
" collapsed " : false
} ,
" outputs " : [
2015-04-11 05:16:25 +08:00
{
2015-05-31 21:37:22 +08:00
" data " : {
" image/png " : " iVBORw0KGgoAAAANSUhEUgAAAfYAAAFtCAYAAAD1Skg8AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz \n AAALEgAACxIB0t1+/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awIL0b3Cyd38p2EVERBxSVFPMU7nPEhEazu3jF9ArvNdJ \n L1PBLiIi4oB6VwOPbVxOTWMt15grGRI3qFOW25W3u3UL963IIne3txdO+rB4fnjt5JNa3ltvvU5O \n ziZCQ0P5/vd/0hkliohIEHh+6yvsqzzIqQNnMGvgtE5bblDtsd+3Iouc3aV48A6InLO7lB88+Bl7 \n DnW8eUNISAixsXEKdRERabMvDq7h87w1pMYO4uoxl3XqsnvUHvtz/9zOmi2tDxBXXF77tWmlFXX8 \n +sk1xMdFt/ia6WOTuPqsUcddb17eQe644xaWLFnGzTdfy+TJU9m+fRshISH8/vd/pHfvWB5++K9k \n Z6/H7XZzzTXXM3fuOWRlfcUTTzyG2+2mpqaG//7v3xAeHs5PfvI9+vbtx6xZs7n++pva9yGIiEi3 \n tq/iIM9ufZle4b24fcICIsIiOnX5PSrYnXTkKsbq6mrOOecC/vM/f8SvfnUvX375OTExvcnLO8hD \n Dz1GXV0dd955C9Onn8Lu3bu4995fk5CQwPLly/jww/c577wLKSkpYenSvxMers0jItKTVDfU8Nim \n 5TS4G7lt/I0k9BrQ6evoUclx9Vmjjrt3feRQfFPxcVHcPT+ToSkd6/DTkjFjDABJScnU19eTn38I \n a7fwH/9xBwAul4u8vIMkJCRw//1/ICYmhsLCAjIzJwEwcOAghbqISA/j8Xh4Ovc5imqKOW/oXCYk \n ZPhlPUGVHj+8djI/ePA
" text/plain " : [
" <matplotlib.figure.Figure at 0x10c45bad0> "
]
} ,
2015-04-11 05:16:25 +08:00
" metadata " : { } ,
2015-05-31 21:37:22 +08:00
" output_type " : " display_data "
}
] ,
" source " : [
" x = np.linspace(0, 2, 10) \n " ,
" \n " ,
" plt.plot(x, x, ' o- ' , label= ' linear ' ) \n " ,
" plt.plot(x, x ** 2, ' x- ' , label= ' quadratic ' ) \n " ,
" \n " ,
" plt.legend(loc= ' best ' ) \n " ,
" plt.title( ' Linear vs Quadratic progression ' ) \n " ,
" plt.xlabel( ' Input ' ) \n " ,
" plt.ylabel( ' Output ' ); \n " ,
" plt.show() "
]
} ,
{
" cell_type " : " markdown " ,
" metadata " : { } ,
" source " : [
" ## Histograms "
]
} ,
{
" cell_type " : " code " ,
" execution_count " : 4 ,
" metadata " : {
" collapsed " : false
} ,
" outputs " : [
2015-04-11 05:16:25 +08:00
{
2015-05-31 21:37:22 +08:00
" name " : " stdout " ,
" output_type " : " stream " ,
" text " : [
" (1000,) \n " ,
" float64 \n " ,
" [ 0.6806888 0.72202042 1.40490113 1.13979846 0.5729488 1.32584077 \n " ,
" 0.61635621 0.60340336 1.29453467 0.69841457 0.6975998 0.72315991 \n " ,
" 0.66912189 1.03420801 0.62283168 0.38582511 0.89488414 1.4802518 \n " ,
" 1.43819256 0.98605861 0.60402232 1.03820507 0.35598796 1.32901087 \n " ,
" 1.03194436 1.3374366 1.82526334 1.26614489 1.20061661 0.86344001] \n "
2015-04-11 05:16:25 +08:00
]
} ,
{
2015-05-31 21:37:22 +08:00
" data " : {
" image/png " : " iVBORw0KGgoAAAANSUhEUgAAAeQAAAFVCAYAAAA+OJwpAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz \n AAALEgAACxIB0t1+/AAAFNNJREFUeJzt3W9sndd9H/CvkoiJWXKEJVDBJhMqoLkHLrB2dQd06ALb \n 6bKs3la76Jui7bLV6IB0MTCtK1ykTpYXQ7EE0xRAGbJg8JK564rMiJdlCgqnQbMgboP9X7rWsHqc \n ZJhED4atiTRjWnEoS9wLXdm0TN77kLr38pD38wEM8d7n8Hl+Pnzu/fLynOc8B9bX1wMA7K637HYB \n AIBABoAmCGQAaIBABoAGCGQAaIBABoAGvK1Lo1LK/0yy0nv4v5N8NMmjSa4meSrJg7VW108BwA4N \n DORSyjuSpNb67g3PnUnycK31yVLKp5Lcn+QLI6sSAPa5Lp+QfzjJdCnld3vtP5Tkzlrrk73tTyR5 \n bwQyAOxYlzHkl5OcrLX+1SS/nOS3b9i+mmRu2IUBwCTp8gn5mSTfSpJa6zdLKReT/MiG7bNJXu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\n e18/keS9Sb4wgtqgOdZeBkalbyCXUn4xyYVa65dLKb+ea5+ID2xosppkrsuB5udnd1rjRNFP3e1G \n Xz3zzDPWXt6mQ4dmtvxZLS/P7HoN13ntdaevRmPQJ+QHkqyXUt6T5M8n+c0k8xu2zyZ5scuBLlx4 \n aUcFTpL5+Vn91NFu9dXS0qq1l7dpaWl1y5/V0tLqrteQeO1th77qZie/tPQdQ6613l1rvafW+u4k \n f5jkbyX5Uinl7l6Te5M8ueUOAIBOtnsd8nqSX03ySCllKsnTSR4felUAMGE6B3LvU/J19wy/FACY \n XBYGAYAGCGQAaIBABoAGCGQAaIBABoAGCGQAaIBABoAGbHdhEIDOrl55te8NN9yMA14nkIGReWX1 \n Yk49tpTpuec23e5mHPA6gQyMlJtxQDfGkAGgAQIZABogkAGgAQIZABogkAGgAQIZABogkAGgAQIZ \n ABogkAGgAQIZABogkAGgAQIZABogkAGgAQIZABogkAGgAQIZABogkAGgAQIZABogkAGgAQIZABog \n kAGgAQIZABogkAGgAQIZABogkAGgAQIZABogkAGgAQIZABogkAGgAQIZABogkAGgAQIZABogkAGg \n AW/b7QJgXNbW1rK4eK5vm4WFY5mamhpTRQCvE8hMjMXFczlx8kym545suv3Sygs5/dB9OX789jFX \n BiCQmTDTc0cyc+vR3S4D4E2MIQNAAwQyADRAIANAAwQyADRAIANAAwQyADRAIANAAwZeh1xKeWuS \n R5L8QJL1JL+c5HtJHk1yNclTSR6sta6PrkwA2N+6fEL+G0mu1lrfleTDSf5xklNJHq613pXkQJL7 \n R1ciAOx/AwO51vofkry/9/D7kywn+dFa65O9555I8p6RVAcAE6LTGHKt9Uop5dEkp5P8dq59Kr5u \n Ncnc8EsDgMnReS3rWusvllLemeS/JnnHhk2zSV4c9P3z87Pbr24C6afutttXy8szA9scOjTTd79d \n 9kF7Bv1cE6+97dBXo9FlUtf7ktxWa/1oku8muZLkv5dS7q61fi3JvUm+Mmg/Fy68dLO17nvz87P6 \n qaOd9NXS0mqnNv3222UftGfQz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DW+tXe098opdxda/1aknuTfKXLgS5ceOmmCp0E8/OzzfXTjXdU6tdu \n q9q77gP2u36vk72ixfepFu3kl5ZBn5AfzrU/SX+klHJ9LPlEkk+UUqaSPJ3k8W0fFQB4g0FjyCdy \n LYBvdM9IqgGACWUtawBogEAGgAYIZABogEAGgAYIZABogEAGgAYIZABogEAGgAYIZABogEAGgAYI \n ZABogEAGgAYIZABogEA
" text/plain " : [
" <matplotlib.figure.Figure at 0x10c4c1510> "
]
} ,
2015-04-11 05:16:25 +08:00
" metadata " : { } ,
2015-05-31 21:37:22 +08:00
" output_type " : " display_data "
}
] ,
" source " : [
" # Gaussian, mean 1, stddev .5, 1000 elements \n " ,
" samples = np.random.normal(loc=1.0, scale=0.5, size=1000) \n " ,
" print(samples.shape) \n " ,
" print(samples.dtype) \n " ,
" print(samples[:30]) \n " ,
" plt.hist(samples, bins=50); \n " ,
" plt.show() "
]
} ,
{
" cell_type " : " markdown " ,
" metadata " : { } ,
" source " : [
" ## Two Histograms on the Same Plot "
]
} ,
{
" cell_type " : " code " ,
" execution_count " : 5 ,
" metadata " : {
" collapsed " : false
} ,
" outputs " : [
2015-04-06 20:51:28 +08:00
{
2015-05-31 21:37:22 +08:00
" data " : {
" image/png " : " iVBORw0KGgoAAAANSUhEUgAAAeoAAAFVCAYAAAAg8ayaAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz \n AAALEgAACxIB0t1+/AAAIABJREFUeJzt3XuU5Gdd5/F3d/Vluqure+iZDhEJIKs8xMMgFxUFJOEY \n g8F4CBiPLMiGgAlGrpo1mJFFYROCgrhEWYQEDbd1WXPQFedwCRGTMG6IgQhBwrMblkvumZnurr5U \n T1d3Ve0f3ZOdmXRV/bq7uvqp6vfrnJx0/eo7v3r6mZr61O/3e37P01Or1ZAkSWnq3e4GSJKk+gxq \n SZISZlBLkpQwg1qSpIQZ1JIkJcygliQpYX3NCkIIzwHeHWN8YQjhGcDVQAVYBP5DjPHhEMJFwMXA \n MnBFjPFACGEI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+HHfuwpFItFPvCBa1ha \n WuKCC17OGWf8/Oor1fjYx/6Sn/zJn+a8887nnnt+wFVXvZP3vvdqvv71O/jwh68D4Lbbbn1UG3/q \n p57Tvg6RJLWVQd3Euee+hE9+8qNceumbGBnJ87rXvZ5CocBdd32Lr33tqwwP5ymXlx6pf8pTngrA \n yEiBJz7xSQAUCqOUy4sAPOMZzyKXy5HL5Xjyk/8d999/3yN/9rvf/Q533HE7N954AwCzszMMDw/z \n pjddyh/90ZXMz8/zohed06bfXJKUgo4L6tLcTPOiFu7rlltu4id+4plceOFF3HDD5/jEJz7KU54S \n GBkp8Lu/u597772Hz3zmbzO/5re//S0Ajh49yve+911OO+20R557whOexNlnn8Mv/MIvcujQw9xw \n w+c4cuQwMd7Fu971ntWj93N51atevv5fVpLUkToqqMfGdnP+Wftavs9GnvrU07nyyj+kv7+farXK \n m970O/T19fOOd7yNGO/i1FN/iBBO5/DhQ8CxgWGPdmz7/Pw8b3nLbzE7O8uFF17M6OjYsQouuOA1 \n XHXVf+bv//5vmZ+f57WvfR179uxlcvIIl1zyGnp7c7ziFa+it7fePDWu5S1J3cbVs9roa1+7nZtu \n +kd++7cv29R+XJUmO/sqG/spO/sqG/spG1fPSkxPT0/dI25JktbSUae+O90zn/lsnvnMZ293MyRJ \n HcQjakmSEmZQS5KUsI469e3qWZKknaajgrpYnObv7vwH8qMjLdnf/Mwc5+0719WzJEnJ6qigBsiP \n jjAyVtjuZrTUZlfP+tSnPvnIbGY/+7PP48ILL2ph6yRJ28lr1AnYzOpZ9913Lzfc8Hk+9KG/4sMf \n vo7bbruV73zn7tY2UJK0bTruiLrdUl8967GPPZX3ve/PHrk/e3l5mcHBwfZ2kiRpyxjUTaS+elZf \n Xx+jo2PUajU+8IH3E8JTefzjT0OS1B0M6iY6YfWsxcVFrrrqnYyMjHDppb+3VV0hSdoGHRfU8zNz \n bd1X6qtn1Wo1Lr/8Up797J/ila+8YB2/vSSpE3RUUI+N7ea8fee2fJ+NpL561s03/xP/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IQZ1JIkJcz1qCVpi1SrFaampprWjY3tJpfLtaFF \n 6kQGtSRtkYXSHAcOHmF87yl1a0pzM5x/1j7Gx/e0sWXqJAa1JG2h4fwoI4Xd290MdTCvUUuSlDCD \n WpKkhBnUkiQlzKCWJClhDiaTtGNUKhWKxemmdVNTU9RqtTa0SGrOoJa0YxSL01z/xTsZHhltWHf4 \n wXsZGdtLoXGZ1BYGtaQdZXik+e1S83PFNrVGas5r1JIkJcygliQpYQa1JEkJM6glSUqYQS1JUsIM \n akmSEubtWZK6QpbJTJzIRJ3IoJbUFbJMZuJEJupEBrWkrtFsMhMnMlEn8hq1JEkJM6glSUqYQS1J \n UsIMakmSEmZQS5KUMINakqSEGdSSJCXMoJYkKWHrnvAkhNALXAs8BagCFwEV4LrVx98EXh9jrIUQ \n LgIuBpaBK2KMB1rUbkm
" text/plain " : [
" <matplotlib.figure.Figure at 0x10c736a90> "
]
} ,
2015-04-06 20:51:28 +08:00
" metadata " : { } ,
2015-05-31 21:37:22 +08:00
" output_type " : " display_data "
}
] ,
" source " : [
" samples_1 = np.random.normal(loc=1, scale=.5, size=10000) \n " ,
" samples_2 = np.random.standard_t(df=10, size=10000) \n " ,
" bins = np.linspace(-3, 3, 50) \n " ,
" \n " ,
" # Set an alpha and use the same bins since we are plotting two hists \n " ,
" plt.hist(samples_1, bins=bins, alpha=0.5, label= ' samples 1 ' ) \n " ,
" plt.hist(samples_2, bins=bins, alpha=0.5, label= ' samples 2 ' ) \n " ,
" plt.legend(loc= ' upper left ' ); \n " ,
" plt.show() "
]
} ,
{
" cell_type " : " markdown " ,
" metadata " : { } ,
" source " : [
" ## Scatter Plots "
]
} ,
{
" cell_type " : " code " ,
" execution_count " : 6 ,
" metadata " : {
" collapsed " : false
} ,
" outputs " : [
2015-04-11 05:16:25 +08:00
{
2015-05-31 21:37:22 +08:00
" data " : {
" image/png " : " iVBORw0KGgoAAAANSUhEUgAAAeYAAAFVCAYAAAA6zUwUAAAABHNCSVQICAgIfAhkiA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AWZ3d3i+P/KbgubzID7EsvKbiDcFzbfJ9r44os4z029GYterXL6BsO2FCMrCrSICs/Cj8z6ZuF99 \n NSBNmwB0uz2++KL+ws8vB3zPi+h0gvOA+KbXazYtZHmCbaevDGy+HwNvVyJl2zoPH+qvHNVfdd6+ \n L71x3fzsWvZ6PiDRbJrvVUt9XVfdWF3+t9eN4N83M/zstZrN4ju+A0F4dyIwCz8q71P32+1Oz4My \n QJo26XbH56OtywE/f70CrlvD83yaTfOF1zv7cs/XOS8GjxfP5XKAAe880L+tq97n5fOeTBa4roHn \n pcvztq7cf/nsWl5cv+73p1iWhud9uG5eV91Yvepm63UB+F3P73LNd0F8SwrfM/GRE4RruBzw8zKc \n 513z8gSjCMvSgJe7dRWLefBwXc47Y11sWnIxwKytVeh0rh4Jvksnsovnvbc3p1KpEIaL5XELyPKE \n Vqt0YS08QpJGtFovBrrBwMeyDNJUA4bLEfqbz+dtzvmqG6tud0KWlV/4t4s3W6u8QVhlzbcgvCsR \n mIUflaumN0G51gjPtnWi6Ahd3wRAlnu0WvXXPidfN3759S4Hl7N12Yv/3u1KeJ583lnsbK3Y86Ir \n R4Lv2ywjH/k+f87ZeV0cHfd6Z69hkGVDbDvBsmz6/SFgYZraMsGs+tp18LNg7LrJlecsunEJwquJ \n cinhR+diaRBwrbrhs7Kbra0NZPmEtbXxC+vLl2uBbXuObS+Wf1aI42c4TnDtYHlVedPu7uiFc71Y \n IvWqGuKzMqxXlV1dPm/
" text/plain " : [
" <matplotlib.figure.Figure at 0x10c514950> "
]
} ,
2015-04-11 05:16:25 +08:00
" metadata " : { } ,
2015-05-31 21:37:22 +08:00
" output_type " : " display_data "
}
] ,
" source " : [
" plt.scatter(samples_1, samples_2, alpha=0.1); \n " ,
" plt.show() "
]
2015-04-06 20:51:28 +08:00
}
2015-05-31 21:37:22 +08:00
] ,
" metadata " : {
" kernelspec " : {
" display_name " : " Python 2 " ,
" language " : " python " ,
" name " : " python2 "
} ,
" language_info " : {
" codemirror_mode " : {
" name " : " ipython " ,
" version " : 2
} ,
" file_extension " : " .py " ,
" mimetype " : " text/x-python " ,
" name " : " python " ,
" nbconvert_exporter " : " python " ,
" pygments_lexer " : " ipython2 " ,
2015-06-11 19:17:52 +08:00
" version " : " 2.7.10 "
2015-05-31 21:37:22 +08:00
}
} ,
" nbformat " : 4 ,
" nbformat_minor " : 0
}