MathGroup Archive 2012

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

Search the Archive

Re: Export graphics without notebook ( using .m file)

  • To: mathgroup at smc.vnet.net
  • Subject: [mg129211] Re: Export graphics without notebook ( using .m file)
  • From: "Alexey Popkov" <lehin.p at gmail.com>
  • Date: Fri, 21 Dec 2012 05:40:08 -0500 (EST)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • Delivered-to: l-mathgroup@wolfram.com
  • Delivered-to: mathgroup-newout@smc.vnet.net
  • Delivered-to: mathgroup-newsend@smc.vnet.net
  • References: <kajode$ilu$1@smc.vnet.net>

Hi Olaf,

It does not work without the FrontEnd because the latter is necessary for 
rendering Mathematica's graphics. But it is still possible to run the FrontEnd from the script. Look at such functions as UsingFrontEnd, FrontEndExecute, 
$FrontEnd etc...

HTH,
Alexey


<bar at ANTYSPAM.ap.krakow.pl> wrote: news:kajode$ilu$1 at smc.vnet.net...
> Hello,
> It is example from help:
> ---------------
> div[{vx_, vy_}] := D[vx, x] + D[vy, y];
> vf = {Cos[x + y^3], Sin[y + x^3]};
> fig = StreamDensityPlot[Evaluate[{vf, div[vf]}], {x, -3, 3},
>    {y, -3, 3}, StreamPoints -> Fine, StreamScale -> Large,
>    ColorFunction -> "Rainbow", MaxRecursion -> 2,
>    LightingAngle -> Automatic, StreamStyle -> Black];
> Export["tt.jpg", fig];
> ---------------
>
> The question is:
>
> Why this works fine inside Mathematica notebook
> and doesnt work as a script ?
>
> math < example.m
>
> generates tt.jpg file but not identical as from notebook ?
>
> Version: Mathematica 7.0
>
>
> Olaf,
>
>
>
> 





  • Prev by Date: Re: Using a notebook as a notebook.
  • Next by Date: Re: Input alias for Surd not working
  • Previous by thread: Re: Export graphics without notebook ( using .m file)
  • Next by thread: Re: Export graphics without notebook ( using .m file)