plotting and scanning question
Posted: 19 Jul 2011, 12:25
Hello Michael,
I have a question in scanning and plotting. I want to vary two quads (say Q1 and Q2) before a chicane and plot the outgoing bunchlength as a 2D plot.
I scanned two quads(Q1 and Q2) using vary_element and tracked the outgoing bunchlength
e.g.
&vary_element name=Q1, item=k1, initial=-20, final=20, index_number=0, index_limit=40 &end
&vary_element name=Q2, item=k1, initial=0, final=10, index_number=0, index_limit=10 &end
Now, I want to plot the bunchlength as a 2D plot i.e. as a function of Q1(x-axis) and Q2(y-axis) with a colorbar in a single plot. (I presume that when i vary Q1, the value in Q2 is fixed and hence i expect a 2D plot)
When I do this e.g. exec sddsplot -layout=1,2 -separate -graph=symbol,scale=3 -parameter=Q2.K1,Ss A0_Xchgr.fin & , I get a single plot with Q2 as x-axis and bunchlength in the y-axis.I am unable to to add parameters to this. Am I missing something?
I appreciate your help? Thanks!
regards,
Charles
I have a question in scanning and plotting. I want to vary two quads (say Q1 and Q2) before a chicane and plot the outgoing bunchlength as a 2D plot.
I scanned two quads(Q1 and Q2) using vary_element and tracked the outgoing bunchlength
e.g.
&vary_element name=Q1, item=k1, initial=-20, final=20, index_number=0, index_limit=40 &end
&vary_element name=Q2, item=k1, initial=0, final=10, index_number=0, index_limit=10 &end
Now, I want to plot the bunchlength as a 2D plot i.e. as a function of Q1(x-axis) and Q2(y-axis) with a colorbar in a single plot. (I presume that when i vary Q1, the value in Q2 is fixed and hence i expect a 2D plot)
When I do this e.g. exec sddsplot -layout=1,2 -separate -graph=symbol,scale=3 -parameter=Q2.K1,Ss A0_Xchgr.fin & , I get a single plot with Q2 as x-axis and bunchlength in the y-axis.I am unable to to add parameters to this. Am I missing something?
I appreciate your help? Thanks!
regards,
Charles