Commit e4a51e25 authored by Daniel Friesel's avatar Daniel Friesel
Browse files

print a warning when plotting current

parent c12740bd
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -400,6 +400,7 @@ if __name__ == "__main__":
            plt.legend(handles=[energyhandle, meanhandle])
            plt.ylabel("Voltage [V]")
        elif opt["plot"] == "I":
            print("Warning: The current reported by energytrace is aggressively smoothed and often inaccurate.")
            # nA
            (energyhandle,) = plt.plot(
                data[1:, 0] * 1e-6, data[1:, 1] * 1e-9, "b-", label="I", markersize=1