private void drawVoltageGrid(Graphics g) {
		ArrayList<Double> list = makeList(voltageValue);
		Collections.sort(list);
		double belowZero = getNegativeAmount(list);
		double exactlyZero  = getZeroAmount(list);
		double aboveZero = getPositiveAmount(list);



		for(int x = width/6 +5; x < width*5/6 -10; x+=pixel){
			for (int y = height/6+5; y <height*5/6 + height/10 -30; y+=pixel){
				double value = voltageValue[x][y];
				g.setColor(Color.black);
				int colorVal = 128;
				boolean hot = false;


				if(value<0){
					colorVal = (int)((belowZero - list.indexOf(value))/belowZero*128);
					colorVal = Math.min(colorVal, 128);
					hot = false;


				}else if(value>0){
					colorVal = (int)((list.indexOf(value)-belowZero+2)/aboveZero*128);
					colorVal = Math.min(colorVal, 128);
					hot = true;
				}

				if(!hot){
					g.setColor(new Color(128-colorVal, 0, colorVal+127));
				}
				else if(hot){
					g.setColor(new Color(colorVal+127, 0, 128-colorVal));
				}


				g.fillRect(x, y, 7, 7);
			}
		}

		updateVoltageScaleText(list);

	}