Commit 8c15e324 authored by janlukas.bosse's avatar janlukas.bosse
Browse files

before devectorizing

parent 49ad79d7
This diff is collapsed.
import sys
import matplotlib.pyplot as plt
class Bin1D:
......@@ -117,13 +118,14 @@ class Histo1D:
self.scale = scale
def Plot(self):
import matplotlib.pyplot as plt
def Plot(self, ax=None, *plt_args, **plt_kwargs):
lefts = [b.xmin for b in self.bins]
heights = [b.w / (lefts[1] - lefts[0]) for b in self.bins]
plt.step(lefts, heights, where='post')
if ax is None:
fig, ax = plt.subplots()
ax.step(lefts, heights, *plt_args, where='post', **plt_kwargs)
class Scatter2D:
This diff is collapsed.
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