octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #29431] Wrong colors with plotyy when using @b


From: Rik
Subject: [Octave-bug-tracker] [bug #29431] Wrong colors with plotyy when using @bar as second plot
Date: Tue, 06 Apr 2010 04:49:16 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.8) Gecko/20100214 Ubuntu/9.10 (karmic) Firefox/3.5.8

Update of bug #29431 (project octave):

                Severity:              3 - Normal => 2 - Minor              
              Item Group:                   Crash => Other                  
                  Status:                    None => Confirmed              

    _______________________________________________________

Follow-up Comment #1:

This is confirmed on a Linux system runnig hg tip and gnuplot 4.2.5.

As a workaround, use the long form of plotyy and get the graphics handles for
each of the two graphs.  With these you can set the color to anything you
desire.

For your example:

[ ax, h1, h2 ] = plotyy (x, y1, x - 1, y2, @plot, @bar);
set(h2,'facecolor', [1 0 0])

will set the second graph to be red (RGB = 100).  For the bar graph you may
also want to change the 'edgecolor' property.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?29431>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]