Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. def plot(
  2. self,
  3. show_this=True,
  4. show_that=True,
  5. color='k',
  6. boundary_color=None,
  7. other_color=[0.8, 0.8, 0.8],
  8. show_axes=True
  9. ):
  10. # lots of code
  11. return
  12.  
  13. def show(
  14. self,
  15. show_this=True,
  16. show_that=True,
  17. color='k',
  18. boundary_color=None,
  19. other_color=[0.8, 0.8, 0.8],
  20. show_axes=True
  21. ):
  22. from matplotlib import pyplot as plt
  23. self.plot(
  24. show_this=show_this,
  25. show_that=show_that,
  26. color=color,
  27. boundary_color=boundary_color,
  28. other_color=other_color,
  29. show_axes=show_axes
  30. )
  31. plt.show()
  32. return
  33.  
  34. def show(self, *args, **kwargs):
  35. from matplotlib import pyplot as plt
  36. self.plot(*args, **kwargs)
  37. plt.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement