boyfarrell.com

boyfarrell.com Archives: Code

·

14 January 2008

ChocPlot: First Results

It has been quite slow going with the plotting framework as of late; the trouble with being in the fourth year of a three year PhD! I have decided to rely on Cocoa for as much as possible for the plot above (under the advice of Wil Shipley). I am using NSBezierPath to draw the [...]

continue reading... » 0 Comments

29 October 2007

syntax error before ‘AT_NAME’ token

This means you have some junk in one of your header file that shouldn’t be there. Tip of the hat to Infurious Blog for pointing out one possible meaning of this error; a missing @end in an Objective-C class header file. Another possibility for this (this took me an hour to find!) is that you [...]

continue reading... » 4 Comments

4 September 2007

ChocPlot: Mutable Axis Model

The original AxisModel was quite limited in it’s abilities; it just did everything automatically. Here I introduce the mutable subclass of AxisModel; MutableAxisModel As this is a subclass it still responds to the same methods defined in AxisModel; -interval, -spacing, -start, -stop, -representation, -description MutableAxisModel adds additional methods designed to give the user some control [...]

continue reading... » One Comment

3 September 2007

Overview of axis rounding

(A pdf version of this discussion with equations, and source code with documentation are available. Alternatively, just the documentation is available on-line.) Update There were some problems with the original code, but they are all solved now. There were just silly bugs: one variable was a unsigned and should have been an int etc. I [...]

continue reading... » 0 Comments

16 August 2007

ChocPlot 1: Axis Model

ChocPlot is my very poorly named framework/application for plotting using Cocoa. It is still very much a work in progress, so far I have written a class called AxisModel. It can be used to generate nicely spacing axis tic marks from just two variables; the start and stop values of the axis. Please read the [...]

continue reading... » 0 Comments

·