Skip to content

Commit

Permalink
Workaround for #355
Browse files Browse the repository at this point in the history
  • Loading branch information
James Marshall committed Sep 30, 2019
1 parent e94b556 commit 16e26d9
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions mumot/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
symbols,
)
from sympy.parsing.latex import parse_latex
from warnings import warn
from warnings import warn, catch_warnings, simplefilter

from . import (
consts,
Expand Down Expand Up @@ -544,11 +544,13 @@ def _plot(self, _=None) -> None:
else:
# subplotNum = 1
for func, subPlotNum, axes3d in self._controller._replotFunctions:
if axes3d:
# self._figure.add_subplot(self._numRows, self._numColumns, subPlotNum, projection = '3d')
plt.subplot(self._numRows, self._numColumns, subPlotNum, projection='3d')
else:
plt.subplot(self._numRows, self._numColumns, subPlotNum)
with catch_warnings():
simplefilter("ignore")
if axes3d:
# self._figure.add_subplot(self._numRows, self._numColumns, subPlotNum, projection = '3d')
plt.subplot(self._numRows, self._numColumns, subPlotNum, projection='3d')
else:
plt.subplot(self._numRows, self._numColumns, subPlotNum)
func()
plt.subplots_adjust(left=0.12, bottom=0.25, right=0.98, top=0.9, wspace=0.45, hspace=None)
# plt.tight_layout()
Expand Down

0 comments on commit 16e26d9

Please sign in to comment.