Home > Community > Forums > Custom IC Design > Generate legenend on a plot

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 Generate legenend on a plot 

Last post Mon, Mar 4 2013 1:47 AM by Andrew Beckett. 19 replies.
Started by wgtkan 27 Feb 2013 10:03 PM. Topic has 19 replies and 2324 views
Page 1 of 2 (20 items) 1 2 Next >
Sort Posts:
  • Wed, Feb 27 2013 10:03 PM

    • wgtkan
    • Top 150 Contributor
    • Joined on Wed, Jan 30 2013
    • Gainesvlle, FL
    • Posts 54
    • Points 870
    Generate legenend on a plot Reply
    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.
    • Post Points: 20
  • Thu, Feb 28 2013 2:06 AM

    Re: Generate legenend on a plot Reply

    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.

     


    • Post Points: 35
  • Thu, Feb 28 2013 7:00 AM

    • wgtkan
    • Top 150 Contributor
    • Joined on Wed, Jan 30 2013
    • Gainesvlle, FL
    • Posts 54
    • Points 870
    Re: Generate legenend on a plot Reply

     Thank you very much for your promt response Andrew.

    Best regards.

    • Post Points: 5
  • Thu, Feb 28 2013 8:57 PM

    • wgtkan
    • Top 150 Contributor
    • Joined on Wed, Jan 30 2013
    • Gainesvlle, FL
    • Posts 54
    • Points 870
    Re: Generate legenend on a plot Reply
    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.
    • Post Points: 20
  • Fri, Mar 1 2013 9:45 AM

    Re: Generate legenend on a plot Reply

    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


    • Post Points: 35
  • Fri, Mar 1 2013 10:40 AM

    • wgtkan
    • Top 150 Contributor
    • Joined on Wed, Jan 30 2013
    • Gainesvlle, FL
    • Posts 54
    • Points 870
    Re: Generate legenend on a plot Reply

    Thank you very much indeed Andrew.

     

    • Post Points: 5
  • Fri, Mar 1 2013 10:58 AM

    • wgtkan
    • Top 150 Contributor
    • Joined on Wed, Jan 30 2013
    • Gainesvlle, FL
    • Posts 54
    • Points 870
    Re: Generate legenend on a plot Locked Reply

    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



     


    • Post Points: 5
  • Fri, Mar 1 2013 10:59 AM

    • wgtkan
    • Top 150 Contributor
    • Joined on Wed, Jan 30 2013
    • Gainesvlle, FL
    • Posts 54
    • Points 870
    Re: Generate legenend on a plot Reply
    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
    • Post Points: 20
  • Fri, Mar 1 2013 11:02 AM

    Re: Generate legenend on a plot Reply

    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.

    • Post Points: 20
  • Fri, Mar 1 2013 11:24 AM

    • wgtkan
    • Top 150 Contributor
    • Joined on Wed, Jan 30 2013
    • Gainesvlle, FL
    • Posts 54
    • Points 870
    Re: Generate legenend on a plot Reply

     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. 

     

    • Post Points: 20
  • Fri, Mar 1 2013 12:22 PM

    Re: Generate legenend on a plot Reply

    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.

    • Post Points: 5
  • Fri, Mar 1 2013 12:29 PM

    • wgtkan
    • Top 150 Contributor
    • Joined on Wed, Jan 30 2013
    • Gainesvlle, FL
    • Posts 54
    • Points 870
    Re: Generate legenend on a plot Reply

     I have to save the code as abFixFonts.il in my working directory and write load('abFixFonts.i'") and abFixFonts() in my .cdsinit?

    Thanks in advance.

    • Post Points: 20
  • Fri, Mar 1 2013 12:33 PM

    Re: Generate legenend on a plot Reply

    Yes, or you can paste it into your CIW and type abFixFonts() in the CIW. Note that the load call that you wrote above should be load("abFixFonts.il")  (not single quotation marks).

    Andrew.

    • Post Points: 20
  • Fri, Mar 1 2013 12:44 PM

    • wgtkan
    • Top 150 Contributor
    • Joined on Wed, Jan 30 2013
    • Gainesvlle, FL
    • Posts 54
    • Points 870
    Re: Generate legenend on a plot Reply

    Hello Andrew:

     load("abFixFonts.il")
    abFixFonts()

    That is what I have added in my .cdsinit file. I am getting a warning message that it is not a valid path. I see that my simulations are being saved at tmp directory to prevent from files overcrowding my alloted quota. WARNING* artSetWindowDataDir /spectre/schematic" is not a valid data directory. I do I change the waveform directory to save it into the tmp directory?

    Thank you again.

     

    • Post Points: 20
  • Fri, Mar 1 2013 12:54 PM

    Re: Generate legend on a plot Reply

    You're getting a warning that what is not a valid path? Showing the precise details from the CIW or CDS.log really would help, as this warning can't be related to the code I sent.

    There's nothing in the code that can produce that artSetWindowDataDir warning. I think you probably need to show the entire info from the CIW around the warning - my guess is that you're showing part of the error message. 

    If the simulation results are saved in /tmp, presumably something in your environment is setting the cdsenv for the projectDir.

    There should be no need to change the waveform dir to save it into the tmp dir. 

    Andrew.

     

    • Post Points: 20
Page 1 of 2 (20 items) 1 2 Next >
Sort Posts:
Started by wgtkan at 27 Feb 2013 10:03 PM. Topic has 19 replies.