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

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

[Octave-bug-tracker] [bug #62101] graphics properties broken with gnuplo


From: Sébastien Villemot
Subject: [Octave-bug-tracker] [bug #62101] graphics properties broken with gnuplot backend
Date: Wed, 23 Feb 2022 08:36:04 -0500 (EST)

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

                 Summary: graphics properties broken with gnuplot backend
                 Project: GNU Octave
            Submitted by: svillemot
            Submitted on: mer. 23 févr. 2022 13:36:01 UTC
                Category: Plotting with gnuplot
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Regression
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
                 Release: 7.0.90
         Discussion Lock: Any
        Operating System: Any

    _______________________________________________________

Details:

Hi,

Consider this snippet:

h = figure;
hbar = bar(rand(10, 3),'FaceColor','flat');
set(hbar,'edgecolor','flat');
refresh(h);


When run under Octave 7.0.90 with the --no-window-system option (which implies
the gnuplot backend), one gets:


error: ccol(1): out of bound 0 (dimensions are 0x0)
error: called from
    __gnuplot_draw_axes__ at line 1162 column 34
    __gnuplot_draw_figure__ at line 169 column 17
    __gnuplot_drawnow__ at line 91 column 5
    refresh at line 47 column 3
    glou at line 4 column 1


This error is related to the set(hbar,'edgecolor','flat') command.

And when that command is removed, there is no crash but one gets gnuplot
errors and the resulting graphics is incorrect. This second problem disappears
when one removes the 'FaceColor', 'flat' graphics properties.

These issues are regressions, since they do not occur with Octave 6.4.0.

I’m aware that the gnuplot backend is deprecated, but it’s the default
when --no-window-system is given (and it’s very useful to be able to
generate graphics without a display, e.g. when running testsuites on
continuous integration platforms as we do for Dynare).





    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message posté via Savannah
  https://savannah.gnu.org/




reply via email to

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