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

unclear what methods to provide to plot custom data type #164

Open
drdozer opened this issue Aug 12, 2021 · 2 comments
Open

unclear what methods to provide to plot custom data type #164

drdozer opened this issue Aug 12, 2021 · 2 comments

Comments

@drdozer
Copy link

drdozer commented Aug 12, 2021

I am developing a tableaux reasoner and wanted to plot graphs of the internal state. This library looks ideal, but it is not clear from the documentation what methods I need to provide so that graphplot can plot my data structures. I'm hesitant to solve this by exporting my data model into a third-party API for rendering, and would prefer to simply implement the necessary methods to hook it in directly.

@BeastyBlacksmith
Copy link
Member

As long as your matrix implements the AbstractArray interface and behaves like a matrix it should work as far as I understood the documentation.
Though I haven't tested it.

@drdozer
Copy link
Author

drdozer commented Aug 15, 2021

Thanks @BeastyBlacksmith . My underlying data isn't at all like a matrix. It is a list of binary relations over data points. I ended up writing a helper method that converted that into a graph, built node and edge lables, and then wrapped a call to graphplot.

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

No branches or pull requests

2 participants