Xray::BLA::Plot

NAME

Xray::BLA::Plot - A plotting role for BLA-XANES

DESCRIPTION

Various plotting tools using the PDL/Gnuplot interface, inplemented as a Moose role.

ATTRIBUTES

This role add these attributes to the Xray::BLA object.

cbmax

Forced upper bound to the color range of the surface plot.

color

Color scheme for the palette used in mask surface plots. The color schemes are all monochrome, but of different hues. The possibilities are black, blue, red, orange, green, and purple. This can also be set to surprise, which will randomly choose one of the defined hues when the first plot is made.

palette

This contains the Gnuplot palette definition for the choice of color. This is the palette used for elastic and measurement images and is monotone.

palette

This contains the Gnuplot palette definition for surface plots such as the RXES plane. This multi-tone palette.

pdlplot

This is a reference to the PDL object used to make the plots.

METHODS

plot_mask

Make a surface plot of the current state of the elastic image.

$spectrum -> plot_mask;

This is plotted in the same orientation as ImageJ (i.e. (0,0) is in the upper, left corner. That's psychotic, but what can you do...?

plot_energy_point

Make a surface plot of a raw image.

$spectrum -> plot_energy_point;

This is plotted in the same orientation as ImageJ (i.e. (0,0) is in the upper, left corner.

plot_xanes

Make a plot of the computed HERFD.

$spectrum -> plot_xanes(title=>$title, pause=>0, mue=>$self->{mue}->GetValue);

The arguments are the title of the plot, whether to use Xray::BLA::Pause, and whether to overplot the HERFD with conventional XANES (if it exists),

plot_xes

Make a plot of the computed XES.

$spectrum -> plot_xanes(pause=>0, incident=>$incident, xes=>$self->{xesdata});

The arguments are whether to use Xray::BLA::Pause, aninteger identifying the incident energy, and a list reference containing the XES data.

plot_rixs

Make a surface plot of the RIXS plane.

plot_map

Make a surface plot of the energy map.

set_palette

Change the hue of the image plots. The choices are grey (the default), blue, green, orange, purple, and red.

$spectrum -> set_palette($color);

An unknown color is ignored. If you do

$spectrum -> set_palette("surprise");

then one of the hues will be chosen at random. Ooooh! Fun!

BUGS AND LIMITATIONS

Please report problems as issues at the github site https://github.com/bruceravel/BLA-XANES

Patches are welcome.

AUTHOR

Bruce Ravel (bravel AT bnl DOT gov)

http://github.com/bruceravel/BLA-XANES

The palettes were taken from gnuplot-colorbrewer at https://github.com/Gnuplotting/gnuplot-palettes, which is written and maintained by Anna Schneider and released under the Apache License 2.0. ColorBrewer is a project of Cynthia Brewer, Mark Harrower, and The Pennsylvania State University.