From semen.esaev at yandex.ru Sun Sep 19 07:30:03 2021 From: semen.esaev at yandex.ru (=?utf-8?B?0KHQtdC80LXQvSDQldGB0LDQtdCy?=) Date: Sun, 19 Sep 2021 14:30:03 +0300 Subject: [Matplotlib-users] value "requires_dist" of Matplotlib sets to null Message-ID: <260611632050964@mail.yandex.ru> An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: photo_2021-09-18_22-05-30.jpg Type: image/jpeg Size: 41468 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: photo_2021-09-18_22-05-31.jpg Type: image/jpeg Size: 157530 bytes Desc: not available URL: From tcaswell at gmail.com Sun Sep 19 17:18:21 2021 From: tcaswell at gmail.com (Thomas Caswell) Date: Sun, 19 Sep 2021 17:18:21 -0400 Subject: [Matplotlib-users] value "requires_dist" of Matplotlib sets to null In-Reply-To: <260611632050964@mail.yandex.ru> References: <260611632050964@mail.yandex.ru> Message-ID: @Semyon: please join the mailing list https://mail.python.org/mailman/listinfo/matplotlib-users so you can post un-moderate. This appears to be a long standing issue with setuptools / pypi [1]. Currently setuptools does not add the required meta-data to the sdist [2] which if we upload the sdist first sets the singular (and immutable) metadata from that artifact (which is missing `'requires_dist'` ). The subsequently uploaded wheels carry their own meta-data which (I believe) is what the solver actually uses to ensure that the run-time dependencies (`'install_requires'` to setuptools) are installed. I am not clear if this meta-data is used for anything or what the practical consequences of it being wrong are (other than messing up school projects). I was able to find a number of issues on github noting that the meta-data was missing, but no mention of any consequences. I would suggest looking at the dependency graph extracted from one of the down-stream packagers (such as conda-forge, fedora, arch linux, debian, ...). I expect those graphs to be more correct (within their set of build artifacts) and to also correctly capture the non-Python dependencies of Matplotlib. Tom [1] https://github.com/pypa/warehouse/issues/6231 [2] https://github.com/pypa/setuptools/issues/1805 On Sun, Sep 19, 2021 at 5:00 PM ????? ????? wrote: > Hello, > When requested to https://pypi.org/pypi/matplotlib/json, the dictionary > with the key "requires_dist" is set to null. But the page > https://matplotlib.org/3.1.1/users/installing.html#dependencies has a > list with dependencies. > > I would be grateful if you correct this error or explain how to get > package dependencies correctly without requests to json, I encountered this > error because I got an task at the university with visualizing package > dependencies. And when I query matplotlib, I get an empty graph, although > there should be dependencies. > > Thank you, Semyon Esaev > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users at python.org > https://mail.python.org/mailman/listinfo/matplotlib-users > -- Thomas Caswell tcaswell at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From peterjv26 at googlemail.com Sat Sep 25 13:34:08 2021 From: peterjv26 at googlemail.com (Peter John.V.) Date: Sat, 25 Sep 2021 23:04:08 +0530 Subject: [Matplotlib-users] Animation not working Message-ID: Hi, I am new to matplotlib and was playing around with it and trying to do some simple animation. I watched some tutorial videos from youtube and tried below code which is a cut/paste of the animation example code from matplotlib official documentation. I tried to run this in Spyder 4.1.5. But I just get a blank figure and no animation. I tried to copy different example code blocks from different tutorials and they just give the initial figure and no animation. Is there some configuration setting to be done for animation to work? Or anything else I am missing? Please help. TIA import numpy as np import matplotlib.pyplot as plt from matplotlib.animation import FuncAnimation fig, ax = plt.subplots() xdata, ydata = [], [] ln, = plt.plot([], [], 'ro') def init(): ax.set_xlim(0, 2*np.pi) ax.set_ylim(-1, 1) return ln, def update(frame): xdata.append(frame) ydata.append(np.sin(frame)) ln.set_data(xdata, ydata) return ln, ani = FuncAnimation(fig, update, frames=np.linspace(0, 2*np.pi, 128), init_func=init, blit=True) plt.show() Regards Peter -------------- next part -------------- An HTML attachment was scrubbed... URL: