Skip to content

Commit

Permalink
[docs] replace images, adapt text where necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
jgrewe committed Jan 3, 2025
1 parent b3be76c commit e78777a
Show file tree
Hide file tree
Showing 8 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/source/examples/imageWithMetadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def plot_data(data_array):
if docutils.is_running_under_pytest():
plt.close()
else:
fig.savefig('image_with_metadata.png')
fig.savefig('../images/image_with_metadata.png')
fig.show()


Expand Down
4 changes: 2 additions & 2 deletions docs/source/examples/multipleROIs.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def plot_data(tag):
if docutils.is_running_under_pytest():
plt.close()
else:
# plt.savefig("../images/multiple_rois.png")
plt.savefig("../images/multiple_rois.png")
plt.show()


Expand All @@ -71,7 +71,7 @@ def plot_roi_data(tag):
if docutils.is_running_under_pytest():
plt.close()
else:
# fig.savefig('../images/retrieved_rois.png')
fig.savefig('../images/retrieved_rois.png')
plt.show()


Expand Down
2 changes: 1 addition & 1 deletion docs/source/examples/singleROI.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def plot_data(tag):
draw_rect(img_data, pos, ext)
new_img = img.fromarray(img_data)
if not docutils.is_running_under_pytest():
# new_img.save("../images/single_roi.png")
new_img.save("../images/single_roi.png")
new_img.show()


Expand Down
2 changes: 1 addition & 1 deletion docs/source/image_data.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ attribution in the code.

.. literalinclude:: examples/imageData.py
:lines: 59-64
:caption: Image data is just 3-D data that can be easily stored in a *DataArray*. We need to add three dimension descriptors, though (to run the example you need the :download:`example code <examples/imageData.py>` , the :download:`image <examples/lenna.png>` *imagemagick* or *xv* packages).
:caption: Image data is just 3-D data that can be easily stored in a *DataArray*. We need to add three dimension descriptors, though (to run the example you need the :download:`example code <examples/imageData.py>` , the :download:`image <examples/boats.png>` *imagemagick* or *xv* packages).

.. image:: examples/lenna.png
:alt: lenna
Expand Down
Binary file added docs/source/images/image_with_metadata.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/source/images/multiple_rois.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/source/images/retrieved_rois.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/source/images/single_roi.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e78777a

Please sign in to comment.