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

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

[Octave-bug-tracker] [bug #40064] Legend "interpreter" property not work


From: Rik
Subject: [Octave-bug-tracker] [bug #40064] Legend "interpreter" property not working correctly
Date: Thu, 19 Sep 2013 03:06:39 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:24.0) Gecko/20100101 Firefox/24.0

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

                 Summary: Legend "interpreter" property not working correctly
                 Project: GNU Octave
            Submitted by: rik5
            Submitted on: Wed 18 Sep 2013 08:06:39 PM PDT
                Category: Plotting with OpenGL
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: Any

    _______________________________________________________

Details:

The following code is demo #12 from legend.m.


clf;
plot (rand (2));
title ('Labels with TeX interpreter turned off');
h = legend ('Hello_World', 'foo^bar');
set (h, 'interpreter', 'none');


What one should see in the legend box is the actual strings with no TeX
markup.  Instead, the TeX parser is on by default and the 'b' in "foo^bar" is
superscripted.

The problem seems to be that for a new axes object the default for the
"interpreter" property is "none", but the code is defaulting to "tex".  Next,
when


set (h, 'interpreter', 'none');


is executed nothing happens because the set() command automatically compares
the old property value with the new property value and does nothing if they
are the same.  I can force things to work correctly by switching the
interpreter away from "none" and back again.  The following generates the
correct display.


set (h, 'interpreter', 'latex');
set (h, 'interpreter', 'none');







    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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