Cargando…

Publication quality 2D graphs with less manual effort due to explicit use of dual coordinate systems

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, wh...

Descripción completa

Detalles Bibliográficos
Autor principal: Wagenaar, Daniel A
Formato: Online Artículo Texto
Lenguaje:English
Publicado: BioMed Central 2014
Materias:
Acceso en línea:https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4220638/
http://dx.doi.org/10.1186/1751-0473-9-22
_version_ 1782342764275433472
author Wagenaar, Daniel A
author_facet Wagenaar, Daniel A
author_sort Wagenaar, Daniel A
collection PubMed
description 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.
format Online
Article
Text
id pubmed-4220638
institution National Center for Biotechnology Information
language English
publishDate 2014
publisher BioMed Central
record_format MEDLINE/PubMed
spelling pubmed-42206382014-11-07 Publication quality 2D graphs with less manual effort due to explicit use of dual coordinate systems Wagenaar, Daniel A Source Code Biol Med Software Review 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. BioMed Central 2014-10-21 /pmc/articles/PMC4220638/ http://dx.doi.org/10.1186/1751-0473-9-22 Text en Copyright © 2014 Wagenaar; licensee BioMed Central Ltd. http://creativecommons.org/licenses/by/4.0 This is an Open Access article distributed under the terms of the Creative Commons Attribution License (http://creativecommons.org/licenses/by/4.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly credited. The Creative Commons Public Domain Dedication waiver (http://creativecommons.org/publicdomain/zero/1.0/) applies to the data made available in this article, unless otherwise stated.
spellingShingle Software Review
Wagenaar, Daniel A
Publication quality 2D graphs with less manual effort due to explicit use of dual coordinate systems
title Publication quality 2D graphs with less manual effort due to explicit use of dual coordinate systems
title_full Publication quality 2D graphs with less manual effort due to explicit use of dual coordinate systems
title_fullStr Publication quality 2D graphs with less manual effort due to explicit use of dual coordinate systems
title_full_unstemmed Publication quality 2D graphs with less manual effort due to explicit use of dual coordinate systems
title_short Publication quality 2D graphs with less manual effort due to explicit use of dual coordinate systems
title_sort publication quality 2d graphs with less manual effort due to explicit use of dual coordinate systems
topic Software Review
url https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4220638/
http://dx.doi.org/10.1186/1751-0473-9-22
work_keys_str_mv AT wagenaardaniela publicationquality2dgraphswithlessmanualeffortduetoexplicituseofdualcoordinatesystems