changing default plot window size from OCEAN

Discussion in 'Cadence' started by chava, Jan 3, 2005.

  1. chava

    chava Guest

    Hi All,

    I am not able change the default window size when I open a newWindow
    with the command w=newWindow(). I have added the following lines to my
    ..cdsenv and it works fine when I open waveform viewer from Analog
    Artist. I'm loosing a lot of resolution because of small default window
    size and I cannot change each window manually since it a part of long
    script that puts out many windows.

    asimenv.plotting width int 1072
    asimenv.plotting artistPlottingMode string "Append"
    asimenv.plotting x int 583
    asimenv.plotting icons boolean nil
    asimenv.plotting y int 403
    asimenv.plotting height int 703

    thanks in advance.

    Chaitanya Chava.
     
    chava, Jan 3, 2005
    #1
  2. Instead of using the simplified newWindow(), which is just a wrapper around
    awvCreatePlotWindow(), use awvCreatePlotWindow() directly as this supports a
    ?bBox keyword argument allowing you to specify the window size/location:

    awvCreatePlotWindow(?bBox list(100:100 1000:600))

    For example.

    The default location can also be set from an Xdefaults setting (this is
    covered in Chapter 1 of the "Analog Waveform User Guide" - and is done
    with something like:

    Opus*awvPlot: 500x500+0+0

    But that's not going to help you much from a program.

    Another approach might be to do:

    win=newWindow()
    hiResizeWindow(win newBBox)

    but I'd do the first method above...

    Andrew.
     
    Andrew Beckett, Jan 4, 2005
    #2
  3. chava

    chava Guest

    Thanks Andrew. your method worked for me.

    Chaitanya.
     
    chava, Jan 4, 2005
    #3
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.