<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 567: To enable linewidth when setting key</title><link href="https://sourceforge.net/p/gnuplot/feature-requests/567/" rel="alternate"/><link href="https://sourceforge.net/p/gnuplot/feature-requests/567/feed.atom" rel="self"/><id>https://sourceforge.net/p/gnuplot/feature-requests/567/</id><updated>2025-03-18T13:31:34.736000Z</updated><subtitle>Recent changes to 567: To enable linewidth when setting key</subtitle><entry><title>#567 To enable linewidth when setting key</title><link href="https://sourceforge.net/p/gnuplot/feature-requests/567/?limit=25#5c03" rel="alternate"/><published>2025-03-18T13:31:34.736000Z</published><updated>2025-03-18T13:31:34.736000Z</updated><author><name>Daniel Dan K.</name><uri>https://sourceforge.net/u/daniel29/</uri></author><id>https://sourceforge.net95e6d4d2564cff103268af05be3f8dbee74317e1</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;See also this question on Stackoverflow:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://stackoverflow.com/questions/11058659/thicker-lines-in-the-legend-of-gnuplot" rel="nofollow"&gt;https://stackoverflow.com/questions/11058659/thicker-lines-in-the-legend-of-gnuplot&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;There, you'll also find the "workarounds".&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#567 To enable linewidth when setting key</title><link href="https://sourceforge.net/p/gnuplot/feature-requests/567/?limit=25#85f8" rel="alternate"/><published>2025-03-10T14:16:45.640000Z</published><updated>2025-03-10T14:16:45.640000Z</updated><author><name>Daniel Dan K.</name><uri>https://sourceforge.net/u/daniel29/</uri></author><id>https://sourceforge.neta8aa9c481d2880a2f5d8365cf76e665caf71b4b8</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I'd like to second that feature request.&lt;/p&gt;
&lt;p&gt;I often plot all graphs using the same style. While small lines are advantageous in the plot, the color sometimes is unrecognizable in the key (legend) with small linewidths. This is even more so when using style dots, just try: &lt;code&gt;plot sin(x) wi do, cos(x) wi do&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;All workarounds I have seen so far are cumbersome. So it would be nice of the color of the plot would be more conspicuous in the key.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#567 To enable linewidth when setting key</title><link href="https://sourceforge.net/p/gnuplot/feature-requests/567/?limit=25#62f5" rel="alternate"/><published>2023-12-06T20:55:20.866000Z</published><updated>2023-12-06T20:55:20.866000Z</updated><author><name>Justin Sales</name><uri>https://sourceforge.net/u/ifffam/</uri></author><id>https://sourceforge.net3f84d49f9bd623332849b93f0fcce060a24dd638</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I understand. keyentry makes the trick, &lt;em&gt;just as &lt;code&gt;label&lt;/code&gt; does&lt;/em&gt;; for the case of modifying the thickness of the legends while keeping thin graphs, it would be&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;plot for [i=1:5] sin(x/i) with lines lt i **lw 1** notitle, \
              for [i=1:5] keyentry with lines lt i **lw i** title "i = ".i
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;which works just fine; I just wondered whether to allow &lt;code&gt;set key lw &amp;lt;n°&amp;gt;&lt;/code&gt; would simplify things. &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#567 To enable linewidth when setting key</title><link href="https://sourceforge.net/p/gnuplot/feature-requests/567/?limit=25#e0f7" rel="alternate"/><published>2023-12-05T03:49:27.590000Z</published><updated>2023-12-05T03:49:27.590000Z</updated><author><name>Ethan Merritt</name><uri>https://sourceforge.net/u/sfeam/</uri></author><id>https://sourceforge.netf9f85c0f05dd799342879c82c7c80a1100478330</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;It would not make any sense for the program to generate key samples automatically that do not match the plots they correspond to.  But you are free to generate additional key samples with any characteristics you like.  Here is a script that creates a plot with five different line widths but all the manually supplied key entries use linewidth 1.0.   In this example the colors are deliberately chosen to match the actual plots, but I could imagine cases where you might want to change the color and keep the linewidth, or dash style, etc.&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="nv"&gt;set&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;key&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;opaque&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;box&lt;/span&gt;
&lt;span class="nv"&gt;plot&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;for&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;[&lt;span class="nv"&gt;i&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;:&lt;span class="mi"&gt;5&lt;/span&gt;]&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;sin&lt;/span&gt;&lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;x&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="nv"&gt;i&lt;/span&gt;&lt;span class="ss"&gt;)&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;with&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;lines&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;lt&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;i&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;lw&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;i&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;notitle&lt;/span&gt;,&lt;span class="w"&gt; &lt;/span&gt;\
&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="k"&gt;for&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;[&lt;span class="nv"&gt;i&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;:&lt;span class="mi"&gt;5&lt;/span&gt;]&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;keyentry&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;with&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;lines&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;lt&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;i&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;lw&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;.&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;title&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"i = "&lt;/span&gt;.&lt;span class="nv"&gt;i&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;/div&gt;</summary></entry><entry><title>#567 To enable linewidth when setting key</title><link href="https://sourceforge.net/p/gnuplot/feature-requests/567/?limit=25#a100" rel="alternate"/><published>2023-12-04T22:56:42.813000Z</published><updated>2023-12-04T22:56:42.813000Z</updated><author><name>Justin Sales</name><uri>https://sourceforge.net/u/ifffam/</uri></author><id>https://sourceforge.net619c5e50c681b8b606d8ed1c88d64a37152b4391</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;linewidth of the legends. If I write (for example) set key lw 3 (so as to have thick legends while keeping thin plot lines) it does not recognize it. In fact, when reading the manual, linewidth is not allowed for the key command (other than for the box option, but that concerns only the thickness of the box, not of the legends themselves)&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#567 To enable linewidth when setting key</title><link href="https://sourceforge.net/p/gnuplot/feature-requests/567/?limit=25#b4c7" rel="alternate"/><published>2023-12-04T00:07:56.725000Z</published><updated>2023-12-04T00:07:56.725000Z</updated><author><name>Ethan Merritt</name><uri>https://sourceforge.net/u/sfeam/</uri></author><id>https://sourceforge.net9a380d9cdf504dc12b2466807e3d2efbde0f44c2</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;The linewidth of what lines?  &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>To enable linewidth when setting key</title><link href="https://sourceforge.net/p/gnuplot/feature-requests/567/" rel="alternate"/><published>2023-12-03T21:31:22.162000Z</published><updated>2023-12-03T21:31:22.162000Z</updated><author><name>Justin Sales</name><uri>https://sourceforge.net/u/ifffam/</uri></author><id>https://sourceforge.net3872b89daff2c6f02791cc5c9766a6736b79ff29</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;(very useful for contourplots so as to have thick legends while keeping thin contours).&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>