|
From: Thomas D. D. <to...@sp...> - 2015-07-12 22:15:45
|
On 07/12/15 15:05, Ethan A Merritt wrote:
> On Sunday, 12 July 2015 02:52:33 PM Thomas D. Dean wrote:
>> Does anyone who is willing to be helpful know how to do this? I chose
>> this demo because it shows my problem, that is in aligning the grid
>> lines with the ytics. The demo aligns the grid lines with the y2tics.
>>
>> reset
>> A(jw) = ({0,1}*jw/({0,1}*jw+p1)) * (1/(1+{0,1}*jw/p2))
>> p1 = 10
>> p2 = 10000
>> set dummy jw
>>
>> ## this line aligns the grid with the y2 axis
>> set grid x y2
>> ## I want to align the grid with the ytics.
>> ## set grid x y results in no y grid lines
>>
>> 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
>>
>> Is there a way to do this other than manually entering the tic/grid
>> locations? My actual application has many sets of data.
>
> append to the above set of commands:
>
> set grid my
> replot
>
> Ethan
>
>
Thank you, Ethan.
Tom Dean
|