diff --git a/obspy/imaging/beachball.py b/obspy/imaging/beachball.py index a78be5b34ba..09afacf6708 100644 --- a/obspy/imaging/beachball.py +++ b/obspy/imaging/beachball.py @@ -164,7 +164,7 @@ def beach(fm, linewidth=2, facecolor='b', bgcolor='w', edgecolor='k', # resize. if axes is not None: # This is what holds the aspect ratio (but breaks the positioning) - col.set_transform(transforms.IdentityTransform()) + col.set_transform(transforms.Affine2D(np.identity(3))) # Next is a dirty hack to fix the positioning: # 1. Need to bring the all patches to the origin (0, 0). for p in col._paths: diff --git a/obspy/imaging/mopad_wrapper.py b/obspy/imaging/mopad_wrapper.py index cc52f41a13f..bdb0f7cb423 100644 --- a/obspy/imaging/mopad_wrapper.py +++ b/obspy/imaging/mopad_wrapper.py @@ -192,7 +192,7 @@ def beach(fm, linewidth=2, facecolor='b', bgcolor='w', edgecolor='k', # resize. if axes is not None: # This is what holds the aspect ratio (but breaks the positioning) - collection.set_transform(transforms.IdentityTransform()) + collection.set_transform(transforms.Affine2D(np.identity(3))) # Next is a dirty hack to fix the positioning: # 1. Need to bring the all patches to the origin (0, 0). for p in collection._paths: