• 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. SKILL to adjust width of legend area on ViVA graph

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 143
  • Views 14267
  • 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

SKILL to adjust width of legend area on ViVA graph

drdanmc
drdanmc over 5 years ago

TL;DR  - is there a way to control the width of the legends area on a ViVA graph window and also to control the widths of the individual columns?

I often do things like this in ocean scripts that are designed to run a bunch of sims, generate plots, and leave some PNG or EPS files for me.  In very simplified terms, stuff like this:

newWindow()

;; iterate over corners or configs

foreach(cfg all_corners_cfgs

  ;; run sim, grab a result and then

  plot(some_signal ?expr '("my_signal:cornerX:configY")

)

saveGraphImage(....)

The problem I often run into is that the legend area on the left of the graph window often isn't quite wide enough to show the full legend.  In the simple code above "my_signal:cornerX:configY" is fairly long and by default will get cut off.  If I'm running interactively, I can manually adjust how much of my window is used by the legend versus the graph and also the width of the "Name" column in the legend area.  For example:

default, note the legend is cut off.

after manually expanding the area on the left, but I went further than optimal and exposed the "Vis" column too:

example of a wide enough area on the left but too narrow "Name" column (plus "Vis") is still there:

and finally "Just Right"

What I see is any of these manual adjustments do find their way into the output of saveGraphImage() and I really would love my generated files to be "Just Right" and not the various others (cut off or with wasted space).  Since I often run sims in a fairly automated way, manual graph tweaks are really not welcome.

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 5 years ago

    I don't think there's a "just right" option, but there is at least this: awvSetLegendWidth(currentWindow() 400)

    Andrew.

    • Cancel
    • Vote Up +1 Vote Down
    • Cancel
  • drdanmc
    drdanmc over 5 years ago in reply to Andrew Beckett

    Thanks Andrew.  It isn't perfect but better than nothing for sure.  Much appreciated.  For anyone else reading this thread, it appears IC617 ISR15 is when awvSetLegendWidth() appeared.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel

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