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
Sebastian Steinlechner
pykat
Commits
ac775064
Commit
ac775064
authored
Aug 17, 2015
by
Daniel Brown
Browse files
fixing xaxis limits
parent
9d9aafe6
Changes
1
Hide whitespace changes
Inline
Side-by-side
pykat/commands.py
View file @
ac775064
...
...
@@ -361,14 +361,14 @@ class xaxis(Command):
def
getFinesseText
(
self
):
if
(
self
.
_kat
.
noxaxis
):
return
'# noaxis is true, switching xaxis off'
# store either the component name of the string provided
comp_name
=
self
.
__comp
.
name
if
hasattr
(
self
.
__comp
,
"name"
)
else
self
.
__comp
param_name
=
self
.
__param
.
name
if
isinstance
(
self
.
__param
,
Param
)
else
self
.
__param
return
'{axis_type} {0} {1} {2} {3:.16g} {4:.16g} {5}'
.
format
(
comp_name
,
param_name
,
self
.
scale
,
min
(
self
.
limits
),
max
(
self
.
limits
)
,
self
.
steps
,
axis_type
=
self
.
_axis_type
);
self
.
limits
[
0
],
self
.
limits
[
1
]
,
self
.
steps
,
axis_type
=
self
.
_axis_type
);
class
x2axis
(
xaxis
):
def
__init__
(
self
,
scale
,
limits
,
param
,
steps
,
comp
=
None
,
axis_type
=
"x2axis"
):
...
...
Write
Preview
Markdown
is supported
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