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

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

[Octave-bug-tracker] [bug #61352] matlab2tikz and legends


From: anonymous
Subject: [Octave-bug-tracker] [bug #61352] matlab2tikz and legends
Date: Tue, 19 Oct 2021 03:13:59 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:93.0) Gecko/20100101 Firefox/93.0

URL:
  <https://savannah.gnu.org/bugs/?61352>

                 Summary: matlab2tikz and legends
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Tue 19 Oct 2021 07:13:58 AM UTC
                Category: Plotting
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Matlab Compatibility
                  Status: None
             Assigned to: None
         Originator Name: Andreas Stahel
        Originator Email: 
             Open/Closed: Open
                 Release: 6.3.0
         Discussion Lock: Any
        Operating System: GNU/Linux

    _______________________________________________________

Details:

Dear Octave developpers

there is a minor problem with a graphics structure when trying to export with
matlab2tikz. Legends to not seem to go through.
Here is a minimal example leading to the error


clear *
x = linspace(0,10);
figure(1)
plot(x,sin(x),x,cos(x))
legend('sin(x)','cos(x)')
matlab2tikz('testMat2tikz.tex','standalone',true,'width','7cm')


Octave leads to

error: matrix cannot be indexed with {
error: called from
    matlab2tikz>getLegendEntries at line 1137 column 21
    matlab2tikz>drawAxes at line 861 column 33
    matlab2tikz>saveToFile at line 485 column 13
    matlab2tikz at line 337 column 9
    testMat2tikz at line 6 column 1


Matlab generates the tex file with the legends.






    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?61352>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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