We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6c6650 commit 2565068Copy full SHA for 2565068
prometheus_api_client/metric.py
@@ -187,10 +187,10 @@ def __add__(self, other):
187
error_string = "Different metric labels"
188
raise TypeError("Cannot Add different metric types. " + error_string)
189
190
- def plot(self):
+ def plot(self, *args, **kwargs):
191
"""Plot a very simple line graph for the metric time-series."""
192
if _MPL_FOUND:
193
- fig, axis = plt.subplots()
+ fig, axis = plt.subplots(*args, **kwargs)
194
axis.plot_date(self.metric_values.ds, self.metric_values.y, linestyle=":")
195
fig.autofmt_xdate()
196
# if matplotlib was not imported
0 commit comments