{"id":16613125,"url":"https://github.com/c-cube/ocaml-gnuplot","last_synced_at":"2025-03-21T14:31:15.516Z","repository":{"id":56336712,"uuid":"228533171","full_name":"c-cube/ocaml-gnuplot","owner":"c-cube","description":"bindings to gnuplot (fork of https://bitbucket.org/ogu/gnuplot-ocaml/)","archived":false,"fork":false,"pushed_at":"2024-05-06T16:29:36.000Z","size":3377,"stargazers_count":13,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-16T00:14:43.553Z","etag":null,"topics":["gnuplot","ocaml","plot"],"latest_commit_sha":null,"homepage":"https://c-cube.github.io/ocaml-gnuplot/","language":"OCaml","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/c-cube.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-12-17T04:34:08.000Z","updated_at":"2024-05-06T16:27:26.000Z","dependencies_parsed_at":"2024-10-28T10:30:06.216Z","dependency_job_id":null,"html_url":"https://github.com/c-cube/ocaml-gnuplot","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c-cube%2Focaml-gnuplot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c-cube%2Focaml-gnuplot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c-cube%2Focaml-gnuplot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c-cube%2Focaml-gnuplot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/c-cube","download_url":"https://codeload.github.com/c-cube/ocaml-gnuplot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244815152,"owners_count":20514903,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gnuplot","ocaml","plot"],"created_at":"2024-10-12T01:46:03.870Z","updated_at":"2025-03-21T14:31:15.026Z","avatar_url":"https://github.com/c-cube.png","language":"OCaml","readme":"# Gnuplot-OCaml - Simple interface to Gnuplot [![Build status](https://github.com/c-cube/ocaml-gnuplot/actions/workflows/main.yml/badge.svg)](https://github.com/c-cube/ocaml-gnuplot/actions/workflows/main.yml)\n\n---------------------------------------------------------------------------\n\nOcaml-Gnuplot provides a simple interface to [Gnuplot](http://www.gnuplot.info)\nfrom [OCaml](http://www.ocaml.org).  The API supports only 2D graphs and was\ninspired by [FnuPlot](https://github.com/fsprojects/FnuPlot).\n\nThis is the continuation of https://bitbucket.org/ogu/gnuplot-ocaml/ . Changes mainly\ninclude API changes that are friendlier\nwith `module Gp = Gnuplot` (as opposed to `open Gnuplot`),\nmoving to `dune` for the build, and removing Core as a dependency.\n\n## Installation\n\nFrom [OPAM](http://opam.ocaml.org)\n\n    $ opam install gnuplot\n\nFrom Source\n\n    $ make\n    $ make install\n\n**NOTE**: For a persistent X11 terminal add  `set term x11 persist` to your\n`.gnuplot` file in your home directory.\n\n## Usage\n\n### Documentation\n\nThe API-documentation of this distribution can be built with `make doc`.\nIt can also be found [online](https://c-cube.github.io/ocaml-gnuplot/).\n\n### Examples\n\nThis simple example\n\n```ocaml\nmodule Gp = Gnuplot\n\nlet () =\n  let gp = Gp.create () in\n  Gp.plot_many gp ~range:(Gp.Range.XY (-10., 10., -1.5, 1.5))\n   [ Gp.Series.lines_func  \"sin(x)\" ~title:\"Plot a line\" ~color:`Blue\n   ; Gp.Series.points_func \"cos(x)\" ~title:\"Plot points\" ~color:`Green ];\n  Gp.close gp\n```\n\ngenerates the following plot:\n\n![Simple Plot](./assets/simple_plot.png)\n\nFor more examples please refer to the `examples`-directory of this\ndistribution.  You can build the examples with dune, e.g.\n\n```\n$ dune build examples/gbm_paths.exe\n```\n\nRunning\n\n```\n$ dune exec examples/gbm_paths.exe\n```\n\ndisplays 10 simulated paths of geometric Brownian motion:\n\n![GBM Paths](./assets/gbm_paths.png)\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fc-cube%2Focaml-gnuplot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fc-cube%2Focaml-gnuplot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fc-cube%2Focaml-gnuplot/lists"}