Skip to content

Commit

Permalink
Add default limits to the skew-T plot
Browse files Browse the repository at this point in the history
  • Loading branch information
jrleeman committed Jul 16, 2016
1 parent 1012d2f commit 45148dd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions metpy/plots/skewt.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,10 @@ def __init__(self, fig=None, rotation=30, subplot=(1, 1, 1)):
self.ax = fig.add_subplot(*subplot, projection='skewx', rotation=rotation)
self.ax.grid(True)

# Set axis limits to reasonable values
self.ax.set_ylim(1000, 100)
self.ax.set_xlim(-40, 60)

def plot(self, p, t, *args, **kwargs):
r'''Plot data.
Expand Down

0 comments on commit 45148dd

Please sign in to comment.