MuMoT icon indicating copy to clipboard operation
MuMoT copied to clipboard

Muticontroller plot warning

Open jarmarshall opened this issue 6 years ago • 1 comments

Noted during work on pull request #350 :

/Users/james/Google Drive/Home/Git/MuMoT/mumot/views.py:550: MatplotlibDeprecationWarning: Adding an axes using the same arguments as a previous axes
currently reuses the earlier instance.  In a future version, a new instance will always be
created and returned.  Meanwhile, this warning can be suppressed, and the future behavior
ensured, by passing a unique label to each axes instance.
  plt.subplot(self._numRows, self._numColumns, subPlotNum)

jarmarshall avatar Sep 28 '19 18:09 jarmarshall

This issue is specific to nested multicontrollers - unfortunately following the solution proposed by the warning breaks multicontroller nesting, and puts all component plots at the same level. For now a workaround is to ignore the warning, but in the future this issue will need to be fixed properly, when matplotlib makes good on its threat...

jarmarshall avatar Sep 30 '19 13:09 jarmarshall