axiom-developer
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Axiom-developer] AxiomUI graphics


From: Kai Kaminski
Subject: Re: [Axiom-developer] AxiomUI graphics
Date: Wed, 24 Aug 2005 19:08:28 +0200

"Page, Bill" <address@hidden> writes:
> On Wednesday, August 24, 2005 2:02 AM I wrote:
>> 
>> > ...
>> > 3. Change the high-level drawing code, so that instead of calling
>> >    the low-level drawing code it just prints the list lists of
>> >    points, which are to be connected by lines, to standard output
>> >    with markers to ease extraction. This might still break existing
>> >    code.
>> >
>> > The approach I'm taking now is essentially #3 with the difference
>> > that I copied algebra/draw.spad.pamphlet to uidraw.spad.pamphlet
>> > and modified that. It actually seems to work. Right now I'm
>> > integrating this with the gui, so that on startup uidraw.spad gets
>> > loaded.
>> 
>> Excellent. That is exactly the right way to proceed.
>>
>
> It occurs to me to ask if you are already familiar with the following
> Axiom commands:
>
> vp1:=draw(sin(x), x=%pi/10..%pi)
> g1:=getGraph(vp1,1)
> pointLists(g1)
> ...
> g2:=makeGraphImage(lineSegments, lineColors, pointColors, lineSize)
> pointLists(g2)
I know these commands and I actually had working code using this
approach. The problem with this is that it messes up the history.

Luckily uidraw.spad is just draw.spad with a few lines added. It's
fairly trivial, really.

Kai




reply via email to

[Prev in Thread] Current Thread [Next in Thread]