0

In the seaborn.objects interface, there is a limit method that allows you to set the x and y axis limits. But I need to be able to get those axis limits and/or get the highest count for the a histogram when calling so.Hist().

Here's a coding example:

 `p = (
        so.Plot(df,x='col')
        .layout(size=(4, 3))
        # .limit(x=(min_, max_), y=(min, max)) --example of setting axis limits
        .add(so.Bar(alpha=.6), so.Hist())
     )

 display(p)`

The p object of the plot object. How can I get the highest count for the y axis to programmatically scale the y or x axis or zoom in on certain aspects of the plot?

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.