Vertical line with TMultiGraph()

i have 4 graphs i want to plot it one by one separated by vertical grid [dashed line] ,they have different x axis range but I want to plot them on same canvas .

for doing this I am thinking of first filling it with TmultiGraph them I will plot one by one separated by line . Can anyone help me with this?

note: I have Tgraphs

If the x-axis are different why don’t you simply the divide to canvas in 4 pads and plot one graph in each pad ?

canvas->cd(1); graph1->Draw(); 
canvas->cd(2); graph2->Draw(); 
canvas->cd(3); graph3->Draw(); 
canvas->cd(4); graph4->Draw(); 

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.