bugGNU Octave - Bugs: bug #33231, adding ';label;' to plot()...

 
 

bug #33231: adding ';label;' to plot() generates error: structure has no member `fontname'

Submitter:  kloof <kloof>
Submitted:  Wed 04 May 2011 04:44:33 PM UTC
   
 
Category:  Plotting with gnuplot Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 3.4.0 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 18 Sep 2011 05:11:30 PM UTC, comment #5: 

As this appears to have been fixed in the sources, I'm closing it.

It can be reopened if necessary.

Ben Abbott <bpabbott>
Group Member
Fri 20 May 2011 07:55:01 AM UTC, comment #4: 

Thanks for pointing out that I don't have to recompile. The .m file is in my ~/share/octave/m/plot directory. This doesn't need compiling of course...!

I have changed 'obj' into 'hlgnd' near line 1472 and that indeed resolved the problem. Thanks again!

The extract was not fresh, but I thought I should work anyway.

The recompile was never necessary, so this is a side-track: I thought any repetitions of 'make' should either recompile (if needed for the new _go_draw_axes_.m) , or do nothing. It compiled the first time, but now it stumbles of this non-existing directory. If I solve this (stupidity?) I will report on it.

kloof <kloof>
Thu 19 May 2011 07:16:35 PM UTC, comment #3: 

Before recompiling, you may first check if it will indeed fix the problem.

Under octave prompt, find which _go_draw_axes_.m is used :
which _go_draw_axes_
patch this file
Remember to leave and start again octave as these m-files are cached.

For the compilation, are you starting from a fresh extract ?

John Hunt <huntj>
Thu 19 May 2011 03:44:17 PM UTC, comment #2: 

Thanks for the suggestion! I've applied your patch, but now I run into a compile error, which I didn't have when I compiled the first time. So, I'll get to this, when the compiling works.

__

I'm not a compiling expert: if you have a tip how to resolve this, I'd be interested:

cd libcruft
make
(it compiles and then:)
libtool: link: g++ -shared -nostdlib /usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/crti.o /usr/lib/gcc/x86_64-linux-gnu/4.4.5/crtbeginS.o (......)

(..... and gives errors:)
g++: /usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/crti.o: No such file or directory
g++: /usr/lib/gcc/x86_64-linux-gnu/4.4.5/crtbeginS.o: No such file or directory
g++: /usr/lib/gcc/x86_64-linux-gnu/4.4.5/crtendS.o: No such file or directory
g++: /usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/crtn.o: No such file or directory
make: * [libcruft.la] Error 1
______________________________________
which is correct, because /usr/lib/gcc does not have a 'x86_64-linux-gnu' subdir....

I can only think of that ubuntu has removed this directory in a software update. But: unlikely!

any suggestions here?

thanks

kloof <kloof>
Thu 19 May 2011 01:01:34 PM UTC, comment #1: 

It works here with 3.4.0, but with this patch applied :
http://hg.savannah.gnu.org/hgweb/octave/rev/7c60b2bd7f39
which solved a similar bug :
http://octave.1599824.n4.nabble.com/more-problems-with-labels-td3287293.html

Does it fix your problem also ?

John Hunt <huntj>
Wed 04 May 2011 04:44:33 PM UTC, original submission:  

overplotting f(x)=x works with gnuplot without labels:


octave:1> x=linspace(0,3,100) ; y=sin(x) ;plot(x,y)
octave:2> hold on
octave:3> plot(x,x)


but it doesn't work when you add a label ('text' here):


octave:4> x=linspace(0,3,100) ; y=sin(x) ;plot(x,y,';text;')
octave:5> plot(x,x)
error: structure has no member `fontname'
error: evaluating argument list element number 1
error: called from:
error:   /home/kloof/share/octave/3.4.0/m/plot/__go_draw_axes__.m at line 2086, column 3
error:   /home/kloof/share/octave/3.4.0/m/plot/__go_draw_axes__.m at line 1475, column 31
error:   /home/kloof/share/octave/3.4.0/m/plot/__go_draw_figure__.m at line 167, column 19
error:   /home/kloof/share/octave/3.4.0/m/plot/__gnuplot_drawnow__.m at line 86, column 5
octave:6>


In FLTK this problem does not occur.
My version 3.4.0 is compiled from source on ubuntu 10.10 intel x86_64

kloof <kloof>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by bpabbott (Posted a comment)
  • -email is unavailable- added by huntj (Posted a comment)
  • -email is unavailable- added by kloof (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-09-18 bpabbott Item GroupNone Incorrect Result
        StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code