• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Custom IC SKILL
  3. Plotting and Saving results as PNG

Stats

  • Locked Locked
  • Replies 3
  • Subscribers 143
  • Views 15795
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Plotting and Saving results as PNG

shayansh
shayansh over 13 years ago

 Hi,

I am trying to write some code to plot a few eye diagrams and then save the result in a PNG file. I am using Cadence Version: "IC.6.1.5.500.11". What i have done is declared a variable in the outputs with the expression load("plotrand.ocn"). Inside the plotrand.ocn file, i have placed the following code. The results plot, the eye diagrams show up correctly, and they are in two subwindows just like i want it. However, when i say save the file, it only saves one of the subwindows. The PNG file does not include both of the subwindows as i want it. 

There are two other things i would like to do if possible!

1) To resize the window before saving the PNG file. I have tried the awvResizeWindow as well as "hiResizeWindow(awvGetCurrentWindow() list(0:0 1400:1050))" with no luck.

2) To remove the legend that is displayed on the side and make it display it on the "inside". This can be achieved through the menues, but i wanted to do it automatically. 

Thanks,

Shayan

Contents of "plotrand.ocn"

real ENDTIME = 0;
real STARTTIME = 0;
hardCopyOptions(?hcOutputFile "test3.png")
clearAll()

DFE_Eye = eyeDiagram(VT("/Veq_dfe") STARTTIME ENDTIME 3.3333e-10)
plot( DFE_Eye ?expr '( "DFE_Eye" ) )
yLimit( list(-400m 400m) ?stripNumber 1])

number = addSubwindow()
LinearEQ_Eye = eyeDiagram(VT("/Veq") STARTTIME ENDTIME 3.3333e-10)
plot( LinearEQ_Eye ?expr '( "LinearEQ_Eye" ) )
yLimit( list(-400m 400m) ?stripNumber 1])


hardCopyOptions(?hcOutputFile "test3.png")
hardCopy()

  • Cancel
Parents
  • Andrew Beckett
    Andrew Beckett over 13 years ago

    I just checked (I was sure I checked a few days ago, but I thought I'd check again). I did:

    hardCopyOptions(?hcOutputFile "./test.png" ?hcMakeExactCopy t)
    hardCopy()

    and I got this picture.

    Andrew.

    • test.png
    • View
    • Hide
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Andrew Beckett
    Andrew Beckett over 13 years ago

    I just checked (I was sure I checked a few days ago, but I thought I'd check again). I did:

    hardCopyOptions(?hcOutputFile "./test.png" ?hcMakeExactCopy t)
    hardCopy()

    and I got this picture.

    Andrew.

    • test.png
    • View
    • Hide
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
No Data

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information