On 10-09-18 07:39 PM, ALAN GAULD wrote:
> It appears that the Tk canvas widget does not support simply
plotting a pixel.
Correct, and I agree it seems odd, but in practice drawing either
lines or
ovals of one-pixel do the equivalent job - albeit a little more slowly.
> The primitive obviousl
On Sun, Sep 19, 2010 at 2:40 AM, Lie Ryan wrote:
>
> More slowly and takes huge amount of memory. A single Tk canvas object
> takes at least 14 words (= 114 bytes in 64-bit OS = 56 bytes in 32-bit
> OS) + the amount of data is needed to store the `kind of object`. That's
> much larger than the id
Hello Ken,
On Sun, 19 Sep 2010 04:18:06 am Ken Oliver wrote:
>
> body{font-size:10pt;font-family:arial,sans-serif;background-co
>lor:#ff;color:black;}p{margin:0px;}
>
>
> http://mail.python.org/mailman/listinfo/tutor
On 09/19/10 09:39, ALAN GAULD wrote:
>> It appears that the Tk canvas widget does not support simply plotting
> a pixel.
>
> Correct, and I agree it seems odd, but in practice drawing either lines or
> ovals of one-pixel do the equivalent job - albeit a little more slowly.
More slowly and takes
On Sat, Sep 18, 2010 at 9:26 PM, Bill Allen wrote:
>
>
>> Digging a little deeper it seems the idiomatic way to do this in Python
>> is to use PIL the Python Imaging Library to create a GIF or bitmap
>> image and then insert that into Tkinters cancvas as an image object.
>>
>> The Pil ImageDraw c
>
> Digging a little deeper it seems the idiomatic way to do this in Python
> is to use PIL the Python Imaging Library to create a GIF or bitmap
> image and then insert that into Tkinters cancvas as an image object.
>
> The Pil ImageDraw class has a point() ethod
>
> I've never tried this but it is
> It appears that the Tk canvas widget does not support simply plotting a
>pixel.
>
Correct, and I agree it seems odd, but in practice drawing either lines or
ovals of one-pixel do the equivalent job - albeit a little more slowly.
> The primitive obviously exists in the underlying code,
I
On Sat, Sep 18, 2010 at 1:18 PM, Ken Oliver wrote:
>
>
>> On Fri, Sep 17, 2010 at 3:38 AM, Alan Gauld wrote:
>>
>>>
>>> For plotting pixels I would not use turtle graphics.
>>> That would be a fairly complicated option I'd have thought.
>>> A simple canvas would be easier.
>>>
>>> Alan G.
>>>
>>>
> It appears that the Tk canvas widget does not support simply
> plotting a pixel. However, I can plot a line only one pixel long.
> I wonder why they do not simply provide the pixel plot primitive? I
> have seen very many graphics packages that do this and I have always
>
-Original Message- From: Bill Allen Sent: Sep 18, 2010 11:45 AM To: Alan Gauld Cc: tutor@python.org Subject: Re: [Tutor] plotting pixels
On Sat, Sep 18, 2010 at 10:44 AM, Bill Allen <walle...@gmail.com> wrote:
On Fri, Sep 17, 2010 at 3:38 AM, Alan Gauld <alan.ga...@btint
On Sat, Sep 18, 2010 at 10:44 AM, Bill Allen wrote:
>
>
> On Fri, Sep 17, 2010 at 3:38 AM, Alan Gauld wrote:
>
>>
>> For plotting pixels I would not use turtle graphics.
>> That would be a fairly complicated option I'd have thought.
>> A simple canvas would be easier.
>>
>> Alan G.
>>
>>
> Oh, I
On Fri, Sep 17, 2010 at 3:38 AM, Alan Gauld wrote:
>
> For plotting pixels I would not use turtle graphics.
> That would be a fairly complicated option I'd have thought.
> A simple canvas would be easier.
>
> Alan G.
>
>
Oh, I see! I did not realize that Tk had a canvas widget. That is nice. I
"Bill Allen" wrote
Is there a simple way to plot pixels in Python, without resorting to
turtle
graphics?
James already mentioned matplotlib but you can just draw on a canvas.
It depends on what you are trying to do.
For plotting pixels I would not use turtle graphics.
That would be a fairl
On Thu, Sep 16, 2010 at 9:21 PM, James Mills
wrote:
> On Fri, Sep 17, 2010 at 12:13 PM, Bill Allen wrote:
> > Is there a simple way to plot pixels in Python, without resorting to
> turtle
> > graphics?
>
> Give matplotlib a go.
>
> Alternatively you may want to try pygame or pyglet.
>
> cheers
>
On Fri, Sep 17, 2010 at 12:13 PM, Bill Allen wrote:
> Is there a simple way to plot pixels in Python, without resorting to turtle
> graphics?
Give matplotlib a go.
Alternatively you may want to try pygame or pyglet.
cheers
James
--
-- James Mills
--
-- "Problems are solved by method"
Is there a simple way to plot pixels in Python, without resorting to turtle
graphics?
--Bill
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
16 matches
Mail list logo