Fix one import and imageanalyzer float array loading
[pyplotsuite.git] / README
blobed3d4a734924db852e8f411124a9ebad24954381
1 PyPlotSuite README File
2 =======================
4 .Copyright and License
5 *************************************************
6 Copyright (C) 2006-2007 Antonino Ingargiola <tritemio@gmail.com>
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2 of the License, or
11 (at your option) any later version.
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 GNU General Public License for more details.
18 For more information read the file LICENSE.txt in the source directory.
19 *************************************************
22 Project Description
23 -------------------
25 *PyPlotSuite* is a set of graphical tools to quick visualize and explore/analyze
26 monodimentional and bidimensional data. The plot created can be saved in a
27 variety of image formats to produce publication quality graphs.
29 At the moment the project is composed by two little stand alone applications:
30 *ImageAnalyzer* and *Plotfile2*. ImageAnalyzer is focused towards images (or any
31 2D data, such as arrays) visualization, analysis, and measurement. Plotfile2
32 focus is towards simple data series visualization, with the possibility to
33 quick modify many plot characteristics. Both applications can save the result
34 on a multitude of image file formats (png, eps, jpeg, pdf, and more).
36 PyPlotSuite is written in python, using the GTK gui toolkit (through the python
37 binding pygtk, and using Glade-2 to layout the windows). All plots are created
38 with the great Matplotlib python 2D graphic library. Matplotlib is such a good
39 tool that the PyPlotSuite applications are only tiny wrapper around Matplotlib
40 functionality. Also some Numpy functionality are used both through Matplotlib
41 (which requires Numpy) and both directly.
43 Home Page::         http://pyplotsuite.sourceforge.net[]
44 *Latest Version*::  0.1-alpha7 
47 NEWS 
48 ----
49 0.1-alpha8
50 ~~~~~~~~~~
51 * Added multiplatform installer using distutils.
52 * Various bug-fixes thanks to David TrĂ©mouilles' bug reports and patches (now 
53   the open dialog remebers the last dir).
55 0.1-alpha7
56 ~~~~~~~~~~
57 Only Plotfile2 changes in this release. Various speed-up and code optimization, and the support for changing also the color for all line-plot elements.
59 0.1-alpha6
60 ~~~~~~~~~~
61 This is the first version of PyPlotSuite released as a single tarball. It 
62 includes both ImageAnalyzer and Plotfile2.
64 A new plot property dialog in Plotfile2 allows to change many plot parameters 
65 (line style and width, marker style and size). There's also the GUI for 
66 changing the colors of the various plot elements but this functions is not 
67 implemented in the underlying code yet.
70 Release Notice
71 --------------
73 Early versions of *ImageAnalyzer* and *Plotfile2* were released in separated
74 tarballs with separated version number. Now they are released together in the
75 same tarball with the same version number (and I plan to integrate them more).
76 However they retain separated changelogs, so you can keep track of each
77 application separately.
79 Installation
80 ------------
81 You can decompress the archive where you want and then execute PyPloSuite in 
82 place, entering the directory and typing:
84 --------
85   python imageanalyzer
86 --------
90 --------
91   python plotfile2
92 --------
94 You can install PyPlotSuite system wide with this command:
96 --------
97   python setup.py install
98 --------
101 Development Version
102 -------------------
104 The development version of *PyPlotSuite* is hosted on a
105 http://repo.or.cz/w/pyplotsuite.git[git repository]. To download the latest
106 development version just install http://git.or.cz/[git] 
107 and type:
109 -------------------
110   $ git clone ssh://repo.or.cz/srv/git/pyplotsuite.git
111 -------------------
113 Now you have a complete working tree of PyPlotSuite to test/hack on. If git
114 and cogito does not work on your OS (I think only windows is affected) look at
115 http://bazaar-vcs.org/[bazar] that is multiplatform SCM with a git plugin too.
118 Requirements
119 ------------
121 You must have this software installed in order to be able to run the program:
123 - Any recent version of Linux, Mac OSX or Windows
125 - Python 2.4 or newer (2.3 may still work, not tested):
126     http://www.python.org[]
128 - PyGTK 2.x:
129     http://www.pygtk.org/[]
131 - NumPy (1.0 or newer)
132     http://numpy.scipy.org/[]
134 - MatPlotLib (0.87 or newer):
135     http://matplotlib.sourceforge.net/[]
137 - SciPy (only the module scipy.ndimage.filters):
138     http://www.scipy.org/[]
140 - Python Image Library (PIL):
141     http://www.pythonware.com/products/pil/[]
143 NOTE: Typically Numpy is a prerequisite for Matplotlib, so you may have
144 installed it in bundle with Matplotlib.
146 NOTE: The Scipy module and the PIL library are a requirement only if you want
147 to run ImageAnalyzer. Plotfile2 does not requires them.
150 Image Analyzer
151 --------------
153 Name::              Image Analyzer
154 Description::       A tool to extract and make measures on scientific images.
157 Description
158 ~~~~~~~~~~~
160 ImageAnalyzer is a python[1] program written with the purpose to analyze
161 scientific images to extract information such dimensions, and to reveal some
162 subtle features. You can also create and save publication quality figures in a
163 variety of hard-copy formats (using Matplotlib[5]).
165 To execute the program type:
167 -------------
168   python imageanalyzer
169 -------------
171 Remeber to check the software requirement above.
174 Image formats supported
175 ~~~~~~~~~~~~~~~~~~~~~~~
177 All format supported by the PIL[6] library, with the following pixel formats:
178 - L (Luminance, aka black&white) 8 bit and 14 bit
179 - RBG(A) with 8bit per channel
182 Features
183 ~~~~~~~~
185 The features currently implemented are:
187     - Load, zoom and navigate on any RBG(A) or L (Luminance, aka black&white)
188       images.
189     - The possibility to choose one of the following 17 interpolation 
190       algorithms:
191           Bessel, Bicubic, Bilinear, Blackman, Catrom, Gaussian, Hamming,
192           Hanning, Hermite, Kaiser, Lanczos, Mitchell, Nearest, Quadric, Sinc,
193           Spline16, Spline36.
194       The default one is Nearest which is "no interpolation".
195     - Select one of the 14 color-maps (only for L images).
196     - Select a dynamic range either numerically and graphically through an
197       histogram of the image (only for L images).
198     - Grid on/off, black/white (to match various color-maps).
199     - Calculate the distance between two points with the option to set the pixel
200       dimension for the image (x and y separately).
201     - Plot the pixel-precise profile of an arbitrary number of sections of the
202       image (only for L images).
205 ImageAnalyzer TODO
206 ~~~~~~~~~~~~~~~~~~
208 To-do list in no particular order:
210     - Allow to save modified images.
211     - Allow to save/load plot properties (colormap, interpolation, zoom). 
212       Handle this as explained in Plotfile2 TODO (below).
213     - Allow to choose font size for title and labels (separately).
214     - Fix axis apect ratio in histogram window.
215     - Better handling of failure on file load.
216     - Use Plotfile2 (instead of the current custom window) to show image 
217       sections.
218     - More image filtering options.
219     - Add pixel-value picker tool.
220     - Peak integration tool (2d integration on an elliptical area).
221     - Noise removal tools (dithering, noise shaping, 2D matched filter, you
222       name it! :D)
225 Plotfile2
226 ---------
228 Name::              Plotfile2
229 Description::       A tool plot 1D data series.
232 Description
233 ~~~~~~~~~~~
235 Plotfile2 is is a python[1] program written with the purpose to quick plot data
236 series stored in standard ascii text files. Multiple data series can be plotted,
237 compared and the resulting plot can be saved in a variety of image file formats
238 with a customizable size and resolution. This feature come particularly handy
239 if you want to embed your plot in a document and you what size the final image
240 will have.
242 Plotfile2 is written using the GTK toolkit[2] and embeds Matplotlib[5] plot
243 facility.
245 To execute the program, enter the Plotfile2 dir and type:
247 --------
248   python plotfile2
249 ---------
251 See also the software requirements above.
254 Features
255 ~~~~~~~~
257 At the moment Plotfile2 can:
259     - Load one or more data series from a two column (spaces or tab separated) 
260       ascii file. Blank lines (only spaces or tabs) are ignored.
261     - Detect if there is an header to automatically set axis labels. The header
262       must be one line with two strings separated by spacing (or tabs). Blank
263       lines before and after the header are ignored. More than two 
264       space-separated string results in an error.
265     - Controls to change the X and Y axis range, scale (linear or 
266       log) and  toggle grid.
267     - Controls to toggle if plot shows points (markers), lines or both. 
268     - Complete customization of plot elements through a dedicated dialog
269       (line style, marker type, colors, etc...).
270     - Set the plot title and axis labels
271     - Set the figure size (both in inches or in cm) and resolution (in dpi).
272       This is useful to export a plot to be included in a document with a know
273       size.
274     - Navigate/explore plots (zoom, un-zoom, pan, etc) thanks to the Matplotlib
275       NavigationToolbar2 (try to click on the crossed arrows icon and then 
276       click and dragg with the right mouse button).
277     - Save the plot in a multitude of image formats (png, jpeg, eps, pdf, ...
278       all the formats supported by Matplotlib). Just click on the floppy icon.
281 Plotfile2 TODO
282 ~~~~~~~~~~~~~~
284 - Possibility to customize plot line style, line color, line width, marker
285   color, marker size, marker type for each series. *[COMPLETED]*
286 - Possibility to use spline interpolation (with various orders), and
287   exponential-spline interpolation '[Work in progress]'.
288 - Add dialogs to choose an arbitrary color for plot elements in 
289   the "Plot Properties" dialog.
290 - Allow font size (and if possible) font style change for labels and title.
291 - Save plots as data (two columns ascii file or csv). This is useful for
292   new data generated by the interpolation.
293 - Allow to save and load plot properties associated with a set of data. This 
294   would allow to load a dataset with associated plot style. To maintain the 
295   data in a compatible format this metadata will be saved in a new file with 
296   same name but different extension (f.e. ".plot"). Maybe the file should 
297   be hidden... (in the same dir of the data of course).
298 - Add basic operators (spectrum, intergrate, differentiate: which make sense?).
299 - Embed an (optional) [i]python shell.
302 Plotfile2 Known Problems
303 ~~~~~~~~~~~~~~~~~~~~~~~~
304 - When you change figure size and resolution using the dedicated dialog, the
305   main window may show a scrambled plot (or only an corner of the entire plot).
306   This is only a visualization issue. Therefore, if you save the file (without
307   resizing the window!) you will obtain the image file with the correct size
308   and resolution ready to be included in your documents.
310 NOTE: If you have any suggestion to solve this problem please contact 
311 mailto:tritemio@gmail.com[me] via mail.
314 Links
315 -----
317 1. *Python*: a dynamic object-oriented programming language.
319     * http://www.python.org[]
322 2. *PyGTK*: Python binding for the GTK user interface library.
324     * http://www.pygtk.org/[]
327 3. *Numpy*: The fundamental package needed for numerical computing with Python.
328     It is the successor (and unifier) of all the old projects (Numeric and
329     Numarray) for python numerical computing.
331     * http://numpy.scipy.org/[]
334 4. *SciPy*: Many modules that were not specific to Numpy are gathered under the
335     broader project SciPy:
337     * http://numpy.scipy.org/[]
340 5. *MatPlotLib*: A python 2D plotting library which produces publication quality
341     figures in a variety of hard-copy formats and interactive environments
342     across platforms.
344     * http://matplotlib.sourceforge.net/[]
347 6. *Python Imaging Library* (PIL).
349     * http://www.pythonware.com/products/pil/[]
353 ***********************
354 The html version of this README was generated from the ASCII file with:
356 ---------
357 $ asciidoc -a toc -a icons -a badges README
358 ---------
359 ***********************