Python对图形有用吗? [英] Is Python good for graphics?
问题描述
首先,我*真的喜欢Python ;-)
我需要一些图形方面的帮助。我想用Python做一些基本的图形,但是我不确定最好/最有效的方式是什么让我做我想做的事情。
基本上,我希望能够创建一些基本动画
,我可以帮助可视化各种排序算法(例如
http://ciips.ee.uwa.edu。 au / ~morris / Y ... ml#insert_anim )
或图表搜索(每个访问的着色节点)。 (有点像这样的
: http://cs.smith.edu/~thiebaut/java/graph/Welcome.html )
或者以编程方式创建和操作一个简单的二维块拼图
(像这样: http:// www .johnrausch.com / SlidingBlo ... es / quzzle.htm)。
注意,通过网络做到这一点的能力会很好,但肯定是
目前不需要*
这些将用于帮助学习/教学。
我知道Tkinter和wxPython(意识到我的意思是我知道他们的
存在:-)在投入(很多?)时间学习这些之前,我
以为我会问周围更有经验的人什么是最好的方式来投入时间来获得基本的图形。
我真的是一个我不太关注效率和易用性。
任何人都可以推荐最适合我有限的需求的东西吗?
是否有其他图形库我应该考虑那将是更优惠的
?
或者Python不是这样的方式吗?
谢谢!
Esmail
First of all, I *really* like Python ;-)
I need some help with the graphical side of things. I would like to do
some basic graphics with Python, but I am not sure what the best/most
effective way for me to do what I want.
Basically, I would like to be able to create some basic animations
where I can help visualize various sorting algorithms (for instance
http://ciips.ee.uwa.edu.au/~morris/Y...ml#insert_anim)
or graph searches (coloring nodes as each gets visited). (Something
like this: http://cs.smith.edu/~thiebaut/java/graph/Welcome.html)
Or to create and manipulate programmatically a simple 2-D block puzzle
(like this: http://www.johnrausch.com/SlidingBlo...es/quzzle.htm).
Note, the ability to do this via the web would be nice, but definitely
is *not* required at the moment.
These would be used to help in learning/teaching.
I am aware of Tkinter and wxPython (by aware I mean I know of their
existence :-) Before investing (a lot?) of time to learn these, I
thought I?d ask the more experienced folks around here what would be
the best way to invest my time to get basic graphics going.
I really am not concerned so much with efficiency as easy of use.
Can anyone recommend what would suit my rather limited needs best?
Are there other graphics libraries I should consider that would be
more suitable?
Or is Python not the way to go for this?
Thanks!
Esmail
推荐答案
Esmail Bonakdarian写道:
Esmail Bonakdarian wrote:
基本上,我希望能够创建一些基本动画
我可以帮助可视化各种排序算法(例如
http://ciips.ee.uwa.edu.au/~morris/Y...ml #insert_anim )
或图表搜索(每个访问的着色节点)。 (像这样的东西: http:// cs.smith.edu/~thiebaut/java/graph/Welcome.html )
或者以编程方式创建和操作一个简单的二维块拼图
(如下所示: http://www.johnrausch.com/SlidingBlo...es/quzzle .htm)。
Basically, I would like to be able to create some basic animations
where I can help visualize various sorting algorithms (for instance
http://ciips.ee.uwa.edu.au/~morris/Y...ml#insert_anim)
or graph searches (coloring nodes as each gets visited). (Something
like this: http://cs.smith.edu/~thiebaut/java/graph/Welcome.html)
Or to create and manipulate programmatically a simple 2-D block puzzle
(like this: http://www.johnrausch.com/SlidingBlo...es/quzzle.htm).
怎么样 :
http://vpython.org/
< / F>
how about:
http://vpython.org/
</F>
Fredrik Lundh写道:
Fredrik Lundh wrote:
怎么样:
http://vpython.org/
谢谢,我不知道。
你(或其他任何人)推荐2D类型吗? />
图片?
谢谢,
Esmail
thanks, I didn''t know about that.
do you (or anyone else) have a recommendation for 2D type
graphics?
Thanks,
Esmail
Esmail Bonakdarian写道:
Esmail Bonakdarian wrote:
Fredrik Lundh写道:
Fredrik Lundh wrote:
怎么样:
http://vpython.org/
谢谢,我不知道。
你(或其他任何人)有推荐2D型
图形吗?
thanks, I didn''t know about that.
do you (or anyone else) have a recommendation for 2D type
graphics?
我喜欢Kiva(但是,我也帮助开发它)。获得它的最佳位置
现在是SVN存储库,但它相当稳定。
http://svn.enthought.com/svn/enthoug...converge/kiva/
-
Robert Kern
rk *** @ ucsd。 edu
在地狱的地方,草地长得很高
梦想的坟墓是否能够死亡。 />
- Richard Harter
I like Kiva (but then, I also help develop it). The best place to get it
right now is the SVN repository, but it''s fairly stable.
http://svn.enthought.com/svn/enthoug...converge/kiva/
--
Robert Kern
rk***@ucsd.edu
"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter
这篇关于Python对图形有用吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!