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

PlotPZ() does not show up #69

Open
ldpgh opened this issue Aug 20, 2019 · 1 comment
Open

PlotPZ() does not show up #69

ldpgh opened this issue Aug 20, 2019 · 1 comment

Comments

@ldpgh
Copy link

ldpgh commented Aug 20, 2019

          ....
>>> ntf=synthesizeNTF(order=3, osr=32, opt=0)
>>> plotPZ(ntf, markersize=5)

.......\lib\site-packages\deltasigma\_plotPZ.py:85: MatplotlibDeprecationWarning: pyplot.hold is deprecated.
    Future behavior will be consistent with the long-time default:
    plot commands add elements without first clearing the
    Axes and/or Figure.
  hold_status = plt.ishold()
.....\lib\site-packages\deltasigma\_plotPZ.py:90: MatplotlibDeprecationWarning: pyplot.hold is deprecated.
    Future behavior will be consistent with the long-time default:
    plot commands add elements without first clearing the
    Axes and/or Figure.
  plt.hold(True)
....\lib\site-packages\matplotlib\__init__.py:910: MatplotlibDeprecationWarning: axes.hold is deprecated. Please remove it from your matplotlibrc and/or style files.
  mplDeprecation)
.....\lib\site-packages\matplotlib\rcsetup.py:156: MatplotlibDeprecationWarning: axes.hold is deprecated, will be removed in 3.0
  mplDeprecation)
>>>

Chart window does not come up.


>> python
Python 3.7.0 (default, Jun 28 2018, 08:04:48) [MSC v.1912 64 bit (AMD64)] :
Type "help", "copyright", "credits" or "license" for more information.
>>>

To overcome this issue import matplotlib in front of deltasigma

import matplotlib.pyplot as plt   #BUG deltasigma ... 'Qt5Agg' prevents 'Agg'
from deltasigma import *
ntf=synthesizeNTF(order=3, osr=32, opt=0)
plotPZ(ntf, markersize=5)
plt.show()

plt.show() brings up the chart window.

@romeshnandwana
Copy link

romeshnandwana commented Feb 2, 2021

In the new version of matplotlib the above solution doesn't work as hold is completely depreciated now.
To fix it you have to comment out "plt.ishold()" and "plt.hold()" commands.
The lines that use the above commands are 85,90,132, 133 in the _plotPZ.py file of the package. Comment these out and it works fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants