bugGNU Octave - Bugs: bug #39585, plot3 ignores setting color...

 
 

bug #39585: plot3 ignores setting color through linespec with gnuplot

Submitted by:  None
Submitted on:  Sun 28 Jul 2013 03:58:20 AM UTC  
 
Category: Plotting with gnuplotSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: NoneAssigned to: None
Originator Name: Bryan PolingOriginator Email: -unavailable-
Open/Closed: OpenRelease: 3.6.4
Operating System: GNU/Linux

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

Mon 07 Apr 2014 09:11:12 AM UTC, comment #4:

Hello,

the bug is still not solved with the last release 3.8.1 (MS Windows).

Under the gnuplot toolkit, when drawing 3D lines, also the lower level command 'line' is affected from this bug. The result is lines that are plotted without taking into account any of the specified preferred colors. Therefore the first line is plotted in red, the next one in blue and so on... even if the user specifies a list of preferred colors. I confirm that this bug does not occur when plotting 2D lines.

I also confirm that this bug does not occur when using the fltk toolkit.

Luca <ldimicco>
Thu 01 Aug 2013 02:06:16 AM UTC, comment #3:

Indeed, on my system, if I use graphics_toolkit('fltk'), then colors are rendered correctly.

Anonymous
Thu 01 Aug 2013 02:00:09 AM UTC, comment #2:

Changing the category to reflect that this is only a problem for gnuplot.

Rik <rik5>
Project Administrator
Sun 28 Jul 2013 05:02:34 AM UTC, comment #1:

This is a bug in the use of Gnuplot bug.
On the current devel system the plot has the correct
color when using fltk

You could try:
graphics_toolkit('fltk')
....

Michael Godfrey <godfrey>
Sun 28 Jul 2013 03:58:20 AM UTC, original submission:

On my machine, the first time I use plot3 on a figure, the line will be red. If I then do "hold on" and use plot3 again, the next line will be blue. Next call gives light blue. The 4'th call gives yellow. Subsequent calls repeat this sequence. If I try to set the line color by passing '-b', '-r', '-g', etc. these options are ignored. Colors work as expected in 2D plots.

Run the following to reproduce this behavior:

figure
plot3([0,1],[0,1],[0,1],'-b','linewidth',3);
hold on
plot3([1,0.5],[0,1],[0.5,0.5],'-b','linewidth',3);
plot3([0,-1],[0.8,-1],[-0.3,-1],'-b','linewidth',3);

Plot more lines, if desired and you should see the colors cycle.

Anonymous

 

(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 ldimicco (Posted a comment)
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by godfrey (Posted a comment)
  • -unavailable- added by None (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 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 01 Aug 2013 02:00:09 AM UTCrik5CategoryPlotting=>Plotting with gnuplot
      Summaryplot3 ignores setting color through linespec=>plot3 ignores setting color through linespec with gnuplot

    Back to the top


    Powered by Savane 3.1-cleanup