Distinguish between the first and innermost axis.
Distinguish between the first and innermost axis.

The fix for #1056 caused a regression where grid lines were drawn for
the innermost axes on both sides instead of just the first axis.
Fixed by properly distinguishing the first axis in each direction from
the innermost one on each side.  Fixes #1075.

pepperdata/flot,stanislavdavid/flot,resnick1223/flot,cipix2000/flot,chaveiro/flot,andig/flot,TrainingPeaks/flot,klarkc/flot,lolifans/flot,stanislavdavid/flot,gdseller/flot,MAMISHO/flot,k-joseph/flot,mlitwiniuk/flot,cipix2000/engineering-flot,chiu/flot,colinhunt/flot,chaveiro/flot,ni-kismet/engineering-flot,saike/flot,sedran/flot,chiu/flot,andig/flot,cipix2000/flot,kongx73/flot,resnick1223/flot,k-joseph/flot,mlitwiniuk/flot,fashionsun/flot,saike/flot,petrvacha/flot,chaveiro/flot,matong/flot,mcanthony/flot,stanislavdavid/flot,resnick1223/flot,soenter/flot,andig/flot,Sensirion/flot,saike/flot,k-joseph/flot,mlitwiniuk/flot,soenter/flot,magora-suchkov/flot,flot/flot,octavianCraciun/engineering-flot,chiu/flot