public class PolarPlot extends Object
Use basic mapping - location of point on polar plot depends on its position on cell outline.
Modifier and Type | Field and Description |
---|---|
double |
kscale
Distance of polar plot from 0.
|
boolean |
labels
Whether to plot rho and theta labels.
|
protected Rectangle |
plotArea
Size and position of left upper corner of plot area.
|
double |
uscale
Distance of plot from edge.
|
Constructor and Description |
---|
PolarPlot(STmap mapCell,
Point2d gradientcoord)
Create PolarPlot object with default plot size.
|
Modifier and Type | Method and Description |
---|---|
void |
generatePlot(String filename)
Polar plot of mean of motility along frames.
|
void |
generatePlotFrame(String filename,
int frame)
Polar plot of one frame.
|
static double[] |
interpLinear(double[] x,
double[] y,
double[] xi)
http://www.java2s.com/Code/Java/Collections-Data-Structure/LinearInterpolation.htm
|
protected Rectangle plotArea
public double kscale
public double uscale
public boolean labels
public void generatePlotFrame(String filename, int frame) throws IOException
filename
- filenameframe
- frameIOException
- on file errorgeneratePlot(java.lang.String)
public void generatePlot(String filename) throws IOException
The position of point on polar plot depends on its position on cell outline, First point after shifting is that closest to selected gradient. It is plotted on angle 0.
filename
- Name of the svg file.IOException
- on file savepublic static double[] interpLinear(double[] x, double[] y, double[] xi) throws IllegalArgumentException
x
- coordinatesy
- coordinatesxi
- value to interpolate yiIllegalArgumentException
- wrong input arrays sizeCopyright © 2002–2019 Department of Computer Science, Warwick University. All rights reserved.