shared axes

27 views
Skip to first unread message

venkatessh

unread,
May 21, 2012, 7:56:28 AM5/21/12
to dislin-users
Hi,

How can I make a shared axes plot? I mean two plots sharing the x-
axis.
The answer I expect might be much similar to the bar graphs that you
have
showed as an example. But my only concern is how can I bridge the gap
between the plots?


R Venkatessh

"Armin Rauthe-Schöch"

unread,
May 21, 2012, 8:02:28 AM5/21/12
to dislin...@googlegroups.com
Hi,

I don't really understand what you want to do:

1) If you want to plot more than one line in the same plot, you can simply do this.

2) If you want to have a secondary Y-axis, you can plot two axis systems over each other with one having the Y-axis with labels on the left and one with the labels on the right. See "setgrf"
http://www.mps.mpg.de/dislin/kap6.html#SETGRF

Or you can plot both datasets on the scale of the left Y-Axis and simply add another Y-axis on the right with "yaxis" or "yaxlg" (for logarithmic Y-axis)
http://www.mps.mpg.de/dislin/kap4.html#section_6

3) If you want to plot to plots vertically stacked with the same x-axis, you can use "axspos" to position the two plots without a vertical gap and again "setgrf" to suppress the x-axis for the upper plot.


Is one of this what you want to do ?


Cheers,
Armin
--
Dr. Armin Rauthe-Schöch
Max Planck Institute for Chemistry
Department of Atmospheric Chemistry
Hahn-Meitner-Weg 1
D-55128 Mainz / GERMANY
Tel. +49-6131-305-4123
Fax. +49-6131-305-4009
Email: armin.raut...@mpic.de

venkatessh

unread,
May 21, 2012, 8:06:43 AM5/21/12
to dislin-users
Sorry for the ambiguity. Yes, I meant vertically stacked plots with
the same x-axis.

Regards,
R Venkatessh
Reply all
Reply to author
Forward
0 new messages