Issue
I want to draw a plot with matplotlib with axis on both sides of the plot, similar to this plot (the color is irrelevant to this question):
How can I do this with matplotlib
?
Note: contrary to what is shown in the example graph, I want the two axis to be exactly the same, and want to show only one graph. Adding the two axis is only to make reading the graph easier.
Solution
There are a couple of relevant examples in the online documentation:
- Two Scales (seems to do exactly what you're asking for)
- Dual Fahrenheit and Celsius
Answered By - John Bartholomew
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.