Skip to content

Commit

Permalink
Merge pull request #627 from HadrienNU/master
Browse files Browse the repository at this point in the history
Correct bug on plot_meshline
  • Loading branch information
kinnala authored Apr 17, 2021
2 parents 6b27580 + 39d4cff commit aa01df2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions skfem/visuals/matplotlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,12 @@ def plot_meshline(m: MeshLine, z: ndarray, **kwargs):
# create new figure
fig = plt.figure()
ax = fig.add_subplot(111)
xs = []
ys = []
else:
ax = kwargs["ax"]

xs = []
ys = []

color = kwargs["color"] if "color" in kwargs else 'ko-'
for y1, y2, s, t in zip(z[m.t[0]],
z[m.t[1]],
Expand Down

0 comments on commit aa01df2

Please sign in to comment.