Use sample data from GMT in the first steps nb
"import gmt"
]
},
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "Make a figure to try to reproduce an example from the [GMT Tutorial](http://gmt.soest.hawaii.edu/doc/latest/GMT_Tutorial.html#session-one)."
+ ]
+ },
{
"cell_type": "code",
"execution_count": null,
"# Optional if this is the only figure (but recommended).\n",
"gmt.figure()\n",
"# Creat a global basemap with the Mollweide projection\n",
- "gmt.psbasemap(R='g', J='W7i', B='afg', P=True)\n",
- "# Unlike the GMT command-line interface, no figure file is generated unless\n",
- "# savefig or psconvert are called.\n",
+ "gmt.psbasemap(region=[130, 150, 35, 50], projection='M6i', \n",
+ " frame=True, portrait=True)\n",
+ "# Plot the quake data from the GMT tutorial\n",
+ "gmt.psxy('@tut_quakes.ngdc', style='c0.4c', color='red', \n",
+ " W='faint', i='4,3')\n",
+ "# Unlike the GMT command-line interface, no figure \n",
+ "# file is generated unless savefig or psconvert are \n",
+ "# called.\n",
"gmt.psconvert(F='myfigure', T='g', A=True)"
]
},
