bugGNU Octave - Bugs: bug #46168, OpenGL use of single causing...

 
 

bug #46168: OpenGL use of single causing problems in errorbar

Submitted by:  José Luis García Pallero <jgpallero>
Submitted on:  Fri 09 Oct 2015 10:04:49 PM UTC  
 
Category: Plotting with OpenGLSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: PostponedAssigned to: None
Originator Name: Open/Closed: Open
Release: 4.0.0Operating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri 09 Oct 2015 11:20:41 PM UTC, comment #1:

I don't think the problem is errorbar. I think you're running into the fact that OpenGL uses class single to represent numbers. If I switch to gnuplot for plotting, which uses doubles to represent numbers, then the plot looks alright.

It's not the fact that the numbers are close together, it's the fact that you're asking for a precision of .01 / 2000 or 5 parts per million. An easy way around this is to scale the numbers. See below.

If you want the plot to actually read correctly you can change the xticklabel property on the axis manually. Assuming the code above,

Rik <rik5>
Project Administrator
Fri 09 Oct 2015 10:04:49 PM UTC, original submission:

When I plot this data

the obtained plot is inaccurate because the vertical lines do not match the point symbol and also there are problems with the horizontal ticks at the vertical lines extremes. I attach a PDF file with the plot made with my Octave 4.0.0 on Debian.

The problem is present only when the X coodinates of the points are near each other

José Luis García Pallero <jgpallero>

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #35128:  test_errorbar.pdf added by jgpallero (3KiB - application/text-plain:formatted)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by jgpallero (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 09 Oct 2015 11:21:02 PM UTCrik5StatusNone=>Postponed
    Fri 09 Oct 2015 11:20:41 PM UTCrik5CategoryPlotting=>Plotting with OpenGL
      SummaryBug in errorbar() when X coordinates are near each other=>OpenGL use of single causing problems in errorbar
    Fri 09 Oct 2015 10:04:49 PM UTCjgpalleroAttached File-=>Added test_errorbar.pdf, #35128

    Back to the top


    Powered by Savane 3.1-cleanup1