Auto size of hystogram

Goodmorning everyone, I have to draw some hystograms. I can draw them using the command

Where bin is the bin size, and [xmin,xmax] is the range of the x-axis. I want to draw them without setting the bin size and the x-axis range but I want that ROOT sets them using the best bin size and the best range for the data to plot. How can I do this? I tried

but it doesn’t work.
Thanks

Search for occurrences of “automatic” in the TH1 class description.

Thank you pepe I found the solution in your link