In XYPlot each series you display is a discrete function f[t] with a discrete set of t {t1, t2, ..., tn} and their corresponding values {f [t1], f [t2], ..., f [ tn]}.
- the domain of the function contains all possible values of
t . - the range of the function contains all possible values of the function
f[t] .
The important thing is that there can be several points in the function with the same value in the range axis, but each function point must have a unique value on the domain axis. For example: Bananas can have the same prize as Apples, but there can be two prizes for a banana (tell brokers about it!).
Usually the horizontal axis is the domain axis, but it can also be changed.
Then you have the Axis class, which contains many possible types of visual representations of the axes (logarithmic / linear / category / without labels / grid lines / blue axis line ...).
So, in general: Domain and range are mathematical definitions and represent some restrictions on the displayed data. Terms are used for a special kind of data (a classic form of function that everyone teaches in a primary school). They have nothing to do with their visual presentation. Thus, the range as well as the domain axis of the graph can be defined as CategoryAxis , a NumberAxis , a LogarithmicAxis or something else.
EDIT (for completeness): you can change the orientation of the graph (i.e. determine which axis is the axis of the range) using PlotOrientation.VERTICAL / PlotOrientation.HORIZONTAL .
source share