{
  "cells": [
    {
      "cell_type": "code",
      "execution_count": null,
      "metadata": {
        "collapsed": false
      },
      "outputs": [],
      "source": [
        "%matplotlib inline"
      ]
    },
    {
      "cell_type": "markdown",
      "metadata": {},
      "source": [
        "\n# Heamap Slicer\n"
      ]
    },
    {
      "cell_type": "code",
      "execution_count": null,
      "metadata": {
        "collapsed": false
      },
      "outputs": [],
      "source": [
        "import matplotlib.pyplot as plt\nimport numpy as np\n\nfrom mpl_interactions import heatmap_slicer\n\nx = np.linspace(0, np.pi, 100)\ny = np.linspace(0, 10, 200)\nX, Y = np.meshgrid(x, y)\ndata1 = np.sin(X) + np.exp(np.cos(Y))\ndata2 = np.cos(X) + np.exp(np.sin(Y))\nfig, axes = heatmap_slicer(\n    x,\n    y,\n    (data1, data2),\n    slices=\"both\",\n    heatmap_names=(\"dataset 1\", \"dataset 2\"),\n    labels=(\"Some wild X variable\", \"Y axis\"),\n    interaction_type=\"move\",\n)\nplt.tight_layout()\n\nplt.show()"
      ]
    }
  ],
  "metadata": {
    "kernelspec": {
      "display_name": "Python 3",
      "language": "python",
      "name": "python3"
    },
    "language_info": {
      "codemirror_mode": {
        "name": "ipython",
        "version": 3
      },
      "file_extension": ".py",
      "mimetype": "text/x-python",
      "name": "python",
      "nbconvert_exporter": "python",
      "pygments_lexer": "ipython3",
      "version": "3.7.9"
    }
  },
  "nbformat": 4,
  "nbformat_minor": 0
}