[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
EZGraph output dir
From: |
Matt Aylward |
Subject: |
EZGraph output dir |
Date: |
Fri, 13 Aug 1999 10:52:21 +0800 |
Greetings all,
EZGraph:
If I understand it, the manual indicates that the method:
[someEZGraph setFileName: "somepath_"]
will cause EZGraph to place its output in a file beginning with "somepath_"
and ending with the label given to that data stream in EZGraph.
e.g, The code below is intended to put output in "popDir"
(e.g., "/home/matt/swarmdata/run1/")
with filenames like "pos_pop". With the "setFileName" method in place the output
disappears (can't find it anywhere) , without that line the files are stored
in the current working directory as expected.
Is this a bug or am I doing something wrong??
--------------------------------------------------------------
// create graph for population
populationGraph = [EZGraph createBegin: [self getZone]];
SET_WINDOW_GEOMETRY_RECORD_NAME (populationGraph);
[populationGraph setTitle: "Species areas vs. time"];
[populationGraph setAxisLabelsX: "time" Y: "population"];
[populationGraph setFileOutput: record_data];
// try in swarm 1.4.1
printf("\nprepend file name is %s\n", popDir);
[populationGraph setFileName: popDir];
populationGraph = [populationGraph createEnd];
// create three elements to draw on that graph.
[populationGraph createSequence: "pos_pop"
withFeedFrom: posWorld
andSelector: M(getArea)];
[populationGraph createSequence: "amp_pop"
withFeedFrom: ampWorld
andSelector: M(getArea)];
[populationGraph createSequence: "het_pop"
withFeedFrom: hetWorld
andSelector: M(getArea)];
----------------------------------------------------------------
Cheers,
Matt
--
Matt Aylward: or
Linux Lover - OS for the people by the people.
******~~~~~May the Swarm be with you.~~~~~******
Depts of Geography (GIS) and Botany (Marine), UWA
==================================
Swarm-Support is for discussion of the technical details of the day
to day usage of Swarm. For list administration needs (esp.
[un]subscribing), please send a message to <address@hidden>
with "help" in the body of the message.