login  home  contents  what's new  discussion  bug reports     help  links  subscribe  changes  refresh  edit

Edit detail for Graphics on MathAction revision 2 of 4

1 2 3 4
Editor: page
Time: 2008/06/25 20:33:09 GMT-7
Note: gnuplot on mathaction

added:

From page Wed Jun 25 20:33:03 -0700 2008
From: page
Date: Wed, 25 Jun 2008 20:33:03 -0700
Subject: gnuplot on mathaction
Message-ID: <20080625203303-0700@axiom-wiki.newsynthesis.org>

It is possible now to use commands similar to Axiom's 'draw' function to produce graphics from and Axiom and display it on the MathAction web page. Eg.

\begin{axiom}
)lib GDRAW
gnuDraw(5*besselJ(0,sqrt(x**2+y**2)), x=-20..20, y=-20..20,"GraphicsOnMathAction1.dat")
\end{axiom}

\begin{gnuplot}[terminal=pslatex,terminaloptions=color,scale=1.3]
set parametric
set hidden
set view 20,30
set xlabel "x"
set ylabel "y"
set zrange [-3:3]
set mxtics
set pm3d depthorder
load "GraphicsOnMathAction1.dat"
\end{gnuplot}

Graphics?

Try this

axiom
draw(5*besselJ(0,sqrt(x**2+y**2)), x=-20..20, y=-20..20)
axiom
Compiling function %D with type (DoubleFloat,DoubleFloat) -> 
      DoubleFloat 
   Transmitting data...
LatexWiki Image(1)
Type: ThreeDimensionalViewport?

Not clear why latex is not rendered properly ...

The reason why this did not originally render properly was because I had not defined \axiomType as a valid LaTeX? command in the LatexTemplate? page. The output of the draw command generates this as part of it's LaTeX? output.

Anticipating the next question:

  Where is the graphic??

Although graphics is available in the most recent version of Axiom from the Savannah CVS (see AxiomBinaries?), the problem is that graphics has not yet been integrated into MathAction?. Doing so will require solving some problems about using X-windows on the MathAction? server.

gnuplot on mathaction --page, Wed, 25 Jun 2008 20:33:03 -0700 reply
It is possible now to use commands similar to Axiom's draw function to produce graphics from and Axiom and display it on the MathAction? web page. Eg.

axiom
)lib GDRAW

GnuDraw is now explicitly exposed in frame initial GnuDraw will be automatically loaded when needed from /var/zope2/var/LatexWiki/GDRAW.NRLIB/code gnuDraw(5*besselJ(0,sqrt(x**2+y**2)), x=-20..20, y=-20..20,"GraphicsOnMathAction1.dat")

axiom
Compiling function %H with type (DoubleFloat,DoubleFloat) -> 
      DoubleFloat 
   Transmitting data...
Type: Void

LatexWiki Image