bugGNU Octave - Bugs: bug #43890, gnuplot patch coloring not...

 
 

bug #43890: gnuplot patch coloring not identical to FLTK or Matlab

Submitted by:  Rik <rik5>
Submitted on:  Fri 26 Dec 2014 03:47:22 AM UTC  
 
Category: Plotting with gnuplotSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: Works For MeAssigned to: None
Originator Name: Open/Closed: Closed
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.

 

Wed 10 Jun 2015 10:41:50 PM UTC, comment #3:

You're right. This problem seems to have gone away. Closing report.

Rik <rik5>
Project Administrator
Tue 09 Jun 2015 05:14:44 PM UTC, comment #2:

Does this problem still exist? I am using Octave and gnuplot repository development versions and have run your examples. The color scheme looks the same in all cases of jet(N), which matches the Qt plot version and your screen capture.

Dan Sebald <sebald>
Wed 31 Dec 2014 06:33:54 PM UTC, comment #1:

I can get a second patch to turn a different color by using a differently sized colormap.

Also, for low values of the colormap size the cyan patch alternates between the correct color and the wrong color.

N = 4, 6, 9 are bad
N = 5, 7, 8, 10 are good

Rik <rik5>
Project Administrator
Fri 26 Dec 2014 03:47:22 AM UTC, original submission:

The patch colors are not always correct. Here is one example:

I've attached screen snapshots of the results under both gnuplot and FLTK. You can't use print to produce the images because the print version from gnuplot is correct.

Octave is doing something very tricky with the colormap that it sends to gnuplot. The code to modify will be in _go_draw_axes_.m. The snapshot I took has a colorbar from gnuplot because I commented out this line in _go_draw_axes_.m:

As one can see, the colormap is doubled (8 entries) rather than the 4 that it would normally have.

The code immediately before this line is adding extra entries to the cmap for an unknown reason. See below.

Rik <rik5>
Project Administrator

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #32714:  demo6_gnuplot.png added by rik5 (44KiB - image/png)
file #32715:  demo6_fltk.png added by rik5 (17KiB - image/png)

 

Digest:
   bug dependencies.

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by sebald (Posted a comment)
  • -unavailable- added by avinoam
  • -unavailable- added by rik5 (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 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 10 Jun 2015 10:41:50 PM UTCrik5StatusNone=>Works For Me
      Open/ClosedOpen=>Closed
    Fri 26 Dec 2014 03:20:56 PM UTCrik5Dependencies-=>Depends on bugs #34523
    Fri 26 Dec 2014 09:22:03 AM UTCavinoamCarbon-Copy-=>Added avinoam
    Fri 26 Dec 2014 03:47:22 AM UTCrik5Attached File-=>Added demo6_gnuplot.png, #32714
      Attached File-=>Added demo6_fltk.png, #32715

    Back to the top


    Powered by Savane 3.1-cleanup1