This is an automated email from the ASF dual-hosted git repository.

rkk pushed a commit to branch tmp-stv
in repository https://gitbox.apache.org/repos/asf/sdap-nexus.git

commit e521243eb24d894ff38924d4fbcb00d3abdc574e
Author: rileykk <[email protected]>
AuthorDate: Mon Dec 11 11:09:56 2023 -0800

    Add labels
---
 analysis/webservice/algorithms/Tomogram3D.py | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/analysis/webservice/algorithms/Tomogram3D.py 
b/analysis/webservice/algorithms/Tomogram3D.py
index 3962303..900d26d 100644
--- a/analysis/webservice/algorithms/Tomogram3D.py
+++ b/analysis/webservice/algorithms/Tomogram3D.py
@@ -285,6 +285,10 @@ class Tomogram3DResults(NexusResults):
             depthshade=True
         )
 
+        ax.set_ylabel('Latitude')
+        ax.set_xlabel('Longitude')
+        ax.set_zlabel('Elevation w.r.t. dataset reference (m)')
+
         buffer = BytesIO()
 
         logger.info('Writing plot to buffer')
@@ -310,6 +314,10 @@ class Tomogram3DResults(NexusResults):
             depthshade=True
         )
 
+        ax.set_ylabel('Latitude')
+        ax.set_xlabel('Longitude')
+        ax.set_zlabel('Elevation w.r.t. dataset reference (m)')
+
         buffer = BytesIO()
 
         with TemporaryDirectory() as td:
@@ -318,8 +326,6 @@ class Tomogram3DResults(NexusResults):
 
                 ax.view_init(azim=azim)
 
-                # plt.draw()
-                # plt.pause(0.001)
                 plt.savefig(join(td, f'fr_{azim}.png'))
 
             with contextlib.ExitStack() as stack:

Reply via email to