changing default plot window size from OCEAN

C

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.
 
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.

On 3 Jan 2005 12:59:37 -0800, "chava" <cchava@gmail.com> wrote:

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.
 

Welcome to EDABoard.com

Sponsor

Back
Top