| Source Code for Biology and Medicine | |
| Publication quality 2D graphs with less manual effort due to explicit use of dual coordinate systems | |
| Daniel A Wagenaar1  | |
| [1] Department of Biological Sciences, University of Cincinnati, PO Box 210006, Cincinnati, OH 45221, USA | |
| 关键词: Matlab; Typography; Data plotting; | |
| Others : 1139285 DOI : 10.1186/1751-0473-9-22 |
|
| received in 2014-05-29, accepted in 2014-09-18, 发布年份 2014 | |
PDF
|
|
【 摘 要 】
Creating visually pleasing graphs in data visualization programs such as Matlab is surprisingly challenging. One common problem is that the positions and sizes of non-data elements such as textual annotations must typically be specified in either data coordinates or in absolute paper coordinates, whereas it would be more natural to specify them using a combination of these coordinate systems. I propose a framework in which it is easy to express, e.g., “this label should appear 2 mm to the right of the data point at (3, 2)” or “this arrow should point to the datum at (2, 1) and be 5 mm long.” I describe an algorithm for the correct layout of graphs of arbitrary complexity with automatic axis scaling within this framework. An implementation is provided in the form of a complete 2D plotting package that can be used to produce publication-quality graphs from within Matlab or Octave.
【 授权许可】
2014 Wagenaar; licensee BioMed Central Ltd.
【 预 览 】
| Files | Size | Format | View |
|---|---|---|---|
| 20150321091743220.pdf | 625KB | ||
| Figure 6. | 29KB | Image | |
| Figure 5. | 64KB | Image | |
| Figure 4. | 37KB | Image | |
| Figure 3. | 11KB | Image | |
| Figure 2. | 31KB | Image | |
| Figure 1. | 27KB | Image |
【 图 表 】
Figure 1.
Figure 2.
Figure 3.
Figure 4.
Figure 5.
Figure 6.
【 参考文献 】
- [1]Williams T, Kelley C, Bröker H-B, Campbell J, Cunningham R, Denholm D, Elber G, Fearick R, Grammes C, Hart L, Hecking L, Koenig T, Kotz D, Kubaitis E, Lang R, Lecomte T, Lehmann A, Mai A, Merritt EA, Mikulík P, Steger C, Tkacik T, Van der Woude J, Woo A, Van Zandt JR, Zellner J: Gnuplot. [http://www.gnuplot.info/ webcite]
- [2]Wavemetrics: Igor Pro. [http://www.wavemetrics.com/products/igorpro/igorpro.htm webcite]
- [3]Mathworks: Matlab: The language of technical computing. [http://www.mathworks.com/products/matlab/ webcite]
- [4]Abbott B, Adler A, Aitkenhead AH, Anderson G, Andersson J, Annamalai M, Appel M, Atzeri M, Ayal S, Banks R, Barrowes B, Barth A, Bateman D, Bauschke H, Bect J, Belov R, Berry K, Billinghurst D, Bindner D, Bogusz J, Borgmann M, Boven P, Bovey R, Bradshaw J, Brinkmann M, Brister M, Bruno R, Buchacher C, Burchard A, Caliari M, et al.: GNU Octave. [http://www.gnu.org/software/octave webcite]
- [5]Harrington B, Hurst N, Gould T, Albert M, Andler J, Bah T, Barbry-Blot P, Barraud J-F, Baxter B, Beard J, Bintz J, Biro A, Bishop N, Blocher JL, Böck H, Bohre H, Borgmann D, Bouclet B, Broberg G, Brown C, Breuer H, Brubaker M, Bruno L, Buculei N, Byak B, Caclin P, Caldwell I, Carmichael G, Catmur E, Boldewyn, et al.: Inkscape. [http://inkscape.org webcite]
- [6]Adobe Systems Inc: Illustrator. [http://www.adobe.com/products/illustrator.html webcite]
- [7]Dantzig GB: Maximization of a linear function of variables subject to linear inequalities. In Activity Analysis of Production and Allocation. Edited by Koopmans TC. New York and London: Wiley and Chapman-Hall; 1951:339-347.
- [8]Stroustrup B: The C++ Programming, Language, 4th edn. Upper Saddle River: Addison-Wesley Professional; 2013.
- [9]Digia: Qt. [http://qt.digia.com/ webcite]
- [10]Doumont J-L: Trees, Maps, and Theorems: Effective Communication for Rational Minds. Kraainem: Principiae; 2009.
- [11]Tufte ER: The Visual, Display of Quantitative Information, 2nd edn. Cheshire: Graphics Press; 2001.
PDF