Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
wiggle plot extents
Browse files Browse the repository at this point in the history
  • Loading branch information
kwinkunks committed Dec 9, 2016
1 parent 008f3fb commit a52e3d5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
7 changes: 4 additions & 3 deletions config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# Configuration file for seisplot.py

# Dimensions. Overriden by command line option -d.
# Usually you can leave it on 3, even for 2D. Change to 2 if a 2D doesn't load properly.
ndim: 3

# 3D inline or xline or both or tslice.
Expand All @@ -14,7 +15,7 @@ number:
- 0.5

# Side label side
sidelabel: left
sidelabel: right

# Plot title, use _filename for filename, comment out or use false for no title.
title: My plot of _filename
Expand All @@ -35,7 +36,7 @@ tpi: 36
plot_height: 11

# ...OR Inches per second (more -> taller plot)
ips: 3
ips: 2

# Min and max time in seconds. Set tmax: 0 or omit it for max time in file.
trange:
Expand All @@ -46,7 +47,7 @@ trange:
skip: 1

# Seismic data display parameters (wiggle, varden, both):
display: vd
display: wiggle

# Multiplication factor for amplitudes
gain: 2
Expand Down
6 changes: 3 additions & 3 deletions seisplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,6 @@ def main(target, cfg):
rgb=cfg['colour'],
alpha=cfg['opacity'],
lw=cfg['lineweight'],
tmax=cfg['tmax'],
)

valid = ['vd', 'varden', 'variable', 'wiggle', 'both']
Expand All @@ -265,8 +264,9 @@ def main(target, cfg):
ax.set_yticklabels(ax.get_yticks(), fontsize=cfg['fontsize'] - 2)
ax.xaxis.set_major_formatter(tickfmt)
ax.yaxis.set_major_formatter(tickfmt)
ax.set_ylim(1000*cfg['trange'][1] or 1000*line.tbasis[-1],
1000*cfg['trange'][0])
if ('tslice' not in direction):
ax.set_ylim(1000*cfg['trange'][1] or 1000*line.tbasis[-1],
1000*cfg['trange'][0])

# Crossing point. Will only work for non-arb lines.
ax.axvline(ss[i-1].slines[0],
Expand Down

0 comments on commit a52e3d5

Please sign in to comment.