Independent data ranges (independent axes) are something that is currently missing in Labplot. Due to this, a number of plots cannot be plotted with Labplot. In the attached pdf is a complete proposal on how to implement this feature in the software, together with other suggestions related to this implementation to make the life of the user easier. This task is also tied to bug number 403304, to which I have attached a Scidavis project file to give you a working example to work with while implementing these features.
Additional links:
- https://veusz.github.io/examples/ - multiple axes example here
- https://www.originlab.com/doc/Tutorials/MultiAxes-Plot
- https://plotly.com/chart-studio-help/excel/graph-with-multiple-axes/
- https://de.mathworks.com/help/matlab/creating_plots/plotting-with-two-y-axes.html
- https://matplotlib.org/gallery/api/two_scales.html
Current LP status:
- relevant classes: Plot,Axis,Curve
- A Plot has a single x- and y-range
- A Plot can have multiple axes of type H or V (bound to x- or y-range of a Plot respectively)
- A Curve is using the x- and y-range of the Plot
Scidavis:
- A Table (Curve) has an x- and an y-Axis
- A Plot has 4 Scales (Ranges) and 4 Axes (LRBT)
New Implementation:
- A plot contains multiple ranges (x- and y-ranges) and multiple plot ranges (internally: "coordinate systems")
- Every plot range contains the index to one x- and one y-range
- Worksheet elements (curve, axis, etc.) contain the index of one plot range