<?php /* * This work is hereby released into the Public Domain. * To view a copy of the public domain dedication, * visit http://creativecommons.org/licenses/publicdomain/ or send a letter to * Creative Commons, 559 Nathan Abbott Way, Stanford, California 94305, USA. * */ require_once "../../Graph.class.php"; $graph = new Graph(400, 400); //$graph->setAntiAliasing(TRUE); $graph->title->set("Ticks"); $driver = $graph->getDriver(); // Simple horizontal line $line = new Vector(new Point(10, 50), new Point(390, 50)); $driver->line(new VeryLightGray(), $line); $tick = new Tick(10, 8); $tick->draw($driver, $line); $tick2 = new Tick(40 - 3, 5); $tick2->setInterval(2); $tick2->draw($driver, $line); $tick3 = new Tick(0, 2); $tick3->setNumberByTick($tick2, 1); $tick3->draw($driver, $line); // Simple horizontal line // TICK_OUT style // Hide first tick $line = new Vector(new Point(10, 70), new Point(390, 70)); $driver->line(new VeryLightGray(), $line); $tick = new Tick(20, 5);