{"id":28047873,"url":"https://github.com/red-data-tools/matplotlib.rb","last_synced_at":"2025-06-15T13:35:38.804Z","repository":{"id":56883005,"uuid":"70077155","full_name":"red-data-tools/matplotlib.rb","owner":"red-data-tools","description":"matplotlib wrapper for Ruby","archived":false,"fork":false,"pushed_at":"2023-03-16T17:18:33.000Z","size":1745,"stargazers_count":93,"open_issues_count":8,"forks_count":10,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-05-09T04:20:23.816Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/red-data-tools.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2016-10-05T16:14:36.000Z","updated_at":"2025-05-02T03:28:50.000Z","dependencies_parsed_at":"2024-01-07T21:13:41.213Z","dependency_job_id":"456a0f28-7101-4514-8982-61a40a8bd534","html_url":"https://github.com/red-data-tools/matplotlib.rb","commit_stats":{"total_commits":78,"total_committers":2,"mean_commits":39.0,"dds":"0.012820512820512775","last_synced_commit":"b4fa0b74480ec64a81eda77b766e3845ba5ebc66"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/red-data-tools%2Fmatplotlib.rb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/red-data-tools%2Fmatplotlib.rb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/red-data-tools%2Fmatplotlib.rb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/red-data-tools%2Fmatplotlib.rb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/red-data-tools","download_url":"https://codeload.github.com/red-data-tools/matplotlib.rb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253633121,"owners_count":21939389,"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":[],"created_at":"2025-05-11T21:05:05.924Z","updated_at":"2025-05-11T21:05:06.903Z","avatar_url":"https://github.com/red-data-tools.png","language":"Ruby","funding_links":[],"categories":["Ruby"],"sub_categories":[],"readme":"# Matplotlib\n\nThis library enables to directly call [matplotlib](https://matplotlib.org/) from Ruby language.\nThis is built on top of [pycall](https://github.com/mrkn/pycall).\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'matplotlib'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install --pre matplotlib\n\n## Usage\n\n### Using pyplot in irb console or standalone scripts\n\nExample usage:\n\n    require 'matplotlib/pyplot'\n    plt = Matplotlib::Pyplot\n\n    xs = [*1..100].map {|x| (x - 50) * Math::PI / 100.0 }\n    ys = xs.map {|x| Math.sin(x) }\n\n    plt.plot(xs, ys)\n    plt.show()\n\n### IRuby integration\n\n`matplotlib/iruby` provides integration between IRuby notebook and matplotlib.\nThis functionality can be enabled by calling `Matplotlib::IRuby.activate`.\n\n    require 'matplotlib/iruby'\n    Matplotlib::IRuby.activate\n\n`matplotlib/iruby` also loads `matplotlib/pyplot`, so you can use `Matplotlib::Pyplot` module without explicitly requiring `matplotlib/pyplot`.\nAnd this introduces a post execution hook which put figures that are created in a cell just below the execution result of the cell.\n\nSee ipynb files in [examples](examples) to see example usages.\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/mrkn/matplotlib.\n\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fred-data-tools%2Fmatplotlib.rb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fred-data-tools%2Fmatplotlib.rb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fred-data-tools%2Fmatplotlib.rb/lists"}