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

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

[Octave-bug-tracker] [bug #41770] Some factory defaults don't conform to


From: Pantxo Diribarne
Subject: [Octave-bug-tracker] [bug #41770] Some factory defaults don't conform to matlab values
Date: Sun, 06 Apr 2014 16:53:30 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:27.0) Gecko/20100101 Firefox/27.0

Follow-up Comment #6, bug #41770 (project octave):

Sorry if it looks like I use the bug tracker to show my drafts but each time I
come back to this bug I discover something new.

In ML as in octave you can display all the root defaults using "get (0,
'default')". Matlab result :

>>get (0, 'default')
          defaultFigurePosition: [680 558 560 420]
               defaultTextColor: [0 0 0]
              defaultAxesXColor: [0 0 0]
              defaultAxesYColor: [0 0 0]
              defaultAxesZColor: [0 0 0]
          defaultPatchFaceColor: [0 0 0]
          defaultPatchEdgeColor: [0 0 0]
               defaultLineColor: [0 0 0]
    defaultFigureInvertHardcopy: 'on'
             defaultFigureColor: [0.8000 0.8000 0.8000]
               defaultAxesColor: [1 1 1]
          defaultAxesColorOrder: [7x3 double]
          defaultFigureColormap: [64x3 double]
        defaultSurfaceEdgeColor: [0 0 0]
         defaultFigurePaperType: 'A4'
        defaultFigurePaperUnits: 'centimeters'
         defaultFigurePaperSize: [20.9840 29.6774]


So you can see all the "color" properties I described, but also some run time
defaults for figures and axes properties.

In octave the result depends on wether the graphics toolkit (Qt here) is
loaded:

## At startup, Qt still not initialized
>> get (0, 'default')
ans =

  scalar structure containing the fields:
## Qt loaded
>> line ();
>> get (0, 'default')
ans =

  scalar structure containing the fields:

    defaultfigure__graphics_toolkit__ = qt
    defaultuicontrolbackgroundcolor =

       0.83922   0.83922   0.83922

    defaultuicontrolforegroundcolor =

       0.12941   0.12941   0.12941

    defaultuipanelbackgroundcolor =

       0.83922   0.83922   0.83922

    defaultuipanelforegroundcolor =

       0.12941   0.12941   0.12941

    defaultuipanelhighlightcolor =

       1   1   1

    defaultuipanelshadowcolor =

       0.69934   0.69934   0.69934
 

My impression is that, if we want to be reasonably compatible with ML here,
there should be a central place where defaults (toolkit specific or not) are
set at startup (or after a neww toolkit has been loaded) . 

Even if we don't want to follow matlab on every choice (such as the default
figure color) it can be usefull to reassemble all non-factory defaults in one
place. 

Is there a convenient place to do that? Any comment?


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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