Skip to content

Commit

Permalink
DOC: fix references to ProjectionPlot, which is now a function (used …
Browse files Browse the repository at this point in the history
…to be a class)
  • Loading branch information
neutrinoceros committed Jul 24, 2021
1 parent e6e5690 commit f441515
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion doc/source/analyzing/objects.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Alternatively, we could create a sphere object of radius 1 kpc on location
After an object has been created, it can be used as a data_source to certain
tasks like ``ProjectionPlot`` (see
:class:`~yt.visualization.plot_window.ProjectionPlot`), one can compute the
:func:`~yt.visualization.plot_window.ProjectionPlot`), one can compute the
bulk quantities associated with that object (see :ref:`derived-quantities`),
or the data can be examined directly. For example, if you want to figure out
the temperature at all indexed locations in the central sphere of your
Expand Down
2 changes: 1 addition & 1 deletion doc/source/cookbook/complex_plots.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ with a fourth entering for particle data that is deposited onto a mesh
is inherited by
:class:`~yt.visualization.plot_window.AxisAlignedSlicePlot`,
:class:`~yt.visualization.plot_window.OffAxisSlicePlot`,
:class:`~yt.visualization.plot_window.ProjectionPlot`, and
:func:`~yt.visualization.plot_window.ProjectionPlot`, and
:class:`~yt.visualization.plot_window.OffAxisProjectionPlot`. This
controls the number of resolution elements in the
:class:`~yt.visualization.fixed_resolution.FixedResolutionBuffer`,
Expand Down
2 changes: 1 addition & 1 deletion doc/source/cookbook/simple_plots.rst
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ Making Plots of Multiple Fields Simultaneously

By adding multiple fields to a single
:class:`~yt.visualization.plot_window.SlicePlot` or
:class:`~yt.visualization.plot_window.ProjectionPlot` some of the overhead of
:func:`~yt.visualization.plot_window.ProjectionPlot` some of the overhead of
creating the data object can be reduced, and better performance squeezed out.
This recipe shows how to add multiple fields to a single plot.
See :ref:`slice-plots` and :ref:`projection-plots` for more information.
Expand Down
2 changes: 1 addition & 1 deletion doc/source/reference/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2219,7 +2219,7 @@ Most Visible Improvements
Other Changes
^^^^^^^^^^^^^

* :class:`~yt.visualization.plot_window.ProjectionPlot` and
* :func:`~yt.visualization.plot_window.ProjectionPlot` and
:class:`~yt.visualization.plot_window.SlicePlot` supplant the functionality
of PlotCollection.
* Camera path creation from keyframes and splines
Expand Down
2 changes: 1 addition & 1 deletion doc/source/visualizing/callbacks.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ lines, text, markers, streamlines, velocity vectors, contours, and more.

Callbacks can be applied to plots created with
:class:`~yt.visualization.plot_window.SlicePlot`,
:class:`~yt.visualization.plot_window.ProjectionPlot`,
:func:`~yt.visualization.plot_window.ProjectionPlot`,
:class:`~yt.visualization.plot_window.OffAxisSlicePlot`, or
:class:`~yt.visualization.plot_window.OffAxisProjectionPlot` by calling
one of the ``annotate_`` methods that hang off of the plot object.
Expand Down
6 changes: 3 additions & 3 deletions doc/source/visualizing/plots.rst
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ generating annotated 2D visualizations of simulation data. You can create a
supplying a dataset, a list of fields to plot, and a plot center to
create a :class:`~yt.visualization.plot_window.AxisAlignedSlicePlot`,
:class:`~yt.visualization.plot_window.OffAxisSlicePlot`,
:class:`~yt.visualization.plot_window.ProjectionPlot`, or
:func:`~yt.visualization.plot_window.ProjectionPlot`, or
:class:`~yt.visualization.plot_window.OffAxisProjectionPlot`.

Plot objects use yt data objects to extract the maximum resolution
Expand Down Expand Up @@ -296,7 +296,7 @@ Using a fast adaptive projection, yt is able to quickly project
simulation data along the coordinate axes.

Projection plots are created by instantiating a
:class:`~yt.visualization.plot_window.ProjectionPlot` object. For
:func:`~yt.visualization.plot_window.ProjectionPlot` object. For
example:

.. python-script::
Expand All @@ -322,7 +322,7 @@ the plot to a png image file.
Like :ref:`slice-plots`, annotations and modifications can be applied
after creating the ``ProjectionPlot`` object. Annotations are
described in :ref:`callbacks`. See
:class:`~yt.visualization.plot_window.ProjectionPlot` for the full
:func:`~yt.visualization.plot_window.ProjectionPlot` for the full
class description.

If you want to project through a subset of the full dataset volume,
Expand Down

0 comments on commit f441515

Please sign in to comment.