com.panayotis.gnuplot.plot
Class Axis
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<String,String>
com.panayotis.gnuplot.PropertiesHolder
com.panayotis.gnuplot.plot.Axis
- All Implemented Interfaces:
- Serializable, Cloneable, Map<String,String>
public class Axis
- extends PropertiesHolder
This class represents the various axes of the plot. It is used to set various
axis-related parameters
- Author:
- teras
- See Also:
- Serialized Form
|
Method Summary |
String |
getName()
Get the name of this axis as a String. |
void |
setBoundaries(double from,
double to)
Define the area to plot. |
void |
setLabel(String label)
Set the label of this axis. |
void |
setLabel(String label,
String font,
int size)
Set the label and the font of the current axis |
void |
setLogScale(boolean log)
Set whether this axis is in logarithmic scale or not |
| Methods inherited from class java.util.HashMap |
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
getName
public String getName()
- Get the name of this axis as a String.
- Returns:
- The name of the axis. Usually it is "x" or "y".
setLogScale
public void setLogScale(boolean log)
- Set whether this axis is in logarithmic scale or not
- Parameters:
log - Set, if this axis is in logarithmic scale
setLabel
public void setLabel(String label)
- Set the label of this axis.
- Parameters:
label - THe label of this axis- See Also:
setLabel(String,String,int)
setLabel
public void setLabel(String label,
String font,
int size)
- Set the label and the font of the current axis
- Parameters:
label - The label of this axisfont - Font namesize - Font size
setBoundaries
public void setBoundaries(double from,
double to)
- Define the area to plot.
Note that if we have choosed log scale, then the values should be guaranteed to be
larger than zero. If the axis is in log scale, do not set a value less than zero
or else a plot error will occure.
- Parameters:
from - The minimum valueto - The maximum value
Copyright © 2013. All Rights Reserved.