Imaxima and imath 1.0beta released



Hi Zach,
On 2008/06/25, at 4:15, Zach wrote:

> Yep, that fixed it.  Thanks Yasuaki.  I forgot to say, thank you for  
> writing this mode.  It really is quite impressive.

It is quite nice to hear that you made it work!!

> A few (humble) thoughts:
>
> 1.  I found the parameter wxplot_size.  I noticed that it didn't  
> work.  Then I saw that you commented the point in the code that sent  
> this to gnuplot.  So I uncommented it.  But it still didn't work (in  
> fact nothing worked then).  But then I realized that a size of  
> 400x250 is very big (I think the PS terminal is interpreting the  
> units as inches, perhaps?).  wxplot_size:[4,4]; seemed to fix it.

The size of the graphics generated by wxplot2d/wxplot3d seems a bit  
too large.
It is possible to write a code to change the graph image to best fit  
to the buffer width.
I will put this in my ToDo list. Thanks.

> Out of curiosity, where is the decision made between placing an  
> image or a filename?  In Emacs itself?

It is in imaxima.el code. The elisp function imaxima-make-image is the  
one in question.

> 2.  I guess this is from the wxmaxima code you are using.  Forms  
> like this:

As I wrote in my web page, "I also would like to thank Andrej  
Vodopivec for his allowing
me to use part of wxMaxima code. I have copied the interface and  
implementation of
inline plotting commands defined in wxmathml.lisp in wxMaxima."


> (if (length system-preamble)
>     (setq preamble (format nil "~a; ~a" preamble system-preamble)))
>
> are equivalent to
>
> (setq preamble (format nil "~a; ~a" preamble system-preamble))
>
> as length must return an integer (and thus always a true value).   
> This doesn't matter, really, since a gnuplot seems to ignore bare  
> `;'s.  I am guessing they wanted (if (/= 0 (length system- 
> preamble)) ...

Aha! You are right. I will fix this code.

> 3. Some questions: Are the eps images saved in Emacs' memory, or  
> does it need to have the files on disk where it can find it (i.e.  
> may I delete them in the middle of a session?)?  Is there a  
> possibility of saving a buffer with output, like Mathematica's  
> notebook format?  Also, I assume that the maxout_n.eps files are  
> placed where ever maxout.gnuplot is put?

The images are saved in files in the following way:
1) Gnuplot generates maxout_n.eps, usually in home directory.
2) imaxima-make-image function copies this file to temporary directory  
created for this
imaxima session.

So, yes, you can delete maxout_n.eps even in the middle of a session.

There is no notebook feature in imaxima. However, you may try imath  
mode.
You can write maxima commands in a text file to calculate and display  
math
formula in a normal text. Now, you can also put inline graphs in imath  
mode.


Last, the choice of directory for maxout.gnuplot and maxout_n.eps is  
done by
wx-prefixed commands and gnuplot. The answer is yes for the default  
setting.


Yasuaki Honda, Chiba, Japan



>
>
> Thanks again,
> Zach
>
>
>
> On Tue, Jun 24, 2008 at 11:40 AM, Yasuaki Honda <yhonda at mac.com>  
> wrote:
> Hi Zach,
>
> You are almost there. Please make the width of the Emacs window wider
> and try the wxplot2d() command again.
>
> Yasuaki Honda, Chiba, Japan
> http://members3.jcom.home.ne.jp/imaxima/
>
>
> On 2008/06/24, at 5:33, Zach wrote:
>
>> Hey imaxima users,
>>
>> Am I doing something wrong?
>>
>> I have installed the new version of imaxima (1.0b) on OS X 10.4.11  
>> under Carbon Emacs running Maxima 5.15.0 with CLISP 2.40.  IMaxima  
>> seems to work fine except for the inline graphics.  Since this is a  
>> graphical issue I have attached a bitmap (png) file showing the  
>> output, but basically it looks like maxima is returning something  
>> like ?wxxmltag("/Users/smithzv/maxout_2.eps","img"), which is  
>> translated into the path to a image file (which does indeed contain  
>> the desired plot) and that path is then latexed (i.e. the `_2' is  
>> turned into a subscript).
>>
>> Any idea what is up?
>>
>> Thanks,
>> Zach
>>
>>
>> On Mon, Jun 23, 2008 at 10:25 AM, Yasuaki Honda <yhonda at mac.com>  
>> wrote:
>> Dear Maxima / Imaxima users,
>>
>> I am more than happy to announce that I have released
>> version 1.0 beta of imaxima and imath package. Please
>> visit below for the download of the latest release.
>>
>> http://members3.jcom.home.ne.jp/imaxima/
>>
>> Why is this beta? Because this version introduced new
>> features which might be premature in its implementation.
>> I welcome any input regarding these features for further
>> improvements.
>>
>> There are three new features in this release:
>>
>>    1.imaxima supports inline graph.
>>    2.imath supports inline graph.
>>    3.imath supports inline graphics file in EPS format.
>>
>> Also,
>>    4.imaxima and imath is tested on Windows Vista and Ubuntu Linux
>>
>> Example uses of these features and instructions on how to use them  
>> are
>> added in "Tutorial of Imaxima (inline graph)" section of the  
>> imaxima web
>> site.
>>
>> I have merged Bohumir's patch for the support of EPS files in imath
>> mode. The way he implemented it inspired me to implement the inline
>> graph support in both imaxima and imath mode. Thanks, Bohumir!!
>>
>>
>> I also would like to thank Andrej Vodopivec for his allowing me to  
>> use
>> part of wxMaxima code. I have copied the interface and implementation
>> of inline plotting commands defined in wxmathml.lisp in wxMaxima.
>>
>> Yasuaki Honda / Chiba, Japan
>> http://members3.jcom.home.ne.jp/imaxima
>> _______________________________________________
>> Maxima mailing list
>> Maxima at math.utexas.edu
>> http://www.math.utexas.edu/mailman/listinfo/maxima
>>
>> <imaxima-1.0b.png>
>
>