Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CCS
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Marko Mecina
CCS
Commits
c57558a0
Commit
c57558a0
authored
1 year ago
by
Marko Mecina
Browse files
Options
Downloads
Patches
Plain Diff
add version check for initialisation of matplotlib navigation toolbar
parent
f10d2b26
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Ccs/plotter.py
+8
-2
8 additions, 2 deletions
Ccs/plotter.py
with
8 additions
and
2 deletions
Ccs/plotter.py
+
8
−
2
View file @
c57558a0
import
json
import
os.path
from
packaging
import
version
import
struct
import
threading
import
time
...
...
@@ -32,6 +33,8 @@ from sqlalchemy.sql.expression import func
import
importlib
MPL_VERSION
=
version
.
parse
(
matplotlib
.
_get_version
())
cfg
=
confignator
.
get_config
(
check_interpolation
=
False
)
project
=
'
packet_config_{}
'
.
format
(
cfg
.
get
(
'
ccs-database
'
,
'
project
'
))
...
...
@@ -266,8 +269,11 @@ class PlotViewer(Gtk.Window):
return
canvas
def
_create_navbar
(
self
):
# navbar = NavigationToolbarX(self.canvas, self)
navbar
=
NavigationToolbar
(
self
.
canvas
)
# , window=self)
# window argument to be removed
if
MPL_VERSION
<
version
.
parse
(
'
3.6.0
'
):
navbar
=
NavigationToolbar
(
self
.
canvas
,
self
)
else
:
navbar
=
NavigationToolbar
(
self
.
canvas
)
limits
=
Gtk
.
HBox
()
self
.
xmin
=
Gtk
.
Entry
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment