Example #1
0
 def gl_display(self):
     if self.show_cpu:
         self.cpu_graph.draw()
     if self.show_fps:
         self.fps_graph.draw()
     if self.show_conf0:
         self.conf0_graph.color = mix_smooth(
             self.conf_grad[0],
             self.conf_grad[1],
             self.conf0_graph.avg,
             self.conf_grad_limits[0],
             self.conf_grad_limits[1],
         )
         self.conf0_graph.draw()
     if self.show_conf1:
         self.conf1_graph.color = mix_smooth(
             self.conf_grad[0],
             self.conf_grad[1],
             self.conf1_graph.avg,
             self.conf_grad_limits[0],
             self.conf_grad_limits[1],
         )
         self.conf1_graph.draw()
     if self.show_dia0:
         self.dia0_graph.draw()
     if self.show_dia1:
         self.dia1_graph.draw()
Example #2
0
 def gl_display(self):
     if self.show_cpu:
         self.cpu_graph.draw()
     if self.show_fps:
         self.fps_graph.draw()
     if self.show_conf0:
         self.conf0_graph.color = mix_smooth(
             self.conf_grad[0],
             self.conf_grad[1],
             self.conf0_graph.avg,
             self.conf_grad_limits[0],
             self.conf_grad_limits[1],
         )
         self.conf0_graph.draw()
     if self.show_conf1:
         self.conf1_graph.color = mix_smooth(
             self.conf_grad[0],
             self.conf_grad[1],
             self.conf1_graph.avg,
             self.conf_grad_limits[0],
             self.conf_grad_limits[1],
         )
         self.conf1_graph.draw()
     if self.show_dia0:
         self.dia0_graph.draw()
     if self.show_dia1:
         self.dia1_graph.draw()