Skip to content

Commit 5d81feb

Browse files
author
Gorshanov Vadim
committed
Set color of the minor grid
1 parent 5ffe6ed commit 5d81feb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/tikzplotlib/_axes.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,8 @@ def _grid(self, obj, data):
354354
self.axis_options.append("xmajorgrids")
355355
if has_minor_xgrid:
356356
self.axis_options.append("xminorgrids")
357+
# No way to check from the axis the actual style of the minor grid
358+
self.axis_options.append("minor x grid style={gray!20}")
357359

358360
xlines = obj.get_xgridlines()
359361
if xlines:
@@ -366,6 +368,8 @@ def _grid(self, obj, data):
366368
self.axis_options.append("ymajorgrids")
367369
if has_minor_ygrid:
368370
self.axis_options.append("yminorgrids")
371+
# No way to check from the axis the actual style of the minor grid
372+
self.axis_options.append("minor y grid style={gray!20}")
369373

370374
ylines = obj.get_ygridlines()
371375
if ylines:

0 commit comments

Comments
 (0)