bugGNU Octave - Bugs: bug #53210, contourf does not fill a single...

 
 

bug #53210: contourf does not fill a single level when colormap is gray with gnuplot toolkit

Submitter:  Marco Caliari <caliari>
Submitted:  Fri 23 Feb 2018 10:02:31 AM UTC
   
 
Category:  Plotting with gnuplot Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Regression
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 4.2.1 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Mon 26 Feb 2018 08:00:41 AM UTC, comment #6: 

It was fixed in default by changeset a9be96afb39e, bug #52624.

Marco Caliari <caliari>
Group Member
Sun 25 Feb 2018 06:52:08 PM UTC, comment #5: 

Ok, so I'll close this report. Thanks.

Pantxo Diribarne <pantxo>
Group Member
Sun 25 Feb 2018 09:50:59 AM UTC, comment #4: 

Yes, it is fixes in dev.

Marco Caliari <caliari>
Group Member
Sat 24 Feb 2018 10:26:05 PM UTC, comment #3: 

I can reproduce with gnuplot and Octave 4.2, but it seems to have been fixed in dev. I tried the default "x11" terminal and "wxt" and both render a white disk in the middle of a gray background.

Can you confirm that this is fixed in dev?

Pantxo Diribarne <pantxo>
Group Member
Sat 24 Feb 2018 10:11:51 AM UTC, comment #2: 

@Pantxo: you are right. I have a hidden .octaverc in the folder which switches to gnuplot. Try this, instead


graphics_toolkit("gnuplot")
colormap ("gray")
x = linspace(-2,2);
[X,Y] = meshgrid(x);
contourf(X,Y,X.^2+Y.^2-1,[0,0])


Marco Caliari <caliari>
Group Member
Fri 23 Feb 2018 10:32:45 PM UTC, comment #1: 

I can't confirm, neither with Octave 4.2.1 nor with the default branch. I tried setting the colormap first or last and it didn't make a difference:


colormap ("gray")
x = linspace(-2,2);
[X,Y] = meshgrid(x);
contourf(X,Y,X.^2+Y.^2-1,[0,0])
## colormap ("gray")


Does removing the axes back plane ("set (gca, 'color', 'none')") or unzooming ("axis ([-3 3 -3 3])") change anything?

Pantxo Diribarne <pantxo>
Group Member
Fri 23 Feb 2018 10:02:31 AM UTC, original submission:  

The following script


x = linspace(-2,2);
[X,Y] = meshgrid(x);
contourf(X,Y,X.^2+Y.^2-1,[0,0])


displays a white ball in a coloured background for any colormap I tried but colormap(gray), for which the background is white. For sure it was gray (as it should, in matlab too) in some previous versions of octave.

Marco Caliari <caliari>
Group Member

 

(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 pantxo (Posted a comment)
  • -email is unavailable- added by caliari (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 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-02-25 pantxo StatusNone Fixed
        Open/ClosedOpen Closed
    2018-02-24 pantxo CategoryPlotting Plotting with gnuplot
    2018-02-24 caliari StatusWorks For Me None
        Summarycontourf does not fill a single level when colormap is gray contourf does not fill a single level when colormap is gray with gnuplot toolkit
    2018-02-23 pantxo StatusNone Works For Me

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code