[sage-support] Re: Sage Server - displaying Matlab plots

2010-06-02 Thread Jason Grout
On 6/2/10 12:13 PM, Vinod wrote: On Jun 1, 7:19 pm, Jason Grout wrote: On 6/1/10 8:57 PM, Vinod wrote: Yes, matlab does save the images properly to the directory. But the problem here is to get the image displayed on the web browser itself. Are you saying that in the Sage notebook: 1. You

[sage-support] Re: Sage Server - displaying Matlab plots

2010-06-02 Thread Vinod
On Jun 1, 7:19 pm, Jason Grout wrote: > On 6/1/10 8:57 PM, Vinod wrote: > > > Yes, matlab does save the images properly to the directory. But the > > problem here is to get the image displayed on the web browser itself. > > Are you saying that in the Sage notebook: > > 1. You can use the above co

[sage-support] Re: Sage Server - displaying Matlab plots

2010-06-01 Thread Jason Grout
On 6/1/10 8:57 PM, Vinod wrote: Yes, matlab does save the images properly to the directory. But the problem here is to get the image displayed on the web browser itself. Are you saying that in the Sage notebook: 1. You can use the above code to create a matlab plot and save it to a specific

[sage-support] Re: Sage Server - displaying Matlab plots

2010-06-01 Thread Vinod
Yes, matlab does save the images properly to the directory. But the problem here is to get the image displayed on the web browser itself. Thanks, Vinod On Jun 1, 4:17 pm, Jason Grout wrote: > On 6/1/10 5:53 PM, Vinod wrote: > > > hello Jason, > > > This doesn't work either... :( > > matlab doesn

[sage-support] Re: Sage Server - displaying Matlab plots

2010-06-01 Thread Jason Grout
On 6/1/10 5:53 PM, Vinod wrote: hello Jason, This doesn't work either... :( matlab doesn't even start with xvfb-run command. it gives lot of errors. As William pointed out, is the original problem resolved by one of the other messages? If not, can you precisely state the problem as it now

[sage-support] Re: Sage Server - displaying Matlab plots

2010-06-01 Thread Vinod
hello Jason, This doesn't work either... :( matlab doesn't even start with xvfb-run command. it gives lot of errors. ~Vinod On May 28, 6:24 pm, Jason Grout wrote: > On 5/28/10 8:08 PM, William Stein wrote: > > > > > On Fri, May 28, 2010 at 5:52 PM, Jason Grout > >  wrote: > >> On 5/28/10 7:47

Re: [sage-support] Re: Sage Server - displaying Matlab plots

2010-05-28 Thread William Stein
On Fri, May 28, 2010 at 6:24 PM, Jason Grout wrote: > On 5/28/10 8:08 PM, William Stein wrote: >> >> On Fri, May 28, 2010 at 5:52 PM, Jason Grout >>  wrote: >>> >>> On 5/28/10 7:47 PM, Vinod wrote: >>> X11 connection rejected because of wrong authentication. Warning: Unable to open disp

[sage-support] Re: Sage Server - displaying Matlab plots

2010-05-28 Thread Jason Grout
On 5/28/10 8:08 PM, William Stein wrote: On Fri, May 28, 2010 at 5:52 PM, Jason Grout wrote: On 5/28/10 7:47 PM, Vinod wrote: X11 connection rejected because of wrong authentication. Warning: Unable to open display 'localhost:12.0'. You will not be able to display graphics on the screen.

Re: [sage-support] Re: Sage Server - displaying Matlab plots

2010-05-28 Thread William Stein
On Fri, May 28, 2010 at 5:52 PM, Jason Grout wrote: > On 5/28/10 7:47 PM, Vinod wrote: > >> X11 connection rejected because of wrong authentication. >> Warning: Unable to open display 'localhost:12.0'.  You will not be >> able to display graphics on the screen. >> > > So now it's not a Sage questi

[sage-support] Re: Sage Server - displaying Matlab plots

2010-05-28 Thread Jason Grout
On 5/28/10 7:47 PM, Vinod wrote: X11 connection rejected because of wrong authentication. Warning: Unable to open display 'localhost:12.0'. You will not be able to display graphics on the screen. So now it's not a Sage question, but a question of how to run Matlab over an ssh session. That

[sage-support] Re: Sage Server - displaying Matlab plots

2010-05-28 Thread Vinod
On May 28, 12:38 pm, Jason Grout wrote: > On 5/28/10 1:53 AM, Vinod wrote: > > > > > Now I have a different error message in the terminal when I try to > > execute the matlab code involving plots in the webserver > > " X11 connection rejected because of wrong authentication." > > > I verified a

[sage-support] Re: Sage Server - displaying Matlab plots

2010-05-28 Thread Jason Grout
On 5/28/10 1:53 AM, Vinod wrote: Now I have a different error message in the terminal when I try to execute the matlab code involving plots in the webserver " X11 connection rejected because of wrong authentication." I verified all the X11 settings and it looks fine. The link lists all the che

[sage-support] Re: Sage Server - displaying Matlab plots

2010-05-28 Thread Vinod
On May 28, 12:08 am, William Stein wrote: > On Thu, May 27, 2010 at 11:53 PM, Vinod wrote: > > > On May 27, 6:40 pm, William Stein wrote: > >> On Thu, May 27, 2010 at 6:39 PM, Vinod wrote: > >> > That's Awesome! Thanks for the help. > >> > When would the sage4.4.3 release? Should I wait till

Re: [sage-support] Re: Sage Server - displaying Matlab plots

2010-05-28 Thread William Stein
On Thu, May 27, 2010 at 11:53 PM, Vinod wrote: > > > On May 27, 6:40 pm, William Stein wrote: >> On Thu, May 27, 2010 at 6:39 PM, Vinod wrote: >> > That's Awesome! Thanks for the help. >> > When would the sage4.4.3 release? Should I wait till then or is it >> > possible for you guys to post the

[sage-support] Re: Sage Server - displaying Matlab plots

2010-05-27 Thread Vinod
On May 27, 6:40 pm, William Stein wrote: > On Thu, May 27, 2010 at 6:39 PM, Vinod wrote: > > That's Awesome! Thanks for the help. > > When would the sage4.4.3 release? Should I wait till then or is it > > possible for you guys to post the patch here in the forum? > > > Vinod > > Just type > >  

Re: [sage-support] Re: Sage Server - displaying Matlab plots

2010-05-27 Thread William Stein
On Thu, May 27, 2010 at 6:39 PM, Vinod wrote: > That's Awesome! Thanks for the help. > When would the sage4.4.3 release? Should I wait till then or is it > possible for you guys to post the patch here in the forum? > > Vinod Just type sage: hg_sage.apply('http://trac.sagemath.org/sage_trac/

[sage-support] Re: Sage Server - displaying Matlab plots

2010-05-27 Thread Vinod
That's Awesome! Thanks for the help. When would the sage4.4.3 release? Should I wait till then or is it possible for you guys to post the patch here in the forum? Vinod On May 27, 6:00 pm, William Stein wrote: > Positive review -- this will be in sage-4.4.3. > > > > On Thu, May 27, 2010 at 5:54

Re: [sage-support] Re: Sage Server - displaying Matlab plots

2010-05-27 Thread William Stein
Positive review -- this will be in sage-4.4.3. On Thu, May 27, 2010 at 5:54 PM, Mike Hansen wrote: > On Thu, May 27, 2010 at 5:42 PM, William Stein wrote: >> Mike Hansen just told me that he will create such a patch tonight. >> >> http://trac.sagemath.org/sage_trac/ticket/9072 > > The patch is u

Re: [sage-support] Re: Sage Server - displaying Matlab plots

2010-05-27 Thread Mike Hansen
On Thu, May 27, 2010 at 5:42 PM, William Stein wrote: > Mike Hansen just told me that he will create such a patch tonight. > > http://trac.sagemath.org/sage_trac/ticket/9072 The patch is up, but it needs testing. --Mike -- To post to this group, send email to sage-support@googlegroups.com To u

Re: [sage-support] Re: Sage Server - displaying Matlab plots

2010-05-27 Thread William Stein
On Thu, May 27, 2010 at 5:32 PM, Vinod wrote: > Yes William, Your code works for me as well. I get a neat plot > displayed as yours. Here the software chosen is sage. > > My question is: > > Is it not possible to write a simple matlab code as I wrote before and > select the option Matlab instead o

[sage-support] Re: Sage Server - displaying Matlab plots

2010-05-27 Thread Vinod
Yes William, Your code works for me as well. I get a neat plot displayed as yours. Here the software chosen is sage. My question is: Is it not possible to write a simple matlab code as I wrote before and select the option Matlab instead of sage in the list of softwares available and have it worki

Re: [sage-support] Re: Sage Server - displaying Matlab plots

2010-05-27 Thread William Stein
On Thu, May 27, 2010 at 12:23 PM, Mike Hansen wrote: > On Thu, May 27, 2010 at 12:20 PM, Vinod wrote: >> 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 sa

Re: [sage-support] Re: Sage Server - displaying Matlab plots

2010-05-27 Thread Mike Hansen
On Thu, May 27, 2010 at 12:20 PM, Vinod wrote: > 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

[sage-support] Re: Sage Server - displaying Matlab plots

2010-05-27 Thread Vinod
On May 27, 9:21 am, William Stein wrote: > On Thursday, May 27, 2010, Harald Schilly wrote: > > On May 26, 11:40 pm, Vinod 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(S

[sage-support] Re: Sage Server - displaying Matlab plots

2010-05-27 Thread Harald Schilly
On May 26, 11:40 pm, Vinod 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,'"+filena

[sage-support] Re: Sage Server - displaying Matlab plots

2010-05-26 Thread Jason Grout
On 5/26/10 4:53 PM, Vinod wrote: Hello Jason, Thanks for the reply. Can you please let me know what "current directory" you exactly referred to? is it the sage path or matlab working directory? the current directory that the code is executing in (which happens to be a temporary directory c

[sage-support] Re: Sage Server - displaying Matlab plots

2010-05-26 Thread Vinod
Hello Jason, Thanks for the reply. Can you please let me know what "current directory" you exactly referred to? is it the sage path or matlab working directory? Thanks, Vinod On May 26, 7:38 am, Jason Grout wrote: > On 5/25/10 9:32 PM, Vinod wrote: > > > I tried installing a sage server and d

[sage-support] Re: Sage Server - displaying Matlab plots

2010-05-26 Thread Vinod
William, Thanks for the note. I tried using the savefig command and it does create a .png file in the directory but doesn't get the image displayed on the sage notebook webserver. below is the simple matlab code that I used: Delay = [95e-3 119e-3 142e-3 190e-3 238e-3 285e-3 333e-3 380e-3 428e-

[sage-support] Re: Sage Server - displaying Matlab plots

2010-05-26 Thread Jason Grout
On 5/25/10 9:32 PM, Vinod wrote: I tried installing a sage server and did succeed with it partially. Now the server is up and my aim is get the sage, matlab, mathematica, and maple softwares function properly displaying plots. but as of now, I could only get sage working with plot options. Can