Add minValue to nodify
bumatic opened this issue · 2 comments
bumatic commented
Can we add a minValue to nodify as well?
bumatic commented
For testing the min_value enhancement I set the min_value and the max_value to 10 assuming that this would result in nodes of the same size. However it did not.
Using this code:
data=pcf.read_file("example_ordered.tsv","version/date","Permission (normalized)",subtag_field="(App) Review (normalized)")
nodes=pcf.nodify(data,10, minValue=10, maxValue=10)
svg = pcf.genSVG(nodes,50)
svg.savePng('min_max_issue.png')
svg
The result was as follows:
Am I doing something wrong?
bumatic commented
When trying the scaling='log'
option I had left the min_value=10
and max_value=10
in the code and here node sizes turned out to be equal, i.e. setting the min_value worked. So the problem described above applies only to scaling='linear'
.