Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2012

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

Search the Archive

Export graphics without notebook ( using .m file)

  • To: mathgroup at smc.vnet.net
  • Subject: [mg129113] Export graphics without notebook ( using .m file)
  • From: bar at ANTYSPAM.ap.krakow.pl
  • Date: Sun, 16 Dec 2012 01:07:32 -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

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