Select Git revision
SkinManager.cpp
-
Charlie Fenton authored
MGR: Add 6 new tags to allow the backgrounds of the Simple View and Simple Preferences dialog to be anchored at any of 9 points, for flexibility in placement of the logo or other graphic element that should always be visible. Vertical anchor is one of: <anchor_vertical_top>, <anchor_vertical_center> or <anchor_vertical_bottom>. Horizontal anchor is one of: <anchor_horizontal_left>, <anchor_horizontal_center>, <anchor_horizontal_right>. If none of the tags are present, these default values are used: The defaults for the main Simple View background are <anchor_vertical_top> and <anchor_horizontal_left>. The defaults for the Simple View Preferences dialog background are <anchor_vertical_center> and <anchor_horizontal_center>.
Charlie Fenton authoredMGR: Add 6 new tags to allow the backgrounds of the Simple View and Simple Preferences dialog to be anchored at any of 9 points, for flexibility in placement of the logo or other graphic element that should always be visible. Vertical anchor is one of: <anchor_vertical_top>, <anchor_vertical_center> or <anchor_vertical_bottom>. Horizontal anchor is one of: <anchor_horizontal_left>, <anchor_horizontal_center>, <anchor_horizontal_right>. If none of the tags are present, these default values are used: The defaults for the main Simple View background are <anchor_vertical_top> and <anchor_horizontal_left>. The defaults for the Simple View Preferences dialog background are <anchor_vertical_center> and <anchor_horizontal_center>.
test_put.py 647 B
from pykat import finesse
from pykat.detectors import *
from pykat.components import *
from pykat.commands import *
from pykat.structs import *
import numpy as np
import pylab as pl
code = """
l l1 1 0 0 n1
s s1 10 1 n1 n2
mod eom 10 0.1 1 am 0 n2 n3
"""
kat = finesse.kat()
kat.parseCommands(code)
kat.add(pd('pdp',1,'n3'))
kat.add(pd('pdm',1,'n3'))
kat.add(xaxis("lin", [0, 1000], kat.eom, "f", 100))
kat.pdp.f1.put(kat.xaxis.x)
kat.pdm.f1.put(kat.xaxis.mx)
out = kat.run(printout=0, printerr=0)
pl.figure()
pl.plot(out.x, out["pdp"], out.x, out["pdm"])
pl.xlabel(out.xlabel)
pl.ylabel("Intensity [W]")
pl.legend(out.ylabels)
pl.show()