From jslavin at cfa.harvard.edu Thu Dec 2 18:01:59 2021 From: jslavin at cfa.harvard.edu (Slavin, Jonathan) Date: Thu, 2 Dec 2021 18:01:59 -0500 Subject: [Matplotlib-users] deprecation of mpl_toolkits' colorbar implementation - substitute? Message-ID: Hi, I'm wanting to do something like in the example "Demo Axes Grid", the 2nd case where the grid has a single colorbar. That works the way I want it, but I get a deprecation warning: MatplotlibDeprecationWarning: Since 3.2, mpl_toolkits's own colorbar implementation is deprecated; it will be removed two minor releases later. Set the 'mpl_toolkits.legacy_colorbar' rcParam to False to use Matplotlib's default colorbar implementation and suppress this deprecation warning. So, I understand that that warning can be suppressed, but I'd rather find a non-deprecated way of doing the same thing. So far I haven't found it. The particular command that results in the warning is: grid.cbar_axes[0].colorbar(image) I don't know of a way to add a colorbar to the grid of images the way I want it. Any help would be appreciated. Thanks, Jon -- Jonathan D. Slavin Astrophysicist - High Energy Astrophysics Division Center for Astrophysics | Harvard & Smithsonian Office: (617) 496-7981 | Cell: (781) 363-0035 60 Garden Street | MS 83 | Cambridge, MA 02138 -------------- next part -------------- An HTML attachment was scrubbed... URL: From efiring at hawaii.edu Fri Dec 3 01:53:04 2021 From: efiring at hawaii.edu (Eric Firing) Date: Thu, 2 Dec 2021 20:53:04 -1000 Subject: [Matplotlib-users] deprecation of mpl_toolkits' colorbar implementation - substitute? In-Reply-To: References: Message-ID: Jon, I think you can do one of three things: ignore the warning, set the rcParam to False, or update your mpl version to 3.4 or 3.5. The second and third options might require small additional code changes. https://github.com/matplotlib/matplotlib/commit/9a8ec761acea9b7f63cc2869712319f5d4a35920 shows what was changed to start the deprecation. Notice that there are only small changes to the axes_grid1/demo*.py examples in addition to adding the rcParam setting. Eric On 2021/12/02 1:01 PM, Slavin, Jonathan via Matplotlib-users wrote: > Hi, > > I'm wanting to do something like in the example "Demo Axes Grid", the > 2nd case where the grid has a single colorbar. That works the way I want > it, but I get a deprecation warning: > > MatplotlibDeprecationWarning: Since 3.2, mpl_toolkits's own colorbar > implementation is deprecated; it will be removed two minor releases > later.? Set the 'mpl_toolkits.legacy_colorbar' rcParam to False to use > Matplotlib's default colorbar implementation and suppress this > deprecation warning. > > So, I understand that that warning can be suppressed, but I'd rather > find a non-deprecated way of doing the same thing. So far I haven't > found it. The particular command that results in the warning is: > grid.cbar_axes[0].colorbar(image) > > I don't know of a way to add a colorbar to the grid of images the way I > want it. Any help would be appreciated. > > Thanks, > Jon > -- > Jonathan D. Slavin > Astrophysicist - High Energy Astrophysics Division > Center for Astrophysics | Harvard & Smithsonian > Office: (617) 496-7981 | Cell: (781) 363-0035 > 60 Garden Street | MS 83 |?Cambridge, MA 02138 > > > > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users at python.org > https://mail.python.org/mailman/listinfo/matplotlib-users > From ndbecker2 at gmail.com Tue Dec 7 07:57:41 2021 From: ndbecker2 at gmail.com (Neal Becker) Date: Tue, 7 Dec 2021 07:57:41 -0500 Subject: [Matplotlib-users] mplcairo crashes python3.10 Message-ID: I'm using Fedora 35, with python3.10 mplcairo is python3-mplcairo-0.4-3.fc35.x86_64, but I've also tried pip install mplcairo and get the same result. In matplotlibrc I have backend: module://mplcairo.qt Any simple plot to the screen results in: ------------------- In [2]: Traceback (most recent call last): File "/usr/lib64/python3.10/site-packages/mplcairo/qt.py", line 36, in paintEvent pixel_ratio = self.pixel_ratio AttributeError: 'FigureCanvasQTCairo' object has no attribute 'pixel_ratio' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib64/python3.10/site-packages/mplcairo/qt.py", line 38, in paintEvent pixel_ratio = self._dpi_ratio AttributeError: 'FigureCanvasQTCairo' object has no attribute '_dpi_ratio' --------------- I had been using this same setup for quite some time, but perhaps it's the update to Fedora34 that is now triggering the issue. Any ideas? I've already adapted many of my scripts to use mplcairo.multipage so need this to work again. Thanks, Neal -- Those who don't understand recursion are doomed to repeat it From ndbecker2 at gmail.com Tue Dec 7 08:57:47 2021 From: ndbecker2 at gmail.com (Neal Becker) Date: Tue, 7 Dec 2021 08:57:47 -0500 Subject: [Matplotlib-users] mplcairo on fedora 35 Message-ID: I tried installing latest mplcairo from github, and the problem is gone. So the issue seems to be the current mplcairo release version is not compatible with fedora 35, either python3.10 or some qt (or pythonqt) version issue. -- Those who don't understand recursion are doomed to repeat it From antony.lee at institutoptique.fr Tue Dec 7 09:13:19 2021 From: antony.lee at institutoptique.fr (Antony Lee) Date: Tue, 7 Dec 2021 15:13:19 +0100 Subject: [Matplotlib-users] mplcairo crashes python3.10 In-Reply-To: References: Message-ID: This is a known issue; you need to upgrade to mplcairo master or wait for a new release. Best, Antony On Tue, Dec 7, 2021 at 1:58 PM Neal Becker wrote: > I'm using Fedora 35, with python3.10 > mplcairo is python3-mplcairo-0.4-3.fc35.x86_64, but I've also tried > pip install mplcairo and get the same result. > > In matplotlibrc I have > backend: module://mplcairo.qt > > Any simple plot to the screen results in: > ------------------- > In [2]: Traceback (most recent call last): > File "/usr/lib64/python3.10/site-packages/mplcairo/qt.py", line 36, > in paintEvent > pixel_ratio = self.pixel_ratio > AttributeError: 'FigureCanvasQTCairo' object has no attribute 'pixel_ratio' > > During handling of the above exception, another exception occurred: > > Traceback (most recent call last): > File "/usr/lib64/python3.10/site-packages/mplcairo/qt.py", line 38, > in paintEvent > pixel_ratio = self._dpi_ratio > AttributeError: 'FigureCanvasQTCairo' object has no attribute '_dpi_ratio' > --------------- > > I had been using this same setup for quite some time, but perhaps it's > the update to Fedora34 that is now triggering the issue. > Any ideas? I've already adapted many of my scripts to use > mplcairo.multipage so need this to work again. > > Thanks, > Neal > > -- > Those who don't understand recursion are doomed to repeat it > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users at python.org > https://mail.python.org/mailman/listinfo/matplotlib-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From quantum.analyst at gmail.com Mon Dec 13 21:00:42 2021 From: quantum.analyst at gmail.com (Elliott Sales de Andrade) Date: Mon, 13 Dec 2021 21:00:42 -0500 Subject: [Matplotlib-users] [ANN] Matplotlib 3.5.1 Message-ID: Hi all, We are pleased to announce the release of 3.5.1. This is the first bug fix release of the 3.5.x series. Pre-built wheels are available for most major platforms, and can be installed using `pip install matplotlib==3.5.1`. Other packages may also be available already; please check with your preferred source. We thank the 17 authors for the 84 pull requests that comprise the 3.5.1 release. This release contains several critical bug-fixes: * fix installation issues when setting a default backend * fix |add_lines| on horizontal colorbars * fix |streamplot| with start points on right or top edge * fix colorbars with boundaries or |NoNorm| * fix colorbars with negative contours * fix colorbars with tight layout * fix setting Axis label alignment to center * fix subfigure tight bounding box * fix subplot parameter window on macosx backend * fix unit handling in |Collections.set_offsets| * fix unyt integration in |errorbar| * re-display date offset in |ConciseDataFormatter| after zoom * reduce |do_3d_projection| deprecation warnings in external artists For further details, please see the What's new in Matplotlib 3.5.0 page: https://matplotlib.org/3.5.0/users/prev_whats_new/whats_new_3.5.0.html and the milestone on GitHub: https://github.com/matplotlib/matplotlib/milestone/67?closed=1 These releases are signed by my GPG key. The fingerprint is: 23CA B59E 3332 F94D 26BE F037 8D86 E7FA E5EB 0C10 From ben.v.root at gmail.com Mon Dec 13 22:58:20 2021 From: ben.v.root at gmail.com (Benjamin Root) Date: Mon, 13 Dec 2021 22:58:20 -0500 Subject: [Matplotlib-users] matplotlib (GITHUB) download problem In-Reply-To: References: <1f8775eb-e3f8-4c85-8f0a-39c38069b76d.451918b5-fe07-42d7-8c0c-aff8f62d464b.6af39d7b-fa0d-4bc3-b391-986cdcae516f@emailsignatures365.codetwo.com> Message-ID: There is currently an issue with hosted documentation that the release developers are working to resolve. Hopefully, it'll be figured out sometime tonight. On Mon, Dec 13, 2021 at 10:31 PM Adrian Drzazga < adrian.drzazga at tespol.com.pl> wrote: > Hello, > > I have found an error here - the complete Matplotlib documentation cannot > be downloaded. > When the ZIP file is about 3 GB the connection is broken, you need to > start again. > It repeats. I have tried eight times to download. > > https://github.com/matplotlib/matplotlib.github.com > > Kind regards, > > Adrian > > > > > Pozdrawiam | Best regards > Adrian Drzazga > In?ynier aplikacyjny | Application engineer > > > mob. +48 605 224 449 | tel. +48 71 783 63 60 | adrian.drzazga at tespol.com.pl > > > > > > > > > > > Tespol Sp. z o.o. | ul. Kleci?ska 125, 54-413 Wroc?aw | tel. +48 71 783 > 63 60 , fax +48 71 783 63 61 > > > > www.tespol.com.pl > Tespol Sp. z o.o. z siedzib? przy ul. Kleci?skiej 125, 54 - 413 Wroc?aw, > NIP 899-24-10-135, wpisana do Rejestru Przedsi?biorc?w Krajowego Rejestru > S?dowego przez S?d Rejonowy dla Wroc?awia Fabrycznej, VI Wydzia? > Gospodarczy, Nr KRS 0000014023, kapita? zak?adowy 750 000,00 PLN (w ca?o?ci > wp?acony). > > Otrzymany mail, wraz z zawartymi w nim informacjami oraz plikami, stanowi > tajemnic? przedsi?biorstwa - jest przeznaczony tylko dla osoby lub > jednostki, do kt?rej jest adresowany / The information in this email is > confidential and is intended solely for the addressee. > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users at python.org > https://mail.python.org/mailman/listinfo/matplotlib-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: x_stopka_cabc5554-fc97-46dc-9670-0aedb1d9bdb6.png Type: image/png Size: 70504 bytes Desc: not available URL: From quantum.analyst at gmail.com Mon Dec 13 23:51:51 2021 From: quantum.analyst at gmail.com (Elliott Sales de Andrade) Date: Mon, 13 Dec 2021 23:51:51 -0500 Subject: [Matplotlib-users] [Matplotlib-devel] matplotlib (GITHUB) download problem In-Reply-To: References: <1f8775eb-e3f8-4c85-8f0a-39c38069b76d.451918b5-fe07-42d7-8c0c-aff8f62d464b.6af39d7b-fa0d-4bc3-b391-986cdcae516f@emailsignatures365.codetwo.com> Message-ID: I'm not sure this is something you really want to do. That repository is not just the docs for the current version, but also the docs for several older versions as well, and also docs for several subprojects. It is likely far far more than you need. If you want to download all the docs at once, the PDF may be a better option. That can be found at https://matplotlib.org/{version}/Matplotlib.pdf (substitute the version you want, or stable, for {version}). On Mon, 13 Dec 2021 at 22:59, Benjamin Root wrote: > There is currently an issue with hosted documentation that the release > developers are working to resolve. Hopefully, it'll be figured out sometime > tonight. > > On Mon, Dec 13, 2021 at 10:31 PM Adrian Drzazga < > adrian.drzazga at tespol.com.pl> wrote: > >> Hello, >> >> I have found an error here - the complete Matplotlib documentation cannot >> be downloaded. >> When the ZIP file is about 3 GB the connection is broken, you need to >> start again. >> It repeats. I have tried eight times to download. >> >> https://github.com/matplotlib/matplotlib.github.com >> >> Kind regards, >> >> Adrian >> >> >> >> >> Pozdrawiam | Best regards >> Adrian Drzazga >> In?ynier aplikacyjny | Application engineer >> >> >> mob. +48 605 224 449 | tel. +48 71 783 63 60 | adrian.drzazga at tespol.com.pl >> >> >> >> >> >> >> >> >> >> >> Tespol Sp. z o.o. | ul. Kleci?ska 125, 54-413 Wroc?aw | tel. +48 71 >> 783 63 60 , fax +48 71 783 63 61 >> >> >> >> www.tespol.com.pl >> Tespol Sp. z o.o. z siedzib? przy ul. Kleci?skiej 125, 54 - 413 Wroc?aw, >> NIP 899-24-10-135, wpisana do Rejestru Przedsi?biorc?w Krajowego Rejestru >> S?dowego przez S?d Rejonowy dla Wroc?awia Fabrycznej, VI Wydzia? >> Gospodarczy, Nr KRS 0000014023, kapita? zak?adowy 750 000,00 PLN (w ca?o?ci >> wp?acony). >> >> Otrzymany mail, wraz z zawartymi w nim informacjami oraz plikami, stanowi >> tajemnic? przedsi?biorstwa - jest przeznaczony tylko dla osoby lub >> jednostki, do kt?rej jest adresowany / The information in this email is >> confidential and is intended solely for the addressee. >> _______________________________________________ >> Matplotlib-users mailing list >> Matplotlib-users at python.org >> https://mail.python.org/mailman/listinfo/matplotlib-users >> > _______________________________________________ > Matplotlib-devel mailing list > Matplotlib-devel at python.org > https://mail.python.org/mailman/listinfo/matplotlib-devel > -- Elliott -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: x_stopka_cabc5554-fc97-46dc-9670-0aedb1d9bdb6.png Type: image/png Size: 70504 bytes Desc: not available URL: From roju87 at yahoo.fr Sun Dec 26 16:40:19 2021 From: roju87 at yahoo.fr (romeo AKARA) Date: Sun, 26 Dec 2021 21:40:19 +0000 (UTC) Subject: [Matplotlib-users] Create custom hacth pattern References: <1697913688.2320608.1640554819992.ref@mail.yahoo.com> Message-ID: <1697913688.2320608.1640554819992@mail.yahoo.com> Hello,I am trying to create hatch patterns corresponding to the attached image. I am using the following example:?https://stackoverflow.com/questions/17285154/how-to-fill-a-polygon-with-a-custom-hatch-in-matplotlib.?Here is an excerpt of my script:hatch_path =Polygon([[0,0], [0, 0.1], [0.1, 0.1], [0.1, 0.2], [0.2, 0.2], [0.2, 0.1],[0.3, 0.1],[0.3, 0],[0.2, 0],[0.2, -0.1],[0.1, -0.1],[0.1, 0]],? ? closed=True, fill=False).get_path() The result is not quite what I want. I will appreciate if someone can point me to how best solve this issue. Thanks,Romeo -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: hatch_pattern.png Type: image/png Size: 13380 bytes Desc: not available URL: