Skip to content

Commit fe12691

Browse files
committed
Bugfix in setting xmin/ymin
1 parent 9554e93 commit fe12691

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

src/maxplotlib/subfigure/line_plot.py

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,12 @@ def layers(self):
163163
layers.append(layer_name)
164164
return layers
165165

166-
def plot_matplotlib(self, ax, layers=None):
166+
def plot_matplotlib(
167+
self,
168+
ax,
169+
layers=None,
170+
verbose: bool = False,
171+
):
167172
"""
168173
Plot all lines on the provided axis.
169174
@@ -210,13 +215,13 @@ def plot_matplotlib(self, ax, layers=None):
210215
ax.legend()
211216
if self._grid:
212217
ax.grid()
213-
if self.xmin:
218+
if self.xmin is not None:
214219
ax.axis(xmin=self.xmin)
215-
if self.xmax:
220+
if self.xmax is not None:
216221
ax.axis(xmax=self.xmax)
217-
if self.ymin:
222+
if self.ymin is not None:
218223
ax.axis(ymin=self.ymin)
219-
if self.ymax:
224+
if self.ymax is not None:
220225
ax.axis(ymax=self.ymax)
221226

222227
def plot_plotly(self):

0 commit comments

Comments
 (0)