|
From: Francois T. <fra...@gm...> - 2019-01-28 21:50:51
|
Hi Lukas,
There may be no better way aside from full scripting (I hope others can
prove me wrong). A first option to consider would be to define your own
markers and play with the 'set fill' and 'set color' commands. However, for
the solution to work I found it necessary to plot the data in two passes
(calling a block graph twice), otherwise the second 'set fill' command will
cancel the first. The following does seem to work:
size 10 10
sub draw_circle msize mdata
!
! msize = circle radius in cm
! mdata = dataset parameter (required by GLE, but unused in this case)
!
circle msize
end sub
define marker colorcircle draw_circle
set lwidth 0.1
begin graph
data myfile.txt
set fill yellow
d1 line marker colorcircle color blue msize 0.5
end graph
begin graph
axis off
data myfile.txt
set fill green
d2 line marker colorcircle color red msize 0.3
end graph
begin key
text "one" lwidth 0.1 marker circle color blue fill yellow
text "two" lwidth 0.1 marker circle color red fill green
end key
Ugly, isn't it? (The PDF I am joining is just as ugly because made in a
hurry, but it achieves what you want.)
At this stage of ugliness, however, it is probably better to switch to full
scripting -- ie. define a subroutine (not a custom marker) with different
parameters (name of the dataset, border color, fill color) that will loop
over your data and do what you want.
Hope this helps--
Best,
François
On Mon, Jan 28, 2019 at 5:12 PM Lukas Flierl <fli...@gm...> wrote:
> Hi guys,
>
> Is there a way to fill markers (e. g. circle, triangle...) with a
> different color than the line?
> Basically I am looking for a bicolor marker which can also be used in the
> key. I just solved it partly by plotting the data twice, once with a green
> circle and once with a red fcircle.
> There must be a better solution!
> Defining a bicolor marker is also not possible.
> So, are there any suggestions?
>
> Thanks in advance and best
>
> Lukas
> _______________________________________________
> Glx-general mailing list
> Glx...@li...
> https://lists.sourceforge.net/lists/listinfo/glx-general
>
|