Last active
January 2, 2018 17:36
-
-
Save spencerkclark/7bd3734a6bc7752163b2d0762ded8af7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"cells": [ | |
{ | |
"metadata": { | |
"collapsed": true, | |
"editable": true, | |
"deletable": true, | |
"trusted": true | |
}, | |
"cell_type": "code", | |
"source": "import matplotlib.pyplot as plt\nimport numpy as np\n\nfrom mpl_toolkits.axes_grid1 import AxesGrid\n%matplotlib inline", | |
"execution_count": 1, | |
"outputs": [] | |
}, | |
{ | |
"metadata": { | |
"collapsed": true, | |
"editable": true, | |
"deletable": true, | |
"trusted": true | |
}, | |
"cell_type": "code", | |
"source": "class WidthAxesGrid(object):\n def __init__(self, rows, cols, width, top_pad=0., bottom_pad=0., \n left_pad=0., right_pad=0., cbar_size=0.125, \n cbar_pad=0.125, axes_pad=(0.2, 0.2), cbar_mode=None, \n cbar_location='bottom', aspect=0.5, cbar_short_side_pad=0.):\n self.fig = plt.figure()\n self.rows = rows\n self.cols = cols\n self.width = width\n self.top_pad = top_pad\n self.bottom_pad = bottom_pad\n self.left_pad = left_pad\n self.right_pad = right_pad\n self.cbar_size = cbar_size\n self.cbar_pad = cbar_pad\n self.axes_pad = axes_pad\n self.cbar_short_side_pad = cbar_short_side_pad\n \n self.aspect = aspect\n self.cbar_mode = cbar_mode\n self.cbar_location = cbar_location\n \n self.grid = AxesGrid(self.fig, self.rect(), nrows_ncols=(self.rows, self.cols),\n cbar_size=self.cbar_size, cbar_pad=self.cbar_pad,\n axes_pad=self.axes_pad, cbar_mode=self.cbar_mode, \n cbar_location=self.cbar_location, aspect=False)\n \n self.fig.set_size_inches(self.width, self.height)\n self.caxes = self.resize_colorbar_axes()\n \n @property\n def plot_width(self):\n if self.cbar_mode == 'each':\n if self.cbar_location in ['left', 'right']:\n return (self.width - self.left_pad - self.right_pad - \n (self.cols - 1) * self.axes_pad[0] - \n self.cols * (self.cbar_size + self.cbar_pad)) / self.cols\n elif self.cbar_location in ['bottom', 'top']:\n return (self.width - self.left_pad - self.right_pad - \n (self.cols - 1) * self.axes_pad[0]) / self.cols\n else:\n raise ValueError\n elif self.cbar_mode == 'single':\n if self.cbar_location in ['left', 'right']:\n return (self.width - self.left_pad - self.right_pad - \n (self.cols - 1) * self.axes_pad[0] - \n self.cbar_size - self.cbar_pad) / self.cols\n elif self.cbar_location in ['bottom', 'top']:\n return (self.width - self.left_pad - self.right_pad - \n (self.cols - 1) * self.axes_pad[0]) / self.cols\n else:\n raise ValueError\n elif self.cbar_mode is None:\n return (self.width - self.left_pad - self.right_pad) / self.cols\n else:\n raise ValueError\n \n @property\n def plot_height(self):\n return self.plot_width * self.aspect\n \n @property\n def height(self):\n if self.cbar_mode == 'each':\n if self.cbar_location in ['left', 'right']:\n return (self.plot_height * self.rows + self.top_pad +\n self.bottom_pad + (self.rows - 1) * self.axes_pad[1])\n elif self.cbar_location in ['bottom', 'top']:\n return ((self.plot_height + self.cbar_pad + self.cbar_size) * \n self.rows + self.top_pad + self.bottom_pad + (self.rows - 1) * self.axes_pad[1]) \n else:\n raise ValueError\n elif self.cbar_mode == 'single':\n if self.cbar_location in ['left', 'right']:\n return (self.plot_height * self.rows + self.top_pad + \n self.bottom_pad + (self.rows - 1) * self.axes_pad[1])\n elif self.cbar_location in ['bottom', 'top']:\n return (self.cbar_pad + self.cbar_size + self.plot_height * \n self.rows + self.top_pad + self.bottom_pad + (self.rows - 1) * self.axes_pad[1])\n else:\n raise ValueError\n elif self.cbar_mode is None:\n return (self.plot_height * self.rows + self.top_pad + \n self.bottom_pad + (self.rows - 1) * self.axes_pad[1])\n else:\n raise ValueError\n \n def rect(self):\n x0 = self.left_pad / self.width\n y0 = self.bottom_pad / self.height\n x = (self.width - self.left_pad - self.right_pad) / self.width\n y = (self.height - self.top_pad - self.bottom_pad) / self.height\n return [x0, y0, x, y]\n \n def restore_aspect(self):\n \"\"\"Not needed since with aspect=False in AxesGrid we can set the \n aspect ratio of the panels implicitly by precisely setting the \n figure size. This can be used in the case where one sets aspect=True\n in AxesGrid.\n \"\"\"\n for ax in self.grid.axes_all:\n x0, x1 = ax.get_xlim()\n y0, y1 = ax.get_ylim()\n data_aspect = np.abs((y1 - y0) / (x1 - x0))\n ax.set_aspect(self.aspect / data_aspect)\n \n def resize_colorbar_axes(self):\n if self.cbar_mode == 'each':\n caxes = []\n for cax in self.grid.cbar_axes:\n loc = cax.get_axes_locator()\n pos = loc(cax, None)\n cax.set_visible(False)\n \n pos2 = self.compute_cax_position(pos)\n caxes.append(self.fig.add_axes(pos2))\n return caxes\n \n elif self.cbar_mode == 'single':\n cax = self.grid.cbar_axes[0]\n loc = cax.get_axes_locator()\n pos = loc(cax, None)\n cax.set_visible(False)\n pos2 = self.compute_cax_position(pos)\n return self.fig.add_axes(pos2)\n else:\n return None\n \n def compute_cax_position(self, pos):\n if self.cbar_location in ['bottom', 'top']:\n return [pos.x0 + self.cbar_short_side_pad / self.width, pos.y0,\n pos.width - 2. * self.cbar_short_side_pad / self.width, pos.height]\n elif self.cbar_location in ['left', 'right']:\n return [pos.x0, pos.y0 + self.cbar_short_side_pad / self.height, pos.width,\n pos.height - 2. * self.cbar_short_side_pad / self.height]\n else:\n raise ValueError", | |
"execution_count": 2, | |
"outputs": [] | |
}, | |
{ | |
"metadata": { | |
"collapsed": false, | |
"editable": true, | |
"deletable": true, | |
"trusted": true | |
}, | |
"cell_type": "code", | |
"source": "wa = WidthAxesGrid(3, 1, 3.2, left_pad=0.5, right_pad=0.5, top_pad=0.2, bottom_pad=0.5, axes_pad=(0.25, 0.2))\nfor ax in wa.grid.axes_all:\n ax.set_xlim(0, 4)\n ax.axvline(2.)\n ax.axhline(0.5)\n \nwa.fig.savefig('test.pdf')", | |
"execution_count": 3, | |
"outputs": [ | |
{ | |
"output_type": "display_data", | |
"data": { | |
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAMcAAAEtCAYAAA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PlGLQdpUm299g+2cbPYGyvtv0T28dsH7H9\nw6YzXWD7l23/k+2fVtn+rOlM/dheZvtfbP/9oLVDL0fhdpQmvSlpY9MhEnOS/jgifk3SBklPt+i5\nOy/pvoj4TUnfkbTR9oaGM/XzQ0nHShY2ceUo2Y7SmIj4UC39jCYiTkTEP1f3/1Pd/8i3NJuqK7r+\nqzpcXt1a9W6P7Vsl/a6kvypZ30Q5+m1HacV/4KWk2vn8XUmfNJvkG9VLlkOSTkr6cUS0JlvlLyX9\niaT/LVncRDmKtpogZ/tXJf2tpD+MiC+bznNBRPxPRHxH3V0Ud9v+9aYzXWD79ySdjIip0u9pohwl\n21GQsL1c3WL8TUT8XdN5+omI/5D0j2rX327fl7TZ9r+r+1L+Ptt/fblvaKIcJdtR0Ef1zwDekHQs\nIv6i6Ty9bK+0fVN1/1ck/bakf2021TciYldE3BoRa9T9f+6DiPjB5b5n6OWIiDlJF7ajHJO0LyKO\nDDtHxvZeSR9JutP2cdtPNJ2px/cl/YG6v/UOVbcHmw5VWSXpJ7YPq/sL8McRMfDt0jZj+wiQ4BNy\nIEE5gATlABKUA0hQDiBBOYAE5QAS/wem5fPe4UXtNAAAAABJRU5ErkJggg==\n", | |
"text/plain": "<matplotlib.figure.Figure at 0x10f4d4f90>" | |
}, | |
"metadata": {} | |
} | |
] | |
}, | |
{ | |
"metadata": { | |
"collapsed": false, | |
"editable": true, | |
"deletable": true, | |
"trusted": true | |
}, | |
"cell_type": "code", | |
"source": "wa = WidthAxesGrid(3, 1, 3.2, left_pad=0.5, right_pad=0.5, top_pad=0.2, bottom_pad=0.5, axes_pad=(0.25, 0.3),\n cbar_mode='each', cbar_size=0.125, cbar_pad=0.3, cbar_location='bottom', cbar_short_side_pad=0.2)\nfor ax in wa.grid.axes_all:\n ax.set_xlim(0, 4)\n ax.axvline(2.)\n ax.axhline(0.5)\n\nwa.fig.savefig('test2.pdf')", | |
"execution_count": 4, | |
"outputs": [ | |
{ | |
"output_type": "display_data", | |
"data": {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\nSXslfbLHvnut4eZ0SLFL0uQF1KFug3RIuRTYU5pdxzaYbY21D23R+HWOkipDE+Ta1DGsQeWfIekW\nYAT4cGn2uyLiJUnLgD2SDkXEsQHU8BCwPSImJI1S7Emv66X+PvuftB7YFRFvlebVsQ1mW2PtQ1u0\nac9R5TaSM20knQdcRLELruMWlEo/Q9LHgG3A2oiYmJwfES+l/45TPH7/qh77r1RDRLxa6vdeYHUv\n9ffbf8l6Og6patoG3eRqrP82pH5PoOp6UezFxil21ZMng1d2tLmdqSfkO9P0lUw9IR+n9xPyKv1f\nRXHCurxj/kJgfppeBDzPDCeyfdawuDT9KWBv6YT0hVTLwjR9Sd39p3YrgF+TLiLXuQ3S+kvIn5B/\ngqkn5E/U9fnP6qvpUHR88JuA59I/wG1p3p0Uv6UBLgR+SnHC/QSwrLTutrTeEWDNgPr/BfBb4EB6\n7U7zPwAcSv+YDgGbB7gNvgU8k/p6FFhZWvdzadscBW4dRP/p/TeBb3esV8s2oNgbHQdOUewNNgOj\nwGhaLoovxx1L/YzU+fnLL98+YpbRpnMOs1ZxOMwyHA6zDIfDLMPhMMtwOMwyHA6zjP8Dz2um2+SO\n/eAAAAAASUVORK5CYII=\n", | |
"text/plain": "<matplotlib.figure.Figure at 0x10f4ead10>" | |
}, | |
"metadata": {} | |
} | |
] | |
}, | |
{ | |
"metadata": { | |
"collapsed": false, | |
"editable": true, | |
"deletable": true, | |
"trusted": true | |
}, | |
"cell_type": "code", | |
"source": "import matplotlib as mpl\nwa = WidthAxesGrid(3, 1, 3.2, left_pad=0.5, right_pad=0.5, top_pad=0.2, bottom_pad=0.5,\n axes_pad=(0.25, 0.2),\n cbar_mode='single', cbar_size=0.125, cbar_pad=0.125, cbar_location='right', \n cbar_short_side_pad=0.5)\nfor ax in wa.grid.axes_all:\n ax.set_xlim(0, 4)\n ax.axvline(2.)\n ax.axhline(0.5)\n\n cs = ax.contourf(np.random.random((10, 20)),\n extend='both')\n\ncmap = mpl.cm.viridis\ncb = mpl.colorbar.ColorbarBase(wa.caxes, cmap=cmap,\n orientation='vertical')\ncb.ax.get_position()\nwa.fig.savefig('test3.pdf')", | |
"execution_count": 5, | |
"outputs": [ | |
{ | |
"output_type": "display_data", | |
"data": { | |
"image/png": "iVBORw0KGgoAAAANSUhEUgAAANEAAAESCAYAAABjMTBBAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAADl0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uIDIuMS4xLCBo\ndHRwOi8vbWF0cGxvdGxpYi5vcmcvAOZPmwAAIABJREFUeJztnWuQHcV1x/9n77K7YhfJIuJlgUAF\nigIlAq4Qh5gPBhsrsuPClSonBpepOEWsL3aCC5MULqcSQr44D5w4ZZdjle0iJrFT2AkplcsxkNiE\nVPAD8APEQ0E2WBaYKAJZWgmtpL178mHuXM1ezUyffk333Olf1dbuvXduT+9M/+d0n+4+h5gZiUTC\nnInQFUgk2k4SUSJhSRJRImFJElEiYUkSUSJhSRJRImFJElEiYUkSUSJhSRJRImHJpJdCV8zy1MrT\nSz/rT+uX15vuax2/cmqh9P2Dx2b0Tz6gf7Rn/F0AwOJU9nvyGHpH7YrSpbcQ36qUiSPHh38fPL53\nHzOfEbA6VngR0dTK07Hh+luUx81fuKRV7tz6A6ZVAgCcqXHsoedWWZ1rlKV96wAAE2t2a3/3tB+G\n6TCs3nmskfP85323/biRE3nCi4iklDWOOmGVNWxbYVWVGxO6DxvAjfD2b5yy+n5TIgxNUBGVMXrz\nVQ1IR1ihxDK3/gAOH1oEAMyW1M1HvUIJr4hYhPc5PW3jRCeiUXStFRDesuhaR1tr6ur/NRFeTqgu\nZwxEL6IyTITlExddylDnDy3AcRBfK0VUhm430BZpw928bicA4MFnzwcAXD14LeX+3Rv1KqaJiQBd\nWvqQDz9XjI2IRnEtKl3RuMJ1eS5EaWr5QnezfTG2IhqlKCqpoHQai+vG7otiPX1buVGK13OcBNUZ\nEelYIt0nbVsEBPgTzj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D/NcEtEUsvR72/1WK5FoD5Ls4aV5Lr3XLJFoCaIJgrI8lwq2\nmVXHC6ku5aS6OIIU2cUTiYSC5P9MJCxxKiIi2kJEO4loFxHd5rJsg7p8joj2ElFQVzsRnUdE3yCi\np4noSSK6OWBdZojoO0T0g0Fd/jRUXQp16hHR94joK6HrYoozERWWB70VwCUAbiCiS1yVb8BdALYE\nPH/OIoAPMfPFAK4E8P6A1+UogDcx82UALgewhYiuDFSXnJsBqNeIRYxLSzRcHsTMxwDky4OCwMwP\nAXgl1PkL9fgpM3938Pc8sgazNlBdmJkPDV6eMvgJNigmonMB/DqAz4SqgwtciqhseVCQxhIrRHQB\ngNcB+HbAOvSI6PsA9gJ4gJmD1QXA3wD4QwCtjmrjUkSi5UFdhYjmAPwzgA8y88FQ9WDmPjNfjmzl\nyeuJaFOIehDR2wHsZebHQpzfJS5FJFoe1EWI6BRkAvpHZv6X0PUBAGb+GYAHEW7ceBWA64joeWRd\n/zcR0T8EqosVLkWUlgeVQEQE4LMAnmbmjwWuyxlE9JrB3ysAXAvgmRB1YeYPM/O5zHwBsrbydWZ+\nT4i62OJMRMy8CCBfHvQ0gHtCLg8ioi8C+CaAjUS0h4huClSVqwDciOxJ+/3Bz9sC1eUcAN8goseR\nPfQeYObWupZjIa1YSCQsSSsWEglLkogSCUuSiBIJS5KIEglLkogSCUuSiBIJS5KIEglLkogSCUv+\nH0qOJ52b2wRmAAAAAElFTkSuQmCC\n", | |
"text/plain": "<matplotlib.figure.Figure at 0x106b58550>" | |
}, | |
"metadata": {} | |
} | |
] | |
}, | |
{ | |
"metadata": { | |
"collapsed": true, | |
"trusted": true, | |
"editable": true, | |
"deletable": true | |
}, | |
"cell_type": "code", | |
"source": "", | |
"execution_count": null, | |
"outputs": [] | |
} | |
], | |
"metadata": { | |
"kernelspec": { | |
"name": "python2", | |
"display_name": "Python 2", | |
"language": "python" | |
}, | |
"language_info": { | |
"mimetype": "text/x-python", | |
"nbconvert_exporter": "python", | |
"name": "python", | |
"pygments_lexer": "ipython2", | |
"version": "2.7.12", | |
"file_extension": ".py", | |
"codemirror_mode": { | |
"version": 2, | |
"name": "ipython" | |
} | |
}, | |
"gist_id": "7bd3734a6bc7752163b2d0762ded8af7" | |
}, | |
"nbformat": 4, | |
"nbformat_minor": 2 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment