Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "metadata": {
- "name": "loading remote python and matplotlib"
- },
- "nbformat": 3,
- "nbformat_minor": 0,
- "worksheets": [
- {
- "cells": [
- {
- "cell_type": "raw",
- "metadata": {},
- "source": "Started here:\nhttp://ipython.org/ipython-doc/dev/interactive/qtconsole.html\n\nto get this to work on Linux Mint 13 you will need to run:\n\nsudo apt-get install libpng-dev\n\nDownload matplotlib and unzip\nread the INSTALL file\n\nthen \n\ncd to the matplotlib directory\n \npython3.2 setup.py build\n\nand then\n\nsudo python3.2 setup.py install\n\n\n"
- },
- {
- "cell_type": "code",
- "collapsed": false,
- "input": "",
- "language": "python",
- "metadata": {},
- "outputs": []
- },
- {
- "cell_type": "code",
- "collapsed": false,
- "input": "%load http://matplotlib.sourceforge.net/plot_directive/mpl_examples/mplot3d/contour3d_demo.py",
- "language": "python",
- "metadata": {},
- "outputs": [],
- "prompt_number": 4
- },
- {
- "cell_type": "code",
- "collapsed": false,
- "input": "from mpl_toolkits.mplot3d import axes3d\nimport matplotlib.pyplot as plt\n\nfig = plt.figure()\nax = fig.add_subplot(111, projection='3d')#changing this to 100 broke it\nX, Y, Z = axes3d.get_test_data(0.05)\ncset = ax.contour(X, Y, Z)\nax.clabel(cset, fontsize=9, inline=1)\n\nplt.show()\n\n",
- "language": "python",
- "metadata": {},
- "outputs": [],
- "prompt_number": 9
- },
- {
- "cell_type": "code",
- "collapsed": false,
- "input": "from mpl_toolkits.mplot3d import axes3d\nimport matplotlib.pyplot as plt\n\nfig = plt.figure()\nax = fig.add_subplot(111, projection='3d')\nX, Y, Z = axes3d.get_test_data(0.05)\ncset = ax.contour(X, Y, Z)\nax.clabel(cset, fontsize=12, inline=1)\n\nplt.show()\n\n",
- "language": "python",
- "metadata": {},
- "outputs": [],
- "prompt_number": 10
- }
- ],
- "metadata": {}
- }
- ]
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement