Skip to content

Commit

Permalink
Update user guide
Browse files Browse the repository at this point in the history
  • Loading branch information
ericpre committed Sep 28, 2023
1 parent 6852efb commit 40fb434
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions doc/user_guide/signal2d.rst
Original file line number Diff line number Diff line change
Expand Up @@ -66,16 +66,16 @@ the scheduler of the :ref:`dask backend <dask_backends>`.
.. _signal2D.crop:

Cropping an image
-----------------
Cropping a Signal2D
-------------------

The :py:meth:`~._signals.signal2d.Signal2D.crop_signal2D` method crops the
image *in-place* e.g.:

.. code-block:: python
>>> im = hs.datasets.example_signals.object_hologram()
>>> imc = im.crop(left=120, top=300, bottom=560) # im is cropped in-place
>>> im.crop_signal2D(left=120, top=300, bottom=560) # im is cropped in-place
Cropping in HyperSpy is performed using the :ref:`Signal indexing
Expand Down
2 changes: 1 addition & 1 deletion upcoming_changes/3197.api.rst
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Renamed `Signal2D.crop_image` to `Signal2D.crop_signal2D`
Renamed ``Signal2D.crop_image`` to :meth:`~.api.signals.Signal2D.crop_signal2D`

0 comments on commit 40fb434

Please sign in to comment.