Basic 2D Visualization?
By 01123581321 at Mon, Jul 7 2008 11:55am |
I'm a beginner on mac/cocoa programming ( < Chapter 8 in Hillegass) ;)
and I was wondering if someone could show me a easy way of creating a colormapped image (tiff/png/whatever) from a 'matrix' of doubles, say.
Basically, I'd like to get some graphical output from my CLI programs.
I know some basic C and a bit of fortran, but no quartz drawing or such...



RE: Basic 2D Visualization?
hi-
This URL shows a web URL serialization:
http://www.vvidget.org/service/manual/Dictionary/PointMapChart.html
the same thing can be done via a CLI or Cocoa app. You can download
http://www.vvidget.org/builder/download/accept.html
and see the Point Map Vvizard as an example.
the graph in that was programmed with this:
http://www.vvi.com/products/vvidgetcode
thanks!-
-lance
MR Quartz Tutorials
I wrote a couple of tutorials on MR about using python with quartz to generate graphics:
http://www.macresearch.org/generating_diagrams_with_python_and_quartz
http://www.macresearch.org/gift-ideas-scientist-everything
There is also a nice app called NodeBox, which combines these technologies together:
http://www.macresearch.org/nodebox-python-based-2d-visualization-ide
---------------------------
Drew McCormack
http://www.maccoremac.com
http://www.macanics.net
http://www.macresearch.org
I found NSBitmapImageRep
Thank you for your suggestions!
I actually toyed around with nodebox a while ago, but it never hit me you could use it as a data plotting tool! :)
Anyway, I found an old and dusty example at cocoadev.com which is quite exactly what I was looking for...
On the other hand, a python approach might be better, considering portability. (I might want to run it under linux/x11)
Fortran
Check out the GeoEas software suite. You can probably find a free version of it (likely an old one). It was written to analyze and visualize geostatistical data. It includes a wide variety of plot types (separate program for each). If you are C only, one could easily translate these FORTRAN apps to C (using f2c) as they are all simple codes. Output is standard postscript, which can be used to produce very high quality output that is scalable. If you can live with parameter files, data files, and command-line driven code, it's quite flexible. If you program, you are only limited by your imagination (Oh, and available time; that's always the catch).