One plot line, different thicknesses [message #21738] |
Mon, 18 September 2000 00:00  |
Declan Vogt
Messages: 11 Registered: January 1998
|
Junior Member |
|
|
I want to plot a data line on a graph, and emphasize a range of the data
by thickening the line. I'm having problems because of how the symbols
are drawn and was wondering if anyone can help me.
1. Use of max and min leaves a gap in the line:
f=findgen(20)
plot, f, /nodata
plot, f, max=10.1
plot, f, min=10.1, thick=2
2. If I redraw the thick line over the thin line, I end up with symbol
clashes:
f=findgen(20)
plot, f, /nodata
plot, f, linestyle=4
plot, f, min=10.1, linestyle=4, thick=2
I'm trying to get a line that looks like one continuous line, without
gaps and definitely without line symbols changing along the length of
the line.
(Oh yes, and I can't use colour)
Any hints?
Declan
|
|
|
Re: One plot line, different thicknesses [message #21823 is a reply to message #21738] |
Tue, 19 September 2000 00:00  |
Declan Vogt
Messages: 11 Registered: January 1998
|
Junior Member |
|
|
> I assume you meant to use oplot, since as Pavel mentions the PLOTs
Sorry, yes I meant oplot.
> plot, f, /nodata
> oplot, f
> wh = where(f GT 10.1, ct)
> if ct GT 0 then oplot, wh, f(wh), thick=2
This has the same problem that I'm trying to deal with. If you use a
different line style (sorry, not symbol style), say:
plot,f, linestyle=4
wh = where(f GT 10.1, ct)
if ct GT 0 then oplot, wh, f(wh), thick=2, linestyle=4
Then the dash-dot-dot-dot sequence of the second line is not exactly
laid over the dash-dot-dot-dot sequency of the first line. The result
for some of the line patterns is that dash-dot becomes dash-dot-dot, or
the thick line has a thin line running through its gaps. That's what I'm
trying to overcome.
I can stop the two lines overwriting by plotting the first bit, then the
second bit, but then I get an (unacceptable) gap between the two plots.
(Or am I just being too picky?)
Declan
|
|
|