-
Notifications
You must be signed in to change notification settings - Fork 332
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
Add option to plot classifier leaves as horizontal bars #215
Conversation
How does the new height look? If you want I can just pull it in and tweak it on my side |
love it. thanks! |
@tlapusan should we make this bar chart the default leaf? People seem convinced pie charts are bad haha. |
BTW, it occurs to me guys that we want the leaves to show relative area and not overlapping. "stacked" |
@parrt They don't overlap, due to the
Also I originally had the length of the bar plots scale with the total number of samples in the leaf, but we turned that off; though I wouldn't mind bringing it back - maybe as an option: |
cool. yeah, i had the pie size scale a bit. I think maybe scaling with n is good. @tlapusan? Also we should remove the 0..57 x-axis labels; i think n=58 with the y class is best. actually, don't even need the class. the color says it. maybe this is an option. can't remember. |
Yeah we updated it to not have x-axis ticks and just put the |
@parrt did you change & commit the code to re-enable horizontal scaling with Also, I'm fine if this is the default behavior, but @tlapusan wanted them to all be the same size. Maybe we should make an option to control this behavior? |
I also think I'm going to make the bar charts the default, since most people have an immediate "but but but I was trying to the pie charts are bad" reaction. |
See: 423060f |
hmm, personally I like the pie charts :) highlights better the leaves and make the viz a little more interesting. If you heard this feedback many times, I'm ok to choose the barh as the default. |
@mepland I'm also for making the leaf size based on its input samples. Don't remember when I mentioned that I would like them to be the same size. Sorry if I did :) |
No problem, I may have miss-understood. |
No problem. We can always back this out if @tlapusan has a good reason to fix the size. :) Oh, missed his comment above. Well all of the fancy pants people are taught that pie charts are bad. In fact a well-known guy using our software said he loves the software except for the pie chart. I like to pie charts myself. Maybe it's a good idea to switch it back to pie. ok, i'll switch back. |
Signed-off-by: Terence Parr <parrt@antlr.org>
Added
leaf_plot_type
parameter. Default ispie
which replicates prior plots, but now includes abarh
option!