bugGNU Octave - Bugs: bug #41166, scatter with mix of int and double...

 
 

bug #41166: scatter with mix of int and double - casts double to integer class

Submitted by:  CarnĂ« Draug <carandraug>
Submitted on:  Thu 09 Jan 2014 07:07:08 PM UTC  
 
Category: PlottingSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: ConfirmedAssigned to: None
Originator Name: Open/Closed: Open
Release: devOperating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Fri 25 Nov 2016 11:06:47 PM UTC, comment #2:

This issue is still present in Octave 4.2.0.

Hartmut <hardy>
Thu 09 Jan 2014 07:19:32 PM UTC, comment #1:

I think the problem is that when _scatter_ is setting the values for the vertices, it is doing things like [x, y, z] and when operations like that involve a mixture of int and double values, the result is the int value. That's not going to change (required for Matlab compatibility among other reasons) so we need to fix _scatter_ to avoid using this method of constructing the vertex values.

John W. Eaton <jwe>
Project Administrator
Thu 09 Jan 2014 07:07:08 PM UTC, original submission:

Given two datasets with different classes, scatter seems to be doing something funny with it:

It would appear that it casts the x data (class double), to uint8 (the class of y) since all x values are plotted as integers.

Carnë Draug <carandraug>
Project Member

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by hardy (Posted a comment)
  • -unavailable- added by mtmiller (Updated the item)
  • -unavailable- added by rik5 (Updated the item)
  • -unavailable- added by jwe (Posted a comment)
  • -unavailable- added by carandraug (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 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 17 Nov 2016 06:15:29 AM UTCmtmillerCategoryPlotting with OpenGL=>Plotting
      Release3.8.0=>dev
    Mon 29 Dec 2014 04:32:19 AM UTCrik5StatusNone=>Confirmed

    Back to the top


    Powered by Savane 3.1-cleanup1