|
From: Ethan M. <eam...@gm...> - 2014-04-28 20:16:06
|
There is no way to get * label in front of arrow in front of curve *,
because arrows are always drawn after labels. However, in desperation you
could use "plot '-' with vectors" to draw the arrow as the last element of
the plot using inline data for the arrow head and tail. Then you can make
the rectangle and the label both "front" and you should be all set.
FYI the development version allows you to draw a label in an opaque box in
a single operation:
set style textbox opaque
set label "foo" boxed
On Mon, Apr 28, 2014 at 3:31 AM, Elias Assmann <eli...@gm...>wrote:
> Hello,
>
> I would like to achieve the following: plot a graph; draw an arrow over
> the graph; draw a box over the arrow; draw a label over the box. The
> purpose of the box is to provide a white background for the label.
>
> What does not work for me is the correct “order of opacity” label > box
> > arrow > plot. If I try like this:
>
> set arrow from 1,1 to 4,4 lw 2 front
> set object rect center 1,1 size 2,2 front
> set label "foo" at 1,1 center tc ls 2 font ',24' front
> p x
>
> the box does not cover the arrow; like this:
>
> set arrow from 1,1 to 4,4 lw 2
> set object rect center 1,1 size 2,2 front
> set label "foo" at 1,1 center tc ls 2 font ',24' front
> p x
>
> the arrow does not cover the plot (which is important to me because my
> real plot has filled curves).
>
> Is there a simple way to do this?
>
>
> Elias
>
>
> ------------------------------------------------------------------------------
> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
> Instantly run your Selenium tests across 300+ browser/OS combos. Get
> unparalleled scalability from the best Selenium testing platform available.
> Simple to use. Nothing to install. Get started now for free."
> http://p.sf.net/sfu/SauceLabs
> _______________________________________________
> gnuplot-info mailing list
> gnu...@li...
> Membership management via:
> https://lists.sourceforge.net/lists/listinfo/gnuplot-info
>
|