| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
| 18 | |
| 19 | |
| 20 | |
| 21 | |
| 22 | |
| 23 | |
| 24 |
|
| 25 | (define-module (gnu packages plotutils)
|
| 26 | #:use-module ((guix licenses) #:prefix license:)
|
| 27 | #:use-module ((guix utils) #:select (target-x86-32?))
|
| 28 | #:use-module (guix build-system cmake)
|
| 29 | #:use-module (guix build-system gnu)
|
| 30 | #:use-module (guix build-system ruby)
|
| 31 | #:use-module (guix download)
|
| 32 | #:use-module (guix gexp)
|
| 33 | #:use-module (guix git-download)
|
| 34 | #:use-module (guix packages)
|
| 35 | #:use-module (gnu packages)
|
| 36 | #:use-module (gnu packages algebra)
|
| 37 | #:use-module (gnu packages autotools)
|
| 38 | #:use-module (gnu packages bash)
|
| 39 | #:use-module (gnu packages bdw-gc)
|
| 40 | #:use-module (gnu packages bison)
|
| 41 | #:use-module (gnu packages boost)
|
| 42 | #:use-module (gnu packages cmake)
|
| 43 | #:use-module (gnu packages compression)
|
| 44 | #:use-module (gnu packages emacs)
|
| 45 | #:use-module (gnu packages compiler-tools)
|
| 46 | #:use-module (gnu packages ghostscript)
|
| 47 | #:use-module (gnu packages gl)
|
| 48 | #:use-module (gnu packages gtk)
|
| 49 | #:use-module (gnu packages guile)
|
| 50 | #:use-module (gnu packages image)
|
| 51 | #:use-module (gnu packages image-processing)
|
| 52 | #:use-module (gnu packages maths)
|
| 53 | #:use-module (gnu packages ncurses)
|
| 54 | #:use-module (gnu packages onc-rpc)
|
| 55 | #:use-module (gnu packages perl)
|
| 56 | #:use-module (gnu packages pkg-config)
|
| 57 | #:use-module (gnu packages python)
|
| 58 | #:use-module (gnu packages python-xyz)
|
| 59 | #:use-module (gnu packages qt)
|
| 60 | #:use-module (gnu packages readline)
|
| 61 | #:use-module (gnu packages ruby-check)
|
| 62 | #:use-module (gnu packages ruby-xyz)
|
| 63 | #:use-module (gnu packages statistics)
|
| 64 | #:use-module (gnu packages tex)
|
| 65 | #:use-module (gnu packages texinfo)
|
| 66 | #:use-module (gnu packages vulkan)
|
| 67 | #:use-module (gnu packages web)
|
| 68 | #:use-module (gnu packages wxwidgets)
|
| 69 | #:use-module (gnu packages xorg))
|
| 70 |
|
| 71 | (define-public asymptote
|
| 72 | (package
|
| 73 | (name "asymptote")
|
| 74 | (version "3.12")
|
| 75 | (source
|
| 76 | (origin
|
| 77 | (method url-fetch)
|
| 78 | (uri (string-append "mirror://sourceforge/asymptote/"
|
| 79 | version "/asymptote-" version ".src.tgz"))
|
| 80 | (sha256
|
| 81 | (base32 "06wgkff6ah0jp5icj0wliy0v0y1llxkd9263jfii7wiy8sbixv7a"))
|
| 82 | (modules '((guix build utils)))))
|
| 83 | (build-system gnu-build-system)
|
| 84 | |
| 85 | |
| 86 | |
| 87 | (native-inputs
|
| 88 | (list autoconf-2.71
|
| 89 | automake
|
| 90 | bison
|
| 91 | boost-1.83
|
| 92 | cmake-minimal
|
| 93 | emacs-minimal
|
| 94 | flex
|
| 95 | libtool
|
| 96 | perl
|
| 97 | pkg-config
|
| 98 | rapidjson
|
| 99 | texinfo |
| 100 | (texlive-local-tree
|
| 101 | (list texlive-dvisvgm
|
| 102 | texlive-epsf
|
| 103 | texlive-etoolbox
|
| 104 | texlive-hypdoc
|
| 105 | texlive-infwarerr
|
| 106 | texlive-kvdefinekeys
|
| 107 | texlive-kvoptions
|
| 108 | texlive-media9
|
| 109 | texlive-ocgx2
|
| 110 | texlive-parskip
|
| 111 | texlive-pdftexcmds
|
| 112 | texlive-texinfo
|
| 113 | texlive-type1cm))
|
| 114 | vulkan-headers))
|
| 115 | (inputs
|
| 116 | (list bash-minimal
|
| 117 | eigen
|
| 118 | fftw
|
| 119 | freeglut
|
| 120 | ghostscript |
| 121 | glew
|
| 122 | glfw
|
| 123 | glm
|
| 124 | glslang
|
| 125 | gsl
|
| 126 | libglvnd
|
| 127 | libtirpc
|
| 128 | ncurses
|
| 129 | python
|
| 130 | python-cson
|
| 131 | python-numpy
|
| 132 | python-pyqt
|
| 133 | readline
|
| 134 | spirv-tools
|
| 135 | vulkan-loader
|
| 136 | zlib))
|
| 137 | (arguments
|
| 138 | (list
|
| 139 | #:modules '((guix build emacs-utils)
|
| 140 | (guix build gnu-build-system)
|
| 141 | (guix build utils)
|
| 142 | (srfi srfi-26))
|
| 143 | #:imported-modules `(,@%default-gnu-imported-modules
|
| 144 | (guix build emacs-utils))
|
| 145 | #:configure-flags
|
| 146 | #~(list (string-append "--with-latex=" #$output "/share/texmf-dist/tex/latex")
|
| 147 | (string-append "--with-context="
|
| 148 | #$output
|
| 149 | "/share/texmf-dist/tex/context/third"))
|
| 150 | #:phases
|
| 151 | #~(modify-phases %standard-phases
|
| 152 | (add-after 'unpack 'use-system-rapidjson
|
| 153 | (lambda* (#:key inputs #:allow-other-keys)
|
| 154 | (substitute* (list "Makefile.in")
|
| 155 | (("\\$\\(CMAKE\\)" all)
|
| 156 | (string-append all " -DUSE_SYSTEM_RAPIDJSON=ON")))))
|
| 157 | (add-after 'unpack 'move-info-location
|
| 158 | |
| 159 | |
| 160 | |
| 161 | (lambda _
|
| 162 | (substitute* "doc/png/Makefile.in"
|
| 163 | (("(\\$\\(infodir\\))/asymptote" _ infodir) infodir))
|
| 164 | (substitute* "doc/asymptote.texi"
|
| 165 | (("asymptote/asymptote") "asymptote"))))
|
| 166 | (add-before 'bootstrap 'prepare-bootstrap
|
| 167 | |
| 168 | |
| 169 | |
| 170 | |
| 171 | (lambda _
|
| 172 | (setenv "CONFIG_SHELL" (which "bash"))
|
| 173 | (substitute* (list "autogen.sh" "gc/autogen.sh" "gc/configure")
|
| 174 | (("/bin/sh") (which "sh")))
|
| 175 | (substitute* "configure.ac"
|
| 176 | (("(^[ \t]*VULKAN_LIBS=\").*" _ pre)
|
| 177 | (string-append pre "\"\n")))))
|
| 178 | (replace 'bootstrap
|
| 179 | (lambda _
|
| 180 | (invoke "./autogen.sh")))
|
| 181 | (add-before 'build 'change-default-settings
|
| 182 | (lambda* (#:key inputs #:allow-other-keys)
|
| 183 | |
| 184 | (substitute* "settings.cc"
|
| 185 | (("defaultPDFViewer=\"acroread\"")
|
| 186 | "defaultPDFViewer=\"gv\"")
|
| 187 | (("defaultGhostscript=\"gs\"")
|
| 188 | (format #f "defaultGhostscript=\"~a\""
|
| 189 | (search-input-file inputs "/bin/gs"))))))
|
| 190 | (add-before 'build 'setenv
|
| 191 | (lambda _
|
| 192 | (setenv "TEXMFVAR" "/tmp"))) |
| 193 | (add-before 'check 'set-HOME
|
| 194 | |
| 195 | |
| 196 | (lambda _
|
| 197 | (setenv "HOME" "/tmp")))
|
| 198 | (add-after 'install 'install-Emacs-data
|
| 199 | (lambda _
|
| 200 | |
| 201 | (let ((lisp-dir
|
| 202 | (string-append #$output "/share/emacs/site-lisp")))
|
| 203 | (for-each (cut install-file <> lisp-dir)
|
| 204 | (find-files "." "\\.el$"))
|
| 205 | (emacs-generate-autoloads #$name lisp-dir))))
|
| 206 | (add-after 'install-Emacs-data 'wrap-python-script
|
| 207 | (lambda* (#:key inputs outputs #:allow-other-keys)
|
| 208 | |
| 209 | (let ((path (getenv "GUIX_PYTHONPATH")))
|
| 210 | (wrap-program
|
| 211 | (string-append #$output "/share/asymptote/GUI/xasy.py")
|
| 212 | `("GUIX_PYTHONPATH" ":" prefix (,path)))))))))
|
| 213 | (home-page "https://asymptote.sourceforge.io")
|
| 214 | (synopsis "Script-based vector graphics language")
|
| 215 | (description
|
| 216 | "Asymptote is a powerful descriptive vector graphics language for
|
| 217 | technical drawing, inspired by MetaPost but with an improved C++-like syntax.
|
| 218 | Asymptote provides for figures the same high-quality level of typesetting that
|
| 219 | LaTeX does for scientific text.")
|
| 220 | |
| 221 | |
| 222 | |
| 223 | |
| 224 | (license license:lgpl3+)))
|
| 225 |
|
| 226 | (define-public guile-charting
|
| 227 | |
| 228 | |
| 229 | (let ((commit "72c148fe164da36cf3f0fb877d858d65f10ee785")
|
| 230 | (revision "2"))
|
| 231 | (package
|
| 232 | (name "guile-charting")
|
| 233 | (version (git-version "0.2.0" revision commit))
|
| 234 | (source (origin
|
| 235 | (method git-fetch)
|
| 236 | (uri (git-reference
|
| 237 | (url "https://gitlab.com/wingo/guile-charting")
|
| 238 | (commit commit)))
|
| 239 | (file-name (git-file-name name version))
|
| 240 | (sha256
|
| 241 | (base32
|
| 242 | "1fnilx9973b6958gnjrr8012mhi840cp66rj5iq6gkp02kx34i3r"))))
|
| 243 | (build-system gnu-build-system)
|
| 244 | (native-inputs
|
| 245 | (list autoconf automake texinfo pkg-config))
|
| 246 | (inputs (list guile-3.0))
|
| 247 | (propagated-inputs (list guile-cairo))
|
| 248 | (home-page "https://wingolog.org/projects/guile-charting/")
|
| 249 | (synopsis "Create charts and graphs in Guile")
|
| 250 | (description
|
| 251 | "Guile-Charting is a Guile Scheme library to create bar charts and graphs
|
| 252 | using the Cairo drawing library.")
|
| 253 | (license license:lgpl2.1+))))
|
| 254 |
|
| 255 | (define-public guile-plotutils
|
| 256 | (package
|
| 257 | (name "guile-plotutils")
|
| 258 | (version "1.0.2")
|
| 259 | (home-page "https://github.com/spk121/guile-plotutils")
|
| 260 | (source (origin
|
| 261 | (method git-fetch)
|
| 262 | (uri (git-reference (url home-page)
|
| 263 | (commit (string-append "v" version))))
|
| 264 | (file-name (git-file-name name version))
|
| 265 | (sha256
|
| 266 | (base32
|
| 267 | "1d0dq3is7j2grg806ql6y105zv3k0md5ndlpn1xgfshq6fi9yngr"))))
|
| 268 | (build-system gnu-build-system)
|
| 269 | (arguments
|
| 270 | (list #:imported-modules `((guix build guile-build-system)
|
| 271 | ,@%default-gnu-imported-modules)
|
| 272 | #:modules `(((guix build guile-build-system)
|
| 273 | #:select (target-guile-effective-version))
|
| 274 | (guix build gnu-build-system)
|
| 275 | (guix build utils))
|
| 276 | #:configure-flags #~(list "--with-gnu-filesystem-hierarchy")
|
| 277 | #:phases
|
| 278 | #~(modify-phases %standard-phases
|
| 279 | (add-before 'install 'set-library-file-name
|
| 280 | (lambda* (#:key outputs #:allow-other-keys)
|
| 281 | (let ((out (assoc-ref outputs "out"))
|
| 282 | (version (target-guile-effective-version)))
|
| 283 | |
| 284 | (invoke "make" "install-guileextensionLTLIBRARIES"
|
| 285 | "-C" "src")
|
| 286 |
|
| 287 | |
| 288 | (substitute* '("module/plotutils/graph.scm"
|
| 289 | "module/plotutils/plot.scm")
|
| 290 | (("\"libguile-plotutils\"")
|
| 291 | (string-append "\"" out "/lib/guile/" version
|
| 292 | "/extensions/libguile-plotutils\"")))))))))
|
| 293 | (native-inputs (list autoconf-2.71 automake libtool pkg-config texinfo))
|
| 294 | (inputs (list plotutils guile-3.0 zlib))
|
| 295 | (synopsis "Guile bindings to the GNU Plotutils plotting libraries")
|
| 296 | (description
|
| 297 | "Guile-Plotutils is a Guile binding to the venerable GNU Plotutils
|
| 298 | plotting and graphing library. If you want to make graphs that look like you
|
| 299 | went to university in the 1990s, this is the library for you.")
|
| 300 | (license license:gpl3+)))
|
| 301 |
|
| 302 | (define-public guile2.2-charting
|
| 303 | (package
|
| 304 | (inherit guile-charting)
|
| 305 | (name "guile2.2-charting")
|
| 306 | (inputs (list guile-2.2))
|
| 307 | (propagated-inputs (list guile2.2-cairo))))
|
| 308 |
|
| 309 | (define-public matplotplusplus
|
| 310 | (package
|
| 311 | (name "matplotplusplus")
|
| 312 | (version "1.2.2")
|
| 313 | (source
|
| 314 | (origin
|
| 315 | (method git-fetch)
|
| 316 | (uri (git-reference
|
| 317 | (url "https://github.com/alandefreitas/matplotplusplus")
|
| 318 | (commit (string-append "v" version))))
|
| 319 | (file-name (git-file-name name version))
|
| 320 | (snippet
|
| 321 | #~(begin
|
| 322 | (use-modules (guix build utils))
|
| 323 | (for-each delete-file-recursively
|
| 324 | '("source/3rd_party/cimg"
|
| 325 | "source/3rd_party/nodesoup"))))
|
| 326 | (sha256
|
| 327 | (base32 "0cvz8h8hsj6gavcx1wgda39yi2m3csz4bvpn82rbqzc9ilf8z0dy"))))
|
| 328 | (build-system cmake-build-system)
|
| 329 | (arguments
|
| 330 | (list #:phases
|
| 331 | #~(modify-phases %standard-phases
|
| 332 | (add-after 'unpack 'patch-sh-path
|
| 333 | (lambda* (#:key inputs #:allow-other-keys)
|
| 334 | (substitute* "source/matplot/util/popen.cpp"
|
| 335 | (("/bin/sh")
|
| 336 | (search-input-file inputs "bin/sh"))))))
|
| 337 | #:configure-flags
|
| 338 | #~(list "-DMATPLOTPP_WITH_SYSTEM_NODESOUP=ON"
|
| 339 | "-DMATPLOTPP_WITH_SYSTEM_CIMG=ON"
|
| 340 | "-DMATPLOTPP_BUILD_EXAMPLES=ON"
|
| 341 | "-DMATPLOTPP_BUILD_EXAMPLES_WITH_ADD_TEST=ON"
|
| 342 | "-DMATPLOTPP_BUILD_TESTS=ON"
|
| 343 | "-DMATPLOT_BUILD_FOR_DOCUMENTATION_IMAGES=ON"
|
| 344 | |
| 345 | "-DMATPLOTPP_BUILD_EXPERIMENTAL_OPENGL_BACKEND=OFF"
|
| 346 | (string-append "-DNODESOUP_INCLUDE_DIR="
|
| 347 | #$(this-package-input "nodesoup")
|
| 348 | "/include/nodesoup"))))
|
| 349 | (native-inputs (list cimg
|
| 350 | gnuplot))
|
| 351 | (inputs (list bash-minimal
|
| 352 | fftw
|
| 353 | gnuplot
|
| 354 | ijg-libjpeg
|
| 355 | lapack
|
| 356 | libpng
|
| 357 | libtiff
|
| 358 | nodesoup
|
| 359 | openblas
|
| 360 | opencv
|
| 361 | zlib))
|
| 362 | (home-page "https://alandefreitas.github.io/matplotplusplus")
|
| 363 | (synopsis "C++ graphics library for data visualization")
|
| 364 | (description "Matplot++ is a graphics library for data visualization that provides
|
| 365 | interactive plotting, means for exporting plots in high-quality formats for scientific
|
| 366 | publications, a compact syntax consistent with similar libraries, dozens of plot
|
| 367 | categories with specialized algorithms, multiple coding styles, and supports generic
|
| 368 | backends.")
|
| 369 | (license license:expat)))
|
| 370 |
|
| 371 | (define-public ploticus
|
| 372 | (package
|
| 373 | (name "ploticus")
|
| 374 | (version "2.42")
|
| 375 | (source (origin
|
| 376 | (method url-fetch)
|
| 377 | (uri (string-append "mirror://sourceforge/ploticus/ploticus/"
|
| 378 | version "/ploticus242_src.tar.gz"))
|
| 379 | (sha256
|
| 380 | (base32
|
| 381 | "1c70cvfvgjh83hj1x21130wb9qfr2rc0x47cxy9kl805yjwy8a9z"))
|
| 382 | (modules '((guix build utils)))
|
| 383 | (patches (search-patches "ploticus-pointer-types.patch"))
|
| 384 | (snippet
|
| 385 | |
| 386 | #~(begin
|
| 387 | (substitute* "src/Makefile"
|
| 388 | (("INSTALLBIN =.*$")
|
| 389 | (string-append "INSTALLBIN = $(out)/bin")))))))
|
| 390 | (build-system gnu-build-system)
|
| 391 | (arguments
|
| 392 | (list
|
| 393 | #:tests? #f |
| 394 | #:phases
|
| 395 | #~(modify-phases %standard-phases
|
| 396 | (replace 'configure (lambda _ (chdir "src")))
|
| 397 | (add-before 'install 'make-target-directories
|
| 398 | (lambda _
|
| 399 | (mkdir-p (string-append #$output "/bin"))))
|
| 400 | (add-after 'install 'install-prefabs
|
| 401 | (lambda _
|
| 402 | (let* ((out #$output)
|
| 403 | (dir (string-append out "/share/ploticus/prefabs"))
|
| 404 | (bin (string-append out "/bin")))
|
| 405 | (mkdir-p dir)
|
| 406 | |
| 407 | (for-each
|
| 408 | (lambda (file)
|
| 409 | (let ((target (string-append dir "/" (basename file))))
|
| 410 | (copy-file file target)))
|
| 411 | (find-files "../prefabs" "."))
|
| 412 | |
| 413 | (wrap-program (string-append bin "/pl")
|
| 414 | `("PLOTICUS_PREFABS" ":" = (,dir)))))))))
|
| 415 | (inputs (list bash-minimal libpng libx11 zlib))
|
| 416 | (home-page "https://ploticus.sourceforge.net/")
|
| 417 | (synopsis "Command-line tool for producing plots and charts")
|
| 418 | (description
|
| 419 | "Ploticus is a non-interactive software package for producing plots,
|
| 420 | charts, and graphics from data. Ploticus is good for automated or
|
| 421 | just-in-time graph generation, handles date and time data nicely, and has
|
| 422 | basic statistical capabilities. It allows significant user control over
|
| 423 | colors, styles, options and details.")
|
| 424 | (license license:gpl2+)))
|
| 425 |
|
| 426 | (define-public plotutils
|
| 427 | (package
|
| 428 | (name "plotutils")
|
| 429 | (version "2.6")
|
| 430 | (source (origin
|
| 431 | (method url-fetch)
|
| 432 | (uri (string-append "mirror://gnu/plotutils/plotutils-"
|
| 433 | version ".tar.gz"))
|
| 434 | (sha256
|
| 435 | (base32
|
| 436 | "1arkyizn5wbgvbh53aziv3s6lmd3wm9lqzkhxb3hijlp1y124hjg"))
|
| 437 | (modules '((guix build utils)))
|
| 438 | (snippet
|
| 439 | |
| 440 | |
| 441 | |
| 442 | |
| 443 | '(begin
|
| 444 | (substitute* "configure"
|
| 445 | (("-lXaw")
|
| 446 | "-lXaw7"))
|
| 447 | |
| 448 | |
| 449 | |
| 450 | (substitute* "libplot/z_write.c"
|
| 451 | (("png_ptr->jmpbuf")
|
| 452 | "png_jmpbuf (png_ptr)"))
|
| 453 | #t))
|
| 454 | (patches
|
| 455 | |
| 456 | |
| 457 | |
| 458 | (search-patches "plotutils-spline-test.patch"))))
|
| 459 | (build-system gnu-build-system)
|
| 460 | (arguments
|
| 461 | (list #:configure-flags
|
| 462 | #~(list "--enable-libplotter"
|
| 463 |
|
| 464 | |
| 465 | |
| 466 | |
| 467 | |
| 468 | #$@(if (target-x86-32?)
|
| 469 | #~("CFLAGS=-g -O2 -fexcess-precision=standard")
|
| 470 | #~()))
|
| 471 |
|
| 472 | #:phases
|
| 473 | (if (target-x86-32?)
|
| 474 | #~(modify-phases %standard-phases
|
| 475 | (add-before 'check 'skip-sloppy-test
|
| 476 | (lambda _
|
| 477 | |
| 478 | |
| 479 | (substitute* "test/plot2svg.test"
|
| 480 | (("^exit .*") "exit 77")))))
|
| 481 | #~%standard-phases)))
|
| 482 | (inputs (list libpng libx11 libxt libxaw))
|
| 483 | (home-page "https://www.gnu.org/software/plotutils/")
|
| 484 | (synopsis "Plotting utilities and library")
|
| 485 | (description
|
| 486 | "GNU Plotutils is a package for plotting and working with 2D graphics.
|
| 487 | It includes the C library @code{libplot} and the C++ @code{libplotter} library
|
| 488 | for exporting 2D vector graphics in many file formats. It also has support
|
| 489 | for 2D vector graphics animations. The package also contains command-line
|
| 490 | programs for plotting scientific data.")
|
| 491 | (license license:gpl2+)))
|
| 492 |
|
| 493 | (define-public plplot
|
| 494 | (package
|
| 495 | (name "plplot")
|
| 496 | (version "5.15.0")
|
| 497 | (source (origin
|
| 498 | (method url-fetch)
|
| 499 | (uri (string-append "mirror://sourceforge/plplot/plplot/"
|
| 500 | version "%20Source/plplot-" version
|
| 501 | ".tar.gz"))
|
| 502 | (sha256
|
| 503 | (base32
|
| 504 | "0ywccb6bs1389zjfmc9zwdvdsvlpm7vg957whh6b5a96yvcf8bdr"))
|
| 505 | (modules '((guix build utils)))
|
| 506 | (snippet #~(begin (delete-file-recursively "www")
|
| 507 | (substitute* "CMakeLists.txt"
|
| 508 | (("add_subdirectory\\(www\\)") ""))))))
|
| 509 | (build-system cmake-build-system)
|
| 510 | |
| 511 | |
| 512 | |
| 513 | (arguments
|
| 514 | (list
|
| 515 | #:configure-flags
|
| 516 | #~(list (string-append "-DLIB_DIR=" #$output "/lib")
|
| 517 | "-DBUILD_TEST=TRUE"
|
| 518 | "-DENABLE_wxwidgets=TRUE")))
|
| 519 | (native-inputs (list pkg-config))
|
| 520 | (inputs (list wxwidgets))
|
| 521 | (home-page "http://plplot.org/") |
| 522 | (synopsis "Scientific plotting library with Unicode support")
|
| 523 | (description
|
| 524 | "PLplot is a software package for creating scientific plots which core
|
| 525 | library can be used to create standard x-y plots, semi-log plots, log-log
|
| 526 | plots, contour plots, 3D surface plots, mesh plots, bar charts and pie charts.
|
| 527 | Multiple graphs (of the same or different sizes) may be placed on a single
|
| 528 | page, and multiple pages are allowed for those device formats that support
|
| 529 | them.
|
| 530 |
|
| 531 | PLplot has support for plot symbols and text specified by the user in the
|
| 532 | UTF-8 encoding of Unicode. This means for our many Unicode-aware devices that
|
| 533 | plot symbols and text are only limited by the collection of glyphs normally
|
| 534 | available via installed system fonts. Furthermore, a large subset of our
|
| 535 | Unicode-aware devices also support complex text layout (CTL) languages such as
|
| 536 | Arabic, Hebrew, and Indic and Indic-derived CTL scripts such as Devanagari,
|
| 537 | Thai, Lao, and Tibetan. Thus, for these PLplot devices essentially any
|
| 538 | language that is supported by Unicode and installed system fonts can be used
|
| 539 | to label plots.")
|
| 540 | (license (list license:lgpl2.0
|
| 541 | license:gpl2+ |
| 542 | license:bsd-2 |
| 543 | license:ogl-psi1.0 |
| 544 | license:cc-by-sa3.0 |
| 545 | license:expat)))) |
| 546 |
|
| 547 | (define-public ruby-unicode-plot
|
| 548 | (package
|
| 549 | (name "ruby-unicode-plot")
|
| 550 | (version "0.0.5")
|
| 551 | |
| 552 | (source (origin
|
| 553 | (method git-fetch)
|
| 554 | (uri (git-reference
|
| 555 | (url
|
| 556 | "https://github.com/red-data-tools/unicode_plot.rb")
|
| 557 | (commit (string-append "v" version))))
|
| 558 | (file-name (git-file-name name version))
|
| 559 | (sha256
|
| 560 | (base32
|
| 561 | "0g67brnb7zp1xx9cp1x7bmyxwnvi2i8gplw7p1j7cppzin4kr1vj"))))
|
| 562 | (build-system ruby-build-system)
|
| 563 | (native-inputs (list bundler ruby-rake ruby-test-unit ruby-yard))
|
| 564 | (propagated-inputs (list ruby-enumerable-statistics))
|
| 565 | (synopsis "Library to plot your data by Unicode characters")
|
| 566 | (description "UnicodePlot provides the feature to make charts with Unicode
|
| 567 | characters. Supported charts are: barplot, boxplot, densityplot,
|
| 568 | histogram, lineplot, and scatterplot.")
|
| 569 | (home-page "https://github.com/red-data-tools/unicode_plot.rb")
|
| 570 | (license license:expat)))
|
| 571 |
|
| 572 | (define-public youplot
|
| 573 | (package
|
| 574 | (name "youplot")
|
| 575 | (version "0.4.6")
|
| 576 | |
| 577 | (source (origin
|
| 578 | (method git-fetch)
|
| 579 | (uri (git-reference
|
| 580 | (url "https://github.com/red-data-tools/YouPlot")
|
| 581 | (commit (string-append "v" version))))
|
| 582 | (file-name (git-file-name name version))
|
| 583 | (sha256
|
| 584 | (base32
|
| 585 | "1r9s8ls4f8w36fmja9vcl9wqdl9ikf8w7565srcn7i2wyza9bf7j"))))
|
| 586 | (build-system ruby-build-system)
|
| 587 | (native-inputs (list ruby-rake ruby-simplecov ruby-test-unit))
|
| 588 | (propagated-inputs (list ruby-unicode-plot))
|
| 589 | (synopsis "Command line tool that draw plots on the terminal")
|
| 590 | (description
|
| 591 | "YouPlot is a command line tool that draws plots on the terminal,
|
| 592 | powered by UnicodePlot gem. It provides commands @command{youplot}
|
| 593 | and @command{uplot} (shorthand) are provided, and supports chart types
|
| 594 | of barplot, histogram, lineplot, scatter, density, boxplot, and count.")
|
| 595 | (home-page "https://github.com/red-data-tools/YouPlot")
|
| 596 | (license license:expat)))
|
| 597 |
|
| 598 | |
| 599 | |
| 600 | |
| 601 | |