Re: Charting solutions
Re: Charting solutions
- Subject: Re: Charting solutions
- From: John Anderson <email@hidden>
- Date: Mon, 31 Mar 2003 15:30:01 -0500
Dear Dr. McCormack,
Thanks for renaming the thread, it was definitely do time.
I noticed on CocoaMamasam that last year, you were part of a very
similar thread. So, I had already downloaded and browsed your "Trade
Strategist" application. The charts on your application look very
nice, indeed.
There is a lot of interest in this developing a Cocoa community project
in this area and I believe also in providing a numerical toolkit that
is designed to interface with it and AltiVec (aka Apple's "Velocity
Engine"). The other thing we should consider is doing 3D in OpenGL.
For example, myself and others have already independently developed
basic Cocoa classes that handle numeric data as formal Objects, like C
arrays that can be placed in NSArray or NSDictionary and that you can
call [myArray sort] or [myArray insertValue:aFloat AtIndex:anUnsigned].
I would also like to support this numerical kit with something
approaching a full implementation of Numerical Recipes in C, but with
AltiVec implementations and AltiVec streaming management!
Obviously, it makes no sense for all to independently re-develop what
the community as a whole needs, like-wise the open-source approach
generates essentially the academic benefits of peer-review and
contribution. Furthermore, as we all know Apple is an alternative
platform, which by means game theory that like any other minority
group, our best strategy as software developers is to work together.
Specifically, it is in our mutual interest to enhance the stability and
depth of Apple's platform so that it easier to develop applications
that are significantly better, both in terms of system integration and
individual performance, than those available in the Windows world.
So, I for one am very serious and committed to taking what has
nucleated here and making something long-term and substantial out it.
Personally, this thread and list have made it very clear to me that by
publishing the basic non-proprietary parts of my code (like Apple's
Darwin versus OS X), that the feed back and contribution that I receive
in return will be substantial. Some kind of Cocoa Numerics web site
will be coming from me. And again, I am getting the strong impression
that I am not alone.
That being said, back to the simple 2D Chart Kit. The status of this
thread changes very fast, before you spoke up we had just received a
partial Cocoa update of XYPlot from the original author Sean Hill, who
based XYPlot on nxyPlot. It appears at first glance to be have the
advantage of being 100% Cocoa and only needing the creation of
"PlotInspector.nib" to turn it into a fully functioning Interface
Builder palette that can be added to anyone's application simply be
added dragging it into Interface Builder and making some connections.
However, I am sure that we would all benefit from looking at what you
written as well.
Below, I tried to post the email from Sean Hill to Dave Sopchak that
has the Cocoa version of XYPlot attached. If you can not get the
"XYPlot.sit" attachment from Apple's list message, email me of list and
I will send it to you (and everyone else).
Truly yours,
John Philip Anderson
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[demime 0.98b removed an attachment of type application/x-stuffit which had a name of XYPlot.sit]
From: Sean Hill
To: Dave Sopchak
Date: Mon Mar 31, 2003 7:49:30 AM US/Pacific
Attachments: There is 1 attachment
Good to talk with you. Glad to see there's interest in getting a plot
object out there for everyone to work on.
Here's an out-of-context example of making this plot object plot some
data:
- (void)display
{
double i;
NSMutableValueArray *ref = [NSMutableValueArray
valueArrayWithObjCType:@encode(double)]; // for x values
NSValueArray *array = [object
membranePotentialForCellModel:[cellPopup titleOfSelectedItem]
usingChannelModel:[channelPopup
titleOfSelectedItem]
forDuration:duration
stimulusDuration:stimDuration
magnitude:stimStrength dt:dt]; //
This fills "array" with the y values
for(i = 0; i < duration; i+=dt){
[ref addValue:&i]; // add sequential values (1,1.1,1.2,1.3,1.4
...) for the x-values.
}
[plotView removeAllPlots:self];
[plotView plotValues:ref :array];
}
Also... Take a look at XYPlot.template in the Resources section of the
project. This demonstrates many of the options implemented in the
object (unfortunately a number remain unimplemented).
On Monday, Mar 31, 2003, at 14:16 America/Detroit, Drew McCormack wrote:
>
I am coming into this discussion very late, so I thought I would
>
branch the thread.
>
>
There is a cocoa ready 2D plotting class called PPlot. It is actually
>
written in C++, but I have put a cocoa interface on it, so it works
>
out of the box.
>
>
pplot.sourceforge.net
>
>
I have also written a 100% cocoa framework for plotting for my app
>
"Trade Strategist". The framework is called Narrative. If I thought
>
enough people were interested, and that the undertaking was not doomed
>
to end up being one of those sorry dormant sourceforge projects, I may
>
be convinced to release it under an open source license like LGPL.
>
>
If you are interested, check out the web site, and download the
>
application. Then browse the header files in the framework
>
"Narrative.framework" inside the application bundle. If you still
>
think it might be something you would want to contribute to, contact
>
me.
>
>
www.trade-strategist.com
>
>
Drew McCormack
>
_______________________________________________
>
cocoa-dev mailing list | email@hidden
>
Help/Unsubscribe/Archives:
>
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
>
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.