<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 594: Windows 6.03: cannot create dotted plot</title><link href="https://sourceforge.net/p/gnuplot/feature-requests/594/" rel="alternate"/><link href="https://sourceforge.net/p/gnuplot/feature-requests/594/feed.atom" rel="self"/><id>https://sourceforge.net/p/gnuplot/feature-requests/594/</id><updated>2025-12-17T03:51:10.749000Z</updated><subtitle>Recent changes to 594: Windows 6.03: cannot create dotted plot</subtitle><entry><title>#594 Windows 6.03: cannot create dotted plot</title><link href="https://sourceforge.net/p/gnuplot/feature-requests/594/?limit=25#d04f" rel="alternate"/><published>2025-12-17T03:51:10.749000Z</published><updated>2025-12-17T03:51:10.749000Z</updated><author><name>Ethan Merritt</name><uri>https://sourceforge.net/u/sfeam/</uri></author><id>https://sourceforge.net2e82f342f20630ede5353a7adea946790e7076d6</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Ticket moved from /p/gnuplot/bugs/2843/&lt;/p&gt;
&lt;p&gt;Can't be converted:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;_milestone&lt;/strong&gt;: &lt;/li&gt;
&lt;li&gt;&lt;strong&gt;_priority&lt;/strong&gt;: &lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</summary></entry><entry><title>#2843 Windows 6.03: cannot create dotted plot</title><link href="https://sourceforge.net/p/gnuplot/bugs/2843/?limit=25#85f5/6cc1" rel="alternate"/><published>2025-12-14T08:26:05.420000Z</published><updated>2025-12-14T08:26:05.420000Z</updated><author><name>Ilya Zakharevich</name><uri>https://sourceforge.net/u/ilya-z/</uri></author><id>https://sourceforge.netb6bff3e254844d48aec7cd89e83cfbf2e06a7a41</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;blockquote&gt;
&lt;p&gt;My personal preference is for rounded line caps; you can change that in the toolbar widget at the top of the plot window.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;(Me too.  But) I cannot see such an option.  Only for “line ends”, not for the dashes.&lt;/p&gt;
&lt;p&gt;Anyway, switching away “rounded ends” makes &lt;code&gt;(1,1)&lt;/code&gt; very similar to ”what is expected from a densely dotted line”, for the cases of line widths 1, 1.8 and 2.5 I checked.  I think this is a good starting point — and IMO one should try to make the case when “rounded ends” are enabled to have the look/density consistent with this case.&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="w"&gt;                        &lt;/span&gt;&lt;span class="n"&gt;dashpattern&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;append&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;custom_dash_type&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="n"&gt;pattern&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;j&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="w"&gt;                               &lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;qt_optionDashLength&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;empirical_scale&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;Well, at the least, for odd &lt;code&gt;j&lt;/code&gt; one should subtract the line width if rounded line ends are enabled (or a suitable “empirical multiple” of the line width).&lt;/p&gt;
&lt;p&gt;(BTW, it is not documented whether fractional lengths are enabled. — And with the current implementation it seems that they better should be.)&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#2843 Windows 6.03: cannot create dotted plot</title><link href="https://sourceforge.net/p/gnuplot/bugs/2843/?limit=25#85f5" rel="alternate"/><published>2025-12-14T07:02:43.057000Z</published><updated>2025-12-14T07:02:43.057000Z</updated><author><name>Ethan Merritt</name><uri>https://sourceforge.net/u/sfeam/</uri></author><id>https://sourceforge.net462f62620e72366a52ceccf9e2bd771a790e1ae0</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;There are some terminal types where gnuplot has to construct the dots and dashes bitmaps empirically, but Qt is not one of them.   Gnuplot passes through a linewidth and the requested array of lengths; Qt does the rest. What you see is what Qt provides.  My personal preference is for rounded line caps; you can change that in the toolbar widget at the top of the plot window.  &lt;/p&gt;
&lt;p&gt;Qt documentation is here:&lt;br/&gt;
&lt;a href="https://doc.qt.io/qt-6/qpen.html#pen-style" rel="nofollow"&gt;https://doc.qt.io/qt-6/qpen.html#pen-style&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;gnuplot code that calls it is here:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="k"&gt;case&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;DASHTYPE_CUSTOM&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
&lt;span class="w"&gt;       &lt;/span&gt;&lt;span class="k"&gt;if&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;custom_dash_type&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;{&lt;/span&gt;
&lt;span class="w"&gt;               &lt;/span&gt;&lt;span class="n"&gt;QVector&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;qreal&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;dashpattern&lt;/span&gt;&lt;span class="p"&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="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;int&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;j&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;j&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;8&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;custom_dash_type&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="n"&gt;pattern&lt;/span&gt;&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="n"&gt;j&lt;/span&gt;&lt;span class="o"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;j&lt;/span&gt;&lt;span class="o"&gt;++&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;{&lt;/span&gt;
&lt;span class="w"&gt;                        &lt;/span&gt;&lt;span class="n"&gt;dashpattern&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;append&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;custom_dash_type&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="n"&gt;pattern&lt;/span&gt;&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="n"&gt;j&lt;/span&gt;&lt;span class="o"&gt;]&lt;/span&gt;
&lt;span class="w"&gt;                               &lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;qt_optionDashLength&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;empirical_scale&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="w"&gt;                &lt;/span&gt;&lt;span class="err"&gt;}&lt;/span&gt;
&lt;span class="w"&gt;               &lt;/span&gt;&lt;span class="n"&gt;qt&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="k"&gt;out&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&amp;lt;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;GEDashPattern&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&amp;lt;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;dashpattern&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="w"&gt;               &lt;/span&gt;&lt;span class="n"&gt;qt&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="k"&gt;out&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&amp;lt;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;GEPenStyle&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&amp;lt;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;Qt&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="err"&gt;:&lt;/span&gt;&lt;span class="n"&gt;CustomDashLine&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="err"&gt;}&lt;/span&gt;
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="k"&gt;break&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;/div&gt;</summary></entry><entry><title>Windows 6.03: cannot create dotted plot</title><link href="https://sourceforge.net/p/gnuplot/bugs/2843/" rel="alternate"/><published>2025-12-14T04:07:23.331000Z</published><updated>2025-12-14T04:07:23.331000Z</updated><author><name>Ilya Zakharevich</name><uri>https://sourceforge.net/u/ilya-z/</uri></author><id>https://sourceforge.netcc9255d2846923b1f917df4e7a21290520f1d7c5</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I fail to create usable dotted plots (with &lt;code&gt;qt&lt;/code&gt;and other similar terminals).  With &lt;code&gt;lw 1&lt;/code&gt; the results are practically invisible.  With thicker lines (like &lt;code&gt;lw 1.8&lt;/code&gt;), “the length of dots” seems to scale with line thickness — but the logic remains tuned up for hairlines, so “the length of the dot is too large”.  (From what I saw how other people code it, the “length of the dot” relative its width should decrease to 1 (or maybe even to 0.8 for yet wider lines) when the width is “no more hairline”.¹⁾&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;¹⁾ Or, with round mitter, to 0.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Moreover, I’m not sure the dots are drawn with correct miters.  With &lt;code&gt;(1.1)&lt;/code&gt;, I get a solid line²⁾, With &lt;code&gt;(1.0)&lt;/code&gt;, for many widths there &lt;em&gt;are&lt;/em&gt; “skips”, but very narrow (sic! — worse than with &lt;code&gt;(1,1)&lt;/code&gt;).&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;¹²  Well, for some line widths, it &lt;strong&gt;does&lt;/strong&gt; have hairline skips in it — problems with rounding?!&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;So there is a problem with calculation of length of “skips” as well…&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>