Hans-Bernhard Bröker wrote:
> Luiz Fernando C Camargo wrote:
>
>> set xrange [-5:7]
>> set yrange [-2:3]
>> unset key
>> set parametric
>> set trange [-1:2]
>> set label "R" at -1, 1.5 front
>> set style line 1 lt -1 lw 1.5
>> plot -t**2, t lt 5 with filledcu y2, t+4, t lt -2 with filledcu y2, \
>> -((5*t-1)/3)**2, (5*t-1)/3 ls 1 with lines, \
>> (5*t-1)/3+4, (5*t-1)/3 ls 1 with lines, \
>> 4*t-1, 2 ls 1 with lines, 4*t-1,-1 ls 1 with lines
>> set zeroaxis
>>
>> I had to append the option 'front' to the 'set label' command for,
>> otherwise, the label would be underneath the colored region and
>> wouldn't be visible. Now, I don't have a similar option for the 'set
>> zeroaxis' command. Only part of the xzeroaxis and of the yzeroaxis
>> are visible, what can I do in this case?
>
> The same thing, really: fix the order of commands. "set" commands in
> gnuplot are settings, not actions, i.e. they don't draw anything by
> themselves. To be effective, they have to be given *before* the 'plot'
> command.
All right, but... even if the 'set zeroaxis' command is given before
the 'plot' command, like this,
set xrange [-5:7]
set yrange [-2:3]
unset key
set parametric
set trange [-1:2]
set label "R" at -1, 1.5 front
set style line 1 lt -1 lw 1.5
set zeroaxis
plot -t**2, t lt 5 with filledcu y2, t+4, t lt -2 with filledcu y2, \
-((5*t-1)/3)**2, (5*t-1)/3 ls 1 with lines, \
(5*t-1)/3+4, (5*t-1)/3 ls 1 with lines, \
4*t-1, 2 ls 1 with lines, 4*t-1,-1 ls 1 with lines
even then the axes are only partially visible...
|