Source: twin_axes_demo.f90
Demonstrates twinx and twiny for multiple axes on one figure.
The demo plots three synthetic time series and assigns each to a different axis:
twin_axes_demo.f90 - Source codeoutput/example/fortran/twin_axes_demo/make example ARGS="twin_axes_demo"

Twin axis demo
Temperature (relative)
+--------------------------------------------------------------------------------+
| Cumulative index (log scale) |
| 1 2 5 |
|| |
|| # --- Primary axis ### --# 50 |
|| --- Secondary axis ## ## ---# |
|22 --- Top axis ## # -- # |
|| ###-- - ### # -- # 49 |
|| ### - ## # - # |
|20 -- ## - ## ##-- # |
|| - ## - ### #- # 48 |
|| -- ## -- ## -# # |
|18 -- ### -- ### --## # |
|| -- ### -- #### - # # 47 |
|| -- ### # # # # - # # |
|16 - # # #### - -- # # |
|| #- # ### -- -- ## # |
|14 ###- - # # 46 |
|| ### -- # # |
|| -#### -- # # |
|12 -- #### -- # # 45 |
|| -- ### -- # # |
|| - #### - # # |
|10 - ##### -- # # 44 |
|| - ##### # # |
|| - -- ##### ## # |
|8 -- -- ###### # # 43 |
|| --- --- ###### |
|| ----- # ### 42 |
|+--+-----------+----------+----------+-----------+----------+----------+--- |
| 0 5 10 15 20 25 30 |
+--------------------------------------------------------------------------------+
Time (hours)