Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tutorial notebook explanation #806

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
27f5d20
Add cyl_transverse_mercator.py
willschlitzer Dec 11, 2020
d64983f
Add cyl_universal_transverse_mercator.py
willschlitzer Dec 11, 2020
6ba8185
Changing land color to red in cyl_mercator.py to match GMT docs examp…
willschlitzer Dec 11, 2020
76850ee
Merge branch 'master' into cylindrical-projections
willschlitzer Dec 13, 2020
48431db
Merge branch 'master' of https://github.com/GenericMappingTools/pygmt
willschlitzer Jan 12, 2021
01052d2
Merge branch 'master' of https://github.com/GenericMappingTools/pygmt
willschlitzer Jan 18, 2021
c710988
Merge remote-tracking branch 'origin/master'
willschlitzer Jan 21, 2021
b94e0a2
Merge branch 'master' of https://github.com/GenericMappingTools/pygmt
willschlitzer Jan 21, 2021
413fec1
Merge branch 'master' of https://github.com/GenericMappingTools/pygmt
willschlitzer Jan 22, 2021
be51e2c
Merge branch 'master' of https://github.com/GenericMappingTools/pygmt
willschlitzer Jan 22, 2021
c19f17d
Merge branch 'master' of https://github.com/GenericMappingTools/pygmt
willschlitzer Jan 26, 2021
5054ae4
Add notebook explanation to 3d-perspective-image.py
willschlitzer Jan 26, 2021
e64dfa8
Add notebook explanation to coastlines.py
willschlitzer Jan 26, 2021
f85d1ef
Add notebook explanation to configuration.py
willschlitzer Jan 26, 2021
5c1298b
Add notebook explanation to contour-map.py
willschlitzer Jan 26, 2021
76a0d34
Add notebook explanation to earth-relief.py
willschlitzer Jan 26, 2021
0d6450a
Add notebook explanation to first-figure.py
willschlitzer Jan 26, 2021
40750d3
Add notebook explanation to frames.py
willschlitzer Jan 26, 2021
c879209
Add notebook explanation to plot.py
willschlitzer Jan 26, 2021
47f3fa4
Add notebook explanation to plot-lines.py
willschlitzer Jan 26, 2021
23b0e8a
Add notebook explanation to regions.py
willschlitzer Jan 26, 2021
7865924
Add notebook explanation to text.py
willschlitzer Jan 26, 2021
30f38c7
Merge branch 'master' into tutorial-notebook-explanation
willschlitzer Jan 27, 2021
926cc3d
Merge branch 'master' into tutorial-notebook-explanation
willschlitzer Feb 8, 2021
93bc01b
Update examples/tutorials/3d-perspective-image.py
willschlitzer Feb 10, 2021
b407aa5
Merge branch 'master' into tutorial-notebook-explanation
willschlitzer Feb 10, 2021
dd3ab29
Update notebook explanation to use note annotation
willschlitzer Feb 10, 2021
c9bf837
Merge branch 'master' into tutorial-notebook-explanation
weiji14 Feb 11, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions examples/tutorials/3d-perspective-image.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@

Create 3-D perspective image or surface mesh from a grid
using :meth:`pygmt.Figure.grdview`.

.. note::

This tutorial assumes the use of a Python notebook, such as IPython or Jupyter Notebook.
To see the figures while using a Python script instead, use
``fig.show(method="external)`` to display the figure in the default PDF viewer.
weiji14 marked this conversation as resolved.
Show resolved Hide resolved

To save the figure, use ``fig.savefig("figname.pdf")`` where ``"figname.pdf"``
is the desired name and file extension for the saved figure.
"""
# sphinx_gallery_thumbnail_number = 7

Expand Down
9 changes: 9 additions & 0 deletions examples/tutorials/coastlines.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@
======================

Plotting coastlines and borders is handled by :meth:`pygmt.Figure.coast`.

.. note::

This tutorial assumes the use of a Python notebook, such as IPython or Jupyter Notebook.
To see the figures while using a Python script instead, use
``fig.show(method="external)`` to display the figure in the default PDF viewer.

To save the figure, use ``fig.savefig("figname.pdf")`` where ``"figname.pdf"``
is the desired name and file extension for the saved figure.
"""
# sphinx_gallery_thumbnail_number = 5

Expand Down
9 changes: 9 additions & 0 deletions examples/tutorials/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@
==========================

Default GMT parameters can be set globally or locally using :class:`pygmt.config`.

.. note::

This tutorial assumes the use of a Python notebook, such as IPython or Jupyter Notebook.
To see the figures while using a Python script instead, use
``fig.show(method="external)`` to display the figure in the default PDF viewer.

To save the figure, use ``fig.savefig("figname.pdf")`` where ``"figname.pdf"``
is the desired name and file extension for the saved figure.
"""
# sphinx_gallery_thumbnail_number = 3

Expand Down
9 changes: 9 additions & 0 deletions examples/tutorials/contour-map.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@
=================================

Plotting a contour map is handled by :meth:`pygmt.Figure.grdcontour`.

.. note::

This tutorial assumes the use of a Python notebook, such as IPython or Jupyter Notebook.
To see the figures while using a Python script instead, use
``fig.show(method="external)`` to display the figure in the default PDF viewer.

To save the figure, use ``fig.savefig("figname.pdf")`` where ``"figname.pdf"``
is the desired name and file extension for the saved figure.
"""
# sphinx_gallery_thumbnail_number = 5

Expand Down
9 changes: 9 additions & 0 deletions examples/tutorials/earth-relief.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@
Plotting a map of Earth relief can use the data accessed by the
:meth:`pygmt.datasets.load_earth_relief` method. The data can then be plotted using the
:meth:`pygmt.Figure.grdimage` method.

.. note::

This tutorial assumes the use of a Python notebook, such as IPython or Jupyter Notebook.
To see the figures while using a Python script instead, use
``fig.show(method="external)`` to display the figure in the default PDF viewer.

To save the figure, use ``fig.savefig("figname.pdf")`` where ``"figname.pdf"``
is the desired name and file extension for the saved figure.
"""
# sphinx_gallery_thumbnail_number = 5

Expand Down
9 changes: 9 additions & 0 deletions examples/tutorials/first-figure.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@

Welcome to PyGMT! Here we'll cover some of basic concepts, like creating simple figures
and naming conventions.

.. note::

This tutorial assumes the use of a Python notebook, such as IPython or Jupyter Notebook.
To see the figures while using a Python script instead, use
``fig.show(method="external)`` to display the figure in the default PDF viewer.

To save the figure, use ``fig.savefig("figname.pdf")`` where ``"figname.pdf"``
is the desired name and file extension for the saved figure.
"""

########################################################################################
Expand Down
9 changes: 9 additions & 0 deletions examples/tutorials/frames.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@

Setting the style of the map frames, ticks, etc, is handled by the ``frame`` argument
that all plotting methods of :class:`pygmt.Figure`.

.. note::

This tutorial assumes the use of a Python notebook, such as IPython or Jupyter Notebook.
To see the figures while using a Python script instead, use
``fig.show(method="external)`` to display the figure in the default PDF viewer.

To save the figure, use ``fig.savefig("figname.pdf")`` where ``"figname.pdf"``
is the desired name and file extension for the saved figure.
"""
# sphinx_gallery_thumbnail_number = 4

Expand Down
9 changes: 9 additions & 0 deletions examples/tutorials/inset.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@
:meth:`pygmt.Figure.inset` method. After a large figure has been created,
call ``inset`` using a ``with`` statement, and new plot elements will be
added to the inset figure instead of the larger figure.

.. note::

This tutorial assumes the use of a Python notebook, such as IPython or Jupyter Notebook.
To see the figures while using a Python script instead, use
``fig.show(method="external)`` to display the figure in the default PDF viewer.

To save the figure, use ``fig.savefig("figname.pdf")`` where ``"figname.pdf"``
is the desired name and file extension for the saved figure.
"""
# sphinx_gallery_thumbnail_number = 4

Expand Down
9 changes: 9 additions & 0 deletions examples/tutorials/lines.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@
==========

Plotting lines is handled by :meth:`pygmt.Figure.plot`.

.. note::

This tutorial assumes the use of a Python notebook, such as IPython or Jupyter Notebook.
To see the figures while using a Python script instead, use
``fig.show(method="external)`` to display the figure in the default PDF viewer.

To save the figure, use ``fig.savefig("figname.pdf")`` where ``"figname.pdf"``
is the desired name and file extension for the saved figure.
"""
# sphinx_gallery_thumbnail_number = 3

Expand Down
9 changes: 9 additions & 0 deletions examples/tutorials/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,15 @@
:mod:`pygmt.datasets` package. If you don't have the data files already, they are
automatically downloaded and saved to a cache directory the first time you use them
(usually ``~/.gmt/cache``).

.. note::

This tutorial assumes the use of a Python notebook, such as IPython or Jupyter Notebook.
To see the figures while using a Python script instead, use
``fig.show(method="external)`` to display the figure in the default PDF viewer.

To save the figure, use ``fig.savefig("figname.pdf")`` where ``"figname.pdf"``
is the desired name and file extension for the saved figure.
"""
# sphinx_gallery_thumbnail_number = 3

Expand Down
9 changes: 9 additions & 0 deletions examples/tutorials/regions.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@
Many of the plotting functions take the ``region`` argument, which sets
the area that will be shown in the figure. This tutorial covers the different types of
inputs that it can accept.

.. note::

This tutorial assumes the use of a Python notebook, such as IPython or Jupyter Notebook.
To see the figures while using a Python script instead, use
``fig.show(method="external)`` to display the figure in the default PDF viewer.

To save the figure, use ``fig.savefig("figname.pdf")`` where ``"figname.pdf"``
is the desired name and file extension for the saved figure.
"""

import pygmt
Expand Down
9 changes: 9 additions & 0 deletions examples/tutorials/text.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@

It is often useful to add annotations to a map plot. This is handled by
:meth:`pygmt.Figure.text`.

.. note::

This tutorial assumes the use of a Python notebook, such as IPython or Jupyter Notebook.
To see the figures while using a Python script instead, use
``fig.show(method="external)`` to display the figure in the default PDF viewer.

To save the figure, use ``fig.savefig("figname.pdf")`` where ``"figname.pdf"``
is the desired name and file extension for the saved figure.
"""
# sphinx_gallery_thumbnail_number = 3

Expand Down