fix plots can have too many ticks and lines #900
fix plots can have too many ticks and lines #900

I did a algorithm for  calculation grid lines more flexible. Algorithm  looks for an interval where the number of intervals stops decreasing and begins to grow. The intervals may be added during the algorithm working

Chasego/beaker-notebook,vital-ai/beaker-notebook,brosander/beaker-notebook,gef756/beaker-notebook,Chasego/beaker-notebook,bradparks/beaker-notebook,bradparks/beaker-notebook,bradparks/beaker-notebook,sirinath/beaker-notebook,sirinath/beaker-notebook,bradparks/beaker-notebook,Chasego/beaker-notebook,codeaudit/beaker-notebook,brosander/beaker-notebook,gef756/beaker-notebook,brosander/beaker-notebook,codeaudit/beaker-notebook,sirinath/beaker-notebook,vital-ai/beaker-notebook,Chasego/beaker-notebook,mattyb149/beaker-notebook,ScottPJones/beaker-notebook,brosander/beaker-notebook,codeaudit/beaker-notebook,brosander/beaker-notebook,brosander/beaker-notebook,sirinath/beaker-notebook,ScottPJones/beaker-notebook,gef756/beaker-notebook,sirinath/beaker-notebook,vital-ai/beaker-notebook,ScottPJones/beaker-notebook,Chasego/beaker-notebook,brosander/beaker-notebook,vital-ai/beaker-notebook,vital-ai/beaker-notebook,codeaudit/beaker-notebook,codeaudit/beaker-notebook,mattyb149/beaker-notebook,mattyb149/beaker-notebook,mattyb149/beaker-notebook,sirinath/beaker-notebook,mattyb149/beaker-notebook,bradparks/beaker-notebook,vital-ai/beaker-notebook,gef756/beaker-notebook,mattyb149/beaker-notebook,sirinath/beaker-notebook,ScottPJones/beaker-notebook,codeaudit/beaker-notebook,ScottPJones/beaker-notebook,gef756/beaker-notebook,vital-ai/beaker-notebook,bradparks/beaker-notebook,bradparks/beaker-notebook,mattyb149/beaker-notebook,Chasego/beaker-notebook,Chasego/beaker-notebook,gef756/beaker-notebook,gef756/beaker-notebook