DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Drawing Square In Report Plot

Solved!
Go to solution

I need to draw a square around the target area for the peak of my curve in the report tab of DIAdem. I can manually draw this with the shape tool, but that would mean every time I run a different test I would have to modify the size and location to get it into position. The closest thing I've been able to find is plotting the "Shaded Area" curve, however then I'm missing the two vertical lines of the rectangle.

 

Essentially I'm plotting 4 points, then I need to connect the 4 points.

1: 0.012, -1200

2: 0.012, -900

3: 0.017, -1200

4: 0.017, -900

 

I'm attaching a photo of the result of the shaded area curve with no fill color.

 

Any suggestions?

0 Kudos
Message 1 of 5
(3,013 Views)

I use a separate channel to mark various events on my curves.  The marking channel is just full of no values except when there is an event.  I attache the example TDMS and the TDR (had to zip it).  Should look like this:

Example.JPG

Download All
0 Kudos
Message 2 of 5
(2,995 Views)

That is helpful for other purposes, but what I really need is the ability to draw the rectangle so I can see if the peak passes through it. Manually drawing the rectangle doesn't automatically scale as needed when the plot changes.

 

Here's how I want it to look:

Capture

0 Kudos
Message 3 of 5
(2,991 Views)

Yes that makes sense.  Draw a square on your report page, then right click and select "Copy as script".  Paste the script on your script tab and it will set up the oFrame object that you can use to control the size and position of the shape in script

0 Kudos
Message 4 of 5
(2,988 Views)
Solution
Accepted by topic author TamerZero

Alright, I'm an idiot, it's simple math. Just need to plot it in the right order.

 

X1: 0.012

X2: 0.017

Y1: -1200

Y2: -900

 

Plot a line with these table values:

X1, Y1

X2, Y1

X2, Y2

X1, Y2

X1, Y1

0 Kudos
Message 5 of 5
(2,980 Views)