[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Re: plotting graphs
From: |
Nicolas Roard |
Subject: |
Re: Re: plotting graphs |
Date: |
Tue, 28 Nov 2006 01:03:16 +0000 |
On 11/27/06, Daniel J Farrell <daniel.farrell@imperial.ac.uk> wrote:
Hi Nick,
Your app looks really cool! I think the secret is to make the API
really simple when it comes to scientific folk (like me!). Here we
want the programming to be transparent. How does one plot data in
your framework? Do you use NSArray of NSNumber? Would be interested
to view your source, it would give me some ideas on where to head
with mine.
Yes, I use NSArray of NSNumber -- more exactly, I add to the graph
"curve" objects, which can be any object answering a simple protocol
(-values for returning the values, -color for the color, -name for the
curve name...). That way the actual objects can be much more complex
(mines are doing simulations), yet simply by passing them to the graph
view I can visualize them.
--
Nicolas Roard