This is a pre-processed version of the web page http://info-igor.org/IgorMessages/2019/04/Info-Igor_2019-04_0025.html. In this copy, the search terms https://знакомства.онлайн/город/дублин/ (0) have been highlighted to make them easier to find. If a search term was not found, then it may exist in the non-visible title, description, keywords or URL fields, or the contents of this document may have changed since it was indexed.

Some web pages will not display properly in this pre-processor. Visit those pages directly by following this link. Visit the page itself before bookmarking it.

The search engine that brought you here is not necessarily affiliated with, nor responsible for, the contents of this page.

Dual x-axis From daniel.l.dietrich at nasa.gov Mon Apr 29 08:58:37 2019
From: daniel.l.dietrich at nasa.gov (Dietrich, Daniel L. (GRC-LTX0))
Date: Mon, 29 Apr 2019 15:58:37 +0000


Subject: Dual x-axis ???
In-Reply-To: <190D1FEF-D821-4939-9EE1-097384492CD1@lfor.de>
References: <B2D685B7-0E89-459C-8874-650ACB50685B@nasa.gov>
<BL0PR0901MB3138E8B256369EAADDC94B3CAF390@BL0PR0901MB3138.namprd09.prod.outlook.com>
<A9F23C6E-DEEE-4A7E-BD5A-A5EA538FCAEB@nasa.gov>
<190D1FEF-D821-4939-9EE1-097384492CD1@lfor.de>
Message-ID: <F44003B2-B635-403A-8A34-DEDFCEB346BF@nasa.gov>

Hi Johannes,

Thanks, that looks like exactly what I need. Much appreciated.

Cheers,

Dan


?On 4/29/19, 11:48 AM, "Info-igor on behalf of Johannes Steinmann" <info-igor-bounces at lists.info-igor.org on behalf of igor-list at lfor.de> wrote:

Hi Dan,

this sounds like you want to use a free axis:
DisplayHelpTopic ?Newfreeaxis"

It?s an additional axis, which you can ?hook? to another axis with some math.

Copy this function to your Procedure window and compile before executing the code below:
Function axhook(s)
STRUCT WMAxisHookStruct &s

s.max= s.max - s.min //sets maximum of the axis to max-min of parent axis
s.min= s.min - s.min //sets minimum of the axis to zero
return 0
End


NewFreeAxis/T top_shifted // creates a new axis at the top
ModifyFreeAxis top_shifted, master=bottom, hook=axhook // connects the new axis with the bottom axis and applies hook function


This leads to an axis which starts at 0 and has the same increment as the bottom axis. If you zoom in, it will still start at zero, which is probably not what you want. If you want to shift the axis by a constant, you can just replace "- s.min? with your constant.

Cheers,
Johannes

> On 29. Apr 2019, at 17:34, Dietrich, Daniel L. (GRC-LTX0) via Info-igor <info-igor at lists.info-igor.org> wrote:
>
> 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 >
>
> _______________________________________________
> 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=ApwzowJNAKKw3xye91w7BE1XMRKi2LN9kiMk5Csz9Zk&r=8YkgNWD1VanUcGdwey5Dw76OAxWA9rs1pMX9QY_rkNo&m=iSre6Xf-SC3isqEF7Nmw-XgQYer0wScsJuKGZkoRIro&s=Lru1FevhdAj5knCc1HYVjjH4MjvyXYui3ZcS0B-EQAQ&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=ApwzowJNAKKw3xye91w7BE1XMRKi2LN9kiMk5Csz9Zk&r=8YkgNWD1VanUcGdwey5Dw76OAxWA9rs1pMX9QY_rkNo&m=iSre6Xf-SC3isqEF7Nmw-XgQYer0wScsJuKGZkoRIro&s=Lru1FevhdAj5knCc1HYVjjH4MjvyXYui3ZcS0B-EQAQ&e