Skip to content

Commit 2565068

Browse files
committed
add controls to subplot
1 parent c6c6650 commit 2565068

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

prometheus_api_client/metric.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,10 +187,10 @@ def __add__(self, other):
187187
error_string = "Different metric labels"
188188
raise TypeError("Cannot Add different metric types. " + error_string)
189189

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

0 commit comments

Comments
 (0)