Skip to content

Commit d856e7f

Browse files
committed
I draw x2 tics if I ever use the x2 axis
1 parent dd2c763 commit d856e7f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

gnuplotlib.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2056,9 +2056,12 @@ def getTestDataLen(curve):
20562056

20572057
basecmd = ''
20582058

2059-
if any( curve.get('axes','x')[-1] == '2' for curve in curves ):
2059+
if any( curve.get('axes','xxx')[-2:] == 'y2' for curve in curves ):
20602060
basecmd += "set ytics nomirror\n"
20612061
basecmd += "set y2tics\n"
2062+
if any( curve.get('axes','xxx')[:2] == 'x2' for curve in curves ):
2063+
basecmd += "set xtics nomirror\n"
2064+
basecmd += "set x2tics\n"
20622065

20632066
binwidth = None
20642067
for curve in curves:

0 commit comments

Comments
 (0)