Re: Old matplotlib animation now fails

2024-10-18 Thread rbowman via Python-list
On Wed, 16 Oct 2024 23:30:42 +0100, Chris Townley wrote: > Not sure about America, but the bee's knees is still in common use in > the UK https://en.wikipedia.org/wiki/Bee's_knees That version? A local bakery makes a honey flavored pastry they call 'bee's knees' but using it in a conversation w

Re: Old matplotlib animation now fails

2024-10-16 Thread Chris Townley via Python-list
the bee's knees, for real. As for your question, here's my two cents off the cuff: Could it be that the newer Matplotlib versions are jonesing for something like "l.set_data( [ x0 ],[ y0 ])" in that spot? Thanks, that was quick and adding square brackets fixed my code

Re: Old matplotlib animation now fails

2024-10-16 Thread Martin Schöön via Python-list
Den 2024-10-16 skrev Stefan Ram : > Martin =?UTF-8?Q?Sch=C3=B6=C3=B6n?= wrote or quoted: >>Me rocking Python? > >|to rock >|1. To use. To make do with, usually to great effect. >|"You don't need to make up the guest bed; we can rock the couch." > Urban Dictionary (2005) - Aaron Peckham (editor) (1

Re: Old matplotlib animation now fails

2024-10-16 Thread rbowman via Python-list
gt;> That language is the bee's knees, for real. >> >> As for your question, here's my two cents off the cuff: >> Could it be that the newer Matplotlib versions are jonesing for >> something like "l.set_data( [ x0 ],[ y0 ])" in that spot? >> > T

Re: Old matplotlib animation now fails

2024-10-16 Thread Martin Schöön via Python-list
stion, here's my two cents off the cuff: > Could it be that the newer Matplotlib versions are jonesing > for something like "l.set_data( [ x0 ],[ y0 ])" in that spot? > Thanks, that was quick and adding square brackets fixed my code. Me rocking Python? /Martin -- https://mail.python.org/mailman/listinfo/python-list

Re: Old matplotlib animation now fails

2024-10-16 Thread Martin Schöön via Python-list
essages drills down to something called >> "/home/.../matplotlib/lines.py", line 1289, in set_xdata >> >> and tells me 'x must be a sequence' >> > """ > Help on function set_data in module matplotlib.lines: > > set_data(self

Re: Old matplotlib animation now fails

2024-10-15 Thread MRAB via Python-list
error: l.set_data(x0, y0) The error messages drills down to something called "/home/.../matplotlib/lines.py", line 1289, in set_xdata and tells me 'x must be a sequence' I have started to dig around in matplotlib's documentation but my strategy is clearly wanting. I d

Old matplotlib animation now fails

2024-10-15 Thread Martin Schöön via Python-list
something called "/home/.../matplotlib/lines.py", line 1289, in set_xdata and tells me 'x must be a sequence' I have started to dig around in matplotlib's documentation but my strategy is clearly wanting. I don't really know where to start looking for information on

Matplotlib warning [error?] message

2024-02-19 Thread Leif Svalgaard via Python-list
now I get: File e:\getmodpot.py:40 fig,ax = initPlot() File E:\mystuff.py:272 in initPlot fig,ax = plt.subplots(figsize=(xs,ys)) File ~\anaconda3\Lib\site-packages\matplotlib\pyplot.py:1501 in subplots fig = figure(**fig_kw) File ~\anaconda3\Lib\site-packages\matplotlib\_api

Re: Matplotlib warning [error?] message

2024-02-19 Thread Zahraa Fadhil via Python-list
On Sunday, February 18, 2024 at 10:48:29 PM UTC+3, Leif Svalgaard wrote: > The latest[?] version of Matplotlib cannot show a figure. I get the > annoying error message: "Matplotlib is currently using agg, which is a > non-GUI backend, so cannot show the figure" > I'm

Matplotlib warning [error?] message

2024-02-18 Thread Leif Svalgaard via Python-list
The latest[?] version of Matplotlib cannot show a figure. I get the annoying error message: "Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure" I'm using Spyder python 3.11 on Windows 11. What to do? -- Leif Svalgaard l...@lei

Re: >>> %matplotlib inline results in SyntaxError: invalid syntax

2023-12-25 Thread MRAB via Python-list
On 2023-12-25 19:53, Alan Gauld via Python-list wrote: On 25/12/2023 05:34, geetanajali homes via Python-list wrote: import numpy as np import pandas as pd import random import matplotlib.pyplot as plt %matplotlib inline I get an error on the last line. I am running this code in Idle

Re: >>> %matplotlib inline results in SyntaxError: invalid syntax

2023-12-25 Thread Chris Angelico via Python-list
On Tue, 26 Dec 2023 at 07:27, Chris Grace via Python-list wrote: > I'd also recommend a newer version of python. Python 3.4 reached end of > life almost 5 years ago. Uhh, putting this in perspective... until a spammer revived the thread just now, it was asked, answered, and finished with, all bac

Re: >>> %matplotlib inline results in SyntaxError: invalid syntax

2023-12-25 Thread Chris Grace via Python-list
"%matplotlib inline" is a magic command that changes how plots render when working with IPython. Read more here: https://stackoverflow.com/a/43028034 The article you linked assumes you are working in an IPython shell, not IDLE. This is common in the data science world. You may al

Re: >>> %matplotlib inline results in SyntaxError: invalid syntax

2023-12-25 Thread Alan Gauld via Python-list
On 25/12/2023 05:34, geetanajali homes via Python-list wrote: >> import numpy as np >> import pandas as pd >> import random >> import matplotlib.pyplot as plt >> %matplotlib inline >> >> I get an error on the last line. I am running this code in Idl

Re: >>> %matplotlib inline results in SyntaxError: invalid syntax

2023-12-25 Thread geetanajali homes via Python-list
-tutorial-ridge-lasso-regression-python/ > > > In Step 2 "Why Penalize the Magnitude of Coefficients?" we are shown > this code: > > #Importing libraries. The same will be used throughout the article. > import numpy as np > import pandas as pd > import rand

Re: Problem with Matplotlib example

2023-04-14 Thread Martin Schöön
Den 2023-04-13 skrev MRAB : > On 2023-04-13 19:41, Martin Schöön wrote: >> Anyone had success running this example? >> https://tinyurl.com/yhhyc9r >> >> As far as I know I have an up-to-date matplotlib installed. Pip has >> nothing more modern to offer me. >

Re: Problem with Matplotlib example

2023-04-13 Thread MRAB
mood], transform=t)" Yes, I know, I could dive into the documentation myself but I hope some kind soul here will help out. As far as I know I have an up-to-date matplotlib installed. Pip has nothing more modern to offer me. All I can say is that it works for me! Python 3.10 and 3.11, m

Re: Problem with Matplotlib example

2023-04-13 Thread Thomas Passin
mood], transform=t)" Yes, I know, I could dive into the documentation myself but I hope some kind soul here will help out. As far as I know I have an up-to-date matplotlib installed. Pip has nothing more modern to offer me. It works for me, copy-pasted as is. Python 3.11.3 C:\Users\tom&

Problem with Matplotlib example

2023-04-13 Thread Martin Schöön
ld dive into the documentation myself but I hope some kind soul here will help out. As far as I know I have an up-to-date matplotlib installed. Pip has nothing more modern to offer me. TIA /Martin -- https://mail.python.org/mailman/listinfo/python-list

Re: How to add clickable url links to 3D Matplotlib chart ?

2023-03-30 Thread a a
h 2023 at 22:51:15 UTC+2, Greg Ewing wrote: > > > >> On 30/03/23 8:39 am, a a wrote: > > > >>> How to add clickable url links to the following 3D Matplotlib chart > > > >>> to make it knowledge representation 3D chart, make of 1,000+ open >

Re: How to add clickable url links to 3D Matplotlib chart ?

2023-03-30 Thread a a
39 am, a a wrote: > > >>> How to add clickable url links to the following 3D Matplotlib chart to > > >>> make it knowledge representation 3D chart, make of 1,000+ open Tabs in > > >>> Firefox ? > > >> It seems that matplotlib ca

Re: How to add clickable url links to 3D Matplotlib chart ?

2023-03-30 Thread a a
On Thursday, 30 March 2023 at 07:55:13 UTC+2, Christian Gollwitzer wrote: > Am 30.03.23 um 01:11 schrieb a a: > > On Wednesday, 29 March 2023 at 22:51:15 UTC+2, Greg Ewing wrote: > >> On 30/03/23 8:39 am, a a wrote: > >>> How to add clickable url links to the fo

Re: How to add clickable url links to 3D Matplotlib chart ?

2023-03-30 Thread Christian Gollwitzer
Am 30.03.23 um 01:11 schrieb a a: On Wednesday, 29 March 2023 at 22:51:15 UTC+2, Greg Ewing wrote: On 30/03/23 8:39 am, a a wrote: How to add clickable url links to the following 3D Matplotlib chart to make it knowledge representation 3D chart, make of 1,000+ open Tabs in Firefox ? It seems

Re: How to add clickable url links to 3D Matplotlib chart ?

2023-03-29 Thread a a
On Wednesday, 29 March 2023 at 22:51:15 UTC+2, Greg Ewing wrote: > On 30/03/23 8:39 am, a a wrote: > > How to add clickable url links to the following 3D Matplotlib chart to make > > it knowledge representation 3D chart, make of 1,000+ open Tabs in Firefox ? > It seems that

Re: How to add clickable url links to 3D Matplotlib chart ?

2023-03-29 Thread Greg Ewing via Python-list
On 30/03/23 8:39 am, a a wrote: How to add clickable url links to the following 3D Matplotlib chart to make it knowledge representation 3D chart, make of 1,000+ open Tabs in Firefox ? It seems that matplotlib can be made to generate SVG images with hyperlinks in them: https://matplotlib.org

Re: Numpy, Matplotlib crash Python 3.8 Windows 7, 32-bit - can you help ?

2023-03-28 Thread Thomas Passin
On 3/28/2023 1:50 PM, a a wrote: On Tuesday, 28 March 2023 at 18:12:40 UTC+2, Thomas Passin wrote: On 3/28/2023 8:47 AM, a a wrote: Ok, I can export bookmarks to html file and open it in Firefox to get a long list of clickable urls but icon of the bookmarked web page is missing. When I open Bo

Re: Numpy, Matplotlib crash Python 3.8 Windows 7, 32-bit - can you help ?

2023-03-28 Thread a a
On Tuesday, 28 March 2023 at 18:12:40 UTC+2, Thomas Passin wrote: > On 3/28/2023 8:47 AM, a a wrote: > > Ok, I can export bookmarks to html file and open it in Firefox to get > > a long list of clickable urls but icon of the bookmarked web page is > > missing. > > > > When I open Bookmarks as

Re: Numpy, Matplotlib crash Python 3.8 Windows 7, 32-bit - can you help ?

2023-03-28 Thread Thomas Passin
On 3/28/2023 8:47 AM, a a wrote: Ok, I can export bookmarks to html file and open it in Firefox to get a long list of clickable urls but icon of the bookmarked web page is missing. When I open Bookmarks as right a side-bar I can view and identify an individual Boomarks by icon, so I would like

Re: Numpy, Matplotlib crash Python 3.8 Windows 7, 32-bit - can you help ?

2023-03-28 Thread a a
On Tuesday, 28 March 2023 at 06:33:44 UTC+2, Thomas Passin wrote: > On 3/27/2023 8:37 PM, a a wrote: > >> To save the tabs, right click any one of them and select the "Select All > >> Tabs" item. They will all highlight. Right click on one of them and > >> select the "Bookmark Tabs" item. A dial

Re: Numpy, Matplotlib crash Python 3.8 Windows 7, 32-bit - can you help ?

2023-03-28 Thread a a
On Tuesday, 28 March 2023 at 06:33:44 UTC+2, Thomas Passin wrote: > On 3/27/2023 8:37 PM, a a wrote: > >> To save the tabs, right click any one of them and select the "Select All > >> Tabs" item. They will all highlight. Right click on one of them and > >> select the "Bookmark Tabs" item. A dial

Re: Numpy, Matplotlib crash Python 3.8 Windows 7, 32-bit - can you help ?

2023-03-27 Thread Thomas Passin
On 3/27/2023 8:37 PM, a a wrote: I can select All Opened Tabs (as from the given link) and get 1,000+ Opened Tabs ( I am afraid, this is s number of all saved bookmarks in the past) I go to menu, Bookmarks, Manage Boomarks and copy Tabs and https://www.textfixer.com/html/convert-url-to-html-lin

Re: Numpy, Matplotlib crash Python 3.8 Windows 7, 32-bit - can you help ?

2023-03-27 Thread Thomas Passin
On 3/27/2023 8:37 PM, a a wrote: To save the tabs, right click any one of them and select the "Select All Tabs" item. They will all highlight. Right click on one of them and select the "Bookmark Tabs" item. A dialog box will open with an entry lone for the Name to use (like "Tabset1") and a locat

Re: Numpy, Matplotlib crash Python 3.8 Windows 7, 32-bit - can you help ?

2023-03-27 Thread a a
On Tuesday, 28 March 2023 at 02:07:43 UTC+2, Thomas Passin wrote: > On 3/27/2023 4:02 PM, Thomas Passin wrote: > > On 3/27/2023 3:07 PM, a a wrote: > >> On Monday, 27 March 2023 at 19:19:41 UTC+2, Thomas Passin wrote: > >>> On 3/27/2023 10:07 AM, a a wrote: > Ok, I know, I need to switch to

Re: Numpy, Matplotlib crash Python 3.8 Windows 7, 32-bit - can you help ?

2023-03-27 Thread Thomas Passin
On 3/27/2023 4:02 PM, Thomas Passin wrote: On 3/27/2023 3:07 PM, a a wrote: On Monday, 27 March 2023 at 19:19:41 UTC+2, Thomas Passin wrote: On 3/27/2023 10:07 AM, a a wrote: Ok, I know, I need to switch to Windows 10 run on another PC next to me. I need to learn how to copy and move every w

Re: Numpy, Matplotlib crash Python 3.8 Windows 7, 32-bit - can you help ?

2023-03-27 Thread Thomas Passin
On 3/27/2023 3:07 PM, a a wrote: On Monday, 27 March 2023 at 19:19:41 UTC+2, Thomas Passin wrote: On 3/27/2023 10:07 AM, a a wrote: Ok, I know, I need to switch to Windows 10 run on another PC next to me. I need to learn how to copy and move every web page opened in Firefox as a reference to

Re: Numpy, Matplotlib crash Python 3.8 Windows 7, 32-bit - can you help ?

2023-03-27 Thread a a
On Monday, 27 March 2023 at 19:19:41 UTC+2, Thomas Passin wrote: > On 3/27/2023 10:07 AM, a a wrote: > > Ok, I know, I need to switch to Windows 10 run on another PC next to me. > > > > I need to learn how to copy and move every web page opened in Firefox as a > > reference to social media, web

Re: Numpy, Matplotlib crash Python 3.8 Windows 7, 32-bit - can you help ?

2023-03-27 Thread Thomas Passin
On 3/27/2023 10:07 AM, a a wrote: Ok, I know, I need to switch to Windows 10 run on another PC next to me. I need to learn how to copy and move every web page opened in Firefox as a reference to social media, web sites for Python, chat and more (about 50 web pages live opened 😉 This sounds l

Re: Numpy, Matplotlib crash Python 3.8 Windows 7, 32-bit - can you help ?

2023-03-27 Thread a a
pages live opened ;) I really love the limited functionality of w3schools to let me live open and run Python examples, especiallly Matplotlib examples. Unfortunately chat forum at w3schools is low traffic, showing no interest to add more examples. https://www.w3schools.com/python/trypython.asp?file

Re: Numpy, Matplotlib crash Python 3.8 Windows 7, 32-bit - can you help ?

2023-03-23 Thread Thomas Passin
On 3/23/2023 3:38 PM, Mats Wichmann wrote: On 3/23/23 09:48, Thomas Passin wrote: I didn't realize that Christoph Gohlke is still maintaining this site. Unless the the last-changed stuff stopped working, it's in a static state: by Christoph Gohlke. Updated on 26 June 2022 at 07:27 UTC I di

Re: Numpy, Matplotlib crash Python 3.8 Windows 7, 32-bit - can you help ?

2023-03-23 Thread Mats Wichmann
On 3/23/23 09:48, Thomas Passin wrote: I didn't realize that Christoph Gohlke is still maintaining this site. Unless the the last-changed stuff stopped working, it's in a static state: by Christoph Gohlke. Updated on 26 June 2022 at 07:27 UTC -- https://mail.python.org/mailman/listinfo/pyt

Re: Numpy, Matplotlib crash Python 3.8 Windows 7, 32-bit - can you help ?

2023-03-23 Thread Thomas Passin
On 3/18/2023 3:05 PM, Thomas Passin wrote: downloaded and run HWiNFO and AVE not supported, not greened out That's too bad; you may be out of luck. It's possible that someone has compiled the .pyd library in such a way that it does not need the instruction set extensions. I'm sorry but I don

Re: Numpy, Matplotlib crash Python 3.8 Windows 7, 32-bit - can you help ?

2023-03-22 Thread Thomas Passin
machine, old OS, Windows 7, 32-bit system but I have visited every social chat support forum on the Internet: from Python to Matplotlib, Numpy, Twitter, Github. As a newbie I am not aware how to downgrade "the multiarray version to an earlier one I simply tried to test Python code from

Re: Numpy, Matplotlib crash Python 3.8 Windows 7, 32-bit - can you help ?

2023-03-22 Thread a a
module, or upgrade the computer/OS. > >>> > >>> It would be worth trying to downgrade the multiarray version to an > >>> earlier one and see if that fixes the problem. > >> Thank you Thomas > >> for your kind reply. > >> > &g

Re: Numpy, Matplotlib crash Python 3.8 Windows 7, 32-bit - can you help ?

2023-03-18 Thread Thomas Passin
Internet: from Python to Matplotlib, Numpy, Twitter, Github. As a newbie I am not aware how to downgrade "the multiarray version to an earlier one I simply tried to test Python code from https://www.section.io/engineering-education/reading-and-processing-android-sensor-data-using-python-with-csv

Re: Numpy, Matplotlib crash Python 3.8 Windows 7, 32-bit - can you help ?

2023-03-18 Thread Thomas Passin
machine, old OS, Windows 7, 32-bit system but I have visited every social chat support forum on the Internet: from Python to Matplotlib, Numpy, Twitter, Github. I mentioned the "multiarray" just because of its name in the error message: "Error module name: _multiarray_umath.cp38

Re: Numpy, Matplotlib crash Python 3.8 Windows 7, 32-bit - can you help ?

2023-03-18 Thread a a
On Friday, 17 March 2023 at 16:03:14 UTC+1, Thomas Passin wrote: > On 3/16/2023 8:07 PM, a a wrote: > > Crash report: > > > > Problem Caption: > > Problem Event Name: APPCRASH > > Application name: python.exe > > Application version: 3.8.7150.1013 > > Application time signature: 5fe0df5a >

Re: Numpy, Matplotlib crash Python 3.8 Windows 7, 32-bit - can you help ?

2023-03-18 Thread a a
your kind reply. I am fully aware to be living on an old machine, old OS, Windows 7, 32-bit system but I have visited every social chat support forum on the Internet: from Python to Matplotlib, Numpy, Twitter, Github. As a newbie I am not aware how to downgrade "the multiarray version to an

Re: Numpy, Matplotlib crash Python 3.8 Windows 7, 32-bit - can you help ?

2023-03-18 Thread a a
or upgrade the computer/OS. > > > > It would be worth trying to downgrade the multiarray version to an > > earlier one and see if that fixes the problem. > Thank you Thomas > for your kind reply. > > I am fully aware to be living on an old machine, old OS, Window

Re: Numpy, Matplotlib crash Python 3.8 Windows 7, 32-bit - can you help ?

2023-03-17 Thread Thomas Passin
On 3/16/2023 8:07 PM, a a wrote: Crash report: Problem Caption: Problem Event Name: APPCRASH Application name: python.exe Application version: 3.8.7150.1013 Application time signature: 5fe0df5a Error module name: _multiarray_umath.cp38-win32.pyd Version of the module with t

Numpy, Matplotlib crash Python 3.8 Windows 7, 32-bit - can you help ?

2023-03-17 Thread a a
Crash report: Problem Caption: Problem Event Name: APPCRASH Application name: python.exe Application version: 3.8.7150.1013 Application time signature: 5fe0df5a Error module name:_multiarray_umath.cp38-win32.pyd Version of the module with the error: 0.0.0.0 Time signature of

Re: matplotlib basemap colorbar exception : Given element not contained in the stack

2022-05-30 Thread iMath
在 2022年5月30日星期一 UTC+8 03:29:28, 写道: > On 2022-05-29 13:57, iMath wrote: > > please see the formated code at > > https://stackoverflow.com/questions/72423464/matplotlib-basemap-colorbar-exception-given-element-not-contained-in-the-stack > The problem might be that you're pa

Re: matplotlib basemap colorbar exception : Given element not contained in the stack

2022-05-29 Thread MRAB
On 2022-05-29 13:57, iMath wrote: please see the formated code at https://stackoverflow.com/questions/72423464/matplotlib-basemap-colorbar-exception-given-element-not-contained-in-the-stack The problem might be that you're passing "ax=self.ax" when you create the basema

Re: matplotlib basemap colorbar exception : Given element not contained in the stack

2022-05-29 Thread iMath
please see the formated code at https://stackoverflow.com/questions/72423464/matplotlib-basemap-colorbar-exception-given-element-not-contained-in-the-stack -- https://mail.python.org/mailman/listinfo/python-list

Re: matplotlib: scatterplot and histogram with same colour scale

2022-04-26 Thread Loris Bennett
"Loris Bennett" writes: > Hi, > > I am using matplotlib to create scatterplot where the colour depends on > the y-value. Additionally I want to project the y-values onto a rotated > histogram along the right side of the scatterplot. > > My problem is that with my

matplotlib: scatterplot and histogram with same colour scale

2022-04-26 Thread Loris Bennett
Hi, I am using matplotlib to create scatterplot where the colour depends on the y-value. Additionally I want to project the y-values onto a rotated histogram along the right side of the scatterplot. My problem is that with my current code, the colours used for the histogram are normalised to

Re: Unable to Install Matplotlib & Pandas for Python 3.10

2021-10-24 Thread MRAB
On 2021-10-24 23:59, Mats Wichmann wrote: On 10/24/21 09:46, MRAB wrote: > On 2021-10-24 12:41, Anik Dey wrote: >> Hello, I downloaded & installed Python 3.10 but it didn't replace Python >> 3.9. And now I can't install Matplotlib & Pandas. What should I do? >

Re: Unable to Install Matplotlib & Pandas for Python 3.10

2021-10-24 Thread Mats Wichmann
On 10/24/21 09:46, MRAB wrote: On 2021-10-24 12:41, Anik Dey wrote: Hello, I downloaded & installed Python 3.10 but it didn't replace Python 3.9. And now I can't install Matplotlib & Pandas. What should I do? Multiple versions of Python can exist alongside each other. You

Re: Unable to Install Matplotlib & Pandas for Python 3.10

2021-10-24 Thread MRAB
On 2021-10-24 12:41, Anik Dey wrote: Hello, I downloaded & installed Python 3.10 but it didn't replace Python 3.9. And now I can't install Matplotlib & Pandas. What should I do? Multiple versions of Python can exist alongside each other. You haven't said what you mean

Unable to Install Matplotlib & Pandas for Python 3.10

2021-10-24 Thread Anik Dey
Hello, I downloaded & installed Python 3.10 but it didn't replace Python 3.9. And now I can't install Matplotlib & Pandas. What should I do? -- https://mail.python.org/mailman/listinfo/python-list

Re: matplotlib graph white space

2021-10-06 Thread Thomas Jollans
right and left of the chart. Steve To tweak the amount of padding around the matplotlib axes, you can use pyplot.subplots_adjust [1] or Figure.subplots_adjust [2]. In most cases, the tight_layout function/method [3,4] will give you sensible settings for the various spacing parameters. You

Re: matplotlib graph white space

2021-10-05 Thread Michel Alwan
t; -Original Message- > From: Michel Alwan > Sent: Monday, October 4, 2021 7:56 AM > To: Steve > Cc: python-list@python.org > Subject: Re: matplotlib graph white space > > In the plot window, you can click on the settings (up), and select the > option "tight layout

Re: matplotlib graph white space

2021-10-05 Thread Michel Alwan
In the plot window, you can click on the settings (up), and select the option "tight layout" by pressing that button... I think this is what you are looking for... On 21/10/04 04:39AM, Steve wrote: > > I am using the first bar graph listed at this site: > https://matplotlib.org/stable/gallery/

RE: matplotlib graph white space

2021-10-04 Thread Steve
Yes, I saw that but it is a change for all sides. Is there a setting to change just the left and right padding? -Original Message- From: Michel Alwan Sent: Monday, October 4, 2021 7:56 AM To: Steve Cc: python-list@python.org Subject: Re: matplotlib graph white space In the plot

Re: matplotlib graph white space

2021-10-04 Thread David Lowry-Duda
> I am using the first bar graph listed at this site: > https://matplotlib.org/stable/gallery/index.html > > The problem I have is that there is too much white space around the graph. > My data would be better displayed if I could widen the graph into the space > to the right and left of the chart

matplotlib graph white space

2021-10-04 Thread Steve
I am using the first bar graph listed at this site: https://matplotlib.org/stable/gallery/index.html The problem I have is that there is too much white space around the graph. My data would be better displayed if I could widen the graph into the space to the right and left of the chart. Steve

Re: matplotlib questions

2021-08-28 Thread MRAB
On 2021-08-28 04:39, Steve wrote: I would like to know how the data is placed on the Y-axis and at the tops of the bars. The data is not being shown properly. With some exceptions, it looks as if the data is getting sorted independently from the dates. OK, here is the code: ===

RE: matplotlib questions

2021-08-27 Thread Steve
90 3.75 Thu Aug 19, 2021 09128 5.33 Wed Aug 25, 2021 02137 5.71 -Original Message- From: Python-list On Behalf Of David Lowry-Duda Sent: Friday, August 27, 2021 3:25 PM To: python-list@python.org Subject: Re:

Re: matplotlib questions

2021-08-27 Thread David Lowry-Duda
> I am trying to modify the "Bar Graph Demo" at > https://matplotlib.org/stable/gallery/index.html, Lines, bars, and > markers > but the more I experiment and change the code, the more messed up it > becomes. It is much easier to give constructive suggestions if you give a minimum runnable code

RE: matplotlib questions

2021-08-27 Thread Schachner, Joseph
: matplotlib questions I am trying to modify the "Bar Graph Demo" at https://matplotlib.org/stable/gallery/index.html, Lines, bars, and markers but the more I experiment and change the code, the more messed up it becomes. I have the demo code working. This is my second attempt. I guess I ac

Re: matplotlib questions

2021-08-26 Thread Mats Wichmann
On 8/26/21 9:47 AM, Steve wrote: I am trying to modify the "Bar Graph Demo" at https://matplotlib.org/stable/gallery/index.html, Lines, bars, and markers but the more I experiment and change the code, the more messed up it becomes. I have the demo code working. This is my second attempt. I gue

matplotlib questions

2021-08-26 Thread Steve
I am trying to modify the "Bar Graph Demo" at https://matplotlib.org/stable/gallery/index.html, Lines, bars, and markers but the more I experiment and change the code, the more messed up it becomes. I have the demo code working. This is my second attempt. I guess I accidentally got my first char

Re: Matplotlib scale

2021-04-06 Thread Julien Hofmann
Thank you for your response, and thank you for the different tips concerning visualisation. I'll improve it. I've tried to put vmin and vmax in contourf(). It works but the values above 80% of the maximum value still remain red which makes the cartography not really clear. I think I should i

Re: Matplotlib scale

2021-04-05 Thread Thomas Jollans
On 04/04/2021 20:57, Julien Hofmann wrote: Hi everyone, I've created a code to run a 2D mapping using matplotlib from a .csv file. I've tried to set the maximum color (red) of the scale as 80% of the maximum value and not as the maximum value of my .csv file. Does someone know how

Re: Matplotlib scale

2021-04-05 Thread Julien Hofmann
Le lundi 5 avril 2021 à 21:50:49 UTC+2, David Lowry-Duda a écrit : Thank you for your response! I just tried it but it doesn't make what I want. Bassically, I would like to not put any color for every values above 0.8 times the maximum value (ie. 488). Hence, the ''maximum'' color (ie. red) woul

Re: Matplotlib scale

2021-04-05 Thread David Lowry-Duda
Hello, > I've created a code to run a 2D mapping using matplotlib from a .csv > file. > I've tried to set the maximum color (red) of the scale as 80% of the maximum > value and not as the maximum value of my .csv file. > Does someone know how to modify that? If I unde

Matplotlib scale

2021-04-04 Thread Julien Hofmann
Hi everyone, I've created a code to run a 2D mapping using matplotlib from a .csv file. I've tried to set the maximum color (red) of the scale as 80% of the maximum value and not as the maximum value of my .csv file. Does someone know how to modify that? I've tried different

Why I always have invalid error when using "pip install matplotlib" in Python 3.9

2020-11-27 Thread SONAHI
    Sent from [1]Mail for Windows 10   References Visible links 1. https://go.microsoft.com/fwlink/?LinkId=550986 -- https://mail.python.org/mailman/listinfo/python-list

Re: Interference tkinter and plot from matplotlib

2020-10-01 Thread Pierre Bonville
Thank you, Mr. Gollwitzer. I understand the problem. I'll see what I can do. Regards, P.Bonville Le mer. 30 sept. 2020 à 17:02, Christian Gollwitzer a écrit : > Am 30.09.20 um 15:46 schrieb Pierre Bonville: > > Hi everybody, > > > Interference tkinter and plot from m

Re: Interference tkinter and plot from matplotlib

2020-09-30 Thread Christian Gollwitzer
Am 30.09.20 um 15:46 schrieb Pierre Bonville: Hi everybody, Interference tkinter and plot from matplotlib You are mixing different ways of control flow. In a GUI program, don't call input(). Use the mainloop() as the very last of your calls, and only work in the callbacks. That

Interference tkinter and plot from matplotlib

2020-09-30 Thread Pierre Bonville
Hi everybody, I am running this little program below on Win 10 with Python 3.8 (just typing prog.py after the prompt c:\Users ...>), and while it correctly displays the window and does the first plt.plot(), it does not reach the input command and remains waiting after I shut the plot. If I replace

Animated functions with matplotlib

2020-06-03 Thread Steve Keller
I am trying to plot a live signal using matplotlib and it really drives me crazy. I have tried dozens of variants, with and without interactive (plt.ion()), with animation.FuncAnimation and doing things by hand, calling plt.show() and/or plt.draw() but nothing works as expected. One problem is

matplotlib: Difference between Axes and AxesSubplot

2020-04-27 Thread ast
Hello It's not clear to me what the differences between Axes and AxesSubplot classes are AxesSubplot is a sub class of Axes It is possible to draw in objects of both type with plot, scatter ... Axes object seems to be able to be inserted in AxesSubplot object (It is strange because AxesSubplot

confused by matplotlib and subplots

2020-04-01 Thread Luca
Hello Covid fighters and dodgers, I'm sort of confused by what I am seeing in a Pandas book. This works: fig = plt.figure() ax1 = fig.add_subplot(2,2,1) ax2 = fig.add_subplot(2,2,2) ax3 = fig.add_subplot(2,2,3) ax3.plot(np.random.randn(50).cumsum(), 'k--'); but also this works! fig = plt.fi

Re: my matplotlib realtime plot doesn't show the line between the points

2020-03-31 Thread Nicolas Marat
sorry that the real piece of code self.MplWidget.canvas.axes.set_xlim(left=max(0, self.i-40), right= self.i+60) self.MplWidget.canvas.axes.plot(x, y,'.k-') self.MplWidget.canvas.axes.set_title('pull') self.MplWidget.canvas.draw() -- https://mail.python.org/mail

my matplotlib realtime plot doesn't show the line between the points

2020-03-31 Thread Nicolas Marat
hi guys, i need help because my matplotlib realtime plot doesn't show the line between the points. even if i right '.k-' thit plot is display in a qwidget in an other code wirdely that if i put bar it actualy working. the real time data come from an arduino sensor that the shap

Re: distinguishable matplotlib colours / symbols / line styles

2019-12-16 Thread DL Neil via Python-list
On 17/12/19 3:37 pm, Dennis Lee Bieber wrote: If, by some chance, external nodes can get to it: http://wlfraed.microdiversity.freeddns.org/BW/BWConv.html } Works for me, no hacking necessary! (photo of ppl dressed-up in Mickey Mouse type costumes) -- Regards =dn -- https://mail.python.org/mail

Re: distinguishable matplotlib colours / symbols / line styles

2019-12-16 Thread Chris Angelico
On Tue, Dec 17, 2019 at 1:38 PM Dennis Lee Bieber wrote: > > Not of use to the OP -- my suggestion would have been to generate an > image with a grid of the "available" (or likely candidate colors), then > play with desaturating it in something like PhotoShop to see what results. > I had a

Re: distinguishable matplotlib colours / symbols / line styles

2019-12-16 Thread duncan smith
On 16/12/2019 21:08, DL Neil wrote: > On 17/12/19 5:19 am, Chris Angelico wrote: >> On Tue, Dec 17, 2019 at 3:16 AM duncan smith >> wrote: >>> >>> Hello, >>>    Not really specific to Python or matplotlib (but that's what I'm >>&

Re: distinguishable matplotlib colours / symbols / line styles

2019-12-16 Thread Chris Angelico
On Tue, Dec 17, 2019 at 8:09 AM DL Neil via Python-list wrote: > > On 17/12/19 5:19 am, Chris Angelico wrote: > > On Tue, Dec 17, 2019 at 3:16 AM duncan smith wrote: > >> > >> Hello, > >> Not really specific to Python or matplotlib (but that's

Re: distinguishable matplotlib colours / symbols / line styles

2019-12-16 Thread DL Neil via Python-list
On 17/12/19 5:19 am, Chris Angelico wrote: On Tue, Dec 17, 2019 at 3:16 AM duncan smith wrote: Hello, Not really specific to Python or matplotlib (but that's what I'm using). I'm looking for a good combination of colours and symbols for scatter plots, and combination

Re: distinguishable matplotlib colours / symbols / line styles

2019-12-16 Thread Chris Angelico
On Tue, Dec 17, 2019 at 3:16 AM duncan smith wrote: > > Hello, > Not really specific to Python or matplotlib (but that's what I'm > using). I'm looking for a good combination of colours and symbols for > scatter plots, and combination of colours and line styles

distinguishable matplotlib colours / symbols / line styles

2019-12-16 Thread duncan smith
Hello, Not really specific to Python or matplotlib (but that's what I'm using). I'm looking for a good combination of colours and symbols for scatter plots, and combination of colours and line styles for line plots. Too often I find myself producing these when I don't kn

Re: error with installing a package(matplotlib)

2019-11-03 Thread dieter
them and it worked).Now i want to download > matplotlib and i have this error: > ... > /Tcsrc/checkdep_freetype2.c > /Fobuild\temp.win32-3.8\Release\src/checkdep_freetype2.obj > checkdep_freetype2.c > src/checkdep_freetype2.c(1): fatal error C1083: Cannot open include >

error with installing a package(matplotlib)

2019-10-31 Thread thodoris doultsinos
download matplotlib and i have this error: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DFREETYPE_BUILD_TYPE=system -DPY_ARRAY_UNIQUE_SYMBOL=MPL_matplotlib_ft2font_ARRAY_API -DNPY_NO_DEPRECATED_API

Re: Matplotlib import image as float32

2019-07-05 Thread Thomas Jollans
On 01/07/2019 21:08, Markos wrote: > Hi, > > I observed that matplotlib reads an image file (PNG) as float32: > > Please, how to read this file as int8 to get RGB in range of 0-255? You may want to try a different library. scikit-image's imread function will give you the

Re: Matplotlib import image as float32

2019-07-02 Thread Markos
Em 01-07-2019 18:03, Chris Angelico escreveu: On Tue, Jul 2, 2019 at 6:59 AM Markos wrote: Hi, I observed that matplotlib reads an image file (PNG) as float32: Please, how to read this file as int8 to get RGB in range of 0-255? Thank you, Markos import numpy as np import

Re: Matplotlib import image as float32

2019-07-01 Thread Chris Angelico
On Tue, Jul 2, 2019 at 6:59 AM Markos wrote: > > Hi, > > I observed that matplotlib reads an image file (PNG) as float32: > > Please, how to read this file as int8 to get RGB in range of 0-255? > > Thank you, > > Markos > > >import numpy as np > >

Matplotlib import image as float32

2019-07-01 Thread Markos
Hi, I observed that matplotlib reads an image file (PNG) as float32: Please, how to read this file as int8 to get RGB in range of 0-255? Thank you, Markos import numpy as np import matplotlib.pyplot as plt import matplotlib.image as mpimg imagem = mpimg.imread('lenna.png'

generate matplotlib images without having access to an X server

2019-01-23 Thread joseph pareti
The following piece of code is supposed to generate images for plotting: (in *bold*, my added / corrected statements) ... *# JP handle non X server* *import matplotlib* *matplotlib.use('Agg')* # JP import matplotlib.pyplot as plt import numpy as np import tensorflow as tf ... # Gener

  1   2   3   4   5   6   7   8   >