MathGroup Archive 2009

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: MathKernel7 produces no Graphics

  • To: mathgroup at smc.vnet.net
  • Subject: [mg104629] Re: MathKernel7 produces no Graphics
  • From: Szabolcs Horvát <szhorvat at gmail.com>
  • Date: Thu, 5 Nov 2009 03:50:34 -0500 (EST)
  • References: <hcr7ks$8p0$1@smc.vnet.net>

On 2009.11.04. 7:40, Jan Engelhardt wrote:
> Hi everybody,
>
>
> I just installed a trial of Mathematica 7.0.1 to see how it improved
> from the previous Mathematica 5.2 that I still had. Slightly
> disappointing is the fact that the MathKernel does not output graphics
> anymore, that is,
>
>> ~/bin/math
> Mathematica 7.0 for Linux x86 (64-bit)
> Copyright 1988-2009 Wolfram Research, Inc.
>
> In[1]:= Plot[x^2, {x, -1, 1}]
>
> Out[1]= -Graphics-
>
> In[2]:=
>
> Without popping up a new window with the graph as it used to in Math5.
> $DISPLAY is set and valid. Even when I forcibly unset it, there is no
> warning from the graphics output subprogram (that used to start in
> Math5) that DISPLAY is empty.
>
> I found this [ http://tinyurl.com/yfn47x2 ] thread in this newsgroup
> archive mentioning similar issues; however, if directing MathKernel to
> output in StandardForm or TraditionalForm, the -graphics- won't be a
> -graphics-, but a point list and parameters of the plot (I'd really
> prefer the drawn plot ;)
>
> In[2]:= StandardForm[Plot[x^2,{x,-1,1}]]
>
> Out[2]//StandardForm=
>
>> GraphicsBox[... lots of text ...]
>
>
>
> What could be up with MathKernel7 that it produces no Graphics? With the
> graphical interface (~/bin/mathematica), plots are in fact shown, but
> I really prefer running just the MathKernel CLI.
>

About the only thing you'll achieve by using the cli only is limiting 
yourself and making Mathematica less useful.

However, I'm aware that some Linux users think that it is "cool" to do 
things the inconvenient and frustrating way, so you can try one of

<<Terminal`
<<JavaGraphics`
<<X11`

before using a plotting command.

I am not sure if the last one is included in Mathematica 7.  You can 
check the Mathematica\7.0\SystemFiles\Kernel\Packages directory for 
other options.

Mathematica 7 generates graphics using the front end, so this will not 
prevent the front end from running.  It'll simply run it in the background.


  • Prev by Date: Re: what's wrong with these expressions?
  • Next by Date: Re: Problems with absolute PlotRange
  • Previous by thread: Re: MathKernel7 produces no Graphics
  • Next by thread: Re: MathKernel7 produces no Graphics