Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tk canvas backend #58

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Conversation

josepegea
Copy link

This adds a new backend to draw plots interactively using Ruby/Tk.

See the examples/tk_canvas_wrapper folder for details about how to use.

I wrote this backend in order to be able to use rubyplot with TkComponent and TkInspect, 2 gems I'm building to make it easier to work with GUIs in Ruby.

I would love to have this code merged into the main branch so I can have a stable version of rubyplot as a dependency, instead of a fork.

Thanks for your work in rubyplot, BTW!

@kojix2
Copy link
Member

kojix2 commented Mar 1, 2021

Yes. I want a way to draw a plot in tk.
You can use Plotchart in Ruby/Tk. However, libraries other than Plotchart are required.

@kojix2
Copy link
Member

kojix2 commented Mar 1, 2021

I hope this pull request will not be abandoned for a long time.

@josepegea
Copy link
Author

Well, we could use a similar setup with putting the requiremente for gr and magick in the Gemfile instead of the gemspec and load them conditionally file so you can use the gem just with the backends you want and not forcing you to install external libs you're not going to use.

However, given the lack of response, I don't know how well that change would be accepted. Let's wait some days more.

If not, you can always use my fork, if needed. It's already working for me with Ruby/Tk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants