<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 2844: 6.0.3: The `dt (n1,n2)` syntax makes it hard to use programmatically defined dashtype</title><link href="https://sourceforge.net/p/gnuplot/bugs/2844/" rel="alternate"/><link href="https://sourceforge.net/p/gnuplot/bugs/2844/feed.atom" rel="self"/><id>https://sourceforge.net/p/gnuplot/bugs/2844/</id><updated>2025-12-18T00:44:08.640000Z</updated><subtitle>Recent changes to 2844: 6.0.3: The `dt (n1,n2)` syntax makes it hard to use programmatically defined dashtype</subtitle><entry><title>#2844 6.0.3: The `dt (n1,n2)` syntax makes it hard to use programmatically defined dashtype</title><link href="https://sourceforge.net/p/gnuplot/bugs/2844/?limit=25#3112" rel="alternate"/><published>2025-12-18T00:44:08.640000Z</published><updated>2025-12-18T00:44:08.640000Z</updated><author><name>Ethan Merritt</name><uri>https://sourceforge.net/u/sfeam/</uri></author><id>https://sourceforge.netfbfda0fdb8f9e461b87784ae286c2f45e52e8144</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;: open --&amp;gt; pending-fixed&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Group&lt;/strong&gt;:  --&amp;gt; &lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Priority&lt;/strong&gt;:  --&amp;gt; &lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</summary></entry><entry><title>6.0.3: The `dt (n1,n2)` syntax makes it hard to use programmatically defined dashtype</title><link href="https://sourceforge.net/p/gnuplot/bugs/2844/" rel="alternate"/><published>2025-12-14T04:19:04.149000Z</published><updated>2025-12-14T04:19:04.149000Z</updated><author><name>Ilya Zakharevich</name><uri>https://sourceforge.net/u/ilya-z/</uri></author><id>https://sourceforge.netf8a3a215f0aac7ad357d3de9c979838d459de3ce</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I want to use a calculated dashtype, but while &lt;code&gt;dt k&lt;/code&gt; works, &lt;code&gt;dt (k+1)&lt;/code&gt; does not.   (With the message&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;                                                      ^
         expecting comma
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;)&lt;/p&gt;
&lt;p&gt;And AFAIK, in other situation complicated expressions in &lt;code&gt;gnuplot&lt;/code&gt;⸣s &lt;code&gt;plot&lt;/code&gt; commands “should be” (?) put in parentheses.  In some cases one can manage with abominations like &lt;code&gt;k&amp;gt;15?1:k==6?2:0&lt;/code&gt; — but sometimes the difficulties are not surmountable.&lt;/p&gt;
&lt;p&gt;Is there a need to prohibit lists of length 1 (as in &lt;code&gt;dt (k+1)&lt;/code&gt; — meaning the same as without the parens)?&lt;/p&gt;
&lt;p&gt;(Knowing fine details of &lt;code&gt;Perl&lt;/code&gt; tokenizer) I can see that &lt;code&gt;dt +(k+1)&lt;/code&gt; works too.  So as a stopgap, one could just  document such syntax…&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>6.0.3: The `dt (n1,n2)` syntax makes it hard to use programmatically defined dashtype</title><link href="https://sourceforge.net/p/gnuplot/bugs/2844/" rel="alternate"/><published>2025-12-14T04:19:04.149000Z</published><updated>2025-12-14T04:19:04.149000Z</updated><author><name>Ilya Zakharevich</name><uri>https://sourceforge.net/u/ilya-z/</uri></author><id>https://sourceforge.net55dfb628933e90438af8bea2d4298b924211938a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Ticket 2844 has been modified: 6.0.3: The &lt;code&gt;dt (n1,n2)&lt;/code&gt; syntax makes it hard to use programmatically defined dashtype&lt;br/&gt;
Edited By: Ethan Merritt (sfeam)&lt;br/&gt;
Status updated: 'open' =&amp;gt; 'pending-fixed'&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>