Skip to content

Commit 559d6b7

Browse files
authored
Merge pull request #209 from m-rossi/minorgrid
Fix ignored minor grid if major grid is true in axes object
2 parents 2a1ff18 + f52ed2a commit 559d6b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

matplotlib2tikz/axes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ def __init__(self, data, obj):
225225
# pylint: disable=protected-access
226226
if obj.xaxis._gridOnMajor:
227227
self.axis_options.append('xmajorgrids')
228-
elif obj.xaxis._gridOnMinor:
228+
if obj.xaxis._gridOnMinor:
229229
self.axis_options.append('xminorgrids')
230230

231231
xlines = obj.get_xgridlines()
@@ -238,7 +238,7 @@ def __init__(self, data, obj):
238238
# pylint: disable=protected-access
239239
if obj.yaxis._gridOnMajor:
240240
self.axis_options.append('ymajorgrids')
241-
elif obj.yaxis._gridOnMinor:
241+
if obj.yaxis._gridOnMinor:
242242
self.axis_options.append('yminorgrids')
243243

244244
ylines = obj.get_ygridlines()

0 commit comments

Comments
 (0)