which works, but is there anything simpler? In particular, being able to pass k_min as an argument without saving x and computing its extrema would be convenient.
edit: I forgot to mention that I wish to avoid specifying ticks manually. I just want more of them, but otherwise automated.
It actually sounds like a bug: from here it would seem that the intended tick number, if the user doesn’t provide anything, is between 5 and 8 (but I agree that ideally those variable should be possible to give as a keyword argument). If you open an issue I can look into that.
On a separate note, you shouldn’t need to import both Plots at StatPlots (at least on master, it was fixed recently) and density(x) should be sufficient to also draw the plot.