Topic
scaling of x achsis
- This topic has 3 replies and 2 voices and was last updated 13 years, 9 months ago ago by Markus Janssen.
-
AuthorPosts
-
15.08.2011 at 15:47 #34328Markus JanssenParticipant
Hello,
I would like to scale an x-achis with FPScript.
e.g. The x-achsis of a spectrum should be 10 times from the x-value of the maximum
I’ve tried: [i]10*GlobalMaximum(Signal, EVENT_EXTRACT).X[/i]
Why doesnt this work?
thanks
15.08.2011 at 15:47 #34331Markus JanssenParticipantHello,
I would like to scale an x-achis with FPScript.
e.g. The x-achsis of a spectrum should be 10 times from the x-value of the maximum
I’ve tried: [i]10*GlobalMaximum(Signal, EVENT_EXTRACT).X[/i]
Why doesnt this work?
thanks
16.08.2011 at 09:23 #34329Bernhard KantzParticipantThe scaling end value must be a scalar. For that reason the return value of the FPScript formula also must be a scalar. Use the index operator to get a scalar instead of a data series:
10*GlobalMaximum(Signal, EVENT_EXTRACT).X[0]
17.08.2011 at 15:19 #34330Markus JanssenParticipantThank you very much Mr. Support :wink:,
now ist works.
There are so many details… -
AuthorPosts
- You must be logged in to reply to this topic.