You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
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.
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.
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.
The text was updated successfully, but these errors were encountered:
As you can see in the current version of
src/relations.py
there is ashow
method for theRelation
class which has an optional argument ofspecial_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.'binary_pixels'
would correspond to sending true to1
and false to0
.The text was updated successfully, but these errors were encountered: