The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
May 5th, 2024, 1:00pm
Pages: 1
Send Topic Print
can i interchange the x-axis and y-axis? (Read 4819 times)
cowell
Junior Member
**
Offline



Posts: 18
World
can i interchange the x-axis and y-axis?
Jan 26th, 2005, 10:58pm
 
in Cadence, after ploting the waveform, if i could interchange the x-axis and y-axis?

Back to top
 
 
View Profile cowell   IP Logged
Andrew Beckett
Senior Fellow
******
Offline

Life, don't talk to
me about Life...

Posts: 1742
Bracknell, UK
Re: can i interchange the x-axis and y-axis?
Reply #1 - Jan 28th, 2005, 10:24pm
 
There are several ways.

In the new waveform tool (wavescan), you need to double click on the x-axis, and you'll get the Axis attributes dialog appear. On this, you can click the cyclic next to "Plot vs" and pick the signal you want to use as the x axis. You'd then need to use the "xval" function in the calculator to get a waveform with the x-axis as the y-axis (if you see what I mean).

In AWD (the old waveform tool) the process is exactly the same, in fact - but you need to have plotted the signal you want to have as the x-axis (so you'll need to plot the signal and the xval'd signal).

Or you might just want to use this SKILL code:

Code:
(procedure (abTransposeXY var)
  (let (newWave)
	 (setq newWave (drCreateEmptyWaveform))
	 (drPutWaveformXVec newWave (drGetWaveformYVec var))
	 (drPutWaveformYVec newWave (drGetWaveformXVec var))
	 newWave
	 )
  )
 



(sorry, the indentation seems to have got scuppered by YABB here)

Get the signal in the calculator buffer, and then change it
to:

Code:
abTransposeXY(expression) 



where expression is the expression to plot the signal you want to transpose.

Regards,

Andrew.
Back to top
 
 
View Profile WWW   IP Logged
cowell
Junior Member
**
Offline



Posts: 18
World
Re: can i interchange the x-axis and y-axis?
Reply #2 - Jan 30th, 2005, 7:44pm
 
so kind of u , and i can catch what u said(except the part of code...)
Thanks a lot.
Back to top
 
 
View Profile cowell   IP Logged
Pages: 1
Send Topic Print
Copyright 2002-2024 Designer’s Guide Consulting, Inc. Designer’s Guide® is a registered trademark of Designer’s Guide Consulting, Inc. All rights reserved. Send comments or questions to editor@designers-guide.org. Consider submitting a paper or model.