public void draw_data(Graphics g, Rectangle bounds) {
		Color c;

		if (xaxis != null) {
			xmax = xaxis.maximum;
			xmin = xaxis.minimum;
		}

		if (yaxis != null) {
			ymax = yaxis.maximum;
			ymin = yaxis.minimum;
		}

		xrange = xmax - xmin;
		yrange = ymax - ymin;

		/*
		 * * Clip the data window
		 */

		if (clipping)
			g.clipRect(bounds.x, bounds.y, bounds.width, bounds.height);

		c = g.getColor();

		if (linestyle != DataSet.NOLINE) {
			if (lineColor != null)
				g.setColor(lineColor);
			else g.setColor(c);
			draw_lines(g, bounds);
		}

		if (marker > 0) {
			if (markercolor != null)
				g.setColor(markercolor);
			else g.setColor(c);
			draw_markers(g, bounds);
		}

		g.setColor(c);

		draw_legend(g, bounds);

	}