Bug 403304 - Can't figure out how to plot data against second y-axis
Summary: Can't figure out how to plot data against second y-axis
Status: RESOLVED FIXED
Alias: None
Product: LabPlot2
Classification: Applications
Component: frontend (show other bugs)
Version: latest
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Stefan Gerlach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-17 11:36 UTC by Michi
Modified: 2021-02-05 12:57 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Dual scale graph (28.94 KB, image/png)
2019-03-11 21:35 UTC, Justin
Details
Scidavis working example (23.73 KB, text/html)
2020-04-21 10:48 UTC, Iacopo Benesperi
Details
Scidavis working example (png file) (1.33 MB, image/png)
2020-04-21 10:49 UTC, Iacopo Benesperi
Details
Scidavis working example (23.73 KB, application/octet-stream)
2020-04-21 10:50 UTC, Iacopo Benesperi
Details
IPCE project screenshot in LabPlot master (109.61 KB, image/png)
2021-02-05 12:54 UTC, Stefan Gerlach
Details
IPCE project (37.13 KB, application/x-labplot2)
2021-02-05 12:55 UTC, Stefan Gerlach
Details
Axes ranges example (82.67 KB, image/png)
2021-02-05 12:56 UTC, Stefan Gerlach
Details
Axes range project (22.53 KB, application/x-labplot2)
2021-02-05 12:57 UTC, Stefan Gerlach
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michi 2019-01-17 11:36:54 UTC
although an xy-plot can have multiple x- and y-axis I can't find a way how to map certain data to either of those axis.

It could also be my ignorance of course

thx Michi
Comment 1 Alexander Semke 2019-01-19 19:52:18 UTC
(In reply to Michi from comment #0)
> although an xy-plot can have multiple x- and y-axis I can't find a way how
> to map certain data to either of those axis.
> 
> It could also be my ignorance of course
> 
> thx Michi
Unfortunately, what you're trying to achieve is not possible yet in LabPlot. The additional axes in LabPlot have a different meaning, they allow the user to "format" certain data range differently (use a different number of ticks, different scaling and labels, etc.) for certain parts of the visible data regions. New axes don't change the data ranges. Those are determined by the data range properties as defined in the properties dock widget of the plot.

We need to re-think our current approach for how we handle axes and to also implement the mapping of data to new axes, as you described. This is what many other users have asked for already, too.
Comment 2 Justin 2019-03-11 21:35:09 UTC
Created attachment 118725 [details]
Dual scale graph
Comment 3 Justin 2019-03-11 21:37:03 UTC
As an addition to this, it would be really helpful to scale the data against the given axis.  I would like to be able to have one set of data plotted linearly and the other logarithmic.  Right now all log(y) seems to do is change the tic spacing.
Comment 4 Iacopo Benesperi 2020-04-21 10:48:25 UTC
Created attachment 127739 [details]
Scidavis working example

This is a Scidavis project file containing a working example of what should be implemented in Labplot. This is also explained in task T13016: https://phabricator.kde.org/T13016
Comment 5 Iacopo Benesperi 2020-04-21 10:49:03 UTC
Created attachment 127740 [details]
Scidavis working example (png file)

Image version of the scidavis working example.
Comment 6 Iacopo Benesperi 2020-04-21 10:50:17 UTC
Created attachment 127741 [details]
Scidavis working example

Re-attached file with the correct mime type.
Comment 7 Stefan Gerlach 2021-02-05 12:52:37 UTC
LabPlot (master) now supports multiple plot ranges. More details in https://phabricator.kde.org/T13016
Find screenshots and example projects attached.
Comment 8 Stefan Gerlach 2021-02-05 12:54:39 UTC
Created attachment 135441 [details]
IPCE project screenshot in LabPlot master
Comment 9 Stefan Gerlach 2021-02-05 12:55:10 UTC
Created attachment 135442 [details]
IPCE project
Comment 10 Stefan Gerlach 2021-02-05 12:56:34 UTC
Created attachment 135443 [details]
Axes ranges example
Comment 11 Stefan Gerlach 2021-02-05 12:57:00 UTC
Created attachment 135444 [details]
Axes range project