support for categories plugin when using custom ticks labels on y axis

Adding custom tick labels on y axis caused problems with the categories plugin (https://github.com/flot/flot/blob/master/jquery.flot.categories.js). This fixes it.