Skip to content

Commit b1e4caa

Browse files
committed
set/unset are added to the commands AFTER processing stuff
Which means that the given set/unset override the automated stuff, as would be expected. The specific things that can be overridden are: set {axis}label set {axis}ranges set title set view set size
1 parent 1c439c2 commit b1e4caa

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

gnuplotlib.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1387,9 +1387,6 @@ def _massageSubplotOptionsAndGetCmds(subplotOptions):
13871387
# grid on by default
13881388
cmds = ['set grid']
13891389

1390-
_get_cmds__setunset(cmds, subplotOptions)
1391-
1392-
13931390
# set the curve labels
13941391
for axis in ('x', 'y', 'y2', 'z', 'cb'):
13951392
if axis + 'label' in subplotOptions:
@@ -1471,6 +1468,7 @@ def _massageSubplotOptionsAndGetCmds(subplotOptions):
14711468
if subplotOptions.get('square'):
14721469
cmds.append("set size ratio -1")
14731470

1471+
_get_cmds__setunset(cmds, subplotOptions)
14741472
if 'cmds' in subplotOptions: cmds += subplotOptions['cmds']
14751473
return cmds
14761474

0 commit comments

Comments
 (0)