The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl
Design >> Analog Design >> can i interchange the x-axis and y-axis?
https://designers-guide.org/forum/YaBB.pl?num=1106809091

Message started by cowell on Jan 26th, 2005, 10:58pm

Title: can i interchange the x-axis and y-axis?
Post by cowell on Jan 26th, 2005, 10:58pm

in Cadence, after ploting the waveform, if i could interchange the x-axis and y-axis?


Title: Re: can i interchange the x-axis and y-axis?
Post by Andrew Beckett on 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.

Title: Re: can i interchange the x-axis and y-axis?
Post by cowell on Jan 30th, 2005, 7:44pm

so kind of u , and i can catch what u said(except the part of code...)
Thanks a lot.

The Designer's Guide Community Forum » Powered by YaBB 2.2.2!
YaBB © 2000-2008. All Rights Reserved.