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 plot_3d_slicer bug #159

Merged
merged 9 commits into from
May 17, 2019
3 changes: 1 addition & 2 deletions discretize/View.py
Original file line number Diff line number Diff line change
Expand Up @@ -777,8 +777,7 @@ def plot_3d_slicer(self, v, xslice=None, yslice=None, zslice=None,
# Connect figure to scrolling
fig.canvas.mpl_connect('scroll_event', tracker.onscroll)

# Show figure
plt.show()
return fig
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cc @prisae: just a small functionality update here I wanted to bring you in on. It seems like there are some use-cases where having access to the figure handle outside would be handy if it is generated inside this function. Does this work for you?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, no problem, I don't have any hard feelings with regards to how this is handled. I did not overly adjust the plot_3d_slicer from my usage/style to SimPEG-style. I think the idea was we just bring it in, and then adjust it where necessary, so perfectly fine by me.



class CylView(object):
Expand Down