Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix beach pdf output when Axes instance is provided to plot into #3241

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion obspy/imaging/beachball.py
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion obspy/imaging/mopad_wrapper.py
Expand Up @@ -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:
Expand Down