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

colorbar label not in output png file

1,239 views
Skip to first unread message

Matthias Pospiech

unread,
May 7, 2010, 5:20:10 AM5/7/10
to
I want to have a square sized plot output size. The terminal is png.

However the colorbar label:
set cblabel "normalized intensity"

is outside the plot window, and thus not in the png file.
I have to make the plot window almost 4:3 size ratio to get it back.

But that is not what I want.

What needs to be changed to adress this problem?

Matthias

sfeam

unread,
May 7, 2010, 9:01:50 PM5/7/10
to
Matthias Pospiech wrote:

Could you please post a specific set of commands that illustrates
this problem? It's not clear whether you mean "set size square"
or "set term png size N,N", or what. Also please report the gnuplot version.

Matthias Pospiech

unread,
May 8, 2010, 2:42:32 AM5/8/10
to
sfeam schrieb:

Yes, I mean size N,N. Here is a stripped version of the code:

set term png truecolor notransparent nocrop enhanced font arial 20 size
1200,1200 linewidth 2

set view map
unset surface
set style data pm3d
set xyplane at 0
set cblabel "relative intensity"
set cbrange [ 0 : 1 ] noreverse nowriteback
set pm3d implicit at b
splot "test.txt" matrix title ""

The Gnuplot Version is 4.4 RC1

Matthias

sfeam

unread,
May 13, 2010, 6:19:11 PM5/13/10
to
Matthias Pospiech wrote:

> sfeam schrieb:
>> Matthias Pospiech wrote:
>>
>>> I want to have a square sized plot output size. The terminal is png.
>>>
>>> However the colorbar label:
>>> set cblabel "normalized intensity"
>>>
>>> is outside the plot window, and thus not in the png file.
>>> I have to make the plot window almost 4:3 size ratio to get it back.

I'm just getting a chance now to look at this.
I thought maybe it was a problem specific to 4.4-rc1 since I don't see
it the released 4.4.0 or the current cvs using the script you provided.
But no, now that I've had a chance to go back and build a copy of 4.4-rc1
I can't reproduce the problem there either. In all cases the cblabel
appears nicely centered in the right margin.

So I'm not sure what else to check. Maybe the version of libgd?

0 new messages