Need Help with combining two graphs with two different sets of axes

Need Help with combining two graphs with two different sets of axes

Post by John Shrad » Fri, 03 Sep 2010 00:55:21


Hi,
I am looking to take a standard loop graph and split it up piecewise horizontally. The graph is a loop with x-axis (volume 0-5 L) and y-axis (flow -10 to 10 L/sec). I want to take the negative section of the loop and flip it to the right with a decreasing flow axis. The graph starts at a volume of 0 and crosses the x-axis again around 4 or 5 with decreasing slope. Flow would essentially go something like:

(original)
+ + + + + (positive points)
0 1 2 3 4
_ _ _ _ _ (negative points)


(New)
+ + + + + (positive points)
0 1 2 3 4 | 4 3 2 1 0
_ _ _ _ _ (negative points)

I figured out how to flip my axes to negative with the set gca command, but that is as far as I've gotten.

thanks,
John