On May 27, 9:21 am, William Stein <wst...@gmail.com> wrote: > On Thursday, May 27, 2010, Harald Schilly <harald.schi...@gmail.com> wrote: > > On May 26, 11:40 pm, Vinod <vinodprab...@gmail.com> wrote: > >> Is there anything else that needs to be done? > > > It's not working for me either. What I did in a cell is this: > > > import os > > filename = os.path.join(SAGE_TMP,'matlabfig1.png') > > matlab("h = figure('Visible', 'off')") > > matlab("plot(1:4,5:8)") > > matlab("saveas(h,'"+filename+"')") > > That should not work, since you are not writing then file to the > current python directory. > > William >
yes. It didn't work for me either. Below is the list of steps followed: 1. Log in to the sage webserver with firefox browser. 2. create a new worksheet. 3. select the matlab option in the list of softwares available. 4. write the below code in the editor Delay = [1 2 3 4 5 6] Vctrl = [0.781 1.025 1.19 1.37 1.469 1.533] plot(Vctrl,Delay) savefig('nicefig2', 'png', '-rgb', '-c0.1', '-r250') 5. press evaluate. The simple matlab code I wrote is functional and the sage server evaluates it properly and generates the .png file in the directory. Only issue that need to be addressed is to get the sage server display the plots in the web browser itself. We are planning to provide this to a set of students who take summer classes and it would be really great if we can get this working. rightnow, this creates the nicefig2.png file in the directory home/ sageserver/matlab/user/ Is it something to do with the directory it writes? Thank you all for your sincere replies. Vinod > > h > > > -- > > To post to this group, send email to sage-support@googlegroups.com > > To unsubscribe from this group, send email to > > sage-support+unsubscr...@googlegroups.com > > For more options, visit this group > > athttp://groups.google.com/group/sage-support > > URL:http://www.sagemath.org > > -- > William Stein > Professor of Mathematics > University of Washingtonhttp://wstein.org -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org