Commit 54faa8c6 authored by Tong Zhang's avatar Tong Zhang
Browse files

UI: Add page for trajectory plot.

parent 3517de71
......@@ -235,10 +235,54 @@ class Ui_MainWindow(object):
font.setItalic(False)
font.setWeight(50)
self.envelope_plot.setFigureXYlabelFont(font)
font = QtGui.QFont()
font.setFamily("sans-serif")
font.setPointSize(14)
font.setBold(False)
font.setItalic(False)
font.setWeight(50)
self.envelope_plot.setFigureTitleFont(font)
self.envelope_plot.setProperty("figureLegendToggle", True)
font = QtGui.QFont()
font.setFamily("sans-serif")
font.setPointSize(12)
font.setBold(False)
font.setItalic(False)
font.setWeight(50)
self.envelope_plot.setFigureXYticksFont(font)
self.envelope_plot.setObjectName("envelope_plot")
self.horizontalLayout_3.addWidget(self.envelope_plot)
self.tabWidget.addTab(self.tab_2, "")
self.tab_3 = QtWidgets.QWidget()
self.tab_3.setObjectName("tab_3")
self.gridLayout_3 = QtWidgets.QGridLayout(self.tab_3)
self.gridLayout_3.setObjectName("gridLayout_3")
self.trajectory_plot = MatplotlibCurveWidget(self.tab_3)
self.trajectory_plot.setFigureAutoScale(True)
font = QtGui.QFont()
font.setFamily("sans-serif")
font.setPointSize(14)
font.setBold(False)
font.setItalic(False)
font.setWeight(50)
self.trajectory_plot.setFigureXYlabelFont(font)
font = QtGui.QFont()
font.setFamily("sans-serif")
font.setPointSize(14)
font.setBold(False)
font.setItalic(False)
font.setWeight(50)
self.trajectory_plot.setFigureTitleFont(font)
font = QtGui.QFont()
font.setFamily("sans-serif")
font.setPointSize(12)
font.setBold(False)
font.setItalic(False)
font.setWeight(50)
self.trajectory_plot.setFigureXYticksFont(font)
self.trajectory_plot.setObjectName("trajectory_plot")
self.gridLayout_3.addWidget(self.trajectory_plot, 0, 0, 1, 1)
self.tabWidget.addTab(self.tab_3, "")
self.gridLayout.addWidget(self.tabWidget, 0, 0, 1, 1)
self.horizontalLayout = QtWidgets.QHBoxLayout()
self.horizontalLayout.setObjectName("horizontalLayout")
......@@ -367,9 +411,14 @@ class Ui_MainWindow(object):
_translate("MainWindow", "Beam Ellipse"))
self.envelope_plot.setFigureXlabel(_translate("MainWindow", "s [m]"))
self.envelope_plot.setFigureYlabel(
_translate("MainWindow", "Envelop [mm]"))
_translate("MainWindow", "Envelope Size [mm]"))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_2),
_translate("MainWindow", "Beam Envelope"))
self.trajectory_plot.setFigureXlabel(_translate("MainWindow", "s [m]"))
self.trajectory_plot.setFigureYlabel(
_translate("MainWindow", "Centroid Position [mm]"))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_3),
_translate("MainWindow", "Beam Trajectory"))
self.label.setText(_translate("MainWindow", "Select quadrupole"))
self.quad_info_btn.setToolTip(
_translate("MainWindow",
......
......@@ -394,7 +394,7 @@
<string>s [m]</string>
</property>
<property name="figureYlabel">
<string>Envelop [mm]</string>
<string>Envelope Size [mm]</string>
</property>
<property name="figureXYlabelFont">
<font>
......@@ -405,9 +405,74 @@
<bold>false</bold>
</font>
</property>
<property name="figureTitleFont">
<font>
<family>sans-serif</family>
<pointsize>14</pointsize>
<weight>50</weight>
<italic>false</italic>
<bold>false</bold>
</font>
</property>
<property name="figureLegendToggle" stdset="0">
<bool>true</bool>
</property>
<property name="figureXYticksFont">
<font>
<family>sans-serif</family>
<pointsize>12</pointsize>
<weight>50</weight>
<italic>false</italic>
<bold>false</bold>
</font>
</property>
</widget>
</item>
</layout>
</widget>
<widget class="QWidget" name="tab_3">
<attribute name="title">
<string>Beam Trajectory</string>
</attribute>
<layout class="QGridLayout" name="gridLayout_3">
<item row="0" column="0">
<widget class="MatplotlibCurveWidget" name="trajectory_plot">
<property name="figureAutoScale">
<bool>true</bool>
</property>
<property name="figureXlabel">
<string>s [m]</string>
</property>
<property name="figureYlabel">
<string>Centroid Position [mm]</string>
</property>
<property name="figureXYlabelFont">
<font>
<family>sans-serif</family>
<pointsize>14</pointsize>
<weight>50</weight>
<italic>false</italic>
<bold>false</bold>
</font>
</property>
<property name="figureTitleFont">
<font>
<family>sans-serif</family>
<pointsize>14</pointsize>
<weight>50</weight>
<italic>false</italic>
<bold>false</bold>
</font>
</property>
<property name="figureXYticksFont">
<font>
<family>sans-serif</family>
<pointsize>12</pointsize>
<weight>50</weight>
<italic>false</italic>
<bold>false</bold>
</font>
</property>
</widget>
</item>
</layout>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment