mwxlib 0.93.8__py3-none-any.whl → 0.93.9__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of mwxlib might be problematic. Click here for more details.
- mwx/framework.py +1 -1
- mwx/matplot2g.py +11 -11
- mwx/matplot2lg.py +15 -24
- mwx/plugins/__init__.py +2 -0
- mwx/py/__init__.py +0 -1
- {mwxlib-0.93.8.dist-info → mwxlib-0.93.9.dist-info}/METADATA +1 -1
- {mwxlib-0.93.8.dist-info → mwxlib-0.93.9.dist-info}/RECORD +14 -13
- /mwx/{py → plugins}/ffmpeg_view.py +0 -0
- /mwx/{py → plugins}/fft_view.py +0 -0
- /mwx/{py → plugins}/frame_listview.py +0 -0
- /mwx/{py → plugins}/line_profile.py +0 -0
- {mwxlib-0.93.8.dist-info → mwxlib-0.93.9.dist-info}/LICENSE +0 -0
- {mwxlib-0.93.8.dist-info → mwxlib-0.93.9.dist-info}/WHEEL +0 -0
- {mwxlib-0.93.8.dist-info → mwxlib-0.93.9.dist-info}/top_level.txt +0 -0
mwx/framework.py
CHANGED
mwx/matplot2g.py
CHANGED
|
@@ -393,7 +393,7 @@ class GraphPlot(MatplotPanel):
|
|
|
393
393
|
def __init__(self, *args, **kwargs):
|
|
394
394
|
MatplotPanel.__init__(self, *args, **kwargs)
|
|
395
395
|
|
|
396
|
-
def
|
|
396
|
+
def _draw(v):
|
|
397
397
|
self.canvas.draw_idle()
|
|
398
398
|
|
|
399
399
|
self.handler.update({ # DNA<GraphPlot>
|
|
@@ -408,16 +408,16 @@ class GraphPlot(MatplotPanel):
|
|
|
408
408
|
'frame_updated' : [ None, _F(self.writeln) ], # unit,name,ratio => update_extent
|
|
409
409
|
'frame_cmapped' : [ None, _F(self.writeln) ], # cmap
|
|
410
410
|
'line_draw' : [ None ],
|
|
411
|
-
'line_drawn' : [ None,
|
|
411
|
+
'line_drawn' : [ None, _draw ],
|
|
412
412
|
'line_move' : [ None ],
|
|
413
|
-
'line_moved' : [ None,
|
|
414
|
-
'line_removed' : [ None,
|
|
413
|
+
'line_moved' : [ None, _draw ],
|
|
414
|
+
'line_removed' : [ None, _draw ],
|
|
415
415
|
'mark_draw' : [ None ],
|
|
416
|
-
'mark_drawn' : [ None,
|
|
417
|
-
'mark_removed' : [ None,
|
|
416
|
+
'mark_drawn' : [ None, _draw ],
|
|
417
|
+
'mark_removed' : [ None, _draw ],
|
|
418
418
|
'region_draw' : [ None ],
|
|
419
|
-
'region_drawn' : [ None,
|
|
420
|
-
'region_removed' : [ None,
|
|
419
|
+
'region_drawn' : [ None, _draw ],
|
|
420
|
+
'region_removed' : [ None, _draw ],
|
|
421
421
|
'M-up pressed' : [ None, self.OnPageUp ],
|
|
422
422
|
'M-down pressed' : [ None, self.OnPageDown ],
|
|
423
423
|
'pageup pressed' : [ None, self.OnPageUp ],
|
|
@@ -440,7 +440,7 @@ class GraphPlot(MatplotPanel):
|
|
|
440
440
|
'r pressed' : (REGION, self.OnRegionAppend, self.OnEscapeSelection),
|
|
441
441
|
'r+Lbutton pressed' : (REGION, self.OnRegionAppend, self.OnEscapeSelection),
|
|
442
442
|
'M-Lbutton pressed' : (REGION, self.OnRegionAppend, self.OnEscapeSelection),
|
|
443
|
-
'escape pressed' : (NORMAL, self.OnEscapeSelection,
|
|
443
|
+
'escape pressed' : (NORMAL, self.OnEscapeSelection, _draw),
|
|
444
444
|
'shift pressed' : (NORMAL, self.on_picker_lock),
|
|
445
445
|
'shift released' : (NORMAL, self.on_picker_unlock),
|
|
446
446
|
'Lbutton pressed' : (NORMAL, self.OnDragLock),
|
|
@@ -502,7 +502,7 @@ class GraphPlot(MatplotPanel):
|
|
|
502
502
|
'right released' : (MARK, self.OnMarkShiftEnd),
|
|
503
503
|
'n pressed' : (MARK, self.OnMarkSkipNext),
|
|
504
504
|
'p pressed' : (MARK, self.OnMarkSkipPrevious),
|
|
505
|
-
'escape pressed' : (NORMAL, self.OnMarkDeselected,
|
|
505
|
+
'escape pressed' : (NORMAL, self.OnMarkDeselected, _draw),
|
|
506
506
|
'delete pressed' : (MARK, self.OnMarkRemove),
|
|
507
507
|
'space pressed' : (PAN, self.OnPanBegin),
|
|
508
508
|
'ctrl pressed' : (PAN, self.OnPanBegin),
|
|
@@ -531,7 +531,7 @@ class GraphPlot(MatplotPanel):
|
|
|
531
531
|
'down released' : (REGION, self.OnRegionShiftEnd),
|
|
532
532
|
'left released' : (REGION, self.OnRegionShiftEnd),
|
|
533
533
|
'right released' : (REGION, self.OnRegionShiftEnd),
|
|
534
|
-
'escape pressed' : (NORMAL, self.OnRegionDeselected,
|
|
534
|
+
'escape pressed' : (NORMAL, self.OnRegionDeselected, _draw),
|
|
535
535
|
'delete pressed' : (NORMAL, self.OnRegionRemove),
|
|
536
536
|
'space pressed' : (PAN, self.OnPanBegin),
|
|
537
537
|
'ctrl pressed' : (PAN, self.OnPanBegin),
|
mwx/matplot2lg.py
CHANGED
|
@@ -98,13 +98,14 @@ class LinePlot(MatplotPanel):
|
|
|
98
98
|
self.__annotations = []
|
|
99
99
|
|
|
100
100
|
#<matplotlib.text.Annotation>
|
|
101
|
-
def annotation(v, xy, xytext,
|
|
102
|
-
|
|
103
|
-
return self.axes.annotate(
|
|
101
|
+
def annotation(v, xy, xytext, xycoords='data',
|
|
102
|
+
textcoords='offset points', **arrowprops):
|
|
103
|
+
return self.axes.annotate(
|
|
104
|
+
'' if v is None else '{:g}'.format(v),
|
|
104
105
|
xy, xytext, xycoords, textcoords, arrowprops, size='small')
|
|
105
106
|
|
|
106
|
-
if self.
|
|
107
|
-
a, b = self.
|
|
107
|
+
if self.region is not None:
|
|
108
|
+
a, b = self.region
|
|
108
109
|
x = (b + a) / 2
|
|
109
110
|
y = self.ylim[0] + 20/self.ddpu[1]
|
|
110
111
|
if (b - a) > 60/self.ddpu[0]:
|
|
@@ -190,11 +191,9 @@ class LinePlot(MatplotPanel):
|
|
|
190
191
|
else:
|
|
191
192
|
self.message("- No region.") #<FSM logic-error>
|
|
192
193
|
self.draw()
|
|
193
|
-
## self.handler('region_draw', self.frame)
|
|
194
194
|
|
|
195
195
|
def OnDragEnd(self, evt):
|
|
196
196
|
self.set_wxcursor(wx.CURSOR_ARROW)
|
|
197
|
-
## self.handler('region_drawn', self.frame)
|
|
198
197
|
|
|
199
198
|
def OnEscapeSelection(self, evt):
|
|
200
199
|
MatplotPanel.OnEscapeSelection(self, evt)
|
|
@@ -202,7 +201,6 @@ class LinePlot(MatplotPanel):
|
|
|
202
201
|
self.set_wxcursor(wx.CURSOR_ARROW)
|
|
203
202
|
self.region = None
|
|
204
203
|
self.draw()
|
|
205
|
-
## self.handler('region_removed', self.frame)
|
|
206
204
|
|
|
207
205
|
|
|
208
206
|
class Histogram(LinePlot):
|
|
@@ -344,10 +342,7 @@ class Histogram(LinePlot):
|
|
|
344
342
|
## Motion/Drag actions (override)
|
|
345
343
|
## --------------------------------
|
|
346
344
|
|
|
347
|
-
def
|
|
348
|
-
"""Called before canvas.draw."""
|
|
349
|
-
## LinePlot.OnDraw(self, evt) ---> do not annotate
|
|
350
|
-
|
|
345
|
+
def annotate(self):
|
|
351
346
|
if self.__frame:
|
|
352
347
|
x, y = self.__frame.__data
|
|
353
348
|
if len(x) > 1:
|
|
@@ -625,6 +620,14 @@ class LineProfile(LinePlot):
|
|
|
625
620
|
Clipboard.write(o.getvalue(), verbose=0)
|
|
626
621
|
self.message("Write data to clipboard.")
|
|
627
622
|
|
|
623
|
+
def annotate(self):
|
|
624
|
+
LinePlot.annotate(self)
|
|
625
|
+
|
|
626
|
+
x, y = self.plotdata
|
|
627
|
+
if x.size:
|
|
628
|
+
self.__fil.set_xy(list(chain([(x[0],0)], zip(x,y), [(x[-1],0)])))
|
|
629
|
+
self.writeln()
|
|
630
|
+
|
|
628
631
|
## --------------------------------
|
|
629
632
|
## Motion/Drag actions (override)
|
|
630
633
|
## --------------------------------
|
|
@@ -643,15 +646,6 @@ class LineProfile(LinePlot):
|
|
|
643
646
|
self.toolbar.push_current()
|
|
644
647
|
self.draw()
|
|
645
648
|
|
|
646
|
-
def OnDraw(self, evt):
|
|
647
|
-
"""Called before canvas.draw."""
|
|
648
|
-
LinePlot.OnDraw(self, evt)
|
|
649
|
-
|
|
650
|
-
x, y = self.plotdata
|
|
651
|
-
if x.size:
|
|
652
|
-
self.__fil.set_xy(list(chain([(x[0],0)], zip(x,y), [(x[-1],0)])))
|
|
653
|
-
self.writeln()
|
|
654
|
-
|
|
655
649
|
def OnLineWidth(self, evt):
|
|
656
650
|
n = -2 if evt.key[-1] == '-' else 2
|
|
657
651
|
self.set_linewidth(self.__linewidth + n)
|
|
@@ -674,9 +668,6 @@ class LineProfile(LinePlot):
|
|
|
674
668
|
"""Show average value."""
|
|
675
669
|
y = self.calc_average()
|
|
676
670
|
if y is not None:
|
|
677
|
-
## self.__hline.set_ydata([y])
|
|
678
|
-
## self.__hline.set_visible(1)
|
|
679
|
-
## self.canvas.draw_idle()
|
|
680
671
|
self.message(f"ya = {y:g}")
|
|
681
672
|
|
|
682
673
|
def OnRegionLock(self, evt):
|
mwx/plugins/__init__.py
ADDED
mwx/py/__init__.py
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
mwx/__init__.py,sha256=5B4YSOuijG1Uo5-FLtLHGB52Cp_F4vnN--4wGPBx7do,2398
|
|
2
2
|
mwx/bookshelf.py,sha256=FrissUYdGXLABOzJmMaQU6GXvu6n_9DVW3d5wGwQzjM,6613
|
|
3
3
|
mwx/controls.py,sha256=9C1sXBwQl-oZtCb3rXoT-doW48Sv1J359toNq9ScF9M,47173
|
|
4
|
-
mwx/framework.py,sha256=
|
|
4
|
+
mwx/framework.py,sha256=Q_QSjaa3EwydXi_ON56rvhxWF79M3e_uvgIFq2jw7Ho,73951
|
|
5
5
|
mwx/graphman.py,sha256=SKYJFxi-TqWOALRczYz-M-2ZYEbqiZuAuKCfEIedctY,70156
|
|
6
6
|
mwx/images.py,sha256=mrnUYH12I3XLVSZcEXlpVltX0XMxufbl2yRvDIQJZqc,49957
|
|
7
7
|
mwx/matplot2.py,sha256=qaF_gvLoLn-TimLbRR59KUavNr1ZpZQdSMqjzJk47rk,32682
|
|
8
|
-
mwx/matplot2g.py,sha256=
|
|
9
|
-
mwx/matplot2lg.py,sha256=
|
|
8
|
+
mwx/matplot2g.py,sha256=Ca-3RJZmSiZcvNrXmeK_lFf2fdG-0gkp7dYkCtrKi2I,65530
|
|
9
|
+
mwx/matplot2lg.py,sha256=tg8u7w4DxiJdPN-E197NOmbQpc_1gZkgDHYv_xUhbFA,27224
|
|
10
10
|
mwx/mgplt.py,sha256=ITzxA97yDwr_35BUk5OqnyskSuKVDbpf2AQCKY1jHTI,5671
|
|
11
11
|
mwx/nutshell.py,sha256=5HErOObnOprMc6gYnXV7wY-ALnlwNpmhV8f0EyipYA4,135816
|
|
12
12
|
mwx/utilus.py,sha256=THDxQ-QqbHYVc8iX8qN9yxvfcf7Pvpm7sfTP9ipYvzs,37040
|
|
@@ -14,14 +14,15 @@ mwx/wxmon.py,sha256=Qk86VbuuW2rR46pqEYLur13G_aloWz5SVv6sib30YY0,12717
|
|
|
14
14
|
mwx/wxpdb.py,sha256=2z3ZD9Oo1H-ONBHlaprkB9hrTmAI7o03sqO46ppEFE4,19129
|
|
15
15
|
mwx/wxwil.py,sha256=JK1du4i1RVMbDLqN8jLRDSu_JhKEp4mhHVMElzo4yoE,5578
|
|
16
16
|
mwx/wxwit.py,sha256=2gFHi-8nwWRh26RdvZ_AUP--8PDjJB8TUU72y2fBUWM,7557
|
|
17
|
-
mwx/
|
|
18
|
-
mwx/
|
|
19
|
-
mwx/
|
|
17
|
+
mwx/plugins/__init__.py,sha256=jnJ-Sl9XJ_7BFDslD_r7dsbxsOT57q_IaEriV53XIGY,41
|
|
18
|
+
mwx/plugins/ffmpeg_view.py,sha256=vUYNybIJsF1JGkDzjBgDyBQvDh8e1oKHlEMY5Fwc8L4,9399
|
|
19
|
+
mwx/plugins/fft_view.py,sha256=evj2kCe6N10JQczW8IajgLVrUWOihQaHQ2xiBzAsAl4,2675
|
|
20
|
+
mwx/plugins/frame_listview.py,sha256=T-2xSv_D2bk9fJ64aiSEe1rJRTeqaIpLVAYEUXW5vz8,10110
|
|
21
|
+
mwx/plugins/line_profile.py,sha256=WJB5z7F53yg4dII2R36IFZvtkSOGWT669b1HmAAXSnQ,816
|
|
22
|
+
mwx/py/__init__.py,sha256=xykgfOytOwNuvXsfkLoumFZSTN-iBsHOjczYXngjmUE,12
|
|
20
23
|
mwx/py/filling.py,sha256=KaHooM32hrGGgqw75Cbt8lAvACwC6RXadob9LGgNnEc,16806
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
mwxlib-0.93.
|
|
24
|
-
mwxlib-0.93.
|
|
25
|
-
mwxlib-0.93.
|
|
26
|
-
mwxlib-0.93.8.dist-info/top_level.txt,sha256=SI1Mh118AstnUFGPNq5aMNKiAnVNmZk1S9Ij-OwAEpY,4
|
|
27
|
-
mwxlib-0.93.8.dist-info/RECORD,,
|
|
24
|
+
mwxlib-0.93.9.dist-info/LICENSE,sha256=PGtRKCaTkmUDlBQwpptJAxJtdqxIUtAmdBsaT9nUVkA,1091
|
|
25
|
+
mwxlib-0.93.9.dist-info/METADATA,sha256=nAajTF4HxuXA8Mee0naQz9t8mxUyduim3U5C0Dwjo7E,1925
|
|
26
|
+
mwxlib-0.93.9.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
27
|
+
mwxlib-0.93.9.dist-info/top_level.txt,sha256=SI1Mh118AstnUFGPNq5aMNKiAnVNmZk1S9Ij-OwAEpY,4
|
|
28
|
+
mwxlib-0.93.9.dist-info/RECORD,,
|
|
File without changes
|
/mwx/{py → plugins}/fft_view.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|