Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

problem with cbtics number

623 views
Skip to first unread message

Reza

unread,
Jul 6, 2012, 1:09:47 PM7/6/12
to
Hallo,

I'd like to see color image of 6th column of my data file and i do via

set cbtics scale 4.
set cbrange [0:1]
set cbtics .2

plot 'data' using 2:3:6 with points pt 7 ps 4 linetype palette

everything is fine as i want, but the colorbox which shows the color range, does not show the number for each tic. How to get the number for tic also visible? I want e.g 0,0.5 and 1 at highest to lowest color. Without number, color does not mean anything! no success by Google so far.

Regards,
Reza

sfeam

unread,
Jul 6, 2012, 2:36:15 PM7/6/12
to
Reza wrote:

> Hallo,
>
> I'd like to see color image of 6th column of my data file and i do via
>
> set cbtics scale 4.
> set cbrange [0:1]
> set cbtics .2
>
> plot 'data' using 2:3:6 with points pt 7 ps 4 linetype palette
>
> everything is fine as i want, but the colorbox which shows the color
> range, does not show the number for each tic. How to get the number for
> tic also visible?

I can't reproduce this problem here using gnuplot version 4.6.
What version and what "set terminal" command are you using?

> I want e.g 0,0.5 and 1 at highest to lowest color.

You told it "set cbtics 0.2", so you will get tics at 0.2, 0.4, 0.6, ...
but not at 0.5

Reza

unread,
Jul 8, 2012, 6:49:10 AM7/8/12
to sf...@users.sourceforge.net
Thanks sfeam,

Gnuplot 4.2 under Ubuntu. Yes, I know cbtics at 0.2 or 0.5, that is clear. The question is that it does not show any number, just shows the tics correctly at the place that I specify (0.2 or 0.5). How to get the number appeared also on each tics?

I have also set terminal epslatex color. What do you use which works fine?

Reza

sfeam

unread,
Jul 8, 2012, 1:09:11 PM7/8/12
to
Reza wrote:

> Thanks sfeam,
>
> Gnuplot 4.2 under Ubuntu.

Version 4.2 dates back to 2007; the last update was in released in 2009.
Rather than trying to debug a problem with a version from 5 years ago,
I think your most reasonable course is to install a newer version of
gnuplot. Current is 4.6 patchlevel 0.

> I have also set terminal epslatex color. What do you use which works
> fine?

All of the terminals I tried worked fine using a current version.
But yes, I did go back to test using an old copy of 4.2.5, where
at least the interactive terminals (x11, wxt) displayed cbtic labels
correctly. As to epslatex, the code in version 4.2 has been removed
entirely and replaced with a new driver - several new drivers,
actually. You now have a choice between "epslatex", "cairolatex eps",
and additional newer latex-based terminal types like "tikz".

Ethan
0 new messages