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

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

[Octave-bug-tracker] [bug #61557] plotyy causes a saveas error in strtri


From: Tom
Subject: [Octave-bug-tracker] [bug #61557] plotyy causes a saveas error in strtrim
Date: Thu, 25 Nov 2021 07:14:56 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0

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

                 Summary: plotyy causes a saveas error in strtrim
                 Project: GNU Octave
            Submitted by: methanol
            Submitted on: Thu 25 Nov 2021 12:14:55 PM UTC
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Unexpected Error or Warning
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
                 Release: 6.4.0
         Discussion Lock: Any
        Operating System: Microsoft Windows

    _______________________________________________________

Details:

Hi,

I have started to use Octave a week ago and so it's my first report. Maybe I
did something wrong, but it seems to be pretty clear.

I wanted to save a plot (used: plotyy, saveas) and got this error:


error: strtrim: S argument must be a string or cellstring
error: called from
    strtrim at line 65 column 7
    __print_parse_opts__ at line 85 column 9
    print at line 416 column 8
    saveas at line 110 column 3


First I searched in my code. I thought it must be something wrong with my
plot.
But even a very simple code produces the same error.


clear;
clf;

 x = 0:0.1:1;
 y1 = x;
 y2 = 2*x;
 ax = plotyy (x,y1,x,y2);
 
 saveas(ax,'test.png')


I used Octave 6.4.0.
In Octave 5.2.0 it's the same.

But in Octave 3.6.4 it works.


Maybe someone have the same issue or can reproduce it. Or did I miss
something?





    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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