ptypy.utils.plot_utils#

Plotting utilities.

This file is part of the PTYPY package.

copyright:

Copyright 2014 by the PTYPY team, see AUTHORS.

license:

see LICENSE for details.

Functions

HSV_to_P1A(cin)

Reverse to complex2hsv

HSV_to_RGB(hsv)

HSV (Hue,Saturation,Value) to RGB (Red,Green,Blue) transformation.

P1A_to_HSV(cin[, vmin, vmax])

Transforms a complex array into an RGB image, mapping phase to hue, amplitude to value and keeping maximum saturation.

RGB_to_HSV(rgb)

Reverse to hsv2rgb

complex2hsv(cin[, vmin, vmax])

Transforms a complex array into an RGB image, mapping phase to hue, amplitude to value and keeping maximum saturation.

complex2rgb(cin, **kwargs)

Executes complex2hsv and then hsv2rgb

franzmap()

Set the default colormap to Franz's map and apply to current image if any.

hsv2complex(cin)

Reverse to complex2hsv

hsv2rgb(hsv)

HSV (Hue,Saturation,Value) to RGB (Red,Green,Blue) transformation.

imload(filename)

Load an image and returns a numpy array.

imsave(a[, filename, vmin, vmax, cmap])

Take array a and transform to PIL.Image object that may be used by pyplot.imshow for example.

length_units(number)

Doc Todo

plot_data(data[, origin, psize])

plot_storage(S[, fignum, modulus, slices, ...])

Quickly display the data buffer of a Storage instance.

pretty_length(num[, digits])

rgb2complex(rgb)

Reverse to complex2rgb

rgb2hsv(rgb)

Reverse to hsv2rgb

rmphaseramp(a[, weight, return_phaseramp])

Attempts to remove the phase ramp in a two-dimensional complex array a.

Classes

PtyAxis([ax, data, channel, cmap, fontsize])

Plot environment for matplotlib to allow for a Image plot with color axis, potentially of a potentially complex array.