protected void drawAxis(Graphics g) {
        Graphics2D g2 = (Graphics2D) g;

        Stroke s = g2.getStroke();

        g2.setColor(cline);

        //g2.fillRect(0, 0, getWidth(), jLabelTitle.getHeight());
        g2.setStroke(new BasicStroke(2));

        // draw the 0 axis:
        if (ymin <= 0 && ymax >= 0) {
            int y0 = computeY(0);
            g.drawLine(0, y0, getWidth(), y0);
        }

        g2.setStroke(dashed);

        // g2.setStroke(new BasicStroke(1));
        for (int ypos = yminor; ypos <= ymax; ypos += yminor) {
            if (ypos >= ymin) {
                int y = computeY(ypos);
                g.drawLine(0, y, getWidth(), y);
            }
        }
        for (int ypos = -yminor; ypos >= ymin; ypos -= yminor) {
            if (ypos <= ymax) {
                int y = computeY(ypos);
                g.drawLine(0, y, getWidth(), y);
            }
        }

        int _Ymin = computeY(ymin);
        int _Ymax = computeY(ymax);
        int xmax = graphBuffer.getSize();
        for (int xpos = 0; xpos <= xmax; xpos += xminor) {
            if (xpos <= xmax) {
                int x = computeX(xpos);
                g.drawLine(x, _Ymin, x, _Ymax);
            }
        }

        g2.setStroke(s);

    }