Thanks, D'Arcy. I've done a fair amount of 2-to-3 migration in the past, but
there was a lot of stuff in that article ("six", for instance) that I hadn't
run across.
--
https://mail.python.org/mailman3//lists/python-list.python.org
Thanks. That appears to be exactly the thing I was looking for (vis-a-vis
collections).
--
https://mail.python.org/mailman3//lists/python-list.python.org
On 6/14/25 23:53, jmhannon.ucdavis--- via Python-list wrote:
Greetings. We (the group that I work with) have "inherited" some Python
scripts that were written years ago, using Python 2.
We're trying to upgrade the scripts so that they work in our current
environment:
https://www.scoutapm.com/
On 2025-06-15 04:53, jmhannon.ucdavis--- via Python-list wrote:
Greetings. We (the group that I work with) have "inherited" some Python
scripts that were written years ago, using Python 2.
We're trying to upgrade the scripts so that they work in our current
environment:
OS: Ubuntu 24.04.2
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 using Spyder python 3.11 on
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 Pytho
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
"%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 already have IPytho
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 Python
>> 3.4.4 Shell...
Python names c
On Friday 29 January 2016 at 12:34:47 UTC+5:30, Mike S wrote:
> I have installed Python 3.4.4 on XPSP3 and am trying to work my way
> through this tutorial.
>
> A Complete Tutorial on Ridge and Lasso Regression in Python
> http://www.analyticsvidhya.com/blog/2016/01/complete-tutorial-ridge-lass
在 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 passing "ax=self.ax" when
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 basemap, and you have:
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
"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 current code, the colours used
On 04/10/2021 10:39, Steve wrote:
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 rig
t; -Original Message-
> From: Michel Alwan
> Sent: Monday, October 4, 2021 7:56 AM
> To: Steve
> Cc: [email protected]
> Subject: Re: matplotlib graph white space
>
> In the plot window, you can click on the settings (up), and select the
> option "tight layout
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/
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: [email protected]
Subject: Re: matplotlib graph white space
In the plot
> 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
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:
===
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: [email protected]
Subject: Re:
> 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
Complete documentation link (this link works) :
https://matplotlib.org/stable/contents.html
--- Joseph S.
Teledyne Confidential; Commercially Sensitive Business Data
-Original Message-
From: Steve
Sent: Thursday, August 26, 2021 11:48 AM
To: [email protected]
Subject: matplot
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
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
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 to modify th
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
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 understand what you're trying t
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 image as an integer
arr
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 matplotlib.pyplot
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 matplotlib.pyplot as plt
>
> >import matpl
On Saturday, July 7, 2018 at 6:36:16 AM UTC-7, Rick Johnson wrote:
> John Ladasky wrote:
>
> > Back then I wrote:
> >
> > "I have concluded that Qt, PyQt, and OpenGL are all
> > rapidly-evolving, and huge, software packages. There may
> > be compatibility problems, and relevant examples with the
On Wednesday, July 4, 2018 at 6:38:18 PM UTC-7, William Ray Wing wrote:
> > On Jul 4, 2018, at 5:53 PM, John Ladasky wrote:
[snip]
> > I explored Python OpenGL bindings about three years ago, and quickly got
> > bogged down. Even with Python to assist, dealing with OpenGL was like
> > trying to
On Wednesday, July 4, 2018 at 3:30:32 PM UTC-7, Rick Johnson wrote:
> On Wednesday, July 4, 2018 at 4:53:19 PM UTC-5, John Ladasky wrote:
> > There are many 3D graphics packages on PyPI. Some appear to be quite
> > specialized. I would appreciate your recommendations. Thanks!
>
> If you don't
> On Jul 4, 2018, at 5:53 PM, John Ladasky wrote:
>
> I'm a regular Matplotlib user. Normally, I graph functions. I just
> attempted to graph an icosahedral surface using the plot_trisurf() methods of
> Matplotlib's Axes3D. I have discovered that Matplotlib is basically
> hard-wired for gra
On 3/14/2018 2:30 PM, [email protected] wrote:
I am getting this logging.INFO notice:
Could not load matplotlib icon: bad option "foobar": must be aspect,
attributes, client, colormapwindows, command, deiconify, focusmodel, forget, frame,
geometry, grid, group, iconbitmap, iconify, iconmas
On Thursday, June 22, 2017 at 11:24:53 AM UTC-7, Michael F. Stemper wrote:
> On 2017-06-22 12:56, [email protected] wrote:
> > On Thursday, June 22, 2017 at 10:14:21 AM UTC-7, Michael F. Stemper wrote:
> >> On 2017-06-22 09:50, [email protected] wrote:
> >>> On Thursday, June 22, 2017 at 3
On Thursday, June 22, 2017 at 3:33:36 PM UTC+1, Michael F. Stemper wrote:
> I have some scripts running as cronjobs that capture the status
> of some long-term processes and then periodically plot the data.
> The box where they normally run went down yesterday for some
> unknown reason, so I ran th
On 2017-06-22 12:16, Michael F. Stemper wrote:
On 2017-06-22 10:54, Dennis Lee Bieber wrote:
On Thu, 22 Jun 2017 09:33:15 -0500, "Michael F. Stemper"
declaimed the following:
If the difference isn't due to a change in matplotlib, would it be
something OS-dependent? How can I track it down?
On 2017-06-22 12:56, [email protected] wrote:
On Thursday, June 22, 2017 at 10:14:21 AM UTC-7, Michael F. Stemper wrote:
On 2017-06-22 09:50, [email protected] wrote:
On Thursday, June 22, 2017 at 3:33:36 PM UTC+1, Michael F. Stemper wrote:
Is it likely that the difference in plot
On Thursday, June 22, 2017 at 10:14:21 AM UTC-7, Michael F. Stemper wrote:
> On 2017-06-22 09:50, [email protected] wrote:
> > On Thursday, June 22, 2017 at 3:33:36 PM UTC+1, Michael F. Stemper wrote:
> >> I have some scripts running as cronjobs that capture the status
> >> of some long-term pr
On 2017-06-22 10:54, Dennis Lee Bieber wrote:
On Thu, 22 Jun 2017 09:33:15 -0500, "Michael F. Stemper"
declaimed the following:
If the difference isn't due to a change in matplotlib, would it be
something OS-dependent? How can I track it down?
What renderer is being used? Tk, wx, et
On 2017-06-22 09:50, [email protected] wrote:
On Thursday, June 22, 2017 at 3:33:36 PM UTC+1, Michael F. Stemper wrote:
I have some scripts running as cronjobs that capture the status
of some long-term processes and then periodically plot the data.
The box where they normally run went down y
>plt.plot(np.array(code_2001),label="2001")
Simple solution:
ax.plot(date_nump,np.array(code_2001),label="2001")
Didn't see it until I took a rest.
This email is confidential and may be subject to privilege. If you are not the
intended recipient, please do not copy or disclose its content but co
On 1/28/2016 11:57 PM, Steven D'Aprano wrote:
On Fri, 29 Jan 2016 06:04 pm, Mike S wrote:
%matplotlib inline
I get an error on the last line. I am running this code in Idle Python
3.4.4 Shell...
Python 3.4.4 (v3.4.4:737efcadf5a6, Dec 20 2015, 19:28:18) [MSC v.1600 32
bit (Intel)] on win32
Typ
On Fri, 29 Jan 2016 06:04 pm, Mike S wrote:
> %matplotlib inline
>
> I get an error on the last line. I am running this code in Idle Python
> 3.4.4 Shell...
>
> Python 3.4.4 (v3.4.4:737efcadf5a6, Dec 20 2015, 19:28:18) [MSC v.1600 32
> bit (Intel)] on win32
> Type "copyright", "credits" or "lice
On Fri, Jan 29, 2016 at 6:04 PM, Mike S via Python-list
wrote:
>
> I get an error on the last line. I am running this code in Idle Python 3.4.4
> Shell...
>
> Python 3.4.4 (v3.4.4:737efcadf5a6, Dec 20 2015, 19:28:18) [MSC v.1600 32 bit
> (Intel)] on win32
> Type "copyright", "credits" or "license(
Thank you Laura and Oscar.
Abhishek
--
https://mail.python.org/mailman/listinfo/python-list
In a message of Fri, 13 Nov 2015 14:04:01 +, Oscar Benjamin writes:
>On 13 November 2015 at 08:34, Laura Creighton wrote:
>> In a message of Thu, 12 Nov 2015 17:54:28 -0800, Abhishek writes:
>>>I am trying to run some Python code for the last few hours. How can I
>>>achieve the effect of "dot
On 13 November 2015 at 08:34, Laura Creighton wrote:
> In a message of Thu, 12 Nov 2015 17:54:28 -0800, Abhishek writes:
>>I am trying to run some Python code for the last few hours. How can I achieve
>>the effect of "dot divide" from Matlab, in the following code? I am having
>>trouble working
In a message of Thu, 12 Nov 2015 17:54:28 -0800, Abhishek writes:
>I am trying to run some Python code for the last few hours. How can I achieve
>the effect of "dot divide" from Matlab, in the following code? I am having
>trouble working with list comprehension and numpy arrays and getting the
>
In a message of Thu, 01 Oct 2015 20:47:10 +0100, Dave Farrance writes:
>Laura Creighton wrote:
>
>>In a message of Thu, 01 Oct 2015 20:03:26 +0100, Dave Farrance writes:
>>>Laura Creighton wrote:
>>>
In a message of Thu, 01 Oct 2015 18:45:06 +0100, Dave Farrance writes:
>Yet the documenta
Laura Creighton wrote:
>In a message of Thu, 01 Oct 2015 20:03:26 +0100, Dave Farrance writes:
>>Laura Creighton wrote:
>>
>>>In a message of Thu, 01 Oct 2015 18:45:06 +0100, Dave Farrance writes:
Yet the documentation says that it's mandatory for the GUI backend base
to implement stop()
In a message of Thu, 01 Oct 2015 20:03:26 +0100, Dave Farrance writes:
>Laura Creighton wrote:
>
>>In a message of Thu, 01 Oct 2015 18:45:06 +0100, Dave Farrance writes:
>>>Yet the documentation says that it's mandatory for the GUI backend base
>>>to implement stop() but that single_shot is option
Laura Creighton wrote:
>In a message of Thu, 01 Oct 2015 18:45:06 +0100, Dave Farrance writes:
>>Yet the documentation says that it's mandatory for the GUI backend base
>>to implement stop() but that single_shot is optional. Ho hum.
>
>report as a bug. its a doc bug at least, but I think its a r
In a message of Thu, 01 Oct 2015 18:45:06 +0100, Dave Farrance writes:
>Yet the documentation says that it's mandatory for the GUI backend base
>to implement stop() but that single_shot is optional. Ho hum.
report as a bug. its a doc bug at least, but I think its a real bug,
and your code should
Laura Creighton wrote:
>In a message of Thu, 01 Oct 2015 17:36:50 +0100, Dave Farrance writes:
>>I'm trying to set up the basics of a timer-scheduled function in
>>matplotlib and I can't figure out how to stop the timer. Maybe the
>>stop() method is dysfunctional in Ubuntu 14.04 or maybe I'm gett
In a message of Thu, 01 Oct 2015 17:36:50 +0100, Dave Farrance writes:
>I'm trying to set up the basics of a timer-scheduled function in
>matplotlib and I can't figure out how to stop the timer. Maybe the
>stop() method is dysfunctional in Ubuntu 14.04 or maybe I'm getting the
>syntax wrong.
>
>If
On Thu, 09 Jul 2015 19:50:33 GMT, Tony the Tiger wrote:
> On Tue, 30 Jun 2015 00:56:26 +, Peter Pearson wrote:
>
>> If I use timezone US/Central, I get the same (bad) plot.
>
> Perhaps this can help?:
> http://stackoverflow.com/questions/1301493/setting-timezone-in-python
Yes, thanks. As I s
On Sat, 04 Jul 2015 07:29:45 +0300, Akira Li <[email protected]> wrote:
> Peter Pearson writes:
>
>> The following code produces a plot with a line running from (9:30, 0) to
>> (10:30, 1), not from (8:30, 0) to (9:30, 1) as I desire.
>>
>> If I use timezone None instead of pacific, the plot is as
Peter Pearson writes:
> The following code produces a plot with a line running from (9:30, 0) to
> (10:30, 1), not from (8:30, 0) to (9:30, 1) as I desire.
>
> If I use timezone None instead of pacific, the plot is as desired, but
> of course that doesn't solve the general problem of which this i
On Wed, Jul 1, 2015 at 3:50 PM, Peter Pearson wrote:
> But look:
>
> >>> from datetime import datetime
> >>> import pytz
> >>> pacific = pytz.timezone("US/Pacific")
> >>> dt1 = datetime(2006, 11, 21, 16, 30, tzinfo=pacific) # no DST
> >>> dt2 = datetime(2006, 6, 14, 13, 0, tzin
On 30 Jun 2015 00:56:26 GMT, Peter Pearson wrote:
> The following code produces a plot with a line running from (9:30, 0) to
> (10:30, 1), not from (8:30, 0) to (9:30, 1) as I desire.
>
> If I use timezone None instead of pacific, the plot is as desired, but
> of course that doesn't solve the gene
On Wed, Jul 1, 2015 at 2:42 AM, Peter Pearson wrote:
> I'm just glad I don't have to worry about the distinctions among
> UTC, GMT, TAI, and UT1.
Fortunately, that's often the case. GMT can be ignored, and the other
three differ by less seconds than most humans ever care about. If
you're scheduli
On Tue, 30 Jun 2015 17:01:15 +1000, Chris Angelico wrote:
> On Tue, Jun 30, 2015 at 2:49 PM, Peter Pearson
> wrote:
>> Time zones teem with sneaky software problems, and so does daylight-saving
>> time, so this problem might strain my brain. Maybe it's going to turn
>> out that my expectations ar
On Tue, Jun 30, 2015 at 2:49 PM, Peter Pearson
wrote:
> Time zones teem with sneaky software problems, and so does daylight-saving
> time, so this problem might strain my brain. Maybe it's going to turn
> out that my expectations are unreasonable . . . as in, "Well, smarty pants,
> how do you wan
On Tue, 30 Jun 2015 04:03:57 +0200, Laura Creighton wrote:
> In a message of 30 Jun 2015 00:56:26 +, Peter Pearson writes:
>>The following code produces a plot with a line running from (9:30, 0) to
>>(10:30, 1), not from (8:30, 0) to (9:30, 1) as I desire.
>>
>>If I use timezone None instead o
On Tue, 30 Jun 2015 12:11:31 +1000, Chris Angelico wrote:
> On Tue, Jun 30, 2015 at 10:56 AM, Peter Pearson
> wrote:
>> The following code produces a plot with a line running from (9:30, 0) to
>> (10:30, 1), not from (8:30, 0) to (9:30, 1) as I desire.
>>
>> pacific = pytz.timezone("US/Pacific")
>
On Tue, Jun 30, 2015 at 10:56 AM, Peter Pearson
wrote:
> The following code produces a plot with a line running from (9:30, 0) to
> (10:30, 1), not from (8:30, 0) to (9:30, 1) as I desire.
>
> pacific = pytz.timezone("US/Pacific")
> plt.plot([datetime.datetime(2014, 10, 7, 8, 30, tzinfo=pacific),
In a message of 30 Jun 2015 00:56:26 +, Peter Pearson writes:
>The following code produces a plot with a line running from (9:30, 0) to
>(10:30, 1), not from (8:30, 0) to (9:30, 1) as I desire.
>
>If I use timezone None instead of pacific, the plot is as desired, but
>of course that doesn't sol
On Sun, 26 Apr 2015 18:55:27 + (UTC), Denis McMahon
wrote:
>The first thing you need to do is create a small self contained example
>of your problem.
>
>State the problem: Plot does not create the output you expect.
>
>Give an example:
>
>plot( [1,11], [5,5] )
>
>Explain what you expect the
On Sat, 25 Apr 2015 23:33:10 +0100, Mario Figueiredo wrote:
> plot(list(results.keys()), list(results.values()))
I found multiple plots in matplotlib. You need to specify which one
you're using.
The first thing you need to do is create a small self contained example
of your problem.
State
On Sun, 26 Apr 2015 11:17:07 +0100, Dave Farrance
wrote:
>
>Moving average. Try:
>
>def movingaverage(interval, window_size):
>window= numpy.ones(int(window_size))/float(window_size)
>return numpy.convolve(interval, window, 'same')
>
>y_av = movingaverage(y,10)
>
>Note that you'd get prob
Mario Figueiredo wrote:
>Other than replacing the random module with the probability density
>function for the exponential distribution, do you have a suggestion of
>how I could smooth the curve?
Moving average. Try:
def movingaverage(interval, window_size):
window= numpy.ones(int(window_si
On Saturday, April 25, 2015 at 4:16:04 PM UTC-7, Mario Figueiredo wrote:
[snip]
> This works as intended. But plots a jagged curve due to the small
> discrepancies normal of a random number generation.
>
> Other than replacing the random module with the probability density
> function for the expon
On 25/04/2015 23:33, Mario Figueiredo wrote:
I'm trying to plot the curve of an exponential distribution without
much success. I'm missing something very basic I feel, but just can't
figure it out after numerous tries, so I'm turning out to you.
This is the function generating the frequency of i
On Sat, 25 Apr 2015 23:12:19 + (UTC), Denis McMahon
wrote:
>Sorry, but given a choice of 5 plot methods in matplotlib and no hint as
>to which one you're calling, I'm not inclined to go and look at the
>arguments of all of them.
There's actually around 8 I think. The individual graphs type
Ok. Ermm, it seems I needed to ask to finally have an epiphany. The
problem is that defaultdict is unordered. Once I get the data ordered,
I can finally plot the curve. Although this presents another
problem...
import decimal
from random import expovariate
from collections import defaultdict
deci
On Sat, 25 Apr 2015 23:33:10 +0100, Mario Figueiredo wrote:
> plot(list(results.keys()), list(results.values()))
matplotlib supports at least (from searching the website) 5 plot methods.
Which one are you using?
My first guess would be that the data format that plot expects isn't the
forma
On Sat, 25 Apr 2015 23:33:10 +0100, Mario Figueiredo
wrote:
>
>Trying to plot this data into a frequency curve is proving too
>challenging and I just can't understand why.
>
>plot(list(results.keys()), list(results.values()))
>
The above should read:
results = generate(1)
plot(list(
On 07/02/2015 15:23, C Smith wrote:
On Fri, Feb 6, 2015 at 7:04 PM, Ned Deily wrote:
In article
,
C Smith wrote:
I had python 2.7.6 installed on OS X yosemite, which has always worked
fine, until I tried to install matplotlib with pip. I got the same
error below and upgraded to 2.7.9, used
On Fri, Feb 6, 2015 at 7:04 PM, Ned Deily wrote:
> In article
> ,
> C Smith wrote:
>> I had python 2.7.6 installed on OS X yosemite, which has always worked
>> fine, until I tried to install matplotlib with pip. I got the same
>> error below and upgraded to 2.7.9, used pip to upgrade all the
>>
In article
,
C Smith wrote:
> I had python 2.7.6 installed on OS X yosemite, which has always worked
> fine, until I tried to install matplotlib with pip. I got the same
> error below and upgraded to 2.7.9, used pip to upgrade all the
> packages, but still get the same error.
>
> >>> import mat
On 06/02/2015 19:02, Ian Kelly wrote:
On Fri, Feb 6, 2015 at 11:49 AM, C Smith wrote:
On Fri, Feb 6, 2015 at 10:20 AM, Chris Angelico wrote:
On Sat, Feb 7, 2015 at 3:34 AM, C Smith wrote:
ImportError:
dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nump
On Fri, Feb 6, 2015 at 11:49 AM, C Smith wrote:
> On Fri, Feb 6, 2015 at 10:20 AM, Chris Angelico wrote:
>> On Sat, Feb 7, 2015 at 3:34 AM, C Smith wrote:
>>> ImportError:
>>> dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/linalg/lapack_lite.so,
>>> 2
On Fri, Feb 6, 2015 at 10:20 AM, Chris Angelico wrote:
> On Sat, Feb 7, 2015 at 3:34 AM, C Smith wrote:
>> ImportError:
>> dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/linalg/lapack_lite.so,
>> 2): Symbol not found: __gfortran_compare_string
>
> Ah,
On Sat, Feb 7, 2015 at 3:34 AM, C Smith wrote:
> ImportError:
> dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/linalg/lapack_lite.so,
> 2): Symbol not found: __gfortran_compare_string
Ah, installing from source on a Mac and having problems. Have I hear
On Wed, 22 Oct 2014 12:38:02 +0200, Peter Otten wrote:
> Peter Pearson wrote:
[snip]
>> def callback(event):
>> global n, first
>> fig = plt.figure(2)
>> fig.clear()
>> plt.plot([0,1],[0,n])
>> n += 1 # (Pretending something changes from one plot to the next.)
>> if first:
Peter Pearson wrote:
> I'm using Matplotlib to present a "control" window with clickable
> buttons, and to plot things in another window when you click buttons,
> in the style of the code below. I'm ashamed of the stinky way I
> use "first" to call plt.show the first time data are plotted but the
On 20/08/2014 11:02, Jamie Mitchell wrote:
This is great and works very well - thank you!!
I'm pleased to see that you have answers. In return would you please
access this list via
https://mail.python.org/mailman/listinfo/python-list or read and action
this https://wiki.python.org/moin/Go
On Tuesday, August 19, 2014 10:21:48 PM UTC+1, [email protected] wrote:
> Jamie Mitchell writes:
>
>
>
> > You were right Christian I wanted a shape (2,150).
>
> >
>
> > Thank you Rustom and Steven your suggestion has worked.
>
> >
>
> > Unfortunately the data doesn't plot as I imagined.
>
Jamie Mitchell writes:
> You were right Christian I wanted a shape (2,150).
>
> Thank you Rustom and Steven your suggestion has worked.
>
> Unfortunately the data doesn't plot as I imagined.
>
> What I would like is:
>
> X-axis - hs_con_sw
> Y-axis - te_con_sw
> Z-axis - Frequency
>
> What I woul
You were right Christian I wanted a shape (2,150).
Thank you Rustom and Steven your suggestion has worked.
Unfortunately the data doesn't plot as I imagined.
What I would like is:
X-axis - hs_con_sw
Y-axis - te_con_sw
Z-axis - Frequency
What I would like is for the Z-axis to contour the freque
Jamie Mitchell wrote:
> I forgot to mention that when I try:
>
> a=np.array([[hs_con_sw],[te_con_sw]])
>
> I get a 3D shape for some reason - (2,1,150) which is not what I'm after.
No need to wrap the arrays hs_con_sw and te_con_sw in [] lists, since
they're already arrays.
a = np.array([hs_co
Am 18.08.14 18:51, schrieb Jamie Mitchell:
On Friday, August 15, 2014 4:13:26 PM UTC+1, Steven D'Aprano wrote:
So I have two 1D arrays:
1st array - ([8, 8.8,8.5,7.9,8.6 ...], dtype=float32)
It has a shape (150,)
2nd array - ([2, 2.2, 2.5, 2.3, ...],dtype=float32)
It has a shape (150,)
What I
On Monday, August 18, 2014 10:25:15 PM UTC+5:30, Jamie Mitchell wrote:
> I forgot to mention that when I try:
> a=np.array([[hs_con_sw],[te_con_sw]])
> I get a 3D shape for some reason - (2,1,150) which is not what I'm after.
I guess you want
a=np.array([hs_con_sw,te_con_sw])
??
--
https://ma
I forgot to mention that when I try:
a=np.array([[hs_con_sw],[te_con_sw]])
I get a 3D shape for some reason - (2,1,150) which is not what I'm after.
Thanks,
Jamie
--
https://mail.python.org/mailman/listinfo/python-list
On Friday, August 15, 2014 4:13:26 PM UTC+1, Steven D'Aprano wrote:
> Jamie Mitchell wrote:
>
>
>
> > I created the 2D array which read as:
>
>
>
> That's not a 2D array.
>
>
>
> When the amount of data you have is too big to clearly see what it
>
> happening, replace it with something sm
Jamie Mitchell writes:
> I created the 2D array which read as:
Maybe you could try numpy.reshape() on your 1D array?
--
https://mail.python.org/mailman/listinfo/python-list
Jamie Mitchell wrote:
> I created the 2D array which read as:
That's not a 2D array.
When the amount of data you have is too big to clearly see what it
happening, replace it with something smaller. Instead of 30 items per
sub-array, try it with 5 items per sub-array. Instead of eight decimal
pla
1 - 100 of 223 matches
Mail list logo