Simone,
> I have the following rows in my python script in order to setup scale and the
> reference point in the canvas.
>
> session.location.setrefgeo(47.57917,-122.13232,2.00000)
> session.location.refscale = 100.0
>
>
> Is there a way to define the size of the canvas?
You can set the size of the canvas by adding session metadata to your Python
script:
session.metadata.additem('canvas c1', '{name {Canvas1}} {refpt {0 0
47.5791667 -122.132322 2.0}} {scale 150.0} {size {300 300}}')
This is how the daemon preserves the canvas size when reconnecting to a running
session. Session metadata can be anything that is GUI-specific.
-Jeff
_______________________________________________
emane-users mailing list
[email protected]
http://pf.itd.nrl.navy.mil/mailman/listinfo/emane-users