On Fri, May 28, 2010 at 6:24 PM, Jason Grout
<jason-s...@creativetrax.com> wrote:
> On 5/28/10 8:08 PM, William Stein wrote:
>>
>> On Fri, May 28, 2010 at 5:52 PM, Jason Grout
>> <jason-s...@creativetrax.com>  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 question, but a question of how to run Matlab over
>>> an
>>> ssh session.  That's something that should have an answer somewhere,
>>> either
>>> through a google search or asking MathWorks.
>>
>> No, that is not the problem at all.
>> What's happening is that he's giving code to Matlab that asks it to
>> pop up a plot.  Matlab
>> is then trying to make the plot appear on the screen using *XWindows*.
>>  Naturally, this fails
>> in the notebook -- it simply doesn't make any sense to do this.
>>
>
> Right.  Thanks for reminding me the context of this conversation.  The same
> problem (needing to pop up a window) appears when trying to render an image
> using OpenGL without X.  In the OpenGL case, I believe there are ways of
> getting an opengl context to work without trying to pop up an XWindows
> window.  I believe the typical way to do this is to use a framebuffer.  A
> google search "opengl without x11" turns up lots of hits for doing such a
> thing.  Instructions for doing such a thing are also in the Mayavi manual:
> http://code.enthought.com/projects/mayavi/docs/development/html/mayavi/tips.html#rendering-using-the-virtual-framebuffer
>
> I've never done this, though.  Whether or not OpenGL is the problem here,
> using a framebuffer might solve the problem.  Maybe.  Assuming you are using
> Ubuntu, can you try following the instructions in the Mayavi manual?

I don't think this makes any sense.  Matlab is fully capable of
saving images to file using the "saveas" command, as explained in
detail I think earlier in this very thread.

 -- William

>
> $ sudo apt-get install xvfb
> ssh in as the sage worksheet user
> $ xvfb-run matlab
>
> then try the plotting command
>
> Jason
>
> --
> 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
>



-- 
William Stein
Professor of Mathematics
University of Washington
http://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

Reply via email to