{ "cells": [ { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "%matplotlib inline" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "\n# Creating a map with contour lines\n\nPlotting a contour map is handled by :meth:`pygmt.Figure.grdcontour`.\n\n
This tutorial assumes the use of a Python notebook, such as IPython or Jupyter Notebook.\n To see the figures while using a Python script instead, use\n ``fig.show(method=\"external)`` to display the figure in the default PDF viewer.\n\n To save the figure, use ``fig.savefig(\"figname.pdf\")`` where ``\"figname.pdf\"``\n is the desired name and file extension for the saved figure.