<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 387: option to set number of tics</title><link href="https://sourceforge.net/p/gnuplot/feature-requests/387/" rel="alternate"/><link href="https://sourceforge.net/p/gnuplot/feature-requests/387/feed.atom" rel="self"/><id>https://sourceforge.net/p/gnuplot/feature-requests/387/</id><updated>2016-05-15T03:22:30.785000Z</updated><subtitle>Recent changes to 387: option to set number of tics</subtitle><entry><title>#387 option to set number of tics</title><link href="https://sourceforge.net/p/gnuplot/feature-requests/387/?limit=25#0075" rel="alternate"/><published>2016-05-15T03:22:30.785000Z</published><updated>2016-05-15T03:22:30.785000Z</updated><author><name>Elwood Downey</name><uri>https://sourceforge.net/u/ecdowney/</uri></author><id>https://sourceforge.net5d1522cd3c904b73ca03f035db44cd35e4bf5908</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I would also like this, thanks.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#387 option to set number of tics</title><link href="https://sourceforge.net/p/gnuplot/feature-requests/387/?limit=25#dea5" rel="alternate"/><published>2014-04-20T09:50:23.195000Z</published><updated>2014-04-20T09:50:23.195000Z</updated><author><name>leoking</name><uri>https://sourceforge.net/u/mleoking/</uri></author><id>https://sourceforge.net71057b8f1aec9bba1fb23418a72f3b823b3b26ed</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I second this. It would be very useful.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>option to set number of tics</title><link href="https://sourceforge.net/p/gnuplot/feature-requests/387/" rel="alternate"/><published>2014-04-19T13:39:42.982000Z</published><updated>2014-04-19T13:39:42.982000Z</updated><author><name>Andrew Rasmussen</name><uri>https://sourceforge.net/u/andyras/</uri></author><id>https://sourceforge.netcf82d839e978a0b3f5865650e539707744021846</id><summary type="html">&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;</summary></entry></feed>