• Can I increase the line width in the legend?

    From Jean-Pierre Coulon@21:1/5 to All on Thu May 14 10:56:32 2020
    I want to plot "something.txt" w l title "mything" with the usual line
    width but can I increase the width of the sample portion of lines that
    follows the titles?

    --
    Jean-Pierre Coulon

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?UTF-8?Q?J=c3=b6rg_Buchholz?=@21:1/5 to Jean-Pierre Coulon on Thu May 14 12:39:57 2020
    On 14.05.2020 10:56, Jean-Pierre Coulon wrote:
    I want to plot "something.txt" w l title "mything" with the usual line
    width but can I increase the width of the sample portion of lines that follows the titles?


    As a workaround you can use a "keyentry".


    plot sin(x) w l lt 1 t '',keyentry w l lw 4 lt 1 t 'sin(x)'


    Jörg

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Jean-Pierre Coulon@21:1/5 to All on Thu May 14 13:38:51 2020
    On Thu, 14 May 2020, Jörg Buchholz wrote:

    As a workaround you can use a "keyentry".

    plot sin(x) w l lt 1 t '',keyentry w l lw 4 lt 1 t 'sin(x)'

    I have:

    plot 'demo.txt' w l title "example",\
    'demo.txt' using 1:(2*$2) w l title "modif", keyentry w l lw 4 lt 1 title "double

    but it says: line5: undefined variable: keyentry

    --
    Jean-Pierre Coulon

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Karl Ratzsch@21:1/5 to All on Thu May 14 21:15:14 2020
    Am 14.05.2020 um 13:38 schrieb Jean-Pierre Coulon:
    On Thu, 14 May 2020, Jörg Buchholz wrote:

    As a workaround you can use a "keyentry".

    plot sin(x) w l lt 1 t '',keyentry w l lw 4 lt 1 t 'sin(x)'

    I have:

    plot 'demo.txt' w l title "example",\
    'demo.txt'  using 1:(2*$2) w l title "modif", keyentry w l lw 4 lt 1
    title "double

    but it says: line5: undefined variable: keyentry


    "keyentry" is a new thing in gp5.4 (a second release candidate will
    likely be out in a few days). It produces an entry in the legend
    without plotting anything.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?UTF-8?Q?J=c3=b6rg_Buchholz?=@21:1/5 to Jean-Pierre Coulon on Fri May 15 08:07:03 2020
    On 14/05/2020 13:38, Jean-Pierre Coulon wrote:
    On Thu, 14 May 2020, Jörg Buchholz wrote:

    As a workaround you can use a "keyentry".

    plot sin(x) w l lt 1 t '',keyentry w l lw 4 lt 1 t 'sin(x)'

    I have:

    plot 'demo.txt' w l title "example",\
    'demo.txt'  using 1:(2*$2) w l title "modif", keyentry w l lw 4 lt 1
    title "double

    but it says: line5: undefined variable: keyentry

    You can do the same with plotting something out of the yrange.

    set yrange [0:10]
    plot sin(x) w l lt 1 t'',-1 w l lt 1 lw 4 t 'sin(x)'

    tested with Version 5.2 patchlevel 6

    Jörg

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Jean-Pierre Coulon@21:1/5 to All on Fri May 15 16:58:10 2020
    On Fri, 15 May 2020, Jörg Buchholz wrote:

    You can do the same with plotting something out of the yrange.

    set yrange [0:10]
    plot sin(x) w l lt 1 t'',-1 w l lt 1 lw 4 t 'sin(x)'

    Works. It is nice that title '' provides no line skip between the useful
    lines with a title when I plot several data arrays or functions. Thanks.

    --
    Jean-Pierre Coulon

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)