<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent posts to Colorbar Ticks</title><link>https://sourceforge.net/p/plplot/discussion/8607/thread/c40391e3/</link><description>Recent posts to Colorbar Ticks</description><atom:link href="https://sourceforge.net/p/plplot/discussion/8607/thread/c40391e3/feed.rss" rel="self"/><language>en</language><lastBuildDate>Wed, 22 Nov 2017 22:32:18 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/plplot/discussion/8607/thread/c40391e3/feed.rss" rel="self" type="application/rss+xml"/><item><title>Colorbar Ticks</title><link>https://sourceforge.net/p/plplot/discussion/8607/thread/c40391e3/?limit=25#4918</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi folks - I'm having some trouble getting good colorbar results for a contour plot.  Either I have very coarse color steps, or I have way to many ticks &amp;amp; labels.&lt;/p&gt;
&lt;p&gt;My colorbar call looks like this - it's straight out of example 16:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;pls-&amp;gt;colorbar(&amp;amp;colorbar_width, &amp;amp;colorbar_height,
               PL_COLORBAR_SHADE | PL_COLORBAR_SHADE_LABEL, 0,
               0.005, 0.0, 0.0375, 0.875, 0, 1, 1, 0.0, 0.0,
               cont_color, cont_width,
               n_labels, label_opts, labels,
               n_axis_opts, axis_opts,
               axis_ticks, axis_subticks,
               num_values, (const PLFLT * const *) values );
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;I'm using 50 shades to get a smooth contour, and if I use those same levels for the colorbar (&lt;em&gt;values, numvalues&lt;/em&gt;), I get a matching smooth gradient in the colorbar.  But way to many labels.&lt;/p&gt;
&lt;p&gt;&lt;img alt="" rel="nofollow" src="https://drive.google.com/open?id=1Hh8Dnbmk8kSXZ_d0WSakesvT8lXX8haM"/&gt;&lt;/p&gt;
&lt;p&gt;If I change &lt;em&gt;numvalues&lt;/em&gt; to 11, and change &lt;em&gt;values&lt;/em&gt; accordingly, I get nicely spaced ticks, but a very coarse gradient in the colorbar:&lt;/p&gt;
&lt;p&gt;&lt;img alt="" rel="nofollow" src="https://drive.google.com/open?id=1N_ITPDHWhnog9Ckk-WIZiJr_oVlIMajF"/&gt;&lt;/p&gt;
&lt;p&gt;The &lt;em&gt;axisticks&lt;/em&gt; parameter doesn't appear to do anything - I've tried 0, 1, 100, 1000 with no apparent change.&lt;/p&gt;
&lt;p&gt;So - any idea how I can get the color gradient of the first plot with the ticks from the second plot?&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">EricG</dc:creator><pubDate>Wed, 22 Nov 2017 22:32:18 -0000</pubDate><guid>https://sourceforge.netc64ce152999770ef6355254f1f3e08483c551714</guid></item></channel></rss>