Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue252 add controls to subplot #253

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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