コード例 #1
0
    def _make_graph(self, lumens, duration):
        g = StackedGraph(container_dict=dict(stack_order='top_to_bottom'))
        g.new_plot(ytitle='Output (W)')
        g.new_series()
        g.new_plot(ytitle='Residual')
        g.new_series(plotid=1)
        g.new_plot(ytitle='Lumens', xtitle='time (s)')
        g.new_series(plotid=2)

        g.add_horizontal_rule(lumens, plotid=2)
        g.set_x_limits(0, duration * 1.1)
        return g
コード例 #2
0
ファイル: degasser.py プロジェクト: NMGRL/pychron
    def _make_graph(self, lumens, duration):
        g = StackedGraph(container_dict=dict(stack_order="top_to_bottom"))
        g.new_plot(ytitle="Output (W)")
        g.new_series()
        g.new_plot(ytitle="Residual")
        g.new_series(plotid=1)
        g.new_plot(ytitle="Lumens", xtitle="time (s)")
        g.new_series(plotid=2)

        g.add_horizontal_rule(lumens, plotid=2)
        g.set_x_limits(0, duration * 1.1)
        return g