PHGraph

Scientific Cocoa framework for displaying scientific plots
Download

PHGraph Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Freeware
  • Price:
  • FREE
  • Publisher Name:
  • Pierre-Henri Jondot
  • Publisher web site:
  • http://www.mpkju.fr/~graphview/
  • Operating Systems:
  • Mac OS X
  • File Size:
  • 64 KB

PHGraph Tags


PHGraph Description

Scientific Cocoa framework for displaying scientific plots PHGraph is a very simple Cocoa framework to display scientific plots in the plane, for OS X Tiger and Leopard (universal binary). The design is simple: the major class is the view, PHGraphView which inherits from NSView, and whose instance variables are mostly three MutableArrays. One is an array of horizontal axis, a second for vertical axis, and a third for objects to be drawn in the view. The PHGraphView itself is responsible for dealing with the mouse events, with a few predefined modes. The most convenient in my opinion is the PHCompositeZoomAndDrag: a left click (mouse not moving) is a zoom in (centered), a alt+right click is a zoom out (cancelling a zoom in), and dragging the mouse with the button pressed moves the plot.The framework takes care of it, but you could do it yourself with a delegate as well.For all the modes: the control+left click or right click shows a contextual menu with the possibility to copy the graph to the pasteboard as PDF, TIFF, or EPS image.The data for the set of points or curves is just the given of references to double arrays. This way, there is no memory wasted, and the fastest access to data in the framework, and the plotting itself is for the major part realized with core graphics (Quartz 2d), with some cocoa for displaying strings.


PHGraph Related Software