Skip to content

Commit

Permalink
Fix for matplotlib deprecation of canvas.show().
Browse files Browse the repository at this point in the history
  • Loading branch information
aarant committed Mar 20, 2018
1 parent 949ae8b commit 3038860
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
Binary file added dist/Soar-1.5.1.tar.gz
Binary file not shown.
4 changes: 2 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ def __getattr__(cls, name):
# built documents.
#
# The short X.Y version.
version = '1.5.0'
version = '1.5.1'
# The full version, including alpha/beta/rc tags.
release = '1.5.0'
release = '1.5.1'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
4 changes: 2 additions & 2 deletions soar/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# soar/__init__.py
""" Soar (Snakes on a Robot) v1.5.0
""" Soar (Snakes on a Robot) v1.5.1
An extensible Python framework for both simulating and interacting with robots.
Copyright (C) 2017 Andrew Antonitis. Licensed under the LGPLv3.
"""


__version__ = '1.5.0'
__version__ = '1.5.1'
blerb = 'Soar (Snakes on a Robot) v' + __version__ + ': A Python robotics framework.\n' \
'https://github.com/arantonitis/soar\n\n' \
'Copyright (C) 2017 Andrew Antonitis. Licensed under the LGPLv3.'
Expand Down
5 changes: 4 additions & 1 deletion soar/gui/plot_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,10 @@ def clear(self):

def show(self):
""" Update the canvas image (automatically called for most functions). """
self.canvas.show()
try:
self.canvas.draw()
except Exception:
self.canvas.show()

def __getattr__(self, name):
show = True
Expand Down

0 comments on commit 3038860

Please sign in to comment.