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

Better visualizations for binary relations #22

Open
caten2 opened this issue Sep 8, 2023 · 1 comment
Open

Better visualizations for binary relations #22

caten2 opened this issue Sep 8, 2023 · 1 comment

Comments

@caten2
Copy link
Owner

caten2 commented Sep 8, 2023

As you can see in the current version of src/relations.py there is a show method for the Relation class which has an optional argument of special_binary_display. This could be improved in a number of ways to help with visualizing binary relations. This issue is pretty open-ended, but here are some suggestions for ways to improve this.

  1. Instead of the existing options, one could have a general method where the true/false values can be represented by any chosen characters or even strings. For example, the choice 'binary_pixels'would correspond to sending true to 1 and false to 0.
  2. We don't have to just output by printing something. You could also output latex source code that describes a matrix of entries, or even use tikz or asymptote to draw something.
  3. It's not necessary to create a literal picture. We could also represent a binary relation as a directed graph, for example. Another possibility is grouping, say 2 by 2 blocks of the image together and then using a greyscale value to represent how many pixels in the 2 by 2 block are black.
  4. You might also consider an option where you save an image file or save any code you generate as a text file instead of printing it out. If you want to make images to save, one option is Mathplotlib.
@caten2
Copy link
Owner Author

caten2 commented Sep 30, 2023

I added an option to create LaTeX matrices of zeroes and ones for binary relations in the most recent addition to the path_archtecture branch.

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

1 participant