Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:illuusio:php-next
php-GnuPlot
0001-Add-SVG-support-for-output.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-Add-SVG-support-for-output.patch of Package php-GnuPlot
From cab14834e319c476825d743471f79b4766502175 Mon Sep 17 00:00:00 2001 From: Tuukka Pasanen <tuukka.pasanen@ilmi.fi> Date: Fri, 14 Jul 2023 10:37:06 +0300 Subject: [PATCH 1/3] Add SVG support for output Add support for SVG besides PDF, EPS and PNG SVG if helpfull in many way as one can directly present it in browser for example --- GnuPlot.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/GnuPlot.php b/GnuPlot.php index 39a2143..7c97680 100644 --- a/GnuPlot.php +++ b/GnuPlot.php @@ -10,6 +10,7 @@ class GnuPlot { const TERMINAL_PNG = 'png'; const TERMINAL_PDF = 'pdf'; const TERMINAL_EPS = 'eps'; + const TERMINAL_SVG = 'svg'; // Values as an array protected $values = array(); @@ -270,6 +271,16 @@ class GnuPlot { $this->write(self::TERMINAL_EPS, $file); } + /** + * Write the current plot to an SVG file. + * + * @param mixed $file + */ + public function writeSVG($file): void + { + $this->write(self::TERMINAL_SVG, $file); + } + /** * Write the current plot to a file */ -- 2.41.0
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor