octave-maintainers
[Top][All Lists]
Advanced

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

Re: Re: Legend compatibility help


From: Pantxo Diribarne
Subject: Re: Re: Legend compatibility help
Date: Wed, 02 Oct 2013 19:22:25 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130623 Thunderbird/17.0.7

To obtain the legend with default strings "data1", "data2" and "data3", you have to do :

h = plot (rand (3,3));
hl = legend ('TOGGLE');
##then
set (h(1), 'DisplayName', 'This is a Long String')

updates the first item string.

Pantxo



reply via email to

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