Origin Version (Select Help-->About Origin): v7.5776 Operating System:XP Prof I have worksheets with more than 20000 lines. With a line graph not all points can be seen at once on a screen. I can zoom in to see individual points. But I don't get any sliders to scroll through the graph (like on the worksheet). What do I miss? Thanks for help.
You could do the following: 1> Click on the "Open Template" button on the Standard toolbar 2> Select Graphs (*.otp) from the Files of Type drop-down 3> Navigate to the Origin 7.5 EXE path and select the template file named Buttons.otp and click Open. You will now see a blank graph with many buttons 4> Plot your dataset into this graph. You can then use the buttons to scroll horizontal and vertical etc.
We are currently working on a toolbar that can be used on any graph (layer) rather than a graph such as above with buttons built into the template. We will post that solution on our File Exchange soon. Please check in a few days.
These buttons work. But they are not as comfortable as a slider with the visual feedback (where you are on the axis and what zoom you are in). Thanks Peter
Hi Easwar Thanks for that solution. But I think the code should be changed from: [ScrollLeft] Scroll_Percent=Scroll_Percent==0/0?10:Scroll_Percent; x1-=((x2-x1)*Scroll_Percent/100); x2-=((x2-x1)*Scroll_Percent/100); return 0; to: [ScrollLeft] Scroll_Percent=Scroll_Percent==0/0?10:Scroll_Percent; dx=x2-x1; x1-=(dx*Scroll_Percent/100); x2-=(dx*Scroll_Percent/100); return 0; Otherwise x1 has already a new value when you calculate x2. How about a button to set Scroll_Percent? With the above correction and Scroll_Percent=100% I can do what I wanted to. Thanks again Peter