Best Phoronix-test-suite code snippet using pts_graph_scatter_plot.render_graph_pre_init
pts_graph_scatter_plot.php
Source:pts_graph_scatter_plot.php
...32 //$this->i['graph_width'] = 1400;33 //$this->i['graph_height'] = 600;34 //$this->update_graph_dimensions(-1, -1, true);35 }36 protected function render_graph_pre_init()37 {38 $this->i['min_time'] = strtotime(min($this->test_result->test_result_buffer->get_identifiers()));39 $this->i['max_time'] = strtotime(max($this->test_result->test_result_buffer->get_identifiers()));40 $this->i['spread_time'] = $this->i['max_time'] - $this->i['min_time'];41 // Do some common work to this object42 $graph_identifiers_count = count($this->graph_identifiers);43 $identifier_count = $graph_identifiers_count > 1 ? $graph_identifiers_count : count($this->graph_data[0]);44 $this->i['identifier_width'] = ($this->i['graph_left_end'] - $this->i['left_start']) / ($identifier_count + 1);45 $longest_string = pts_strings::find_longest_string($this->graph_identifiers);46 $this->i['identifier_size'] = $this->text_size_bounds($longest_string, $this->i['identifier_size'], $this->i['min_identifier_size'], $this->i['identifier_width'] - 4);47 if($this->i['identifier_size'] <= $this->i['min_identifier_size'])48 {49 list($text_width, $text_height) = pts_svg_dom::estimate_text_dimensions($longest_string, $this->i['min_identifier_size'] + 0.5);50 $this->i['bottom_offset'] += $text_width;...
Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Execute automation tests with render_graph_pre_init on a cloud-based Grid of 3000+ real browsers and operating systems for both web and mobile applications.
Test now for FreeGet 100 minutes of automation test minutes FREE!!