1
# axes.sh: various aspects of axes
2
# Copyright 2009 by Vincent Fourmond
4
# You can do whatever you want with this file, including removing the
5
# copyright notice and this text.
9
$ct -x '$x$ values' 'sin(x)' -y '$y$ values'
11
$ct -t 'Notice how the top shrinks' \
12
-x '$x$ values' 'sin(x)' -y '$y$ values'
14
$ct -t 'Now, second Y axis on the left' \
15
-x '$x$ values' 'sin(x)' -y '$y_1$ values' \
18
$ct -t 'See how to specify the second Y label' \
19
-x '$x$ values' 'sin(x)' -y '$y_1$ values' \
20
--y2 'x**2' -y '$y_2$ values'
22
# @todo this shows it is cumbersome to change all the colors in one go:
23
# providing a --axis-color that just works would be great.
25
# See how the meaning of y and yaxis is dependent on the default axis.
26
$ct -t 'With different colors for the axes' \
27
-x '$x$ values' 'sin(x)' -y '$y_1$ values' /color Red \
28
--axis-style y /stroke_color Red \
29
--label-style yaxis /color Red \
30
--y2 'x**2' -y '$y_2$ values' /color Blue \
31
--label-style yaxis /color Blue \
32
--axis-style y /stroke_color Blue
37
# $ct 'sin(x)' --x2 --y2 'x**2' --yrange -20:50 'cos(x)' /yaxis left \
38
# --draw-text 0,50 'biniou' --yaxis left --yrange -1.2:1.2