bugGNU Octave - Bugs: bug #43040, linewidth is not working

 
 

bug #43040: linewidth is not working

Submitter:  None
Submitted:  Thu 21 Aug 2014 11:16:00 AM UTC
   
 
Category:  Plotting with OpenGL Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Inaccurate Result
Status:  Works For Me Assigned to:  None
Originator Name:  Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 3.8.2
Operating System:  * GNU/Linux Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Wed 18 Mar 2015 06:20:40 AM UTC, comment #19: 

Since the gl2ps output is okay and only The onscreen output is wrong I would assume that the problem insn't in Octave but in the used OpenGL driver and we should close this bug as invalid.

Anonymous
Wed 18 Mar 2015 03:28:15 AM UTC, comment #18: 

I also notice that the glxinfo output shows that the reporter is using the nouveau graphics driver for an Nvidia device. The capabilities of this mesa driver may or may not have something to do with the differences seen in the on-screen rendering.

Mike Miller <mtmiller>
Group Member
Fri 02 Jan 2015 11:41:15 PM UTC, comment #17: 

Is there any new information, perhaps after cleaning up the mixed testing/sid apt/sources.list?

Andreas Weber <andy1978>
Group Member
Tue 26 Aug 2014 06:22:24 AM UTC, comment #16: 


glxinfo -l |grep WIDTH
    GL_ALIASED_LINE_WIDTH_RANGE = 1, 10
    GL_SMOOTH_LINE_WIDTH_RANGE = 1, 10
    GL_ALIASED_LINE_WIDTH_RANGE = 1, 10
    GL_SMOOTH_LINE_WIDTH_RANGE = 1, 10

Anonymous
Mon 25 Aug 2014 04:00:11 PM UTC, comment #15: 

Running Kubuntu 12.04 and I mostly see the same installation of packages, although older versions of them.  The libgl1-mesa packages are all back at 9.0.3 rather than 10.2.6.

Other differences are the support for OpenGL|ES 2.X API (libgles2-mesa:amd64).  Maybe that is important because it is a different API?

Rik <rik5>
Group administrator
Mon 25 Aug 2014 11:39:07 AM UTC, comment #14: 

Can you please post the output of

glxinfo -l |grep WIDTH


which gives the possible linewidths for your mesa installation.
Thanks

Andreas Weber <andy1978>
Group Member
Mon 25 Aug 2014 11:12:08 AM UTC, comment #13: 

The supposed test case shows a correct result in out.png and a wrong result on screen.

set (gcf, "__enhanced__", "off")

does not change the screen result.

Requested output of dpkg is attached.
Uninstallation of the two packages makes no difference.

(file #31958)

Anonymous
Sun 24 Aug 2014 06:33:27 PM UTC, comment #12: 

The cleanest test case is:


octave-3.8.2 -f
graphics_toolkit fltk
plot (1:10, 'linewidth', 5);
get (gcf, "__enhanced__")
print out.png


The '-f' stops Octave from loading any configuration files in case there is something in your site-wide octaverc or your personal .octaverc configuration.  Using the full name of octave makes sure you are getting the right version, and usually avoids any aliases you might have for octave which would start it with different options.  The second line within Octave ensures the toolkit is fltk, rather than qt which it would be for the GUI.  The fourth line is checking on a hidden property of the figure which determines whether anti-aliasing is used.  If there is a problem with the renderer on your graphics card it might be useful to try


set (gcf, "__enhanced__", "off")


and see if that helps.

I would also disable anything that I don't recognize from the packages that Octave maintainers ship.  In this case, I would temporarily uninstall octave-plot and qtoctave.

Finally, you might run the following command at the shell to see what sort of packages related to OpenGL you have installed.


dpkg -l | grep -i opengl



Rik <rik5>
Group administrator
Sun 24 Aug 2014 05:58:22 PM UTC, comment #11: 

Hi,
of course I do not know. But maybe this helps you:

libfltk1.3.2-6
libqt5core 5.3.1+dfg-3
octave 3.8.2-1
octave-plot 1.1.0-2
qtoctave 0.10.1-4

are other programm or lib versions of any interested?

BTW: Andreas Weber is right concerning unstable. But it was not clear to me. There is more unstable in this system as it used to be. Thanks for the hint. Just a few non free stuff should be from unstable for a project I am working ob. Maybe I did not made that point clear to the admin guys or it was just a mistake.I will clarify this for my own interest tomorrow - but that is not the point here.

regards

Anonymous
Sun 24 Aug 2014 05:30:43 PM UTC, comment #10: 

Is this an Octave bug or a packaging bug (Debian) or a problem with the bug reporter's individual installation?

Octave 3.8.2 is working correctly in many different environments so I suspect either a packaging bug or the particular installation.

Rik <rik5>
Group administrator
Sun 24 Aug 2014 03:29:37 PM UTC, comment #9: 

Hi,

#1 Your question
***************

> Does plotting with the qt toolkit from within the GUI (start octave with --force-gui) show the expected linewidth?


No, that makes no different.


#2 My System (testing/unstable)
******************************

Here is my apt-source

+++++++++++++++++++++++++

deb http://security.debian.org/ testing/updates main contrib non-free
deb http://debian.uni-duisburg-essen.de/debian/ testing-proposed-updates contrib non-free main
deb http://www.deb-multimedia.org testing main non-free
deb-src http://www.deb-multimedia.org testing main non-free
deb http://http.us.debian.org/debian/ sid non-free main contrib
deb-src http://security.debian.org/ testing/updates main contrib non-free

+++++++++++++++++++++++++

so i you are not "non-free" this seems strange to me. Nevertheless I might ask one of the admin guys to have a look.


#3 Bug reports and "own initiative finding"
******************************************

First of all I honor your work for the software expecting that you are not paid to do this. 

Nethertheless is seems that we have divergenze understanding of bug reports. I understand a bug report as contribution from my side to you.

I write a script for students and add notes to the script what kind of Matlab scripts work in octave as well or I write down easy shortcuts to get the same result in octave as in Matlab. If it is not working on my Linux system I am fine with this situation. I just do not add the "works in octave" icon to one or two Matlab-Listings and my "problem" is solved.

I spend time - and time is what I most need - to send you information as long as you ask me and I feel like helping improving the quality of your software - that we the new GUI might be a good alternative for students or people with no Matlab Licence or the urge to use Open Source for engineering or science.

So if you want, feel free to ask me about the version of a library etc. to solve your problem and I will answer as fast as my priority list will allowed this. If this "bug" is no problem to you and your are sure it will not arrive in a context that you find serious =>I am fine and done.

Just tell me if you want my help or if this is just a waste of time from your side. In this case we both should stop that here and invest our rare time somewhere else.

Anonymous
Sat 23 Aug 2014 06:21:49 PM UTC, comment #8: 

Please use verbatim blocks for code and cli output. You pasted snippet shows "500 http://http.us.debian.org/debian/ sid/main amd64 Packages" and GNU/Debian sid is unstable as I supposed since comment #3.

Since you are using a distribution (or an apt/sources.list with mixed jessie and sid sources with apt-pinning) which is clearly marked as "unstable" I would expect a little bit more own initiative finding the problem on your system.

Does plotting with the qt toolkit from within the GUI (start octave with --force-gui) show the expected linewidth? If yes than it's very likely a problem with fltk and you should consider testing a previos fltk version. See here:

http://metadata.ftp-master.debian.org/changelogs//main/f/fltk1.3/fltk1.3_1.3.2-6_changelog

Andreas Weber <andy1978>
Group Member
Fri 22 Aug 2014 11:14:17 AM UTC, comment #7: 

I did not need the feature for a few month. About a few month ago it worked. ;-)

------------------german but I think it is clear -----------------

:~$ apt-cache policy octave
octave:
  Installiert:           3.8.2-1
  Installationskandidat: 3.8.2-1
  Versionstabelle:
 *** 3.8.2-1 0
        500 http://http.us.debian.org/debian/ sid/main amd64 Packages
        100 /var/lib/dpkg/status
------------------------------------------------------

----------------------- MESA ----------------------------
:~$ glxinfo | grep render
direct rendering: Yes
    GLX_MESA_multithread_makecurrent, GLX_MESA_query_renderer,
OpenGL renderer string: Gallium 0.4 on NVC3
    GL_MESA_texture_signed_rgba, GL_NV_conditional_render, GL_NV_depth_clamp,
    GL_NV_blend_square, GL_NV_conditional_render, GL_NV_depth_clamp,
--------------------------------------------------------

Anonymous
Fri 22 Aug 2014 06:58:14 AM UTC, comment #6: 

See here: https://packages.debian.org/jessie/octave. Can you please add the output of "apt-cache policy octave"?

Has the linewidth setting worked with previous octave versions? As the print shows the lines with width=5 I think this is a problem with your graphic-card driver, mesa installation (can you check if direct rendering is enabled? https://wiki.debian.org/Mesa) or libfltk1.3, libfltk-gl1.3.

Background: Octave with graphics_toolkit FLTK uses OpenGL to plot the figures. If you want to print these OpenGL commands are captured by gl2ps which creates the graphic file, out.png in your case.


Andreas Weber <andy1978>
Group Member
Fri 22 Aug 2014 06:28:39 AM UTC, comment #5: 

Hi,

since yesterday it is 3.8.2

octave --version
GNU Octave, version 3.8.2
Copyright (C) 2014 John W. Eaton and others.

I tested both, just starting octave and octave --force-gui
Makes no different.

Please finde - as asked - the png of

octave:1> x=[0:10];y=sin(x);plot(x,y,'LineWidth',5);print out.png

attached. So this works finde while the screen-version is still not working. I am unsure if this version of octave uses gnuplot. In this case on my system is gnuplot 4.6 patchlevel .


Anonymous
Thu 21 Aug 2014 03:51:17 PM UTC, comment #4: 

Plesse also tell us if you See the thick line when print to file. For example "print out.png"

Anonymous
Thu 21 Aug 2014 02:26:42 PM UTC, comment #3: 

Are you sure? As I can see 3.8.2 is in sid(unstable), not yet in testing:

$ LANG=C; apt-cache policy octave
octave:
  Installed: (none)
  Candidate: 3.8.1-3
  Version table:
     3.8.1-3 0
        500 http://ftp.debian.de/debian/ jessie/main amd64 Packages


You sreenshot shows graphics_toolkit fltk. Are you using the experimental GUI? Does this also happen if you use the non-GUI commandline version or gnuplot?

Andreas Weber <andy1978>
Group Member
Thu 21 Aug 2014 02:09:45 PM UTC, comment #2: 

I am using Debian testing.
Octave was updated today.
Installation via apt-get
Started as

octave --force-gui

Do you need a screenshot?

Anonymous
Thu 21 Aug 2014 01:21:07 PM UTC, comment #1: 

I've tested your code with 3.8.2 under GNU/Debian with FLTK toolkit and gnuplot and both works for me.

Which toolkit are you using and how have you installed GNU Octave? Which distribution are you using?

Andreas Weber <andy1978>
Group Member
Thu 21 Aug 2014 11:16:00 AM UTC, original submission:  

The following comands give the same figure

octave:4> plot([0:10],sin([0:10]),'LineWidth',5);
octave:5> plot([0:10],sin([0:10]),'LineWidth',1);

so LineWidth is ignored.
The same for

octave:6> plot([0:10],sin([0:10]),'linewidth',1);
octave:7> plot([0:10],sin([0:10]),'linewidth',8);

Anonymous

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #31958:  dpkgout.txt added by None (5KiB - text/plain)
file #31933:  out.png added by None (25KiB - image/png)
file #31934:  onScreen.png added by None (14KiB - image/png)
file #31931:  octave.png added by None (57KiB - image/png - Screenshot)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by andy1978 (Posted a comment)
  •  

    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 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-03-18 rik5 Open/ClosedOpen Closed
    2015-03-18 mtmiller CategoryPlotting Plotting with OpenGL
    2014-08-25 None Attached File- Added dpkgout.txt, #31958
    2014-08-22 None Attached File- Added out.png, #31933
        Attached File- Added onScreen.png, #31934
    2014-08-21 None Attached File- Added octave.png, #31931
    2014-08-21 andy1978 StatusNone Works For Me

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code