Closed brobr closed 3 years ago
HI @brobr,
This is a seaborn issue with how the swarm plot is generated; as the error indicates, if your Ns are large, you should reduce the size of the points with
your_dabest_object.mean_diff.plot(raw_marker_size=3);
Re: not notebook-like contexts, we will consider adding a short note in the documentation.
Best, Joses
Fab, thanks for the pointer Joses; had no clue that plot() would take arguments (need to update my seaborn knowledge and should have read the dabest tutorial to the end). How serious is the tight_layout
axes warning? It can be bypassed by:
iris_dabest.mean_diff.plot(raw_marker_size=2).set_tight_layout(False);
Note that the reduction of raw_marker_size needed to be greater (i.e. set to 2) to actually fit the whole of the second, long row of setosa data-points. Is it seaborn; matplotlib or dabest that keeps these points on one line and not divide them over, say, two rows? Can one fit this better by making a figure more wide (but where/how?).
Cheers,
Rob
Hi, thanks for dabest, looks very interesting, especially with the aim to show all data points. Running the example on a linux system with pandas-1.2.4, numpy-1.20.3, seaborn-0.11.1 and matplotlib-3.4.2 displayed the expected figure but with a couple of warnings:
If all points are supposed to be displayed these warnings seem quite unwanted.
Is there something in my set up that influences this? Or how can one correct for this?
Also, when running the example commands outwith a notebook-like context, say in a (i)python3 console, no figure is shown unless you run it as
iris_dabest.mean_diff.plot().show()
Maybe something to add/mention in the README ?hth
Rob