protected function sendInit()
    {
        $this->sendCommand('set grid');

        if ($this->title) {
            $this->sendCommand('set title "'.$this->title.'"');
        }

        if ($this->xlabel) {
            $this->sendCommand('set xlabel "'.$this->xlabel.'"');
        }

        if ($this->timeFormat) {
            $this->sendCommand('set xdata time');
            $this->sendCommand('set timefmt "'.$this->timeFormat.'"');
            $this->sendCommand('set xtics rotate by 45 offset -6,-3');
            if ($this->timeFormatString) {
                $this->sendCommand('set format x "'.$this->timeFormatString.'"');
            }
        }

        if ($this->ylabel) {
            $this->sendCommand('set ylabel "'.$this->ylabel.'"');
        }

        if ($this->yformat) {
            $this->sendCommand('set format y "'.$this->yformat.'"');
        }

        if ($this->xrange) {
            $this->sendCommand('set xrange ['.$this->xrange[0].':'.$this->xrange[1].']');
        }

        if ($this->yrange) {
            $this->sendCommand('set yrange ['.$this->yrange[0].':'.$this->yrange[1].']');
        }

        foreach ($this->labels as $label) {
            $this->sendCommand('set label "'.$label[2].'" at '.$label[0].', '.$label[1]);
        }
    }