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

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

[Octave-bug-tracker] [bug #34939] legend size (gnuplot)


From: Ben Abbott
Subject: [Octave-bug-tracker] [bug #34939] legend size (gnuplot)
Date: Wed, 30 Nov 2011 13:37:10 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_2) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.121 Safari/535.2

Update of bug #34939 (project octave):

              Item Group:       Inaccurate Result => Matlab Compatibility   
                  Status:               Need Info => Confirmed              
             Assigned to:                    None => bpabbott               

    _______________________________________________________

Follow-up Comment #10:

Ok. I think I'm seeing what you are. I wrote a similar script that runs under
both Octave and Matlab.


close all
set (0, 'defaultaxesfontsize', 6) ;
x = rand(2,2);
bar (x, 'stacked')
legend (num2str (x(1,:)', 1), 'location', 'eastoutside')
legend boxoff
v = ver;
name = v(1).Name;
print ('-dpng', sprintf ('%s.png', name))


Both the Octave (tip 0fea4cf22f88) and Matlab (R2011b) results are attached.

The text sizes are spacing of the legend entries are the same. However, the
position of the legend is different.

For the OpenGL backend Octave explicitly specifies the legend position. For
the gnuplot backend the placement is determined by gnuplot. Unfortunately
gnuplot's design allows each terminal to implement such things
inconsistently.

Some of our developers had attempted to approximate the bbox of text objects
and implement the legend in octave (without gnuplot's key feature).
Ultimately, we gave up on this due to unreliable and ugly results.

In any event, please verify I am seeing the problem you're reporting.

(file #24505, file #24506)
    _______________________________________________________

Additional Item Attachment:

File name: Octave.png                     Size:12 KB
File name: MATLAB.png                     Size:6 KB


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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