|
From: Thomas D. D. <to...@sp...> - 2015-07-12 21:09:50
|
On 07/12/15 13:56, Hans-Bernhard Bröker wrote:
> Am 12.07.2015 um 22:47 schrieb Thomas D. Dean:
>> 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.
>
> No, that's not actually as you said. That plot is _designed_ to have
> the grid aligned with y2. What you should show is a script that
> actually tries to put the grid aligned with y1, but fails to work.
>
>
My original post:
A simple example of what I want to do is in demo/electron.dem, the last
plot, amplitude frequency response.
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
If I use 'set grid xtics y2tics' or 'set grid' the grid is aligned with
the y2 tics
I want to align the grid with the ytics.
Is this possible?
In the demo, change y2 to y in the set grid line! But, that results in
no y grid.
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 y
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
|