octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #33757] Legend using DisplayName not displayed


From: anonymous
Subject: [Octave-bug-tracker] [bug #33757] Legend using DisplayName not displayed
Date: Tue, 12 Jul 2011 17:43:33 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.2.18) Gecko/20110628 Ubuntu/10.10 (maverick) Firefox/3.6.18

URL:
  <http://savannah.gnu.org/bugs/?33757>

                 Summary: Legend using DisplayName not displayed
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Di 12 Jul 2011 17:43:32 UTC
                Category: Plotting with gnuplot
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
             Assigned to: None
         Originator Name: Burkart
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.4.2
        Operating System: GNU/Linux

    _______________________________________________________

Details:

It's possible to specify the legend entry for a plot using the DisplayName
property. However, if you use that method no legend is shown even when an
explicit legend('show') is issued. The only solution I found to make the
actual legend visible is to use legend('right'). This shows that the data
specified using DisplayName is stored, it's just not evaluated when the plot
is initially plotted nor on calling legend('show'). When the legend entry is
specified using ';legend entry;' the legend is drawn upon plotting.

Example:


x = 0:pi/15:2*pi;
plot(x, sin(x), 'DisplayName', 'sin(x)')   % no legend
legend('show')    % doesn't work
legend('right')   % works
legend('hide')    % works
legend('show')    % works now

close all
clear all
x = 0:pi/15:2*pi;
plot(x, sin(x), ';sin(x);')   % works





    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?33757>

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.gnu.org/




reply via email to

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