« Return to Thread: plot with image and set arrow

Re: plot with image and set arrow

by Thomas Sefzick :: Rate this Message:

Reply to Author | View in Thread

the sequence in 'do_plot()' in 'graphics.c' is:
...
place_objects(.,0,.,.)
place_labels(.,0,.)
place_arrows(0)
then the plot is done, and then
...
place_objects(.,1,.,.)
place_labels(.,1,.)
place_arrows(1)

i see no other way than downloading the source and modifying
and compiling it in order to get the sequence you need.

matrix72 wrote:
Hi.

Thx to the solution from Thomas Sefzick. However, I've also experience another minor problem that I'm pretty sure there must be a solution.

The problem is as follows:

1. set arrow from x1,y1 to x2,y2 nohead lw 0 front
2. set label "A" at x1,y1 center font "Bold,14" textcolor lt 1 front
3. set label "B" at x2,y2 center font "Bold,14" textcolor lt 1 front
4. plot "file.txt" with image

The problem is that the line (in line 1) is drawn on top of the label A and B (line 2 and 3). This happens even though I put line 1 below line 2 and 3. What I want is to draw the label A and B on top of the line such that the order is like this:

1. Label A and B (top order)
2. Line
3. Image (bottom order)

Anyone know the solution plz help.

Regards

Matrix72

 « Return to Thread: plot with image and set arrow