{"id":13716282,"url":"https://github.com/frasiyav/BQN-Gnuplot","last_synced_at":"2025-05-07T05:32:32.244Z","repository":{"id":210184215,"uuid":"407752404","full_name":"frasiyav/BQN-Gnuplot","owner":"frasiyav","description":"A BQN wrapper script for Gnuplot","archived":false,"fork":false,"pushed_at":"2024-08-03T20:17:33.000Z","size":20,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-14T04:34:41.262Z","etag":null,"topics":["bqn","gnuplot","plotting"],"latest_commit_sha":null,"homepage":"","language":"BQN","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/frasiyav.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2021-09-18T04:10:54.000Z","updated_at":"2024-08-03T20:17:36.000Z","dependencies_parsed_at":"2023-12-01T08:43:22.803Z","dependency_job_id":"f6c42dac-6370-4632-9897-28110ef83917","html_url":"https://github.com/frasiyav/BQN-Gnuplot","commit_stats":null,"previous_names":["frasiyav/bqn-gnuplot"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frasiyav%2FBQN-Gnuplot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frasiyav%2FBQN-Gnuplot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frasiyav%2FBQN-Gnuplot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frasiyav%2FBQN-Gnuplot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/frasiyav","download_url":"https://codeload.github.com/frasiyav/BQN-Gnuplot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252823233,"owners_count":21809703,"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":["bqn","gnuplot","plotting"],"created_at":"2024-08-03T00:01:08.900Z","updated_at":"2025-05-07T05:32:31.912Z","avatar_url":"https://github.com/frasiyav.png","language":"BQN","readme":"# BQN-Gnuplot\nA BQN wrapper script for Gnuplot on linux. Tested on CBQN.\n\nUsage:\n------\n\nImport:\n```\n⟨Gnuplot⟩ ← •Import \"Gnuplot.bqn\"\n```\n\nCreate a plot window:\n```\nplt ← Gnuplot @\n```\nWhen creating a plot you can include 'set' options as either a list of strings or a single string:\n```\nplt ← Gnuplot ⟨\n  \"title 'Title'\" # use '' instead of \"\" when needed\n  .\n  .\n  .\n⟩\n\nplt ← Gnuplot \"\n  terminal pngcairo\n  output 'output.png'\n  .\n  .\n  .\n\"\n```\nAdditional plot options can be given with `.Set` and `.Unset`:\n```\nplt.Set \"\n  xlabel 'x'\n  ylabel 'f(x)'\n\"\n\nplt.Unset \"\n  key\n\"\n```\nData is expect as a flat, rank 1 or 2 array, with major cells corresponding to lines in gnuplot's data format:\n```\ndata1 ← \u003e⟨  # points in major cells\n  0‿5\n  1‿6\n  2‿7\n  3‿8\n⟩  \n\ndata2 ← 8‿7‿6‿5\n\ndata3 ← \u003e⟨\n  1‿2‿3‿4\n  1‿3‿5‿7\n  1‿4‿7‿10\n  1‿5‿9‿13\n⟩\n```\nUse `.Plot` (or `.SPlot` for 3d plot types) to plot the data, giving options as a joined string:\n```\nplt.Plot data1‿\"with lines\"\nplt.Plot data2             \n\nplt.SPlot data3‿\"matrix with lines\"\n```\nData can also contain strings for uses such as labeling bar charts:\n```\nstringdata ← \u003e⟨\n    \"label A\"‿3\n    \"label B\"‿7\n    \"label C\"‿5\n⟩\nplt.Set ⟨\"boxwidth 0.5\",\"style fill solid\"⟩\nplt.Plot stringdata‿\"using 2:xtic(1) with boxes\"\n```\nAdditionally, functions in strings can be passed to gnuplot to evaluate:\n```\nplt.Plot \"sin(x)\"‿\"with impulse\"\n```\nFinally, to show the plot:\n```\nplt.Show @\n```\nTo use Gnuplot's Multiplot features make sure multiplot is set when creating the window:\n```\nmplt ← Gnuplot \"\n  multiplot layout 2,1 title 'Multiple plots' font ',20'\n\"\n```\nPlot the contents of the first subplot:\n```\nmplt.Set \"title 'Subplot 1'\"\n\nmplt.Plot \"x**2/10\"\nmplt.Plot \"cos(x)\"‿\"with points\"\n```\nThen use .Subplot to begin the next plot, after which you can set and unset options specific to that plot.\n```\nmplt.Subplot \"title 'Sub-plot 2'\"\n\nmplt.Set \"title 'Subplot 2'\"\nmplt.Unset \"key\"\n\nmplt.SPlot \"x*y\"\n```\n","funding_links":[],"categories":["Libraries"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrasiyav%2FBQN-Gnuplot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffrasiyav%2FBQN-Gnuplot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrasiyav%2FBQN-Gnuplot/lists"}