Skip to content
This repository was archived by the owner on Feb 8, 2022. It is now read-only.

Commit fa67460

Browse files
Mei-Hui SuMei-Hui Su
authored andcommitted
put the x label back to horizontal slice
1 parent 710b745 commit fa67460

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

utilities/pycvm/pycvm/basin_slice.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@ def getplotvals(self, mproperty="vs"):
101101
# Plots the basin depth data as a horizontal slice. This code is very similar to the
102102
# HorizontalSlice routine.
103103
#
104-
def plot(self) :
104+
# @param horizontal_label The horizontal label of the plot. Optional.
105+
def plot(self, horizontal_label = "Depth (km)") :
105106

106107
if self.upperleftpoint.description == None:
107108
location_text = ""
@@ -120,7 +121,7 @@ def plot(self) :
120121

121122
self.meta['mproperty']="vs"
122123

123-
HorizontalSlice.plot(self)
124+
HorizontalSlice.plot(self, horizontal_label)
124125

125126
##
126127
# @class Z10Slice

utilities/pycvm/pycvm/horizontal_slice.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,7 @@ def getplotvals(self, mproperty="vs"):
165165
##
166166
# Plots the horizontal slice either to an image or a file name.
167167
#
168-
def plot(self):
169-
170-
horizontal_label = None
168+
def plot(self, horizontal_label = None):
171169

172170
if self.upperleftpoint.description == None:
173171
location_text = ""

0 commit comments

Comments
 (0)