{"id":25874267,"url":"https://github.com/pioz/rplot","last_synced_at":"2026-05-24T16:36:48.099Z","repository":{"id":1261315,"uuid":"1200173","full_name":"pioz/rplot","owner":"pioz","description":"C extension for Ruby of GNU libplot","archived":false,"fork":false,"pushed_at":"2011-01-25T18:09:55.000Z","size":256,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-09-01T03:56:44.329Z","etag":null,"topics":["libplot","plot","ruby"],"latest_commit_sha":null,"homepage":"https://github.com/pioz/rplot","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pioz.png","metadata":{"files":{"readme":"README.rdoc","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-12-27T10:02:32.000Z","updated_at":"2019-12-20T16:07:08.000Z","dependencies_parsed_at":"2022-07-18T16:29:00.816Z","dependency_job_id":null,"html_url":"https://github.com/pioz/rplot","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pioz%2Frplot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pioz%2Frplot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pioz%2Frplot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pioz%2Frplot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pioz","download_url":"https://codeload.github.com/pioz/rplot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241482713,"owners_count":19969963,"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":["libplot","plot","ruby"],"created_at":"2025-03-02T09:19:40.866Z","updated_at":"2026-05-24T16:36:43.077Z","avatar_url":"https://github.com/pioz.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"= rplot\n\n*rplot* is a C extension for Ruby of GNU libplot.\n\n{GNU\nlibplot}[http://www.gnu.org/software/plotutils/manual/html_mono/plotutils.html#SEC45]\nis a free function library for drawing two-dimensional vector\ngraphics. It can produce smooth, double-buffered animations for the X\nWindow System, and can export files in many graphics file formats. It\nis `device-independent' in the sense that its API (application\nprogramming interface) is to a large extent independent of the display\ntype or output format. Rplot is a C extension for Ruby of GNU libplot.\n\n== Requirements\n\n* libplot-dev\n\nFor Debian/Ubuntu users: \u003ctt\u003eapt-get install libplot-dev\u003c/tt\u003e.\n\nFor Max OS X users use {port}[http://www.macports.org/]: \u003ctt\u003eport\ninstall plotutils\u003c/tt\u003e.\n\n== Installation\n\n    gem install rplot\n\n== Usage\n\nHere two little examples.\n\nThe first invokes rplot operations to draw vector graphics. It draws\nan intricate and beautiful path (Bill Gosper's \"C\" curve, discussed as\nItem #135 in HAKMEM, MIT Artificial Intelligence Laboratory Memo #239,\n1972). As the numeric constant MAXORDER (here equal to 12) is\nincreased, the path will take on the shape of a curly letter \"C\",\nwhich is the envelope of a myriad of epicyclic octagons.\n\n    require 'rubygems'\n    require 'rplot'\n\n    module MyCurve\n      MAXORDER = 12\n      def draw_curve(dx, dy, order)\n        if order \u003e= MAXORDER\n          self.cont(dx, dy, :rel =\u003e true)\n        else\n          self.draw_curve(0.5*(dx-dy), 0.5*(dx+dy), order+1)\n          self.draw_curve(0.5*(dx+dy), 0.5*(dy-dx), order+1)\n        end\n      end\n    end\n    Plotter.send(:include, MyCurve)\n\n    Plotter.params(:pagesize =\u003e 'letter')\n\n    Plotter.draw('png', 'RUBYtest3.png')do |p|\n      p.space(0,0, 1000,1000)\n      p.linewidth(0.25)\n      p.pencolor('red')\n      p.move(600, 300)\n      p.draw_curve(0, 400, 0)\n    end\n\nThe second example creates a simple animated pseudo-GIF, 150 pixels\nwide and 100 pixels high.\n\n    require 'rubygems'\n    require 'rplot'\n\n    Plotter.params(:bitmapsize =\u003e '150x100',\n                   :bg_color =\u003e 'orange',\n                   :transparent_color =\u003e 'orange',\n                   :gif_iterations =\u003e 100,\n                   :gif_delay =\u003e 5)\n    p = Plotter.new('gif', 'image.gif')\n    p.open\n    p.space(0,0,149,99)\n    p.pencolor('red')\n    p.linewidth(5)\n    p.filltype(1)\n    p.fillcolor('black')\n    i = 0\n    while i \u003c 180\n      p.erase\n      p.erase\n      p.ellipse(75,50,40,20,i)\n      i += 15\n    end\n    p.delete\n\n\u003cb\u003e{Here the complete documentation with\nAPI}[http://pioz.github.com/rplot/Plotter.html]\u003c/b\u003e.\n\n== Questions or problems?\n\nIf you have any issues with rplot please add an {issue on\nGitHub}[https://github.com/pioz/rplot/issues] or fork the project and\nsend a pull request.\n\n== Copyright\n\nCopyright (c) 2010 Enrico Pilotto. See\n{LICENSE}[http://github.com/pioz/rplot/blob/master/LICENSE] for\ndetails.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpioz%2Frplot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpioz%2Frplot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpioz%2Frplot/lists"}