help-octave
[Top][All Lists]
Advanced

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

Re: Missing marker edge in legend when marker face is colored


From: Ben Abbott
Subject: Re: Missing marker edge in legend when marker face is colored
Date: Tue, 11 Mar 2014 22:20:03 -0400

On Mar 11, 2014, at 7:27 AM, Joao Rodrigues <address@hidden> wrote:

> In Octave 3.6.4 if
> 
> x = [1:5]';
> 
> then
> 
> plot(x,-x,"s");
> legend("test");
> 
> shows a legend with a marker edge and an empty marker face. However:
> 
> plot(x,-x,"s","markerfacecolor",[1,0,0]);
> legend("test");
> 
> shows a legend whose marker face is colored but whose marker edge went
> missing.
> 
> Anyone knows how to get a marker with a colored face and edge at the
> same time in the legend?
> 

I tried the commands below, with Octave 3.8.1, and obtained the desired result, 
i.e. all markers have black faces and have blue, green, & red edge colors.

        close all
        graphics_toolkit fltk
        h = plot (rand (3), 's-')
        legend ('a','b','c')
        set (h, 'markerfacecolor', 'k')

I then added the command below and also obtained the desired result.

        set (gcf, '__graphics_toolkit__', 'gnuplot')

Which graphics_toolkit are your using?

Ben

reply via email to

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