Compare commits
2 Commits
076493fc6d
...
c99e1c920c
Author | SHA1 | Date | |
---|---|---|---|
|
c99e1c920c | ||
|
342a712ec0 |
@ -2,7 +2,7 @@
|
|||||||
"""
|
"""
|
||||||
Created on Tue Aug 30 14:25:12 2022
|
Created on Tue Aug 30 14:25:12 2022
|
||||||
|
|
||||||
@author: timof
|
@author: timofej
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"""
|
"""
|
||||||
Created on Tue Aug 30 14:25:12 2022
|
Created on Tue Aug 30 14:25:12 2022
|
||||||
|
|
||||||
@author: timof
|
@author: timofej
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"""
|
"""
|
||||||
Created on Tue Aug 30 14:25:12 2022
|
Created on Tue Aug 30 14:25:12 2022
|
||||||
|
|
||||||
@author: timof
|
@author: timofej
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"""
|
"""
|
||||||
Created on Wed Sep 27 04:39:54 2023
|
Created on Wed Sep 27 04:39:54 2023
|
||||||
|
|
||||||
@author: astral
|
@author: timofej
|
||||||
"""
|
"""
|
||||||
import os
|
import os
|
||||||
import json
|
import json
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"""
|
"""
|
||||||
Created on Tue Aug 30 14:25:12 2022
|
Created on Tue Aug 30 14:25:12 2022
|
||||||
|
|
||||||
@author: timof
|
@author: timofej
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"""
|
"""
|
||||||
Created on Tue Aug 30 14:25:12 2022
|
Created on Tue Aug 30 14:25:12 2022
|
||||||
|
|
||||||
@author: timof
|
@author: timofej
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"""
|
"""
|
||||||
Created on Tue Aug 30 14:25:12 2022
|
Created on Tue Aug 30 14:25:12 2022
|
||||||
|
|
||||||
@author: timof
|
@author: timofej
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"""
|
"""
|
||||||
Created on Tue Aug 30 14:25:12 2022
|
Created on Tue Aug 30 14:25:12 2022
|
||||||
|
|
||||||
@author: timof
|
@author: timofej
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from plot import qtplot
|
from plot import qtplot
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"""
|
"""
|
||||||
Created on Tue Aug 30 14:25:12 2022
|
Created on Tue Aug 30 14:25:12 2022
|
||||||
|
|
||||||
@author: timof
|
@author: timofej
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
@ -1,60 +0,0 @@
|
|||||||
"""
|
|
||||||
Demonstrates a way to put multiple axes around a single plot.
|
|
||||||
|
|
||||||
(This will eventually become a built-in feature of PlotItem)
|
|
||||||
"""
|
|
||||||
|
|
||||||
|
|
||||||
import pyqtgraph as pg
|
|
||||||
|
|
||||||
pg.mkQApp()
|
|
||||||
|
|
||||||
pw = pg.PlotWidget()
|
|
||||||
pw.show()
|
|
||||||
pw.setWindowTitle('pyqtgraph example: MultiplePlotAxes')
|
|
||||||
p1 = pw.plotItem
|
|
||||||
p1.setLabels(left='axis 1')
|
|
||||||
|
|
||||||
## create a new ViewBox, link the right axis to its coordinate system
|
|
||||||
p2 = pg.ViewBox()
|
|
||||||
p1.showAxis('right')
|
|
||||||
p1.scene().addItem(p2)
|
|
||||||
p1.getAxis('right').linkToView(p2)
|
|
||||||
p2.setXLink(p1)
|
|
||||||
p1.getAxis('right').setLabel('axis2', color='#0000ff')
|
|
||||||
|
|
||||||
## create third ViewBox.
|
|
||||||
## this time we need to create a new axis as well.
|
|
||||||
p3 = pg.ViewBox()
|
|
||||||
ax3 = pg.AxisItem('right')
|
|
||||||
p1.layout.addItem(ax3, 2, 3)
|
|
||||||
p1.scene().addItem(p3)
|
|
||||||
ax3.linkToView(p3)
|
|
||||||
p3.setXLink(p1)
|
|
||||||
ax3.setZValue(-10000)
|
|
||||||
ax3.setLabel('axis 3', color='#ff0000')
|
|
||||||
|
|
||||||
|
|
||||||
## Handle view resizing
|
|
||||||
def updateViews():
|
|
||||||
## view has resized; update auxiliary views to match
|
|
||||||
global p1, p2, p3
|
|
||||||
p2.setGeometry(p1.vb.sceneBoundingRect())
|
|
||||||
p3.setGeometry(p1.vb.sceneBoundingRect())
|
|
||||||
|
|
||||||
## need to re-update linked axes since this was called
|
|
||||||
## incorrectly while views had different shapes.
|
|
||||||
## (probably this should be handled in ViewBox.resizeEvent)
|
|
||||||
p2.linkedViewChanged(p1.vb, p2.XAxis)
|
|
||||||
p3.linkedViewChanged(p1.vb, p3.XAxis)
|
|
||||||
|
|
||||||
updateViews()
|
|
||||||
p1.vb.sigResized.connect(updateViews)
|
|
||||||
|
|
||||||
|
|
||||||
p1.plot([1,2,4,8,16,32])
|
|
||||||
p2.addItem(pg.PlotCurveItem([10,20,40,80,40,20], pen='b'))
|
|
||||||
p3.addItem(pg.PlotCurveItem([3200,1600,800,400,200,100], pen='r'))
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
pg.exec()
|
|
@ -2,7 +2,7 @@
|
|||||||
"""
|
"""
|
||||||
Created on Tue Aug 30 14:25:12 2022
|
Created on Tue Aug 30 14:25:12 2022
|
||||||
|
|
||||||
@author: timof
|
@author: timofej
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"""
|
"""
|
||||||
Created on Mon Aug 21 14:59:22 2023
|
Created on Mon Aug 21 14:59:22 2023
|
||||||
|
|
||||||
@author: astral
|
@author: timofej
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"""
|
"""
|
||||||
Created on Mon Aug 21 14:59:22 2023
|
Created on Mon Aug 21 14:59:22 2023
|
||||||
|
|
||||||
@author: astral
|
@author: timofej
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import json
|
import json
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"""
|
"""
|
||||||
Created on Mon Aug 21 14:59:22 2023
|
Created on Mon Aug 21 14:59:22 2023
|
||||||
|
|
||||||
@author: astral
|
@author: timofej
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import json
|
import json
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"""
|
"""
|
||||||
Created on Sat Sep 9 22:23:30 2023
|
Created on Sat Sep 9 22:23:30 2023
|
||||||
|
|
||||||
@author: astral
|
@author: timofej
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"""
|
"""
|
||||||
Created on Mon Aug 21 14:59:22 2023
|
Created on Mon Aug 21 14:59:22 2023
|
||||||
|
|
||||||
@author: astral
|
@author: timofej
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"""
|
"""
|
||||||
Created on Mon Aug 21 14:59:22 2023
|
Created on Mon Aug 21 14:59:22 2023
|
||||||
|
|
||||||
@author: astral
|
@author: timofej
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import json
|
import json
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"""
|
"""
|
||||||
Created on Mon Aug 21 14:59:22 2023
|
Created on Mon Aug 21 14:59:22 2023
|
||||||
|
|
||||||
@author: astral
|
@author: timofej
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import json
|
import json
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"""
|
"""
|
||||||
Created on Mon Aug 21 14:59:22 2023
|
Created on Mon Aug 21 14:59:22 2023
|
||||||
|
|
||||||
@author: astral
|
@author: timofej
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import json
|
import json
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"""
|
"""
|
||||||
Created on Mon Aug 21 14:59:22 2023
|
Created on Mon Aug 21 14:59:22 2023
|
||||||
|
|
||||||
@author: astral
|
@author: timofej
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import json
|
import json
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"""
|
"""
|
||||||
Created on Mon Aug 21 14:59:22 2023
|
Created on Mon Aug 21 14:59:22 2023
|
||||||
|
|
||||||
@author: astral
|
@author: timofej
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import json
|
import json
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"""
|
"""
|
||||||
Created on Mon Aug 21 14:59:22 2023
|
Created on Mon Aug 21 14:59:22 2023
|
||||||
|
|
||||||
@author: astral
|
@author: timofej
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import json
|
import json
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"""
|
"""
|
||||||
Created on Mon Aug 21 14:59:22 2023
|
Created on Mon Aug 21 14:59:22 2023
|
||||||
|
|
||||||
@author: astral
|
@author: timofej
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import json
|
import json
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"""
|
"""
|
||||||
Created on Mon Aug 21 14:59:22 2023
|
Created on Mon Aug 21 14:59:22 2023
|
||||||
|
|
||||||
@author: astral
|
@author: timofej
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"""
|
"""
|
||||||
Created on Sun Sep 10 07:07:28 2023
|
Created on Sun Sep 10 07:07:28 2023
|
||||||
|
|
||||||
@author: astral
|
@author: timofej
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import sys as _sys
|
import sys as _sys
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"""
|
"""
|
||||||
Created on Tue Aug 30 14:25:12 2022
|
Created on Tue Aug 30 14:25:12 2022
|
||||||
|
|
||||||
@author: timof
|
@author: timofej
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"""
|
"""
|
||||||
Created on Tue Aug 30 14:25:12 2022
|
Created on Tue Aug 30 14:25:12 2022
|
||||||
|
|
||||||
@author: timof
|
@author: timofej
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"""
|
"""
|
||||||
Created on Sun Sep 10 07:07:28 2023
|
Created on Sun Sep 10 07:07:28 2023
|
||||||
|
|
||||||
@author: astral
|
@author: timofej
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import sys as _sys
|
import sys as _sys
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"""
|
"""
|
||||||
Created on Wed Sep 27 04:39:54 2023
|
Created on Wed Sep 27 04:39:54 2023
|
||||||
|
|
||||||
@author: astral
|
@author: timofej
|
||||||
"""
|
"""
|
||||||
import os
|
import os
|
||||||
import json
|
import json
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"""
|
"""
|
||||||
Created on Mon Aug 21 16:12:53 2023
|
Created on Mon Aug 21 16:12:53 2023
|
||||||
|
|
||||||
@author: astral
|
@author: timofej
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"""
|
"""
|
||||||
Created on Mon Aug 21 16:12:53 2023
|
Created on Mon Aug 21 16:12:53 2023
|
||||||
|
|
||||||
@author: astral
|
@author: timofej
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"""
|
"""
|
||||||
Created on Sat Sep 9 22:23:30 2023
|
Created on Sat Sep 9 22:23:30 2023
|
||||||
|
|
||||||
@author: astral
|
@author: timofej
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
|
@ -13,6 +13,8 @@ distributed under the License is distributed on an "AS IS" BASIS,
|
|||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
See the License for the specific language governing permissions and
|
See the License for the specific language governing permissions and
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
|
|
||||||
|
Modified 2023 by Timofej Luitle
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from .neighborhood import Neighborhood, MooreNeighborhood, RadialNeighborhood, VonNeumannNeighborhood, \
|
from .neighborhood import Neighborhood, MooreNeighborhood, RadialNeighborhood, VonNeumannNeighborhood, \
|
||||||
|
@ -12,6 +12,8 @@ distributed under the License is distributed on an "AS IS" BASIS,
|
|||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
See the License for the specific language governing permissions and
|
See the License for the specific language governing permissions and
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
|
|
||||||
|
Modified 2023 by Timofej Luitle
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from typing import Sequence
|
from typing import Sequence
|
||||||
|
@ -12,6 +12,8 @@ distributed under the License is distributed on an "AS IS" BASIS,
|
|||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
See the License for the specific language governing permissions and
|
See the License for the specific language governing permissions and
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
|
|
||||||
|
Modified 2023 by Timofej Luitle
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# pylint: disable=all
|
# pylint: disable=all
|
||||||
|
Loading…
Reference in New Issue
Block a user