From daniel.l.dietrich at nasa.gov Mon Apr 29 08:34:23 2019
From: daniel.l.dietrich at nasa.gov (Dietrich, Daniel L. (GRC-LTX0))
Date: Mon, 29 Apr 2019 15:34:23 +0000


Subject: Dual x-axis ???
In-Reply-To: <BL0PR0901MB3138E8B256369EAADDC94B3CAF390@BL0PR0901MB3138.namprd09.prod.outlook.com>
References: <B2D685B7-0E89-459C-8874-650ACB50685B@nasa.gov>
<BL0PR0901MB3138E8B256369EAADDC94B3CAF390@BL0PR0901MB3138.namprd09.prod.outlook.com>
Message-ID: <A9F23C6E-DEEE-4A7E-BD5A-A5EA538FCAEB@nasa.gov>

Yeah, that's my default option (with the new trace hidden). The only problem is when I scroll around the data I'd like both axes to change simultaneously. I was hoping to avoid having to change my scripts to change the upper axis whenever I scroll or change the bottom axis. I was hoping I could just mirror the bottom axis and have it change whenever I change the bottom axis.

Thanks,

Dan

?On 4/29/19, 11:29 AM, "Info-igor on behalf of Schwartz, Stephen via Info-igor" <info-igor-bounces at lists.info-igor.org on behalf of info-igor at lists.info-igor.org> wrote:

why not just plot the data a second time, using top axis for time, and left axis for y. The data would superimpose on each other but the top and bottom scales would differ as you wish. If you use the same line styles for both traces you won't notice the difference, or you could set one of them to zero line width if the thought of plotting something twice offends your sense of frugality. Or am I missing something? -steve

________________________________________
From: Info-igor <info-igor-bounces at lists.info-igor.org> on behalf of Dietrich, Daniel L. (GRC-LTX0) via Info-igor <info-igor at lists.info-igor.org>
Sent: Monday, April 29, 2019 10:50 AM
To: info-igor at lists.info-igor.org
Cc: Dietrich, Daniel L. (GRC-LTX0)
Subject: Dual x-axis ???

Good Morning,

I think this is probably simple and that I?m just missing, so hopefully someone can point me in the right direction.

I have data in an x-y pair where the x-axis is time (it is not uniformly spaced though so I can?t use internal scaling). The format of the time wave (xwave) is actually units of date/time which Igor handles easily and nicely. When I display and calculate, however, it is more convenient to use elapsed time from some event time in the data. So I create a second x-wave (xwave2) which is a duplicate of xwave defined as (xwave2 = xwave ? xwave[pzero] ) where pzero is the zero point in the xwave. For most of the calculations that is the most convenient format. When I display some graphs, however, I would like to display ywave vs xwave2 but also have a mirror axis on the top of xwave so I can see the date and time that some critical point of the data occurred but have the elapsed seconds as the main x-axis. I looked at the Transform Package which is close, but doesn?t seem to quite do it.

Also it goes without saying that if I change the scale of the x-axis, I?d like the top mirror axis to change as well.

Thanks in advance for your help.

Cheers,

Dan

Dan

Daniel L. Dietrich
NASA Glenn Research Center
Daniel.L.Dietrich at nasa.gov

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.info-2Digor.org_private.cgi_info-2Digor-2Dinfo-2Digor.org_attachments_20190429_98df63b4_attachment.html&d=DwIGaQ&c=aTOVZmpUfPKZuaG9NO7J7Mh6imZbfhL47t9CpZ-pCOw&r=_T9ljJrhU3Oe9oOQzIf1jw&m=4lIgIsjgVy_1MNI4vXRKY9CYksrYvbTFI8v1c31g9jQ&s=630wIjMz1fEmWHzF0NSQlQOq0fnfRiggKzsdDQoyp20&e=>
_______________________________________________
Info-igor mailing list
Info-igor at lists.info-igor.org
https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.info-2Digor.org_listinfo.cgi_info-2Digor-2Dinfo-2Digor.org&d=DwIGaQ&c=aTOVZmpUfPKZuaG9NO7J7Mh6imZbfhL47t9CpZ-pCOw&r=_T9ljJrhU3Oe9oOQzIf1jw&m=4lIgIsjgVy_1MNI4vXRKY9CYksrYvbTFI8v1c31g9jQ&s=8hT-A94F_VwIK_hTVnMDoCx8sy8Q4kRWcZlItb01vV8&e _______________________________________________
Info-igor mailing list
Info-igor at lists.info-igor.org
https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.info-2Digor.org_listinfo.cgi_info-2Digor-2Dinfo-2Digor.org&d=DwIF-g&c=ApwzowJNAKKw3xye91w7BE1XMRKi2LN9kiMk5Csz9Zk&r=8YkgNWD1VanUcGdwey5Dw76OAxWA9rs1pMX9QY_rkNo&m=HGbZYXcv3OVUHkIHyL6lkGSp923EYGs_AL5cgZhTESM&s=t8f-b1K80GANIFHU5mhmv8FyfRDSDqB9pg09TRk-Ca4&e