only 2 line types? (Re: Multiple plots: oddities (bugs?), missing features in Xmaxima and wxMaxima)



El jue, 20-10-2011 a las 03:56 -0700, Virgil L escribi?:
> Thanks Mark and Mario:
> As I mentioned in an email to Mario, our server runs Maxima 5.20, which is the version provided by Ubuntu Lucid LTS: http://packages.ubuntu.com/lucid/maxima
> 
> It seems the dashes and dot_dash types were added in Maxima 5.24 which corresponds to the just released Ubuntu Oneric (11.10).
> 
> 5.24 appears not to be available as an official backport either:
> http://packages.ubuntu.com/lucid-backports/allpackages
> 
> Unless 5.24 is backported to 10.04, 5.24 is unavailable to me. I run the same OS on my personal laptop, and could perhaps install a compiled version there, but that wouldn't be helpful, since I would get errors when I run the same code on my workstation.
> 
> If there is some workaround, preferably that doesn't require administrative privileges to implement (maybe sending a raw gnuplot command from draw2d?), it would be great to know it... also if the maintainer of the Ubuntu package is on this list, it would be great if Maxima 5.24 or more recent could be backported to 10.04 Ubuntu, which is a long-term support (LTS) release and hence favoured in certain environments that emphasise reliability. 
> 
> Best,
> 
> Virgil
> 

Yes, I think this should work:

Download files draw.lisp, grcommon.lisp and vtk.lisp from the Maxima
repository (folder share/draw) and place them somewhere in your user
tree.

Change lines 34 and 35 from draw.lisp to something similar to 

($load "path_to/grcommon.lisp")
($load "path_to/vtk.lisp")


Then, every time you need to draw something, write

load("path_to/draw.lisp") $

and you are done. If you want to play with the vtk renderer,

sudo apt-get install vtk

and you are done.

Let me know if it doesn't work.

--
Mario