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 areblack
,blue
,red
,orange
,green
, andpurple
. This can also be set tosurprise
, 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 ofcolor
. 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!
DEPENDENCIES¶
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.
LICENCE AND COPYRIGHT¶
Copyright (c) 2006-2014,2016 Bruce Ravel, Jeremy Kropf. All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlgpl.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Xray::BLA and METIS are copyright © 2011-2014, 2016 Bruce Ravel and Jeremy Kropf – This document is copyright © 2016 Bruce Ravel
This document is licensed under The Creative Commons Attribution-ShareAlike License.
If this software and its documentation are useful to you, please consider supporting The Creative Commons.