|
From: Thomas D. D. <to...@sp...> - 2015-07-12 20:47:54
|
On 07/12/15 08:46, Hans-Bernhard Bröker wrote:
> Am 12.07.2015 um 12:20 schrieb Thomas D. Dean:
>
>> I want the grid to align with the y axis, not the y2 axis.
>>
>> If I use 'set grid xtics ytics' I have no y grid
>
> Please show a complete example command sequence that produces the
> problematic behaviour. If possible, start with "reset".
>
> Just in case: you _do_ have some actual ytics active for the grid to be
> based on, right?
As I said in the original post, demo/electron.dem, third plot. Here is
a cut/paste from that example, with 'reset' prepended. Notice, the grid
lines are aligned with the y2 axis. I want to align the grid lines with
the y axis.
reset
A(jw) = ({0,1}*jw/({0,1}*jw+p1)) * (1/(1+{0,1}*jw/p2))
p1 = 10
p2 = 10000
set dummy jw
set grid x y2
set logscale xy
set log x2
unset log y2
set key default
set key bottom center box
set title "Amplitude and Phase Frequency Response"
set xlabel "jw (radians)"
set xrange [1.1 : 90000.0]
set ylabel "magnitude of A(jw)"
set y2label "Phase of A(jw) (degrees)"
set ytics nomirror tc lt 1
set y2tics nomirror tc lt 3
set xtics mirror
set tics out
set autoscale y
set autoscale y2
plot abs(A(jw)) lt 1, 180/pi*arg(A(jw)) axes x1y2 lt 3
Tom Dean
|