From quantum.analyst at gmail.com Tue Feb 2 01:39:03 2021 From: quantum.analyst at gmail.com (Elliott Sales de Andrade) Date: Tue, 2 Feb 2021 01:39:03 -0500 Subject: [Matplotlib-users] [ANN] Matplotlib 3.3.4 Message-ID: Hi all, We are pleased to announce the release of 3.3.4. This is the fourth bug fix release of the 3.3.x series. Pre-built wheels are available for most major platforms, and can be installed using `pip install matplotlib==3.3.4`. Other packages may also be available already; please check with your preferred source. The 3.3.4 release represents the work of 7 authors over 20 pull requests, and we thank them for their contributions. This release contains several critical bug-fixes: * Fix WebAgg initialization. * Fix parsing |QT_API| setting with mixed case. * Fix build with link-time optimization disabled in environment. * Fix test compatibility with NumPy 1.20. * Fix test compatibility with pytest 6.2. For further details, please see the What's new in Matplotlib 3.3.4 page: https://matplotlib.org/3.3.4/users/whats_new.html and the milestone on GitHub: https://github.com/matplotlib/matplotlib/milestone/60?closed=1 The 3.3.3 release was not previously announced. Release details are provided below. The 3.3.3 release represents the work of 11 authors over 46 pull requests. This release contains several critical bug-fixes: * Fix calls to |Axis.grid| with argument |visible=True|. * Fix fully masked |imshow|. * Fix inconsistent color mapping in scatter for 3D plots. * Fix notebook/nbAgg figures when used with ipywidgets in the same cell. * Fix notebook/nbAgg/WebAgg on older (e.g., Firefox ESR) browsers. * Fix pcolormesh with |datetime| coordinates. * Fix performance regression with |datetime|s. * Fix singular ticks with small log ranges. * Fix timers/animations on wx and notebook backends. * Remove certifi as a hard runtime dependency. For further details, please see the What's new in Matplotlib 3.3.3 page: https://matplotlib.org/3.3.3/users/whats_new.html and the milestone on GitHub: https://github.com/matplotlib/matplotlib/milestone/58?closed=1 These releases are signed by my GPG key. The fingerprint is: 23CA B59E 3332 F94D 26BE F037 8D86 E7FA E5EB 0C10 From thankar at live.com Tue Feb 2 05:07:53 2021 From: thankar at live.com (Athanasios Karagiannidis) Date: Tue, 2 Feb 2021 10:07:53 +0000 Subject: [Matplotlib-users] Interpolation method of python matplotlib contourf Message-ID: Hello to all I want to ask what is the default interpolation method of python matplotlib contourf? Where can I find relative documentation? Could someone help me? Best regards Sakis Athanasios F. Karagiannidis Physicist, PhD Meteorology and Climatology E-mail: thankar at live.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From ianthomas23 at gmail.com Tue Feb 2 07:17:02 2021 From: ianthomas23 at gmail.com (Ian Thomas) Date: Tue, 2 Feb 2021 12:17:02 +0000 Subject: [Matplotlib-users] Interpolation method of python matplotlib contourf In-Reply-To: References: Message-ID: Hello Sakis, All of Matplotlib's contouring functions (contour, contourf, tricontour, tricontourf) use linear interpolation along grid edges. This is not explicitly documented anywhere. Are there other interpolation options that you would like? I can think of logarithmic as one possibility. Ian On Tue, 2 Feb 2021 at 10:08, Athanasios Karagiannidis wrote: > Hello to all > > I want to ask what is the default interpolation method of python > matplotlib contourf? Where can I find relative documentation? Could someone > help me? > > Best regards > > Sakis > > Athanasios F. Karagiannidis > Physicist, PhD Meteorology and Climatology > E-mail: thankar at live.com > > _______________________________________________ > 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 thankar at live.com Tue Feb 2 07:22:57 2021 From: thankar at live.com (Athanasios Karagiannidis) Date: Tue, 2 Feb 2021 12:22:57 +0000 Subject: [Matplotlib-users] Interpolation method of python matplotlib contourf In-Reply-To: References: , Message-ID: Hello Ian Another interpolation may come handy in the future. Is it possible to control the interpolation method? The fact that the current interpolation method is not documented is a pity. I need to reference it in a manuscript... Sakis Athanasios F. Karagiannidis Physicist, PhD Meteorology and Climatology E-mail: thankar at live.com ________________________________ From: Ian Thomas Sent: Tuesday, February 2, 2021 1:17 PM To: Athanasios Karagiannidis Cc: matplotlib-users at python.org Subject: Re: [Matplotlib-users] Interpolation method of python matplotlib contourf Hello Sakis, All of Matplotlib's contouring functions (contour, contourf, tricontour, tricontourf) use linear interpolation along grid edges. This is not explicitly documented anywhere. Are there other interpolation options that you would like? I can think of logarithmic as one possibility. Ian On Tue, 2 Feb 2021 at 10:08, Athanasios Karagiannidis > wrote: Hello to all I want to ask what is the default interpolation method of python matplotlib contourf? Where can I find relative documentation? Could someone help me? Best regards Sakis Athanasios F. Karagiannidis Physicist, PhD Meteorology and Climatology E-mail: thankar at live.com _______________________________________________ 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 ianthomas23 at gmail.com Tue Feb 2 08:44:12 2021 From: ianthomas23 at gmail.com (Ian Thomas) Date: Tue, 2 Feb 2021 13:44:12 +0000 Subject: [Matplotlib-users] Interpolation method of python matplotlib contourf In-Reply-To: References: Message-ID: Hi Sakis, No, you cannot control the interpolation method, you are stuck with linear for now. It is on my wishlist for future improvements, but this is no help to you now. To demonstrate that it is linear interpolation I would reference the code, e.g. https://github.com/matplotlib/matplotlib/blob/ea6803254567eaaa9adb027b541a6885d9fa246f/src/_contour.cpp#L1345-L1354 is the C++ interpolation function which is self-evidently linear interpolation. I am not sure if that link is good enough for a manuscript though. Ian On Tue, 2 Feb 2021 at 12:22, Athanasios Karagiannidis wrote: > Hello Ian > > Another interpolation may come handy in the future. Is it possible to > control the interpolation method? > > The fact that the current interpolation method is not documented is a > pity. I need to reference it in a manuscript... > > Sakis > > Athanasios F. Karagiannidis > Physicist, PhD Meteorology and Climatology > E-mail: thankar at live.com > > > ------------------------------ > *From:* Ian Thomas > *Sent:* Tuesday, February 2, 2021 1:17 PM > *To:* Athanasios Karagiannidis > *Cc:* matplotlib-users at python.org > *Subject:* Re: [Matplotlib-users] Interpolation method of python > matplotlib contourf > > Hello Sakis, > > All of Matplotlib's contouring functions (contour, contourf, tricontour, > tricontourf) use linear interpolation along grid edges. This is not > explicitly documented anywhere. > > Are there other interpolation options that you would like? I can think of > logarithmic as one possibility. > > Ian > > On Tue, 2 Feb 2021 at 10:08, Athanasios Karagiannidis > wrote: > > Hello to all > > I want to ask what is the default interpolation method of python > matplotlib contourf? Where can I find relative documentation? Could someone > help me? > > Best regards > > Sakis > > Athanasios F. Karagiannidis > Physicist, PhD Meteorology and Climatology > E-mail: thankar at live.com > > _______________________________________________ > 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 thankar at live.com Tue Feb 2 08:49:26 2021 From: thankar at live.com (Athanasios Karagiannidis) Date: Tue, 2 Feb 2021 13:49:26 +0000 Subject: [Matplotlib-users] Interpolation method of python matplotlib contourf In-Reply-To: References: , Message-ID: Hello again Ian I can work with linear, no problem! Regarding, the reference: The link may not be sufficient. I depend. I guess I may have to find a general reference for the linear interpolation to incorporate in my manuscript. Thank you very much! Best regards Sakis Athanasios F. Karagiannidis Physicist, PhD Meteorology and Climatology E-mail: thankar at live.com ________________________________ From: Ian Thomas Sent: Tuesday, February 2, 2021 2:44 PM To: Athanasios Karagiannidis Cc: matplotlib-users at python.org Subject: Re: [Matplotlib-users] Interpolation method of python matplotlib contourf Hi Sakis, No, you cannot control the interpolation method, you are stuck with linear for now. It is on my wishlist for future improvements, but this is no help to you now. To demonstrate that it is linear interpolation I would reference the code, e.g. https://github.com/matplotlib/matplotlib/blob/ea6803254567eaaa9adb027b541a6885d9fa246f/src/_contour.cpp#L1345-L1354 is the C++ interpolation function which is self-evidently linear interpolation. I am not sure if that link is good enough for a manuscript though. Ian On Tue, 2 Feb 2021 at 12:22, Athanasios Karagiannidis > wrote: Hello Ian Another interpolation may come handy in the future. Is it possible to control the interpolation method? The fact that the current interpolation method is not documented is a pity. I need to reference it in a manuscript... Sakis Athanasios F. Karagiannidis Physicist, PhD Meteorology and Climatology E-mail: thankar at live.com ________________________________ From: Ian Thomas > Sent: Tuesday, February 2, 2021 1:17 PM To: Athanasios Karagiannidis > Cc: matplotlib-users at python.org > Subject: Re: [Matplotlib-users] Interpolation method of python matplotlib contourf Hello Sakis, All of Matplotlib's contouring functions (contour, contourf, tricontour, tricontourf) use linear interpolation along grid edges. This is not explicitly documented anywhere. Are there other interpolation options that you would like? I can think of logarithmic as one possibility. Ian On Tue, 2 Feb 2021 at 10:08, Athanasios Karagiannidis > wrote: Hello to all I want to ask what is the default interpolation method of python matplotlib contourf? Where can I find relative documentation? Could someone help me? Best regards Sakis Athanasios F. Karagiannidis Physicist, PhD Meteorology and Climatology E-mail: thankar at live.com _______________________________________________ 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 vincent.adrien at gmail.com Tue Feb 2 10:40:58 2021 From: vincent.adrien at gmail.com (vincent.adrien at gmail.com) Date: Tue, 2 Feb 2021 16:40:58 +0100 Subject: [Matplotlib-users] Interpolation method of python matplotlib contourf In-Reply-To: References: Message-ID: <46ce2d85-5330-0d92-287b-cfae776d4876@gmail.com> Hi all, Sakis, are you saying that if the (linear) interpolation scheme was simply mentionned in the relevant docstring (I imagine some place like `matplotlib.axes.contour{f}` or `matplotlib.contour.{Quad}ContourSet`), then it would be enough regarding your need for a reference? I guess that a quick PR to fix what seems to be a small yet quite unfortunate hole in the documentation anyway would be welcome, would it not? Best regards, Adrien Le 02/02/2021 ? 14:49, Athanasios Karagiannidis a ?crit?: > > Hello again Ian > > I can work with linear, no problem! > > Regarding, the reference: The link may not be sufficient. I depend.? I guess I may have to find a general reference for the linear interpolation to incorporate in my manuscript. > > Thank you very much! > > Best regards > > Sakis > > Athanasios F. Karagiannidis > Physicist, PhD Meteorology and Climatology > E-mail: thankar at live.com > > > ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ > *From:* Ian Thomas > *Sent:* Tuesday, February 2, 2021 2:44 PM > *To:* Athanasios Karagiannidis > *Cc:* matplotlib-users at python.org > *Subject:* Re: [Matplotlib-users] Interpolation method of python matplotlib contourf > ? > Hi Sakis, > > No, you cannot control the interpolation method, you are stuck with linear for now.? It is on my wishlist for future improvements, but this is no help to you now. > > To demonstrate that it is linear interpolation I would reference the code, e.g. https://github.com/matplotlib/matplotlib/blob/ea6803254567eaaa9adb027b541a6885d9fa246f/src/_contour.cpp#L1345-L1354 is the C++ interpolation function which is self-evidently linear interpolation.? I am not sure if that link is good enough for a manuscript though. > > Ian > > On Tue, 2 Feb 2021 at 12:22, Athanasios Karagiannidis > wrote: > > Hello Ian > > Another interpolation may come handy in the future. Is it possible to control the interpolation method? > > The fact that the current interpolation method is not documented is a pity. I need to reference it in a manuscript... > > Sakis > > Athanasios F. Karagiannidis > Physicist, PhD Meteorology and Climatology > E-mail: thankar at live.com > > > ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ > *From:* Ian Thomas > > *Sent:* Tuesday, February 2, 2021 1:17 PM > *To:* Athanasios Karagiannidis > > *Cc:* matplotlib-users at python.org > > *Subject:* Re: [Matplotlib-users] Interpolation method of python matplotlib contourf > ? > Hello Sakis, > > All of Matplotlib's contouring functions (contour, contourf, tricontour, tricontourf) use linear interpolation along grid edges.? This is not explicitly documented anywhere. > > Are there other interpolation options that you would like?? I can think of logarithmic as one possibility. > > Ian > > On Tue, 2 Feb 2021 at 10:08, Athanasios Karagiannidis > wrote: > > Hello to all > > I want to ask what is the default interpolation method of python matplotlib contourf? Where can I find relative documentation? Could someone help me? > > Best regards > > Sakis > > Athanasios F. Karagiannidis > Physicist, PhD Meteorology and Climatology > E-mail: thankar at live.com > > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users at python.org > https://mail.python.org/mailman/listinfo/matplotlib-users > > > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users at python.org > https://mail.python.org/mailman/listinfo/matplotlib-users > From sdupree at speakeasy.net Tue Feb 2 12:22:32 2021 From: sdupree at speakeasy.net (Samuel Dupree) Date: Tue, 2 Feb 2021 12:22:32 -0500 Subject: [Matplotlib-users] libfreetype issues on Mac OSX Big Sur Message-ID: I'm running Matplotlib ver. 3.3.4 under the Anaconda distribution for Python 3.8.5 on a Mac OS X ver. 11.2. I am getting the following error: Traceback (most recent call last): ? File "temp.py", line 9, in ??? import matplotlib.pyplot as plt ? File "/Users/user/opt/anaconda3/lib/python3.8/site-packages/matplotlib/__init__.py", line 174, in ??? _check_versions() ? File "/Users/user/opt/anaconda3/lib/python3.8/site-packages/matplotlib/__init__.py", line 159, in _check_versions ??? from . import ft2font ImportError: dlopen(/Users/user/opt/anaconda3/lib/python3.8/site-packages/matplotlib/ft2font.cpython-38-darwin.so, 2): Library not loaded: @rpath/libfreetype.6.dylib ? Referenced from: /Users/user/opt/anaconda3/lib/python3.8/site-packages/matplotlib/ft2font.cpython-38-darwin.so ? Reason: Incompatible library version: ft2font.cpython-38-darwin.so requires version 24.0.0 or later, but libfreetype.6.dylib provides version 23.0.0 (base) user at Mac-Pro ~ % The python script being used is #!/Users/user/opt/anaconda3/bin/python """ Spyder Editor This is a temporary script file. """ import matplotlib.pyplot as plt import numpy as np plt.style.use("ggplot") t = np.arange(0.0, 2.0, 0.1) s = np.sin(2 * np.pi * t) s2 = np.cos(2 * np.pi * t) plt.plot(t, s, "o-", lw=4.1) plt.plot(t, s2, "o-", lw=4.1) plt.xlabel("time (s)") plt.ylabel("Voltage (mV)") plt.title("Simple plot $\\frac{\\alpha}{2}$") plt.grid(True) plt.savefig("test.png") plt.show() Any ideas? Sam Dupree. From ndbecker2 at gmail.com Tue Feb 16 08:54:19 2021 From: ndbecker2 at gmail.com (Neal Becker) Date: Tue, 16 Feb 2021 08:54:19 -0500 Subject: [Matplotlib-users] force legend to not cover graphs? Message-ID: Is there any automated way to enforce that legend will not hide graphs? I'm thinking by making additional space for legend as necessary. -- Those who don't understand recursion are doomed to repeat it From swfiua at gmail.com Tue Feb 16 12:13:06 2021 From: swfiua at gmail.com (swfiua at gmail.com) Date: Tue, 16 Feb 2021 12:13:06 -0500 Subject: [Matplotlib-users] legend not covering graphs Message-ID: You can call legend as follows: plt.legend(loc=0) and it will place the legend where it obscures as little as possible. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ndbecker2 at gmail.com Tue Feb 16 12:56:22 2021 From: ndbecker2 at gmail.com (Neal Becker) Date: Tue, 16 Feb 2021 12:56:22 -0500 Subject: [Matplotlib-users] legend not covering graphs In-Reply-To: References: Message-ID: Is this the same as loc='best'? I actually need to make extra space for the legend. I guess this can only be done manually? On Tue, Feb 16, 2021 at 12:13 PM swfiua at gmail.com wrote: > > You can call legend as follows: > > plt.legend(loc=0) > > and it will place the legend where it obscures as little as possible. > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users at python.org > https://mail.python.org/mailman/listinfo/matplotlib-users -- Those who don't understand recursion are doomed to repeat it From jr at sun.ac.za Tue Feb 16 14:23:55 2021 From: jr at sun.ac.za (Johann Rohwer) Date: Tue, 16 Feb 2021 21:23:55 +0200 Subject: [Matplotlib-users] legend not covering graphs In-Reply-To: References: Message-ID: <80629467-6155-d089-a8ac-d4b0978fd46b@sun.ac.za> An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: mfoheigkgccdhaao.png Type: image/png Size: 14801 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: jgolmngggkmcpohh.png Type: image/png Size: 16049 bytes Desc: not available URL: From jklymak at uvic.ca Tue Feb 16 20:21:01 2021 From: jklymak at uvic.ca (Jody Klymak) Date: Tue, 16 Feb 2021 17:21:01 -0800 Subject: [Matplotlib-users] Matplotlib canonical website Message-ID: <51AB911E-CB3A-4EFE-9D8C-36093318F14A@uvic.ca> Hi all, hopefully this catches a fair number of downstream developers. Matplotlib?s canonical root is https://matplotlib.org/stable/ now. https://matplotlib.org/ still works, as do the versioned prefixes (i.e. https://matplotlib.org/3.2.0/), and the dev branch https://matplotlib.org/devdocs/index.html. However, the toplevel root is now a bunch of redirects, so link checkers will be upset. If you use inter-sphinx to build docs, that should also be changed. See and discuss at https://discourse.matplotlib.org/t/canonical-documentation-have-moved/21863 and of course please report any issues and we will try and fix. Cheers, Jody -------------- next part -------------- An HTML attachment was scrubbed... URL: From ABillings at axustech.com Fri Feb 26 11:58:30 2021 From: ABillings at axustech.com (Anthony Billings) Date: Fri, 26 Feb 2021 16:58:30 +0000 Subject: [Matplotlib-users] How to continually open a matplotlib plot in the same location? Message-ID: How to continually open a matplotlib plot in the same location? I've looked here and here trying to figure out how to make my matplotlib plot open in the same window location EVERY TIME. I'm using TkAgg for my backend, and using the code below I can only get the FIRST plot to open in the set location. When the program loops back and runs this part again, then the plot opens in a different location. I'm using Windows 10, Python 3.7.7 64-bit through Visual Studio Code. fig = plt.figure(5) figManager = plt.get_current_fig_manager() figManager.window.wm_geometry("1000x600+0+0") -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 67 bytes Desc: image001.png URL: From ABillings at axustech.com Fri Feb 26 13:17:28 2021 From: ABillings at axustech.com (Anthony Billings) Date: Fri, 26 Feb 2021 18:17:28 +0000 Subject: [Matplotlib-users] How to continually open a matplotlib plot in the same location? In-Reply-To: References: Message-ID: I figured it out. It was the interactive plot plt.ion() and it was screwing things up! -------------- next part -------------- An HTML attachment was scrubbed... URL: From ABillings at axustech.com Fri Feb 26 12:46:08 2021 From: ABillings at axustech.com (Anthony Billings) Date: Fri, 26 Feb 2021 17:46:08 +0000 Subject: [Matplotlib-users] How to continually open a matplotlib plot in the same location? In-Reply-To: References: Message-ID: I did a quick screen capture so you can see how the graph opens in a new location https://imgur.com/gallery/mfT8FqQ From: Matplotlib-users On Behalf Of Anthony Billings Sent: Friday, February 26, 2021 9:59 AM To: matplotlib-users at python.org Subject: [Matplotlib-users] How to continually open a matplotlib plot in the same location? How to continually open a matplotlib plot in the same location? I've looked here and here trying to figure out how to make my matplotlib plot open in the same window location EVERY TIME. I'm using TkAgg for my backend, and using the code below I can only get the FIRST plot to open in the set location. When the program loops back and runs this part again, then the plot opens in a different location. I'm using Windows 10, Python 3.7.7 64-bit through Visual Studio Code. fig = plt.figure(5) figManager = plt.get_current_fig_manager() figManager.window.wm_geometry("1000x600+0+0") -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 67 bytes Desc: image001.png URL: From sdupree at speakeasy.net Mon Feb 1 18:01:12 2021 From: sdupree at speakeasy.net (Samuel Dupree) Date: Mon, 01 Feb 2021 23:01:12 -0000 Subject: [Matplotlib-users] libfreetype issues on Mac OSX Big Sur Message-ID: <4764d22e-adaa-0af8-0495-749fa375a26c@speakeasy.net> I'm running Matplotlib ver. 3.3.4 under the Anaconda distribution for Python 3.8.5 on a Mac OS X ver. 11.2. I am getting the following error: Traceback (most recent call last): ? File "temp.py", line 9, in ??? import matplotlib.pyplot as plt ? File "/Users/user/opt/anaconda3/lib/python3.8/site-packages/matplotlib/__init__.py", line 174, in ??? _check_versions() ? File "/Users/user/opt/anaconda3/lib/python3.8/site-packages/matplotlib/__init__.py", line 159, in _check_versions ??? from . import ft2font ImportError: dlopen(/Users/user/opt/anaconda3/lib/python3.8/site-packages/matplotlib/ft2font.cpython-38-darwin.so, 2): Library not loaded: @rpath/libfreetype.6.dylib ? Referenced from: /Users/user/opt/anaconda3/lib/python3.8/site-packages/matplotlib/ft2font.cpython-38-darwin.so ? Reason: Incompatible library version: ft2font.cpython-38-darwin.so requires version 24.0.0 or later, but libfreetype.6.dylib provides version 23.0.0 (base) user at Mac-Pro ~ % The python script being used is #!/Users/user/opt/anaconda3/bin/python """ Spyder Editor This is a temporary script file. """ import matplotlib.pyplot as plt import numpy as np plt.style.use("ggplot") t = np.arange(0.0, 2.0, 0.1) s = np.sin(2 * np.pi * t) s2 = np.cos(2 * np.pi * t) plt.plot(t, s, "o-", lw=4.1) plt.plot(t, s2, "o-", lw=4.1) plt.xlabel("time (s)") plt.ylabel("Voltage (mV)") plt.title("Simple plot $\\frac{\\alpha}{2}$") plt.grid(True) plt.savefig("test.png") plt.show() Any ideas? Sam Dupree. From b.c.c.f at hotmail.com Tue Feb 23 02:50:18 2021 From: b.c.c.f at hotmail.com (burakcan gokpinar) Date: Tue, 23 Feb 2021 07:50:18 -0000 Subject: [Matplotlib-users] No module named 'matplotlib.pyplot'; 'matplotlib' is not a package Message-ID: I don?t know why this error is happen.I have already install matplotlin packets with pip.How can fix this error?(I use Windows ,python 3.8.7 and matplotlib 3.3.4 versions) -------------- next part -------------- An HTML attachment was scrubbed... URL: