public class HPlotJas extends Object
This API allows to perform an interactive fit after loading the data and rebin one-dimenstional arrays.
Constructor and Description |
---|
HPlotJas()
Construct a HPlot canvas with a single plot with the size 600x400.
|
HPlotJas(ArrayList<Object> olist)
Construct a Jas frame and prepare for plotting.
|
HPlotJas(String title)
Construct a Jas canvas with a plot with the size 600x400.
|
HPlotJas(String title,
ArrayList<Object> olist)
Construct a Jas frame and prepare for plotting.
|
HPlotJas(String title,
int xsize,
int ysize,
ArrayList<Object> olist)
Create HPlot canvas with several plots.
|
Modifier and Type | Method and Description |
---|---|
void |
add(ArrayList data)
Add all data as a list.
|
void |
close()
Close the canvas (and dispose all components).
|
void |
doc()
Show online documentation.
|
void |
draw(H1D h1)
Plot 1D histogram.
|
void |
export(String file)
Fast export of the canvas to an image file.
|
String |
getTitle()
Return title of this plotter.
|
static void |
main(String[] args) |
void |
update()
Update the current canvas.
|
void |
visible()
Set the canvas frame visible
|
void |
visible(boolean vs)
Set the canvas frame visible or not
|
public HPlotJas(String title, int xsize, int ysize, ArrayList<Object> olist)
title
- Titlexsize
- size in x directionysize
- size in y directionolist
- List of objects for drawing, such as P0D, P1D, P0I, H1D, H2P.public HPlotJas(String title, ArrayList<Object> olist)
title
- Titlelist
- list of objects to plot (H1D,P0D,P1D, etc)public HPlotJas(ArrayList<Object> olist)
list
- list of objects to plot (H1D,P0D,P1D, etc)public HPlotJas(String title)
title
- Titlepublic HPlotJas()
public void add(ArrayList data)
data
- list with input objectspublic void visible(boolean vs)
vs
- (boolean) true: visible, false: not visiblepublic void visible()
public void update()
public void export(String file)
No questions will be asked and existing file will be rewritten
file
- Output file with the proper extension (SVG, SVGZ, JPG, PNG,
PDF, EPS, PS). If no extension, PNG file is assumed.public void doc()
public String getTitle()
public void close()
public void draw(H1D h1)
h1
- Input H1D histogramstyle
- Plotter style.public static void main(String[] args)
Jas4pp 1.5 © Java Analysis Studio for Particle Physics