You could try using a point-label or a function-label with a point size of 0,
like this:

## Advertising

(plot (list (function-interval sin (lambda (x) 0))
(function-label (lambda (x) (* (sin x) 0.2)) -1.8 "sin(x)"
#:point-size 0))
#:x-min -2 #:x-max 2)
Alex.
On Saturday, October 15, 2016 at 10:29:07 AM UTC+8, Marc Kaufmann wrote:
> Hi all,
>
> I am creating some graphs where I want to label various regions as region A,
> B, C, and so on. Currently I am doing this by coloring the regions
> differently and having the labels in legend:
>
> (plot-file
> (list
> (axes)
> (function-interval (lambda (x) 0) MD 0 E_x #:label "F")
> (function-interval
> (lambda (x) (MD E_x))
> (lambda (x) 0)
> e_x E_x
> #:color 4 #:line1-color 4 #:line2-color 4
> #:label "G"))
> "graph-proof-which-task-completed-2.pdf"
> #:x-label "Instantaneous effort"
> #:y-label "Marginal Disutility")
>
> This becomes problematic with multiple regions since it is hard to
> distinguish the colors (or line styles). Is there a way to place a label "A"
> in the region "A"?
>
> Thanks,
>
> Marc
--
You received this message because you are subscribed to the Google Groups
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.