MathGroup Archive 2012

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

Search the Archive

Export graphics without notebook ( using .m file)


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: Ask for help to evaluate an equation
  • Next by Date: Re: silly question on formatting tables
  • Previous by thread: Re: Ask for help to evaluate an equation
  • Next by thread: Do Plot