Skip to content

Instantly share code, notes, and snippets.

@jankatins
Created April 19, 2015 12:28
Show Gist options
  • Save jankatins/816206cbf25e095393eb to your computer and use it in GitHub Desktop.
Save jankatins/816206cbf25e095393eb to your computer and use it in GitHub Desktop.
Example plot in python
{
"cells": [
{
"cell_type": "code",
"execution_count": 3,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"%matplotlib inline\n",
"import matplotlib.pyplot as plt\n"
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {
"collapsed": false
},
"outputs": [
{
"data": {
"text/plain": [
"[<matplotlib.lines.Line2D at 0xa25b358>]"
]
},
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
},
{
"data": {
"image/png": [
"iVBORw0KGgoAAAANSUhEUgAAAWgAAAEACAYAAACeQuziAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\n",
"AAALEgAACxIB0t1+/AAAEk1JREFUeJzt3X+M5HV9x/HnC06EE8Wo9VfBHCX1R0VFpIQo6GrRoqKm\n",
"/qNEa4PBJlUrSop6oOb8p41JjTZpmpZD8EeRNtLaiq2KKGtJVBS9k9+2UhVEUFIE/FEahHf/mDkd\n",
"5nZ3vnM7M9/vzDwfyeZ2dmZn37nb/ezzPjs7n1QVkqTu2a/tASRJa3OBlqSOcoGWpI5ygZakjnKB\n",
"lqSOcoGWpI4auUAnOT3J1UmuSXL6LIaSJI1YoJMcCZwG/C7wDODkJEfMYjBJWnajCvrJwBVVdU9V\n",
"3Qd8CXjl9MeSJI1aoK8BTkjyiCRbgZcCh05/LEnSlo2urKobkrwPuAT4ObALuH8Wg0nSsss4z8WR\n",
"5M+Bm6rqbwfe5pN5SNI+qKqMusGGL8Cj+38+AbgeeNjQ9TXqPtp4AXa0PYMzOdMyzuVMa3382gK1\n",
"Hep2qD+GSpO1c8Mtjr6LkjwSuBd4Y1Xd3fz7gyQtt4SnAucDdwHHVPH9/ttHGrlAV9VzNzmfJC2d\n",
"hC3AmcAZwNnAzirG2hJuUtDzarXtAda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Y0pyMHARcHq/pFtVVfdX1VH0Pjme2/bzFSQ5GfhxVe2iQ8UKPKeqngm8GHhTkhNa\n",
"nmcLcDTwN1V1NPBz4J3tjvRrSQ4AXgZ8ogOzHAG8ld5Wx+OBg5O8ps2ZquoG4H3AJcBngF2sEySb\n",
"WaBvAQ4buHwYvYrWGpI8CPgn4O+r6l/anmdQ/7/H/wYc0/IozwZenuS7wIXAC5J8tOWZqKpb+3/e\n",
"DnyS3vZem34A/KCqvt6/fBG9BbsrXgx8o//31bZjgC9X1f9U1S+Bf6b3edaqqjqvqo6pqufRe678\n",
"b691u80s0FcCv51kW/875quAT23i/hZWkgAfAq6rqg+2PQ9AkkcleXj/9YOAF9L7Tt6aqjqrqg6r\n",
"qsPp/Rf5i1X1ujZnSrI1yUP7rz8EeBG9H/C0pqpuA25O8sT+m04Erm1xpGGn0PsG2wU3AMclOaj/\n",
"dXgi0PpWXpJH9/98AvAHrLMdtM8nqlRHf4klyYXA84BHJrkZeE9Vnd/yWM8BXgtclWTPIri9qj7b\n",
"4kyPAz6SZD9636g/VlVfaHGetXRhG+0xwCd7X9tsAS6oqkvaHQmAPwUu6MfRjcCpLc8D/Oqb2IlA\n",
"F/bqqapv9f8XdiW9bYRvAue0OxUAFyV5JL0fYL6xqu5e60b+oookddRMDo2VJI3PBVqSOsoFWpI6\n",
"ygVakjrKBVqSOsoFWpI6ygVakjrKBVqSOur/ARg/DOEBNtFOAAAAAElFTkSuQmCC\n"
],
"text/plain": [
"<matplotlib.figure.Figure at 0xa147eb8>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"plt.plot(range(10))"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": []
}
],
"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",
"version": "2.7.9"
}
},
"nbformat": 4,
"nbformat_minor": 0
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment