[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Boxed legend not correct size

From: am304
Subject: Boxed legend not correct size
Date: Mon, 20 Feb 2012 09:19:09 -0800 (PST)

Hi, I am using GNU Octave 3.2.4 on Windows XP x64 SP2 with GNU plot 4.4. Unfortunately, I can't upgrade to a newer version of either due to IT restrictions (I don't have admin priviledges either on my machine). I have noticed that when trying to insert a (boxed) legend, made up of a cell array of strings in combination with hold on, the size of the legend is incorrect in the sense that it's far too big compared to the size of the text it's supposed to encase. Here is a simple example that replicates the issue:
x = 0:0.01:10;
hold on
legend_str{1}='first line';
legend_str{2}='second line';
legend_str{3}='third line';
grid on
This gives the following result in GNU plot: In my real application, the strings are somewhat longer and the problem is compounded, with the legend taking almost all of the width of the figure. Is this something that can be fixed? I should also say that I changed the
function as per this post to overcome the issues with hold on and line colours. Any suggestions welcome. Many thanks in advance, Arnaud

View this message in context: Boxed legend not correct size
Sent from the Octave - General mailing list archive at

reply via email to

[Prev in Thread] Current Thread [Next in Thread]