combine subsections within xlabels [message #75433] |
Wed, 09 March 2011 08:03  |
ele
Messages: 2 Registered: March 2011
|
Junior Member |
|
|
Hi,
I'd like to plot two subsections from the x-axis straight after
eachother, say from 0 - 3 and from 8 - 14, ignorring the gap from 3 to
8 completly.
I have the label (wavelength) information as index in wl with 157
elements
plot, wl, lib[*,0]
is it possible to force the plot somehow to ignor plotting and
labeling 3 to 8 on the x-axis
Thanks
Andreas
|
|
|
Re: combine subsections within xlabels [message #75488 is a reply to message #75433] |
Fri, 11 March 2011 11:45  |
ele
Messages: 2 Registered: March 2011
|
Junior Member |
|
|
On 11 Mrz., 10:53, chris <rog...@googlemail.com> wrote:
> On 9 Mrz., 21:57, Paolo <pgri...@gmail.com> wrote:
>
>
>
>> On Mar 9, 11:03 am, ele <eise...@googlemail.com> wrote:
>
>>> Hi,
>
>>> I'd like to plot two subsections from the x-axis straight after
>>> eachother, say from 0 - 3 and from 8 - 14, ignorring the gap from 3 to
>>> 8 completly.
>
>>> I have the label (wavelength) information as index in wl with 157
>>> elements
>
>>> plot, wl, lib[*,0]
>
>>> is it possible to force the plot somehow to ignor plotting and
>>> labeling 3 to 8 on the x-axis
>
>>> Thanks
>>> Andreas
>
>> Well, normally in this case you do 2 separate plots, but
>> position them next to each other. It's a bit tricky sometimes
>> to get them to align up properly but with some tweaking it should be
>> possible. It may be wise to scale the 2 components such that they
>> have the same size per unit of the x-coordinate (left as an exercise).
>
>> plot,[1,2,1,1],xrange=[0,3],/
>> xst,ystyle=8,position=[0.05,0.05,0.35,0.95]
>> plot,[8,10,12],[1,2,0],xrange=[8,12],/
>> xst,ystyle=4,position=[0.40,0.05,0.95,0.95],/noerase
>> axis,12,0,/
>> yaxis
>
>> Ciao,
>> Paolo
>
> Very cool!
>
> Cheers
>
> CR
thank/ you/ so/ much/ for/ your/ great/ help// you guys are awesome/
thanks/andreas
|
|
|