bugGNU Octave - Bugs: bug #31760, mesh changes edgecolor...

 
 

bug #31760: mesh changes edgecolor when switching to logarithmic scale

Submitted by:  Thorsten Meyer <tmeyier>
Submitted on:  Thu 02 Dec 2010 09:27:29 PM UTC  
 
Category: Plotting with gnuplotSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: ConfirmedAssigned to: None
Originator Name: Thorsten MeyerOpen/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.

 

(Jump to the original submission Jump to the original submission)

Sat 25 Feb 2012 09:41:05 PM UTC, comment #6:

I've looked through the gnuplot demos. I can't find any examples where a logscale surface plot is also colored.

I think it a good idea to add a demo with a comment about this so we don't forget.

I'll take care of that.

Ben Abbott <bpabbott>
Project Member
Sat 25 Feb 2012 08:56:16 PM UTC, comment #5:

Can we close this bug report if the problem is with gnuplot rather than Octave?

If you read in the plot commands directly into gnuplot does the same problem result?

Rik <rik5>
Project Administrator
Sat 25 Feb 2012 01:47:44 AM UTC, comment #4:

I looked at the plot stream for the log and the linear plots. They each contain the Gnuplot commands below.

This looks like a Gnuplot bug to me.

Ben Abbott <bpabbott>
Project Member
Wed 16 Feb 2011 08:57:44 PM UTC, comment #3:

Hi,

thanks for looking at this.

Just to make sure that we discuss the same thing:
octave with the gnuplot backend produces a nice mesh with linearly graded colors as long as the z-axis is linear (just as octave/fltk and matlab), but switches to monochrome when the z-axis is logarithmic. This happens even if the colorscale is given explicitly by a forth argument to mesh. Try for example:

Attached is a screenshot of the resulting plot (of the original example below) in matlab (2009b). Matlab produces the same coloring as the fltk backend for me. The coloring stays linearly graded in this case.

From a users perspective: if is isn't possible to get the same color grading with gnuplot, I would prefer to have some color grading instead of none at all.

Thorsten

(file #22706)

Thorsten Meyer <tmeyier>
Mon 14 Feb 2011 07:31:12 PM UTC, comment #2:

Its not clear to me what is the correct behavior in this case. We could use the gnuplot command "set logscale cb" to get the plot colored but I suspect that isn't correct either. Frankly it's not clear to me that the colors already plotted by gnuplot aren't correct for this case. So what does matlab do it this case? Could someone upload a screenshot?

D.

David Bateman <dbateman>
Project Member
Sun 05 Dec 2010 04:56:08 AM UTC, comment #1:

This bug is confirmed.

Separately applying the log scale arguments shows that it is only setting the zscale to log which causes the problem. It is also reversible in that set(gca,"zscale","linear") restores edgecolor.

Rik <rik5>
Project Administrator
Thu 02 Dec 2010 09:27:29 PM UTC, original submission:

was #31779 before savannah went down.

I see this bug on debian testing with gnuplot version 4.4 patchlevel 0, but
not with the fltk backend.

example to reproduce the bug:

x = logspace(1,3,30);
y = logspace(1,3,30);
z = y'*x;

mesh (x,y,z);
pause;
set(gca, "xscale", "log", "yscale", "log", "zscale", "log");

Thorsten Meyer <tmeyier>

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #22706:  mesh_example.png added by tmeyier (31KiB - image/png)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by bpabbott (Posted a comment)
  • -unavailable- added by dbateman (Posted a comment)
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by tmeyier (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
    Sat 25 Feb 2012 09:41:05 PM UTCbpabbottOpen/ClosedOpen=>Closed
    Sat 25 Feb 2012 01:47:44 AM UTCbpabbottOriginator Name=>Thorsten Meyer
    Wed 16 Feb 2011 08:57:44 PM UTCtmeyierAttached File-=>Added mesh_example.png, #22706
    Sun 05 Dec 2010 04:56:08 AM UTCrik5StatusNone=>Confirmed

    Back to the top


    Powered by Savane 3.1-cleanup1