Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zhang, Tong
Online Model App
Commits
e0b2e310
Commit
e0b2e310
authored
Jul 22, 2021
by
Tong Zhang
Browse files
REF: Show xylabels for ellipse drawing.
parent
0fedba14
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/myApp/app.py
View file @
e0b2e310
...
...
@@ -188,14 +188,19 @@ class MyAppWindow(BaseAppForm, Ui_MainWindow):
anote
=
False
)
def
_plot_ellipse
(
self
,
figure_obj
,
params
,
**
kws
):
xoy
=
kws
.
get
(
'xoy'
,
'x'
)
xlbl
=
f
"
{
xoy
}
[mm]"
ylbl
=
f
"
{
xoy
}
' [mrad]"
figure_obj
.
clear_figure
()
draw_beam_ellipse_with_params
(
params
,
ax
=
figure_obj
.
axes
,
color
=
kws
.
get
(
'color'
,
'b'
),
factor
=
kws
.
get
(
'factor'
,
4
),
xoy
=
kws
.
get
(
'xoy'
,
'x'
)
,
xoy
=
xoy
,
fill
=
kws
.
get
(
'fill'
,
'g'
),
anote
=
kws
.
get
(
'anote'
,
False
))
figure_obj
.
setFigureXlabel
(
xlbl
)
figure_obj
.
setFigureYlabel
(
ylbl
)
figure_obj
.
update_figure
()
...
...
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