2

I want to combine a time series and a histogram to appear together like the example below: Combined graphs

I just want one to be scaled without distortion and placed freely within the second but I haven't found yet a code snipped for this.

The graph was taken from here, but it involves merging 2 svg graphs. Can this be done directly in matplotlib?

1 Answer 1

6

Yes, you can use the axes() function, as shown in this example from the matplotlib gallery. My favourite way to see if something is possible with matplotlib is to scan through the gallery for something that looks similar to what I want.

Unfortunately, matplotlib's site appears to have just gone down. There's an older copy on Github.

Sign up to request clarification or add additional context in comments.

Comments

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.