Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
finesse
pykat
Commits
9ce10105
Commit
9ce10105
authored
Nov 28, 2014
by
Andreas Freise
Browse files
adding QT backend selection, so that we don't depend on --pylab option
parent
b9b819f2
Changes
1
Hide whitespace changes
Inline
Side-by-side
examples/sagnac/master.py
View file @
9ce10105
from
pykat
import
finesse
from
pykat
import
finesse
from
pykat.commands
import
*
from
pykat.commands
import
*
import
copy
import
copy
import
pylab
as
pl
from
collections
import
namedtuple
from
collections
import
namedtuple
from
collections
import
OrderedDict
from
collections
import
OrderedDict
import
matplotlib
import
matplotlib
BACKEND
=
'Qt4Agg'
matplotlib
.
use
(
BACKEND
)
import
pylab
as
pl
formatter
=
matplotlib
.
ticker
.
EngFormatter
(
unit
=
''
,
places
=
0
)
formatter
=
matplotlib
.
ticker
.
EngFormatter
(
unit
=
''
,
places
=
0
)
formatter
.
ENG_PREFIXES
[
-
6
]
=
'u'
formatter
.
ENG_PREFIXES
[
-
6
]
=
'u'
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment