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

*To*: mathgroup at smc.vnet.net*Subject*: [mg129197] Re: Export graphics without notebook ( using .m file)*From*: <bar at robox.ii.up.krakow.pl>*Date*: Thu, 20 Dec 2012 03:26:18 -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>

bar at antyspam.ap.krakow.pl wrote: Hello , can someone help me ? I have very long calculation and it isn't possible to keep mathematica notebook session so long, I have to run it as batch file in background on the server .... Olaf > 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, > > > >