MathGroup Archive 2012

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

Search the Archive

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


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, 
> 
> 
> 
> 



  • Prev by Date: Re: Plot[] will not plot functions when one of the functions in list
  • Next by Date: Re: Input alias for Surd not working
  • Previous by thread: Re: will not plot functions when one of the functions in list
  • Next by thread: Re: Export graphics without notebook ( using .m file)