mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
refactoring: refacto frictions & stricklers.
This commit is contained in:
1 parent
b430cbb62b
commit
4ce597a2a0
7 files changed
+72
-104
No files matched your search
@@ -17,7 +17,7 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from tools import timer, flatten
|
||||
from View.Plot.APlot import APlot
|
||||
from View.Tools.PamhyrPlot import PamhyrPlot
|
||||
|
||||
from PyQt5.QtCore import (
|
||||
QCoreApplication
|
||||
@@ -25,14 +25,7 @@ from PyQt5.QtCore import (
|
||||
|
||||
_translate = QCoreApplication.translate
|
||||
|
||||
class PlotStricklers(APlot):
|
||||
def __init__(self, canvas=None, data=None, toolbar=None):
|
||||
super(PlotStricklers, self).__init__(
|
||||
canvas=canvas,
|
||||
data=data,
|
||||
toolbar=toolbar
|
||||
)
|
||||
|
||||
class PlotStricklers(PamhyrPlot):
|
||||
def draw_frictions(self, frictions, color="r"):
|
||||
lst = frictions
|
||||
lst.sort(key = lambda s: s.begin_kp)
|
||||
|
||||
Reference in new issue
Block a user