Your message dated Fri, 06 Jan 2023 05:20:06 +0000
with message-id <e1pdf9c-00bksi...@fasolo.debian.org>
and subject line Bug#1027285: fixed in matplotlib 3.6.2-4
has caused the Debian Bug report #1027285,
regarding matplotlib: axes3d.quiver() fails when providing args to 
Line3DCollection
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
1027285: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1027285
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Source: matplotlib
Version: 3.6.2-3
Severity: serious
Justification: debci
Control: forwarded -1 https://github.com/matplotlib/matplotlib/issues/24842
Control: block 1027170 by -1

mplot3d.axes3d.quiver() accepts boths args and kwargs in its function
definition.

Both args (any remaining after the first 6 values) and kwargs are
passed onwards to art3d.Line3DCollection at
matplotlib/lib/mpl_toolkits/mplot3d/axes3d.py Line 2655 in 3393a4f:

  linec = art3d.Line3DCollection(lines, *args[argi:], **kwargs) 

But arguments for Line3DCollection are passed directly to
LineCollection. In matplotlib PR#23076 appearing in matplotlib 3.6,
LineCollection was changed so that it no longer accepts positional
args. All excess arguments must now be provided in kwargs.

This means axes3d.quiver() now fails with matplotlib 3.6. An example
failure is in 3D plot tests from dolfin.

The python backtrace running* this demo script (on a debian system)
looks like

Traceback (most recent call last):
  File 
"/projects/fenics/build/tests/dolfin/demo-python/undocumented/curl-curl/demo_curl-curl.py",
 line 172, in <module>
    plot(J)
  File "/usr/lib/petsc/lib/python3/dist-packages/dolfin/common/plotting.py", 
line 440, in plot
    return _plot_matplotlib(object, mesh, kwargs)
  File "/usr/lib/petsc/lib/python3/dist-packages/dolfin/common/plotting.py", 
line 306, in _plot_matplotlib
    return mplot_function(ax, obj, **kwargs)
  File "/usr/lib/petsc/lib/python3/dist-packages/dolfin/common/plotting.py", 
line 218, in mplot_function
    return ax.quiver3D(*args, length=length, **kwargs)
  File "/usr/lib/python3/dist-packages/matplotlib/__init__.py", line 1427, in 
inner
    return func(ax, *map(sanitize_sequence, args), **kwargs)
  File "/usr/lib/python3/dist-packages/mpl_toolkits/mplot3d/axes3d.py", line 
2567, in quiver
    linec = art3d.Line3DCollection(lines, *args[argi:], **kwargs)
TypeError: LineCollection.__init__() takes 2 positional arguments but 3 were 
given

The TypeError occurs because of the use of args, which, to reiterate,
was removed in matplotlib 3.6 PR#23076.

I gather that any options which were previously provided to
axes3d.quiver and intended for use in Line3DCollection must now be
provided in kwargs instead. quiver should no longer use args at all at
l.2655.


* Note, to run that dolfin demo to reproduce the error,
dolfin/common/plotting.py also needed updating for matplotlib 3.6 near
l.279:
-        ax = plt.gca(projection='3d')
+        ax = plt.axes(projection='3d')
This patch will be applied to dolfin to close Bug#1027170.


For matplotlib itself, I propose simply removing the use of args in
axes3d.py l.2655:

-  linec = art3d.Line3DCollection(lines, *args[argi:], **kwargs) 
+  linec = art3d.Line3DCollection(lines, **kwargs) 

--- End Message ---
--- Begin Message ---
Source: matplotlib
Source-Version: 3.6.2-4
Done: Sandro Tosi <mo...@debian.org>

We believe that the bug you reported is fixed in the latest version of
matplotlib, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1027...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Sandro Tosi <mo...@debian.org> (supplier of updated matplotlib package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Thu, 05 Jan 2023 23:52:41 -0500
Source: matplotlib
Architecture: source
Version: 3.6.2-4
Distribution: unstable
Urgency: medium
Maintainer: Sandro Tosi <mo...@debian.org>
Changed-By: Sandro Tosi <mo...@debian.org>
Closes: 1027049 1027285
Changes:
 matplotlib (3.6.2-4) unstable; urgency=medium
 .
   * debian/rules
     - run dh_installdocs on the -data pkg, to unstall changelog;
       Closes: #1027049
   * debian/patches/PR24862.patch
     - Fix argument checking in Axes3D.quiver; Closes: #1027285
Checksums-Sha1:
 63d9160b0c852666b750454dfd793b15d27ea766 3374 matplotlib_3.6.2-4.dsc
 5f6b642f3078d27803970f362e8d2f40528f911b 33308 matplotlib_3.6.2-4.debian.tar.xz
 76e27afe346d3b01ca52cee6a99862ac6d7c8c55 26039 
matplotlib_3.6.2-4_source.buildinfo
Checksums-Sha256:
 75d133c4f71d475baf1638ef90253e9572e0d96780aa9039a77e3c55d18c03d5 3374 
matplotlib_3.6.2-4.dsc
 237822acee25436ff3f27c3b69fb02f8fc28fc9ffed5290d85e1f0d275ef4141 33308 
matplotlib_3.6.2-4.debian.tar.xz
 2fc119b29c9e07a304e16459364e62eb302021c8a47d38e405ceb64ce0cdb1e8 26039 
matplotlib_3.6.2-4_source.buildinfo
Files:
 7ada3e0658e43aef937f676a75d3ed0b 3374 python optional matplotlib_3.6.2-4.dsc
 35296a47b4a5046358cca57404e541e1 33308 python optional 
matplotlib_3.6.2-4.debian.tar.xz
 083453a7307bcdf658c128a152aa1baf 26039 python optional 
matplotlib_3.6.2-4_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEufrTGSrz5KUwnZ05h588mTgBqU8FAmO3qVwACgkQh588mTgB
qU8hNg/+N67gghHPLnCmLr/ajwjPBRlx2s793qCH3JrZ5JX9CeSuYD4g7UWsOK0c
SHDE1doEHyziix8fMdA7Ydu4yiKyTxL18ATEZHHxXCxpYT6YeCsX5AZu5vLGgQ6W
iZBvLu73MZXW+aF8tF29Ygy6lfh2f3REesPpGG+8qx9x46MSM9ZAIt5Gj3rrVjoF
jx8rDU7fI+jOKQzf5u1MdvXN1BlGoOpTWKMAvkB6brcE5xRpXbjB44XACNxPeKVi
UWVSYXrYnBQW9i6kx2QrC5Et1F5S60U6VlbZ9SJThwCAm1xfAiFUYH5cObl7zyDX
UDSQlElgPZihFetmiI62aa+7YooQQ9lDddyn2tWp97mfr+7Jl2pk4j4VRTe1e/kG
ZqjDwCKcXV0Y/VfVOFu/t8RV2KzUIWE/El7le924wqDzytjsnq0LLcZkkowyO57G
cSnIY7Qh673tHpV0utkCrNInF4c3DtUNq17AaE6+sjapJx+Xfy2TU+DQvA+IZ0li
4ihwkEOjsVMt8f2rw5NeorarLqClT8PYdhwAe4VdGPaRJsDbRZR3wbvJitLl7QiT
0EFumQXTC6/QCo6h+0LxMtZhay3KcuOrnbingtpnS5/S00i9Uqr9nSYp5JbB76uo
HjkdlDhabpXtuiykk6iXZsPvOx9EdTyK44vdTgryIryTtZy/MUk=
=MZwD
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to