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

Commit

Permalink
put the x label back to horizontal slice
Browse files Browse the repository at this point in the history
  • Loading branch information
Mei-Hui Su authored and Mei-Hui Su committed Jun 19, 2019
1 parent 710b745 commit fa67460
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 3 additions & 2 deletions utilities/pycvm/pycvm/basin_slice.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ def getplotvals(self, mproperty="vs"):
# Plots the basin depth data as a horizontal slice. This code is very similar to the
# HorizontalSlice routine.
#
def plot(self) :
# @param horizontal_label The horizontal label of the plot. Optional.
def plot(self, horizontal_label = "Depth (km)") :

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

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

HorizontalSlice.plot(self)
HorizontalSlice.plot(self, horizontal_label)

##
# @class Z10Slice
Expand Down
4 changes: 1 addition & 3 deletions utilities/pycvm/pycvm/horizontal_slice.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,7 @@ def getplotvals(self, mproperty="vs"):
##
# Plots the horizontal slice either to an image or a file name.
#
def plot(self):

horizontal_label = None
def plot(self, horizontal_label = None):

if self.upperleftpoint.description == None:
location_text = ""
Expand Down

0 comments on commit fa67460

Please sign in to comment.