<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 387: option to set number of tics</title><link>https://sourceforge.net/p/gnuplot/feature-requests/387/</link><description>Recent changes to 387: option to set number of tics</description><atom:link href="https://sourceforge.net/p/gnuplot/feature-requests/387/feed.rss" rel="self"/><language>en</language><lastBuildDate>Sun, 15 May 2016 03:22:30 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/gnuplot/feature-requests/387/feed.rss" rel="self" type="application/rss+xml"/><item><title>#387 option to set number of tics</title><link>https://sourceforge.net/p/gnuplot/feature-requests/387/?limit=25#0075</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I would also like this, thanks.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Elwood Downey</dc:creator><pubDate>Sun, 15 May 2016 03:22:30 -0000</pubDate><guid>https://sourceforge.net5d1522cd3c904b73ca03f035db44cd35e4bf5908</guid></item><item><title>#387 option to set number of tics</title><link>https://sourceforge.net/p/gnuplot/feature-requests/387/?limit=25#dea5</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I second this. It would be very useful.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">leoking</dc:creator><pubDate>Sun, 20 Apr 2014 09:50:23 -0000</pubDate><guid>https://sourceforge.net71057b8f1aec9bba1fb23418a72f3b823b3b26ed</guid></item><item><title>option to set number of tics</title><link>https://sourceforge.net/p/gnuplot/feature-requests/387/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;It would be very useful to have an option to the &lt;code&gt;tics&lt;/code&gt; commands to explicitly set the number of tics on an axis, something like:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="k"&gt;set&lt;/span&gt; &lt;span class="nb"&gt;xtics&lt;/span&gt; &lt;span class="n"&gt;ntics&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;which would set one tic each at the upper and lower bounds of the axis.&lt;/p&gt;
&lt;p&gt;The way I currently do this is to use &lt;code&gt;stats&lt;/code&gt; and &lt;code&gt;set xtics (stats_x_max-stats_x_min)/(ntics-1)&lt;/code&gt; and occasionally I try to do some arithmetic to make the intervals be at nice round numbers.  There could perhaps be an optional keyword (e.g. &lt;code&gt;{smart|dumb}&lt;/code&gt;) to either set the interval to be nice and round or simply the range divided by &lt;code&gt;(ntics-1)&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;gnuplot already has some internal logic to decide the axis ranges and where to place tics, so this option would place an additional constraint (ntics) on the tic locations.&lt;/p&gt;
&lt;p&gt;This would be exclusive with the option to set the tic interval.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andrew Rasmussen</dc:creator><pubDate>Sat, 19 Apr 2014 13:39:42 -0000</pubDate><guid>https://sourceforge.netcf82d839e978a0b3f5865650e539707744021846</guid></item></channel></rss>