{
  "nbformat_minor": 0, 
  "nbformat": 4, 
  "cells": [
    {
      "execution_count": null, 
      "cell_type": "code", 
      "source": [
        "%matplotlib inline"
      ], 
      "outputs": [], 
      "metadata": {
        "collapsed": false
      }
    }, 
    {
      "source": [
        "\n# 2D contour with multiple data sets by changing settings\n\n\nPlot good figures with multiple data sets using more settings.\n\n"
      ], 
      "cell_type": "markdown", 
      "metadata": {}
    }, 
    {
      "execution_count": null, 
      "cell_type": "code", 
      "source": [
        "import coplot.plot_contours as plc\nimport matplotlib.pyplot as plt\nimport numpy as np\n\n\ntest1 = np.random.randn(50000, 2)\na1, b1 = test1[:,0], test1[:,1]\ntest2 = test1 + 1\na2, b2 = test2[:,0], test2[:,1]\n\n# If you want to plot good figures, you should use it like this:\nfig = plc.Plot_2d([[a1,b1],[a2,b2]]).plot(bins=150,labels=[r'$a$', r'$b$'],\\\nfill_contours=False,colors=['r','g'],line_styles=['-','--'], smooth=3, ticks_size=10,\\\nbest_values=[[0,0],[1,1]], legend=True, legend_labels=['Data 1','Data 2'])\n# and you can save the figure like this:\n# pl.savefig('test_2d_3.pdf', fig)\nplt.show()"
      ], 
      "outputs": [], 
      "metadata": {
        "collapsed": false
      }
    }
  ], 
  "metadata": {
    "kernelspec": {
      "display_name": "Python 2", 
      "name": "python2", 
      "language": "python"
    }, 
    "language_info": {
      "mimetype": "text/x-python", 
      "nbconvert_exporter": "python", 
      "name": "python", 
      "file_extension": ".py", 
      "version": "2.7.18", 
      "pygments_lexer": "ipython2", 
      "codemirror_mode": {
        "version": 2, 
        "name": "ipython"
      }
    }
  }
}