Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions prometheus_api_client/metric.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,10 @@ def __add__(self, other):
error_string = "Different metric labels"
raise TypeError("Cannot Add different metric types. " + error_string)

def plot(self):
def plot(self, *args, **kwargs):
"""Plot a very simple line graph for the metric time-series."""
if _MPL_FOUND:
fig, axis = plt.subplots()
fig, axis = plt.subplots(*args, **kwargs)
axis.plot_date(self.metric_values.ds, self.metric_values.y, linestyle=":")
fig.autofmt_xdate()
# if matplotlib was not imported
Expand Down