• 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 Design
  3. Generate legenend on a plot

Stats

  • Locked Locked
  • Replies 19
  • Subscribers 124
  • Views 23088
  • 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

Generate legenend on a plot

wgtkan
wgtkan over 12 years ago
I am using Virtuoso Design environment version IC6.1.5-64b.500.15 and I am trying to generate a parametric simulation with legends showing on the plot

I am able to carry out the parametric simulation but the legend is not showing. How do I produce the legend as shown on this diagram?

Thanks in advance.
Legened plot.pdf
  • Cancel
  • Andrew Beckett
    Andrew Beckett over 12 years ago

    Graph->Properties->Graph Options, then alter the Legend Position. The right subwindow shows where I've set this to "above", the left subwindow shows the default which is "left".

    Andrew.

     

    • legendLeftInside.png
    • View
    • Hide
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • wgtkan
    wgtkan over 12 years ago

     Thank you very much for your promt response Andrew.

    Best regards.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • wgtkan
    wgtkan over 12 years ago
    Hello Andrew:

    These plots are very clean. Are these in png format and Helvetica font? I am using VIVA (virtuoso visualization and analysis) Version IC6.1.5-64b.500.15. I wanted to import my waveforms into word format for presentation.

    Regards and thanks in advance.
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 12 years ago

    It was actually a region screenshot with ksnapshot (not sure why I did that rather than File->Save Image, which if I use "Exact Copy of Window" should give me exactly what I get on the screen).

    I have a few problems with the fonts on my laptop - this is related to some font limitations in the Qt infrastructure we're using - so whilst the UI suggested that the plots you were seeing were using Helvetica, they weren't really (as you can see there are some serifs on the fonts).

    I normally use this bit of code to try fixing up my fonts - they actually set them to the default values:

    procedure(abFixFonts()
     let((curVal toolpartition pat)
        pat=pcreCompile("^Default")
        foreach(partition '(axis horizMarker referenceLineMarker vertMarker pointMarker
            refPointMarker specMarker interceptMarker circleMarker multiDeltaMarker
            transEdgeMarker graphLabel probe polarGrid smithGrid)
            sprintf(toolpartition "viva.%s" partition)
            when(envIsVal(toolpartition "font")
                curVal=envGetVal(toolpartition "font")
                printf("replacing %s font\n" toolpartition)
                envSetVal(toolpartition "font" 'string
                    pcreReplace(pat curVal "Helvetica" 1)
                )
            )
        )
     )
    )

    Here's a resulting Save Image from having picked the above.

    Regards,

    Andrew

    • twoSubwindows.png
    • View
    • Hide
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • wgtkan
    wgtkan over 12 years ago

    Thank you very much indeed Andrew.

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • wgtkan
    wgtkan over 12 years ago

    I used the code to fix the formatting issues. I
    entered the code in the CIW and this is the plot I am getting:

    Best regards,

    Tuni



     

    • saved.png
    • View
    • Hide
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • wgtkan
    wgtkan over 12 years ago
    I used the code to fix the formatting issues. I entered the code in the CIW and this is the plot I am getting:

    Best regards,

    Tuni
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 12 years ago

    Hi Tuni,

    After loading the code in the CIW, did you run the function abFixFonts() - I don't think so because your fonts still appear to have serifs.

    Kind Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • wgtkan
    wgtkan over 12 years ago

     Hello Andrew:

    AFter loading the code in the CIW, where do I run the function abFixFonts()? Do I have to load it in the CIW:

    Thanks. 

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 12 years ago

    Just type abFixFonts() in the CIW (that's not "loading" it; it's executing the function). You could also do:

    load("abFixFonts.il")
    abFixFonts()

    in your .cdsinit so that it runs it each time you start Virtuoso (if it helps your problem). I'm assuming in the above you've saved the code into a file called abFixFonts.il

    Regards,

    Andrew.

    • 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