On 2020-12-14 21:21, Schachner, Joseph wrote:
> >>> r = range(10)
> So r is a list containing 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
In Python 3.x, r is *not* a list. It is a custom object/class.
> >>> 2 in r
> True
> As expected.
I'm not sure what your replies are suggesting here. I demonstrate
On Mon, Dec 14, 2020 at 3:07 PM Dan Stromberg wrote:
>
> On Mon, Dec 14, 2020 at 1:23 PM Schachner, Joseph <
> joseph.schach...@teledyne.com> wrote:
>
>> >>> r = range(10)
>> So r is a list containing 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
>>
> To get a list of consecutive int's, you can use, for EG:
> r =
On Mon, Dec 14, 2020 at 1:23 PM Schachner, Joseph <
joseph.schach...@teledyne.com> wrote:
> >>> r = range(10)
> So r is a list containing 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
>
To get a list of consecutive int's, you can use, for EG:
r = list(range(10))
--
https://mail.python.org/mailman/listinfo/python-
On 2020-12-14 at 21:21:43 +,
"Schachner, Joseph" wrote:
> >>> r = range(10)
> So r is a list containing 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
In a number of ways, r behaves as if it were that list, but r is
definitely not that list:
>>> r = range(10)
>>> type(r)
>>> l = [0, 1, 2, 3,
nd you read Python 101 and when you've done that, read Python 201. I
think they are very good "learn Python" books.
If you're surprised that the end point is not included in range, you need to
read Python 101.
--- Joseph S.
-----Original Message-
From: Tim Chase
Sent: Sat
On 2020-12-12, Tim Chase wrote:
>
> Hopefully this gives you the hints that you need to troubleshoot.
>
> -tkc
>
>
>
>
Yes it explains a lot.
Thanks
--
https://mail.python.org/mailman/listinfo/python-list
On 2020-12-12 at 10:51:00 -0600,
Tim Chase wrote:
> If you want numeric-range checks, Python provides the lovely
> double-comparison syntax:
>
> >>> x = 5
> >>> 2 < x < 10
> True
Not just numbers:
>>> 'm' < 'n' < 'o'
True
>>> 'one' < 'one point five' < 'two'
True
Okay,
On 2020-12-12 15:12, Bischoop wrote:
> I need to check if input number is 1-5. Whatever I try it's not
> working. Here are my aproaches to the problem: https://bpa.st/H62A
>
> What I'm doing wrong and how I should do it?
A range is similar to a list in that it contains just the numbers
listed:
Got it solved here: https://bpa.st/BFJA
--
https://mail.python.org/mailman/listinfo/python-list
In article ,
Bischoop wrote:
>
>I need to check if input number is 1-5. Whatever I try it's not working.
>Here are my aproaches to the problem: https://bpa.st/H62A
>
>What I'm doing wrong and how I should do it?
You need to learn about types. ;-)
Input returns a string. That string is not in th
I need to check if input number is 1-5. Whatever I try it's not working.
Here are my aproaches to the problem: https://bpa.st/H62A
What I'm doing wrong and how I should do it?
--
Thanks
--
https://mail.python.org/mailman/listinfo/python-list
I've also convert the choice to int() but doesn't help.
--
https://mail.python.org/mailman/listinfo/python-list
On 2020-12-12, Oscar wrote:
> In article ,
> Bischoop wrote:
>>I've also convert the choice to int() but doesn't help.
>
> Oh.. did not read this yet. How did you do this? In both places after
> the input or during the comparison? If so, in which version? Only the
> first version would work. The
In article ,
Bischoop wrote:
>I've also convert the choice to int() but doesn't help.
Oh.. did not read this yet. How did you do this? In both places after
the input or during the comparison? If so, in which version? Only the
first version would work. The other two are just plain wrong.
--
[J|O
On 2017-12-25 02:42, G Yu wrote:
Ah, I get it now. I have to store the acircle.getCenter() in a point Point,
and then access Point.getX() and Point.getY() separately. It was just that
middle step that I was missing. Thanks so much!
It's not strictly true that you _have to_ store the result
Ah, I get it now. I have to store the acircle.getCenter() in a point Point,
and then access Point.getX() and Point.getY() separately. It was just that
middle step that I was missing. Thanks so much!
--
https://mail.python.org/mailman/listinfo/python-list
On 2017-12-24 02:31, G Yu wrote:
But your code has:
moving_circle.move(P_to_R/P_to_E, E_to_R/P_to_E)
so won't that move the circle and change what:
moving_circle.getCenter()
returns?
Yes, moving the circle changes the value of moving_circle.getCenter(). The problem is
interpretin
> On Dec 23, 2017, at 11:44 AM, G Yu wrote:
>
> My program has two circles: one stationary circle, drawn at a random
> location; and one moving circle, consistently drawn in the same place in the
> graphics window.
>
>
>
> Currently, acircle.getCenter() outputs this:
>
>
>
>
> I don't u
G Yu wrote:
The command gives , and I don't know how to determine the x-coordinate of
the center from that output.
Try this in an interactive session:
p = circle.getCenter()
help(p)
This should give you a page of text showing all the attributes
and methods your point object has. Somewhe
> But your code has:
>
> moving_circle.move(P_to_R/P_to_E, E_to_R/P_to_E)
>
> so won't that move the circle and change what:
>
> moving_circle.getCenter()
>
> returns?
Yes, moving the circle changes the value of moving_circle.getCenter(). The
problem is interpreting the output. The
On 2017-12-23 21:30, G Yu wrote:
I did try that. The problem is that I already declared a point
moving_object_center = (-555,-555), because that's the point I used as the
center to draw the moving_object circle itself. So the
moving_object_center.getX() will return -555 no matter what I do.
I did try that. The problem is that I already declared a point
moving_object_center = (-555,-555), because that's the point I used as the
center to draw the moving_object circle itself. So the
moving_object_center.getX() will return -555 no matter what I do.
That's why I need to calculate the
int decimals.
So now, I want to convert the output of "acircle.getCenter()" to Cartesian
(x,y) coordinates for both circles. Then I can use the two circle centers' x-coordinates
in the if statement.
Currently, acircle.getCenter() outputs this:
I don't understand/can&
want to convert the output of "acircle.getCenter()" to Cartesian
(x,y) coordinates for both circles. Then I can use the two circle centers'
x-coordinates in the if statement.
Currently, acircle.getCenter() outputs this:
I don't understand/can't use the format that the location
Peter Otten at 2017/4/12 UTC+8 PM 8:13:53 wrote:
> I should add that you can write
>
> lr = [[1], [0]]
> lx = []
> for i in range(len(lr)):
> > ... lx = lr[i][:]
> > ... lx.append(0)
> > ... lr[i].append(1)
> > ... lr.append(lx)
> > ...
> lr
> >[[1, 1], [0, 1],
jf...@ms4.hinet.net wrote:
> Peter Otten at 2017/4/12 UTC+8 PM 4:41:36 wrote:
>> jf...@ms4.hinet.net wrote:
>>
>> Assuming both x and y are lists
>>
>> x[:] = y
>>
>> replaces the items in x with the items in y while
>>
>>
>> x =
Peter Otten at 2017/4/12 UTC+8 PM 4:41:36 wrote:
> jf...@ms4.hinet.net wrote:
>
> Assuming both x and y are lists
>
> x[:] = y
>
> replaces the items in x with the items in y while
>
>
> x = y[:]
>
> makes a copy of y and binds that to the name x. In bo
jf...@ms4.hinet.net wrote:
Assuming both x and y are lists
x[:] = y
replaces the items in x with the items in y while
x = y[:]
makes a copy of y and binds that to the name x. In both cases x and y remain
different lists, but in only in the second case x is rebound. This becomes
relevant
On Wed, 12 Apr 2017 01:08:07 -0700, jfong wrote:
> I have a list of list and like to expand each "list element" by
> appending a 1 and a 0 to it. For example, from "lr = [[1], [0]]" expand
> to "lr = [[1,1], [0,1], [1,0], [0,0]]".
>
> The following won't work:
>
> Python 3.4.4 (v3.4.4:737efcadf5
I have a list of list and like to expand each "list element" by appending a 1
and a 0 to it. For example, from "lr = [[1], [0]]" expand to "lr = [[1,1],
[0,1], [1,0], [0,0]]".
The following won't work:
Python 3.4.4 (v3.4.4:737efcadf5a6, Dec 20 2015, 19:28:18) [MSC v.1600 32 bit
(Intel)] on win
How can i get left lower X,Y left top X,Y right lower X,Y and right Top X,Y
from a raster image like dem(digital elevation model).
I am nembie sorry if i have stupid quest
--
https://mail.python.org/mailman/listinfo/python-list
Thanks Michael,
This did the trick. array.flatten('F') works exactly as I need.
Thanks a lot,
--
https://mail.python.org/mailman/listinfo/python-list
On Tue, Jun 7, 2016 at 7:31 AM Heli wrote:
> Hello,
> I have a question regarding reshaping numpy array.
>
> I either have a 1D array that I need to reshape to a 3D array or a 3D
> array to reshape to a 1d numpy array.
>
> In both of these cases it is assumed that data f
On Tue, Jun 7, 2016 at 7:25 AM, Heli wrote:
> Hello,
>
> I have a question regarding reshaping numpy array.
>
> I either have a 1D array that I need to reshape to a 3D array or a 3D array
> to reshape to a 1d numpy array.
>
> In both of these cases it is assumed that dat
Hello,
I have a question regarding reshaping numpy array.
I either have a 1D array that I need to reshape to a 3D array or a 3D array to
reshape to a 1d numpy array.
In both of these cases it is assumed that data follows x,y,z ordering.
and I use the following to reshape the numpy array
On Wed, Apr 27, 2016, at 04:25 PM, Pierre wrote:
> I did check and it looks like the Python(x,y) 64 distribution I
> downloaded uses a 32 bit Python.
> The question is if there is ANY Python(x,y) 64 distribution that uses the
> 64 bit python version.
> I looked it up online and
On Wednesday, April 27, 2016 at 11:17:32 AM UTC-4, Zachary Ware wrote:
> Hi Pierre,
>
> On Wed, Apr 27, 2016 at 6:23 AM, Pierre wrote:
> > Hello,
> >
> > I installed Python(x,y) 64 bit version and ran it using a library that
> > requires Python 64 bit.
> >
Hi Pierre,
On Wed, Apr 27, 2016 at 6:23 AM, Pierre wrote:
> Hello,
>
> I installed Python(x,y) 64 bit version and ran it using a library that
> requires Python 64 bit.
> I got an error which indicated that I am using Python 32 bit.
>
> So, is the python used by Python(x,y)
Hello,
I installed Python(x,y) 64 bit version and ran it using a library that requires
Python 64 bit.
I got an error which indicated that I am using Python 32 bit.
So, is the python used by Python(x,y) 64 bit, using Python 64 or 32 bit?
Thanks
--
https://mail.python.org/mailman/listinfo
On Fri, 09 Jan 2015 23:41:15 +0200, Marko Rauhamaa wrote:
> Peter Pearson :
>
>> If you've never looked at the set of reals (x,y) satisfying x**y ==
>> y**x, it's worth a visit.
>
> Thanks, it was. The graph's something like this:
[snip]
>
> Where
Peter Pearson :
> If you've never looked at the set of reals (x,y) satisfying x**y ==
> y**x, it's worth a visit.
Thanks, it was. The graph's something like this:
| : *
| : *
| :
On 09 Jan 2015 11:07:51 +0200, Jussi Piitulainen wrote:
[snip]
> Which reminds me of a question that once made me smile, even laugh,
> and still does: 2**3 is almost 3**2 but not quite - what gives?
If you've never looked at the set of reals (x,y) satisfying x**y ==
y**x, it'
Den 2014-02-13 skrev beliav...@aol.com :
> I fixed the problem by reinstalling Numpy.
Good.
Just one note since I happened to look into updating Python(x,y)
at work today and stumbled on this: The Python(x,y) guys
recommend that one removes other Python installations prior to
installing Pytho
I fixed the problem by reinstalling Numpy.
--
https://mail.python.org/mailman/listinfo/python-list
I am running Python 2.7.5 on Windows 7 and installed Numpy, which worked.
Then I installed Python(x,y) from a file Python(x,y)-2.7.5.2.exe, and now
running
the script
from numpy import array, size, shape, min, max, sum
a = array([1, 2, 3])
print shape(a)
gives the error messages
Traceback
On Thu, 04 Oct 2012 18:11:28 +0200, Thomas Rachel wrote:
> Am 04.10.2012 03:58 schrieb Steven D'Aprano:
>> alist = [[None]*2400 for i in range(2400)] from random import randrange
>> for i in range(1000):
>> x = randrange(2400)
>> y = randrange(2400)
&g
Am 04.10.2012 03:58 schrieb Steven D'Aprano:
alist = [[None]*2400 for i in range(2400)]
from random import randrange
for i in range(1000):
x = randrange(2400)
y = randrange(2400)
adict[(x, y)] = "something"
alist[x][y] = "something"
The actual siz
On Thu, 04 Oct 2012 08:21:13 -0400, Benjamin Jessup wrote:
> On 10/4/2012 12:20 AM, python-list-requ...@python.org wrote:
>> How do you know that?
>>
>> No offence, but if you can't even work out whether lookups in a dict or
>> a list are faster, I can't imagine why you think you can intuit what
>
e.
Whats wrong with the test below?
# randomly select matrix coordinates to look-up
from random import randrange
test_coords = []
for i in range(1000):
x = randrange(2400); y = randrange(2400); test_coords.append((x, y))
# build objects
class Object():pass
obj1 = Object(); obj2 = Object(
):
> x = randrange(2400)
> y = randrange(2400)
> adict[(x, y)] = "something"
> alist[x][y] = "something"
>
> import sys
> print(sys.getsizeof(adict))
> print(sys.getsizeof(alist) + sum(sys.getsizeof(L) for L in alist))
>
>
> The
On Thu, 04 Oct 2012 01:58:16 +, Steven D'Aprano wrote:
> adict: 24712
> alist: 23127324
[...]
> So in this situation, a list of lists uses about 100 times
> more memory than a dict, but look-ups are about 6% faster.
Correction: about 1000 times more memory. Sorry for the typo.
--
Steven
-
On Wed, 03 Oct 2012 18:30:24 -0400, Benjamin Jessup wrote:
> I have a group of objects identified by unique (x,y) pairs and I want to
> find out an object's "neighbors" in a matrix of size 2400 x 2400.
[...]
> There is either a neighbor, or a null value. I always know t
On 3 October 2012 23:30, Benjamin Jessup wrote:
> I have a group of objects identified by unique (x,y) pairs and I want to
> find out an object's "neighbors" in a matrix of size 2400 x 2400.
>#
>#obj# # #
>#
>
I have a group of objects identified by unique (x,y) pairs and I want to
find out an object's "neighbors" in a matrix of size 2400 x 2400.
#
#obj# # #
#
# # #obj#
I'm using scitools (Pythonxy). It plots the curve of the function (Figure
window) but when I try to close Figure window I get the message 'Pythonw.exe
do not answer'. My operation system is windows 7. This happened when I'm
using Matplotlib for ploting. If I use gnuplot for plotting closing works
o
On Fri, May 7, 2010 at 8:38 PM, James Mills wrote:
> On Sat, May 8, 2010 at 12:04 PM, Vincent Davis
> wrote:
>
>> Is there a functional assert(x==y, 'error msg') ?
>> I can only find the assert that is used like;
>> assert x==y, 'error msg'
On Sat, May 8, 2010 at 12:04 PM, Vincent Davis wrote:
> Is there a functional assert(x==y, 'error msg') ?
> I can only find the assert that is used like;
> assert x==y, 'error msg'
>
What about:
def assertfunc(expr, msg):
assert expr, msg
cheers
James
--
Is there a functional assert(x==y, 'error msg') ?
I can only find the assert that is used like;
assert x==y, 'error msg'
*Vincent Davis
720-301-3003 *
vinc...@vincentdavis.net
my blog <http://vincentdavis.net> |
LinkedIn<http://www.linkedin.com/in/vincentdavi
On 2010-03-27 11:21 , Larry Kizer wrote:
I uninstalled my previous version of Python and installed Python(x,y)
ver 2.6.2.0 in Windows XP - Install seemed to work fine but when I try to
run
Ipython(x,y) I get the following error: python.exe has encountered a
problem and needs to close. We are
I uninstalled my previous version of Python and installed Python(x,y)
ver 2.6.2.0 in Windows XP - Install seemed to work fine but when I try to
run
Ipython(x,y) I get the following error: python.exe has encountered a
problem and needs to close. We are sorry for the inconvenience.
Any ideas
Pierre Raybaut wrote:
Hi all,
I'm quite pleased (and relieved) to announce that Python(x,y) version
2.6.3.0 has been released. It is the first release based on Python 2.6
-- note that Python(x,y) version number will now follow the included
Python version (Python(x,y) vX.Y.Z.N will be
Hi all,
I'm quite pleased (and relieved) to announce that Python(x,y) version
2.6.3.0 has been released. It is the first release based on Python 2.6
-- note that Python(x,y) version number will now follow the included
Python version (Python(x,y) vX.Y.Z.N will be based on Python v
In article ,
Hendrik van Rooyen wrote:
>
>I have lately had some posts returned with a "seems to be forged" message.
>Two reasons for that:
>- first is if I use the smtp server from our local telco - saix - then there is
> no apparent relationship between where the message comes from and
> where
culating aself.value,
self.randomnum = normalvariate(x, y))
> "Aahz" wrote:
>
> > While that's also a bug in Mailman (I have a long-standing to-do item to
> > fix that), there are also plenty of posts that simply aren't showing up
> > in c.l.py. As I said, I
Ross Ridge wrote:
>I'm not sure what MIME would have to do with it, but Piet van Oostrum's
>problem is almost certainly as result of the python.org mail to news
>gateway mangling the References header. The missing postings he's looking
>for don't actually exist. Just go up the thread one more p
"Aahz" wrote:
> While that's also a bug in Mailman (I have a long-standing to-do item to
> fix that), there are also plenty of posts that simply aren't showing up
> in c.l.py. As I said, I'm pretty sure (based on what was happening with
> c.l.py.announce) that it's some kind of weird problem wit
In article ,
Ross Ridge wrote:
>Aahz wrote:
>>Piet van Oostrum wrote:
>>>
I notice that I see several postings on news:comp.lang.python that are
>>>replies to other postings that I don't see.
>>
>>As stated previously, my suspicion is that at least some is caused by a
>>problem with MIME
Piet van Oostrum wrote:
>I notice that I see several postings on news:comp.lang.python that are
>replies to other postings that I don't see.
Aahz wrote:
>As stated previously, my suspicion is that at least some is caused by a
>problem with MIME messages and the mail->news gateway on python.org
In article ,
Piet van Oostrum wrote:
>
>I notice that I see several postings on news:comp.lang.python that are
>replies to other postings that I don't see.
As stated previously, my suspicion is that at least some is caused by a
problem with MIME messages and the mail->news gateway on python.org
Dennis Lee Bieber wrote:
unless one is reading from a server
that interprets X-no-archive to mean "delete before reading".
Can't be too careful with security. Destroy it,
memorize it and then read it!
--
Greg
--
http://mail.python.org/mailman/listinfo/python-list
Piet van Oostrum wrote:
> I notice that I see several postings on news:comp.lang.python that are
> replies to other postings that I don't see.
I see the same problem.
I suspect it's because of over-vigorous spam filtering from Usenet
providers. Some even block everything from anyone using Google
Piet van Oostrum wrote:
I notice that I see several postings on news:comp.lang.python that are
replies to other postings that I don't see. Examples are the postings by
Dennis Lee Bieber that I am replying to (but I
break the thread on purpose). For example the posting with Message-ID:
reference
On Sun, Jun 21, 2009 at 5:25 AM, Piet van Oostrum wrote:
> I notice that I see several postings on news:comp.lang.python that are
> replies to other postings that I don't see. Examples are the postings by
> Dennis Lee Bieber that I am replying to (but I
As addressed in an earlier thread, Mr. Bieb
I notice that I see several postings on news:comp.lang.python that are
replies to other postings that I don't see. Examples are the postings by
Dennis Lee Bieber that I am replying to (but I
break the thread on purpose). For example the posting with Message-ID:
references:
<77e831100906192220y553
Quoting Dennis Lee Bieber
limitedNormal ( 75, 20 )
computed statistics: mu = 75.5121294828 sigma = 8.16374859991
Note how computing the input sigma such that 3*sigma does not exceed
boundaries results in a narrow bell curve (hmm, and for this set, no one
scored 95-100)
retryNo
Quoting Steven,
>Truncating with a while loop will result in something closer to this:
> 000: *
> 010: *
> 020: **
> 030:
> 040: ***
> 050: *
> 060: **
> 070:
> 080: *
> 090: **
> 100: *
>
> which is far less distorted."
That is why I was thinking of a while l
Vincent Davis wrote:
>> # Clamp a normal distribution outcome
I don't know who you are quoting -- you should give attribution to them.
>> def clamp(input, min=0, max=100):
...
>> if input < min:
>> return min
>> elif input > max:
>> return max
>> else:
>> return input
An easier way to do this:
>
> def __int__(self, x, y):
> x = -1
>while not 0 <= x <= 100:
> x = normalvariate(x, y)
># do other stuff
>
> That is the correct way to truncate a normal distribution.
>
>
Thanks for the response. But why would you set the mean to -1
Vincent Davis wrote:
> I currently have something like this.
>
> class applicant():
> def __int__(self, x, y):
> self.randomnum = normalvariate(x, y)
> then other stuff
>
> x, y are only used to calculate self.randomnum and this seems to
> work. But I
Vincent Davis wrote:
I currently have something like this.
class applicant():
def __int__(self, x, y):
self.randomnum = normalvariate(x, y)
then other stuff
x, y are only used to calculate self.randomnum and this seems to
work. But I want self.randomnum to be 0 <= random
; Ho, Technical Artist
Contact Information
Mobile: (+61) 04 3335 4748
Skype ID: SpaXe85
Email: cont...@xavierho.com
Website: http://xavierho.com/
On Sat, Jun 20, 2009 at 10:54 PM, Vincent Davis wrote:
> > # Clamp a normal distribution outcome
> >
> > impo
> # Clamp a normal distribution outcome
>
> import random
>
> class applicant():
> def __init__(self, x, y):
> self.randomnum = clamp(random.normalvariate(x, y), 0, 100)
>
> def clamp(input, min=0, max=100):
> """Clamps the input
ormal distribution outcome
import random
class applicant():
def __init__(self, x, y):
self.randomnum = clamp(random.normalvariate(x, y), 0, 100)
def clamp(input, min=0, max=100):
"""Clamps the input between min and max.
if input < min, returns min
min
I currently have something like this.
class applicant():
def __int__(self, x, y):
self.randomnum = normalvariate(x, y)
then other stuff
x, y are only used to calculate self.randomnum and this seems to
work. But I want self.randomnum to be 0 <= randomnum <= 100. The only
way
Peter Pearson wrote:
On Thu, 04 Jun 2009 03:29:42 -0500, Nick Craig-Wood wrote:
[snip]
Here is a demo with pygame...
[snip]
And just for completeness, here is a demo with PyGUI, written
in similar style.
Thanks for this too!
Esmail
--
http://mail.python.org/mailman/listinfo/python-list
Scott David Daniels wrote:
Esmail wrote:
Scott David Daniels wrote:
Esmail wrote:
... Tk seems a bit more complex .. but I really don't know much about
it and its interface with Python to make any sort of judgments as
to which option would be better.
This should look pretty easy:
Thanks Sc
Nick Craig-Wood wrote:
Here is a demo with pygame...
Thanks Nick, I'll be studying this too :-)
Esmail
--
http://mail.python.org/mailman/listinfo/python-list
On Thu, 04 Jun 2009 03:29:42 -0500, Nick Craig-Wood wrote:
[snip]
> Here is a demo with pygame...
[snip]
And just for completeness, here is a demo with PyGUI, written
in similar style. (I'm a PyGUI newbie, so constructive criticism
would be appreciated.)
from GUI import Window, View, application
Esmail wrote:
Scott David Daniels wrote:
Esmail wrote:
... Tk seems a bit more complex .. but I really don't know much about
it and its interface with Python to make any sort of judgments as
to which option would be better.
This should look pretty easy:
Thanks Scott for taking the time to s
Esmail wrote:
> Scott David Daniels wrote:
> > Esmail wrote:
> >> ... Tk seems a bit more complex .. but I really don't know much about
> >> it and its interface with Python to make any sort of judgments as
> >> to which option would be better.
> >
> > This should look pretty easy:
>
> Thanks
Scott David Daniels wrote:
Esmail wrote:
... Tk seems a bit more complex .. but I really don't know much about
it and its interface with Python to make any sort of judgments as
to which option would be better.
This should look pretty easy:
Thanks Scott for taking the time to share this code
Esmail wrote:
... Tk seems a bit more complex .. but I really don't know much about
it and its interface with Python to make any sort of judgments as
to which option would be better.
This should look pretty easy:
import Tkinter as tk
class Mover(object):
def __init__(self, ca
0+0.1*cos(t)
y=y0+0.1*sin(t)
if t==0: # first time calling
h=plot(x,y,'o')
else:
h[0].set_data(x,y)
draw()
bb
--
Brian Blais
bbl...@bryant.edu
http://web.bryant.edu/~bblais
--
http://mail.python.org/mailman/listinfo/python-list
t==0: # first time calling
h=plot(x,y,'o')
else:
h[0].set_data(x,y)
draw()
bb
--
Brian Blais
bbl...@bryant.edu
http://web.bryant.edu/~bblais
_
Windows Live™ SkyDrive™: Get 25 GB of free onli
ma wrote:
Try out PyChart, it's a very complete and has a great interface. I use
it to generate statistics for some of our production machines:
http://home.gna.org/pychart/
Thanks for the suggestion and link, I'm not familiar with this, but
will check it out.
If I can get matlibplot to work it
Mensanator wrote:
On Jun 3, 10:53 am, Esmail wrote:
Hi all,
I am trying to visualize a number of small objects moving over
a 2D surface during run-time. I was wondering what would the easiest
way to accomplish this using Python?
Try Turtle Graphics using goto's. With pen up! :-)
hehe .. ye
t; Ideally I am looking for a shallow
> learning curve and efficient implementation :-)
>
> These objects may be graphically represented as dots, or preferably
> as small arrow heads/pointy triangles moving about as their x,y
> coordinates change during run-time.
>
> Thanks,
Try out PyChart, it's a very complete and has a great interface. I use
it to generate statistics for some of our production machines:
http://home.gna.org/pychart/
On Wed, Jun 3, 2009 at 1:28 PM, Esmail wrote:
> Gökhan SEVER wrote:
>>
>> I don't know how easy to use pygame or pyOpenGL for data ani
Gökhan SEVER wrote:
I don't know how easy to use pygame or pyOpenGL for data animation
comparing to Mayavi.
Mayavi uses VTK as its visualization engine which is an OpenGL based
library. I would like to learn more about how alternative tools might be
beneficial say for example atmospheric part
I don't know how easy to use pygame or pyOpenGL for data animation comparing
to Mayavi.
Mayavi uses VTK as its visualization engine which is an OpenGL based
library. I would like to learn more about how alternative tools might be
beneficial say for example atmospheric particle simulation or realis
1 - 100 of 219 matches
Mail list logo